Defining custom frame size

Discussion related to "under the hood" OpenMV topics.
cenevz
Posts: 3
Joined: Wed May 06, 2020 5:02 pm

Defining custom frame size

Postby cenevz » Wed May 06, 2020 5:39 pm

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
Last edited by cenevz on Wed May 06, 2020 5:46 pm, edited 1 time in total.
User avatar
kwagyeman
Posts: 4434
Joined: Sun May 24, 2015 2:10 pm

Re: Defining custom frame size

Postby kwagyeman » Wed May 06, 2020 5:46 pm

Use sensor.set_windowing((640, 1))

after setting the camera to vga.
Nyamekye,
User avatar
kwagyeman
Posts: 4434
Joined: Sun May 24, 2015 2:10 pm

Re: Defining custom frame size

Postby kwagyeman » Wed May 06, 2020 5:48 pm

Note, this only works for grayscale.
Nyamekye,
cenevz
Posts: 3
Joined: Wed May 06, 2020 5:02 pm

Re: Defining custom frame size

Postby cenevz » Wed May 06, 2020 6:14 pm

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
cenevz
Posts: 3
Joined: Wed May 06, 2020 5:02 pm

Re: Defining custom frame size

Postby cenevz » Wed May 06, 2020 6:14 pm

And the framerate is ~15.
User avatar
kwagyeman
Posts: 4434
Joined: Sun May 24, 2015 2:10 pm

Re: Defining custom frame size

Postby kwagyeman » Wed May 06, 2020 6:20 pm

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.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 13 guests