ArduCAM / MIPI_Camera

231 stars 107 forks source link

parameter exposure stereo hat / ros #45

Open tiralonghipol opened 4 years ago

tiralonghipol commented 4 years ago

hi

I wrote a ros wrapper for the arducam stereo hat and I was wondering if you could "expose" more parameters from the library. My particular interest is (if possible) the binning factor, in order to stream lower resolution images but higher fps. The current implemented formats (1600x600, mode 7 if I am not wrong) still too big to have any real-time operation in ros / opencv

Also: why only specific formats are available? any documentation on this ?

Any comment / help is hugely appreciated !

P.

UCTRONICS commented 4 years ago

Hello, which resolution do you want and I will try my best to help you configure it. What's more, Please tell me your detail operation steps on ros and I can test it with you.

tiralonghipol commented 4 years ago

@UCTRONICS if you have a look here https://github.com/UbiquityRobotics/raspicam_node/blob/kinetic/cfg/Camera.cfg

I belive these are all the possible parameters one could take out of raspicam

Is something similar possible?

UCTRONICS commented 4 years ago

Hello, Sorry for missing your question. I have checked your Camera.cfg. We have release a little control parameters for users. Due to we don't have ISP process, some control parameters we can't create.

tiralonghipol commented 4 years ago

Sounds good, I will check it asap. Can you provide some .c example with the updated parameters also? Or a little description of what changed? Thank you

On Mon, Jun 22, 2020, 01:51 UCTRONICS notifications@github.com wrote:

Hello, Sorry for missing your question. I have checked your Camera.cfg. We have release a little control parameters for users. Due to we don't have ISP process, some control parameters we can't create.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ArduCAM/MIPI_Camera/issues/45#issuecomment-647379937, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGGXEZTV4ZSNU5RFXKMYAODRX4LSZANCNFSM4N32PC5A .

tiralonghipol commented 4 years ago

Hi again @UCTRONICS I figured out a way to set the parameters I want (almost) directly writing on the imx219 control registers but a weird behavior happens now: I can correctly set, for example, the binning mode to a factor of x2 and the binning type as 'sum' instead of the standard 'average' , but for some reason the output of both left and right camera is 'zoomed' from the top left corner. Here is an example of what I am talking about: Original: Screenshot from 2020-07-02 15-15-02

Binned (x2):

Screenshot from 2020-07-02 15-15-44

tiralonghipol commented 4 years ago

@UCTRONICS any update on this? also, can you add a mode for VGA resolution please? Thank you in advance!