Here's a quick update on my progress and the kludge I've been using.  I've 
tried every combination of V4l2 settings I could find but could not get any 
too work.  I then tried V4l2ucp which did work.  Looking at the source code 
it calls mplayer to display the video.  Mplayer also worked well, and it 
uses V4l2 to capture images from the cape.  I've resorted to calling 
mplayer from Qt and having it dump several images to files, then I read in 
the files with opencv and do the processing I need.  It works but is 
definitely a kludge.  If anyone knows or can figure out what V4l2 settings 
mplayer uses then we could grab directly from the camera.

On Monday, March 31, 2014 10:18:01 AM UTC-5, [email protected] wrote:
>
> Has anyone come up with a solution for this?  I've tried both the Angstrom 
> and Debian images as well as the V4l2 grabber code that was posted above, 
> but all produce the memory allocation error.  Cheese can capture images. 
>  It looks like cheese uses a custom camera object based on GLib.  Is there 
> no way to use openCV or V4l2 to capture directly from the cape?  Thanks,
>
> aj
>
> On Thursday, March 21, 2013 1:28:38 AM UTC-5, Linux Omicron wrote:
>>
>> Hello All,
>>
>> I am working on a project with BeagleBone and 3.1 MP camera cape.
>> The OS is Angstrorm : Linux beaglebone 3.2.34 #1 Wed Nov 21 14:17:11 CET 
>> 2012
>> I noticed that camera works well with cheese and mplayer but it doesn't 
>> work with a simple OpenCV application to capture video from the camera.
>>
>> My application to capture video returns after following errors. It seems 
>> that application doesn't able to get past to the call cvCaptureFromCAM.
>>
>> VIDIOC_REQBUFS: Cannot allocate memory
>> munmap: Invalid argument
>> munmap: Invalid argument
>> munmap: Invalid argument
>> munmap: Invalid argument
>> Unable to stop the stream.: Bad file descriptor
>> munmap: Invalid argument
>> munmap: Invalid argument
>> munmap: Invalid argument
>> munmap: Invalid argument
>> Floating point exception
>>
>> Running v4l2-ctl gives following information. Is it usual that the camera 
>> doesn't use libv4l2?
>>
>> root@beaglebone:~# v4l2-ctl --info
>> Driver Info (not using libv4l2):
>>         Driver name   : cssp_camera
>>         Card type     : cssp_camera
>>         Bus info      : cssp_camera-000
>>         Driver version: 3.2.34
>>         Capabilities  : 0x05000001
>>                 Video Capture
>>                 Read/Write
>>                 Streaming
>>
>> Any direction to make the camera work with OpenCV?
>>
>> Thank you,
>> Linux Omicron
>>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to