Go to advanced search

by robmurg
Fri Apr 04, 2014 2:55 pm
Forum: Camera board
Topic: An easier way to use Opencv C api with camera module
Replies: 1
Views: 799

Re: An easier way to use Opencv C api with camera module

Update: OpenCV installation turned out to be fairly painless (sudo apt-get install libopencv-dev python-opencv) and only took a few minutes. I've now got the code compiled and will look at it tonight... Thank you, That looks really interesting. I've downloaded your code and am trying to compile it u...
by robmurg
Wed Jun 26, 2013 6:35 pm
Forum: Camera board
Topic: Capture raw image to memory buffer (C/C++)
Replies: 25
Views: 13781

Re: Capture raw image to memory buffer (C/C++)

I've made some progress too - I included the loop to send buffers to the camera_still_port in each capture loop for (q=0;q<num;q++) { MMAL_BUFFER_HEADER_T *buffer = mmal_queue_get(state.camera_pool->queue); etc. and changed the .one_shot_stills = 0 to .one_shot_stills = 1 when creating the camera co...
by robmurg
Tue Jun 25, 2013 9:32 pm
Forum: Camera board
Topic: Capture raw image to memory buffer (C/C++)
Replies: 25
Views: 13781

Re: Capture raw image to memory buffer (C/C++)

Thanks all, I managed to capture an image to a buffer by looking at raspistillYUV (easier than I expected), and convert it from YUV to RGB (more difficult than I expected). I wonder: Can I hope to establish a continuous stream of images from the camera via the callback without having to re-initialis...
by robmurg
Thu Jun 13, 2013 3:55 pm
Forum: Camera board
Topic: Capture raw image to memory buffer (C/C++)
Replies: 25
Views: 13781

Re: Capture raw image to memory buffer (C/C++)

Many thanks James, that looks very promising. If I achieve anything interesting or useful I'll post it back here. :)
by robmurg
Thu Jun 13, 2013 9:08 am
Forum: Camera board
Topic: Capture raw image to memory buffer (C/C++)
Replies: 25
Views: 13781

Capture raw image to memory buffer (C/C++)

Could anyone kindly point me to some sample code/information showing how to capture a still image directly to a memory buffer for further processing? I'm hoping to bypass JPEG encoding/decoding or loading from a disk to reduce overhead and free cycles to use processing the image. I'm trying to integ...

Go to advanced search