Ask Your Question
0

combining opencv with raspberry pi camera

asked 2016-01-07 12:31:04 -0600

updated 2016-01-08 03:27:52 -0600

Hello,

I want to do image processing using Rpi camera and opencv and I am beginner. I have opencv 2.3.1 on my raspberry pi and I can do the tutorials on opencv webpage using cmake.

Also, I have rpi cam and was able to do these prerequisites to launch raspicamtest executable and it is working.

  1. I didn't understand "Using the static library" section. What will I do with those strings? It seems like they should be written in a buildme file or something?
  2. I need to use opencv codes on the images or videos captured by raspberry pi camera. When I manipulate the code (RaspiCam.c) to include an opencv function (e.g. imwrite), it doesnt recognize that function this time. What should I do to combine these two?

Any kind of help is highly appreciated.

edit retag flag offensive close merge delete

Comments

I have opencv 2.3.1 --> wait hold there, go to the download page, get yourself the latest 2.4 or 3.1 branch and make sure that you are not using an outdated API with tons of bugs still inside.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-01-08 03:29:42 -0600 )edit

I have a project that's currently working under opencv 2.3.1. If I upgrade, does it affect it? I think every opencv version has its own way of programming, function names change.

troubled grad student gravatar imagetroubled grad student ( 2016-01-08 09:32:09 -0600 )edit

Nope, OpenCV has compatibility guarantee. Only the switch to 3.0 needs a minimal adaptation. But changing to the latest 2.4 branch should not affect your results.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-01-11 02:43:00 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-01-08 01:37:04 -0600

dpwicaksa gravatar image

you need to build a project which include both openCV lib and raspiCam lib.

edit flag offensive delete link more

Comments

Okay but how will I do this? It basically doesnt work if I include cv and raspicam.h to the c project, I need to prepare a build file. How will I do this?

troubled grad student gravatar imagetroubled grad student ( 2016-01-08 09:31:02 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-01-07 12:31:04 -0600

Seen: 337 times

Last updated: Jan 08 '16