[RBP]RaspberryPi系列之三:NEW seven-part OpenCV 2.4.6.1 and Pi Camera Board - Updated!

CSDN blogging 彻底疯了

只要一加任何格式信息(颜色,超链接etc.),原文大部分就消失!!!!不懂。。。。


1. Preface

Ok, if you read my previous thread, you would know I went to bed & left RBP lonely and alone doing the dirty work (compling, linking, building etc)....

As some say, 7 hours it is!!!


2. Main Issues

The work is based on Pierre's seven-part tutorial on OpenCV+Pi Camera Board.

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



2.1 Issues

  1. Although that series was written around May-June 2013, he still using OpenCV 2.3.1! which uses libfacerec for face recognition. Starting from 2.4, libfacerec has been fully integrated into OpenCV.
  2. It appeared one has to re-build userland-master to generate MMAL libraries (headers & libmml_xxx.so files) and raspicam tools (raspistill & raspivid) by then. However I believe now it is not necessary since I've got them pre-installed under /usr/bin/raspistill and /opt/vc/lib/.


3. New steps with OpenCV 2.4.6.1

Step 1: the same

Step 2: Do not needed!

Step 3: Same

Step 4: Same

see here (http://blog.csdn.net/windtalkersm/article/details/12607587) and here (http://ariandy1.wordpress.com/2013/02/13/raspberry-pi-rasbian-opencv/)

 to see how to install OpenCV 2.4.6.1

Step 5: same (camcv.c)

However, be aware of one error and its fix (worked for me) under comments

mmal: main: Failed to create preview component

mmal: Failed to run camera app. Please check for firmware updates


fix (by Gabriel):

just changed

” else if (!raspipreview_create(&state.preview_parameters)) ” line in main to


Step 5.5: not tried

Step 6: same (camcv_vid0.cpp)

remember the same change as in Step 5!!!

Step 7: Outdated (camcv_vid1.cpp)


你可能感兴趣的:([RBP]RaspberryPi系列之三:NEW seven-part OpenCV 2.4.6.1 and Pi Camera Board - Updated!)