Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
neutmute committed Feb 1, 2015
1 parent 16df733 commit 19fab1f
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions raspicam_cv/README.md
Expand Up @@ -30,14 +30,9 @@ This will create:

- **libraspicamcv.a**: A static raspberry cam library which provides an opencv like interface
- **libraspicamcv.so**: A shared library of the above
- **raspicamtest**: A small test app which uses the static library

### RaspicamTest ###
Uses the static library to render a video using OpenCV.

Press Esc to exit.
- **raspicamtest**: A small test app which uses the static library. Execute with `./raspicamtest`. Press Esc to exit.

### Using the static library in your own project ###
### Using the static library ###

Add the include path

Expand All @@ -58,26 +53,27 @@ In your code add **#include "RaspiCamCV.h"** and replace:
- cvGetCaptureProperty -> raspiCamCvGetCaptureProperty

cvSetCaptureProperty does not currently work. Use the `raspiCamCvCreateCameraCapture2` method to specify width, height, framerate, bitrate and monochrome settings.

### Using the shared library ###
Example C# can be found [here](https://github.com/neutmute/PiCamCV/blob/master/source/LibPiCamCV/PInvoke/CvInvokeRaspiCamCV.cs) which made [this](https://www.youtube.com/watch?v=MWK55A0RH0U).

### Credits ###
RaspiCamCV.c/h is the library source.

It's converted from camcv_vid0.c from [Pierre Raufast](https://thinkrpi.wordpress.com/2013/05/22/opencv-and-camera-board-csi/ "Pierre Raufast").
RaspiCamCV.c/h is converted from camcv_vid0.c from [Pierre Raufast](https://thinkrpi.wordpress.com/2013/05/22/opencv-and-camera-board-csi/ "Pierre Raufast"), which in turn is based on [RaspiVid.c](https://github.com/raspberrypi/userland/blob/master/host_applications/linux/apps/raspicam/RaspiVid.c).

### More info ###
- [http://www.robidouille.com](https://robidouille.wordpress.com/2013/10/19/raspberry-pi-camera-with-opencv/)
- [https://www.google.com/+Robidouille](https://www.google.com/+Robidouille)


### Troubleshooting ###
#### No rule to make target `objs/RaspiCamControl.o' ####
#### No rule to make target 'objs/RaspiCamControl.o' ####
If your userland library is in another directory than as specified above, you need to update the USERLAND_ROOT variable in the Makefile.

#### RaspiCamCV.c:38:16: fatal error: cv.h: No such file or directory
You didn't apt-get the suggested libraries at the top of this file

#### (RaspiCamTest:14072): Gtk-WARNING **: cannot open display ####
You need to run raspicamtest within an X server. Type startx first, open a terminal window, and launch raspicamtest from there.
You need to run raspicamtest within an X server. Type `startx` first, open a terminal window, and launch raspicamtest from there.

#### raspicamtest causes the entire raspberry pi to crash ####
Your pi power supply may not be up to the task. Capturing images in a loop makes the pi work hard.

0 comments on commit 19fab1f

Please sign in to comment.