Dec 24, 2013

Raspberry Pi - OpenCV with Picam (1)


I refer to this blog.


 http://thinkrpi.wordpress.com/2013/05/22/opencv-and-camera-board-csi/ 

    


Raspberry : ver B 512MB

OS : Raspbian wheezy (2013.09.25).




1. PREPARE
1-1. prepare

Need a cmake. If you don't installed cmake, install cmake package.


 sudo apt-get install cmake




Getting basic source code.


git clone git://github.com/raspberrypi/userland




Move to  " /opt/vc/userland"

sudo mv /userland /opt/vc/userland

cd /opt/vc/userland


mkdir build

cd build


1-2. CMake

sudo cmake -D CMAKE_BUILD_TYPE=Release ..





If completed CMake, you can see makefile.


1-3. make

sudo make




 

This process is long long time.

Go to Coffee.



1-4. Install



sudo make install




If completed install then run!!

1-5. Run

cd /opt/vc/bin

./raspistill -t 3000

If picam turn on light and take a picture, it's normal

Go to next stage!!

No comments:

Post a Comment