Notifications
Clear all

Stereo Cameras

4 Posts
2 Users
0 Reactions
1,451 Views
(@faturita)
Active Member
Joined: 6 years ago
Posts: 5
Topic starter  

Hey Guys,

We are having problems accessing the two eyes cameras at the same time with OpenCV.  We can get the stream of only one camera at the same time but when we try to get both (using cap.capture() for video 0 and 1) we cannot get any of the streams.  Is there anything we can do to bypass this issue?

Thanks a lot !


   
Quote
Qbo Robot
(@nonogrub)
Member Admin
Joined: 8 years ago
Posts: 185
 
Posted by: faturita

Hey Guys,

We are having problems accessing the two eyes cameras at the same time with OpenCV.  We can get the stream of only one camera at the same time but when we try to get both (using cap.capture() for video 0 and 1) we cannot get any of the streams.  Is there anything we can do to bypass this issue?

Thanks a lot !

Hi Faturita,

you can use >lsusb . in order to know the ID cameras or

a better test to see if Linux detected the cam correctly is: cat /sys/class/video4linux/video0/name


   
ReplyQuote
(@faturita)
Active Member
Joined: 6 years ago
Posts: 5
Topic starter  

Thank you very much for the response !!!!!

They are both detected.  I can use any of them, but not both at the same time (which is something great while you are trying stereo vision).  Did you try that ?


   
ReplyQuote
(@faturita)
Active Member
Joined: 6 years ago
Posts: 5
Topic starter  

Found the issue.  I had to restrict the size of the frames to at least 640x480.  Otherwise the buffer is saturated.  Adding the size to OpenCV VideoCapture allows to have stereo vision.  Thanks for the help !

 


   
ReplyQuote
Share: