Difference between revisions of "RaspiCam with OpenCV and Python"

From Lofaro Lab Wiki
Jump to: navigation, search
(Credits)
(OpenCV for Python)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Credits=
+
=Required Items=
Tutorial from  Adrian Rosebrock: [https://www.pyimagesearch.com/2015/03/30/accessing-the-raspberry-pi-camera-with-opencv-and-python/ https://www.pyimagesearch.com/2015/03/30/accessing-the-raspberry-pi-camera-with-opencv-and-python/ ]
+
* Raspberry Pi
 +
* Raspberry Pi Cam
 +
 
 +
=Stepa=
 +
==Attach Pi Cam==
 +
Attached the Pi Cam to the top ribbon port
 +
 
 +
==Install the Software==
 +
===OpenCV for Python===
 +
<code>
 +
$ sudo apt-get install python-opencv
 +
</code>
 +
 
 +
===Pi Cam Lib via PIP===
 +
<code>
 +
$ pip install "picamera[array]"
 +
</code>
 +
 
 +
or
 +
 
 +
<code>
 +
$ sudo apt-get install python-picamera
 +
</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