Difference between revisions of "RaspiCam with OpenCV and Python"

From Lofaro Lab Wiki
Jump to: navigation, search
(Required Items=)
(OpenCV for Python)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
===OpenCV for Python===
 
===OpenCV for Python===
 
<code>  
 
<code>  
& sudo apt-get install python-opencv
+
$ sudo apt-get install python-opencv
 
</code>
 
</code>
  
 
===Pi Cam Lib via PIP===
 
===Pi Cam Lib via PIP===
 
<code>
 
<code>
& pip install "picamera[array]"
+
$ pip install "picamera[array]"
 +
</code>
 +
 
 +
or
 +
 
 +
<code>
 +
$ sudo apt-get install python-picamera
 
</code>
 
</code>

Latest revision as of 16:15, 19 March 2018

Required Items

  • Raspberry Pi
  • Raspberry Pi Cam

Stepa

Attach Pi Cam

Attached the Pi Cam to the top ribbon port

Install the Software

OpenCV for Python

$ sudo apt-get install python-opencv

Pi Cam Lib via PIP

$ pip install "picamera[array]"

or

$ sudo apt-get install python-picamera