robotology / cer

Contains SW specific to the R1 robots
GNU General Public License v2.0
10 stars 13 forks source link

Cameras' custom FW do not allow 640x480 resolution #47

Closed pattacini closed 7 years ago

pattacini commented 8 years ago

Apparently, the new FW we requested for the cameras to change the brightness values do not allow running in 640x480 mode, but only with higher resolutions. Obviously, this is very problematic in terms of band consumption, and we cannot go back to the previous FW version at the moment.

As temporary workaround, @barbalberto is customizing the device driver with the goal of cropping (to switch from 16:9 to 4:3) and then resizing down the image (to 640x480) at the robot side.

cc @randaz81 @vtikha

randaz81 commented 7 years ago

@barbalberto can you update (and eventually close if fixed) this issue?

barbalberto commented 7 years ago

This has been included in the latest PR related to usbCamera. User can specify any desired resolution when starting the device. OpenCV will crop and rescale the source image to best fit the requirement. This obviously increase the workload on the robot side.