Page 1 of 1

Defining custom frame size

Posted: Wed May 06, 2020 5:39 pm
by cenevz
This link (file:///C:/Users/cenevz1/AppData/Roaming/OpenMV/qtcreator/html/library/omv.sensor.html?highlight=sensor%20set_framesize) explains how one can set the frame size of the sensor. FYI: I use h7.
I would like to ask is there any way how to define the frame size of 640 x1 or 480 x1? Evidently I want to make a line camera out of the OpenMV H7.

Looking forward to your answers folks.

BR;
Zoran

Re: Defining custom frame size

Posted: Wed May 06, 2020 5:46 pm
by kwagyeman
Use sensor.set_windowing((640, 1))

after setting the camera to vga.

Re: Defining custom frame size

Posted: Wed May 06, 2020 5:48 pm
by kwagyeman
Note, this only works for grayscale.

Re: Defining custom frame size

Posted: Wed May 06, 2020 6:14 pm
by cenevz
Thanks Nyamekye. Any hint how to improve the frame rate? At the moment the window is 640x10 since the 640x1 and 640x5 yielded an error.
Regards,
Z

Re: Defining custom frame size

Posted: Wed May 06, 2020 6:14 pm
by cenevz
And the framerate is ~15.

Re: Defining custom frame size

Posted: Wed May 06, 2020 6:20 pm
by kwagyeman
Hi, VGA mode should get you around 30 FPS. What firmware version are you on? Note, you will not be able to go above 30 FPS with VGA generally. Typically lower than that.