Welcome, Guest. Please Login.
Surveyor Corporation Surveyor SRV-1
Home Help Search Login

Surveyor Robotics Forum

Welcome to the user support forum for Surveyor SRV-1 robots, SRV-1 robot controllers and SVS stereo vision systems. To register for this forum, please send an email to support@surveyor.com which includes your desired forum user name, your registration email address, and a brief explanation of why you wish to join, and we will create a forum account for you.

Please note that there is a Search button in the forum toolbar for forum topics. Another effective search method for the entire surveyor.com site is to use Google, e.g. "xyz site://www.surveyor.com" where "xyz" is the search topic.



Pages: 1
Send Topic Print
Receiving images simultaneously (Read 3516 times)
jedavis
YaBB Newbies
*




Posts: 4
Receiving images simultaneously
06/08/09 at 2:31pm
 
I'm working on a 3D vision system using the Surveyor SVS (without the robot). I have two questions:
 
>>How can I receive images from the cameras that were taken at the same time?
I've noticed a few millisecond lag from camera 1 to camera 2. This makes sense considering they receive the 'I' command at slightly different times.
 
>>How can I receive images at a maximal rate?
I've read in the forums various tricks to speed up the transfer rate. I want to know what is the best setup.
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Receiving images simultaneously
Reply #1 - 06/08/09 at 3:02pm
 
The Omnivision sensors don't have a global shutter, so there's no way to actually synchronize the capture.  The OV7725 can capture at almost 60 fps, which is twice as fast as the OV9655, so that is one mechanism to reduce the delay.  
 
The only other thought is that the OV9655 does take a reset signal, so it might be possible to wire a GPIO signal to reset both cameras simultaneously.  The separate cameras would also have to share the same pixel clock, and if the I2C register settings weren't simultaneous, sync would probably be lost.  But this might be the basis of a sync mechanism.
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
jedavis
YaBB Newbies
*




Posts: 4
Re: Receiving images simultaneously
Reply #2 - 06/09/09 at 11:18am
 
Is it true that ad-hoc mode is slower than infrastructure mode?
 
Is it possible to adjust the exposure/white-balance of the cameras manually?
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Receiving images simultaneously
Reply #3 - 06/09/09 at 12:45pm
 
Quote:
Is it true that ad-hoc mode is slower than infrastructure mode?
Yes - I've seen a factor of 2 or more
 
Quote:
Is it possible to adjust the exposure/white-balance of the cameras manually?
Yes - take a look at the I2C register settings in http://www.surveyor.com/blackfin/OV9655-datasheet.pdf .  Note that there is a new 'va' command in http://www.surveyor.com/SRV_protocol.html that can enable/disable AGC, AEC and AWB
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
jedavis
YaBB Newbies
*




Posts: 4
Re: Receiving images simultaneously
Reply #4 - 06/10/09 at 1:43pm
 
Diverging from the original topic of this thread...
 
I'm sending 'y' commands but the image is not flipping. Also I'm sending 'vax' (where x is a number) commands but only receiving '#x' back instead of the '##vax\n' reported in the protocol.
 
I suspect I might have a firmware problem. What do you think? (btw, thanks for your help)
Back to top
 
 
  IP Logged
jedavis
YaBB Newbies
*




Posts: 4
Re: Receiving images simultaneously
Reply #5 - 06/10/09 at 1:52pm
 
I'll post the output of a 'V' command when I get the chance...
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Receiving images simultaneously
Reply #6 - 06/10/09 at 1:57pm
 
I'm guessing your firmware is out of date.
 
With regard to 'y' flipping, are you using the OV9655 or OV7725 ?  The OV7725 doesn't support hardware flip, so we need to do it in software (and haven't yet written that code).
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
tuetulip
YaBB Newbies
*




Posts: 17
Re: Receiving images simultaneously
Reply #7 - 06/21/10 at 2:36am
 
Hardware synchronization is a rare quality in image sensors, and usually you need to pay $400+(each) for cameras with HW sync. Actually, OV7725 is an excellent sensor because it includes VSYNC output and FSIN input, which can be use for hardware synchronization.  
 
However, Surveyor engineers made this genius design decision to leave FSIN floating and prevent us from having affordable HW sync. But that's OK, nobody needs synchronization anyway. I don't think anybody would do any kind of research/experiment on SRV/SVS either, right?  
 
You can see the schematics here:
http://www.surveyor.com/blackfin/ov7725-schematic.gif
all the pins but the FSIN are exposed.
Sorry if my words seem harsh but synchronization has been a big source of frustration for quiet a while.
Back to top
 
« Last Edit: 06/21/10 at 5:23am by tuetulip »  
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Receiving images simultaneously
Reply #8 - 06/21/10 at 7:35am
 
Actually, two different companies have designed OV7725 boards for us, and nobody ever realized the functionality of FSIN.  There is no description of FSIN in confidential data sheets, so I am interested to learn whatever details you might have about how FSIN signal works.  We will also investigate how this might be added to future version of OV7725 camera module.
 
Back to top
 
« Last Edit: 06/21/10 at 11:16am by admin »  

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
tuetulip
YaBB Newbies
*




Posts: 17
Re: Receiving images simultaneously
Reply #9 - 06/22/10 at 12:46am
 
I do not have the means of verifying this, but I think shorting a "master" sensor's VSYNC output to the "slave" sensor's FSIN input(maybe with some resistor) and change some registers. Indeed it is not well documented. I still think leaving that pin unconnected is a amazingly bad design decision when you have this many NC pins on your board header. We don't know what it does doesn't mean we cannot know, and we don't have any means of experimenting now.
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: Receiving images simultaneously
Reply #10 - 06/22/10 at 7:00am
 
I have forwarded your comments to one of the two suppliers of the OV7725 board.  Though the feature you describe is not documented, but I have verified that a sync function does exist, requiring connection of VSYNC from the "master" to FSIN on the slave, and XCLK input to master and slave must be shared.  The slave will then reset its VSYNC when rising edge in FSIN is detected.  There is still a small delay in the slave data output relative to master, but it is apparently only on the order of 6-7 pixel periods.
 
Unfortunately, there is nothing that can be done to access this feature with either of the existing versions of OV7725 board, but we can request that the designers incorporate this in future production runs.  I expect this will happen within the next 2 months.
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
Pages: 1
Send Topic Print