Max frame rate / ROI

Discussion related to "under the hood" OpenMV topics.
anderi
Posts: 2
Joined: Mon Oct 17, 2016 10:29 am

Max frame rate / ROI

Postby anderi » Mon Oct 17, 2016 10:32 am

Hi, I just bought a couple of OpenMV cameras for a project where I need to detect linear 1d markers (basically a barcode), the algorithms run fine but I need to increase the framerate.

Since I'm only interested in one (or a couple of) line of the image, is there any way to reduce the data transferred from the sensor to the stm32 to increase framerate?

Best regards,
Andreas
User avatar
iabdalkader
Posts: 1214
Joined: Sun May 24, 2015 3:53 pm

Re: Max frame rate / ROI

Postby iabdalkader » Mon Oct 17, 2016 10:56 am

Yes, if the function accepts a ROI you could pass ROI info in a tuple ( image.function(..., roi=(x, y, w, h)). We're working on making all functions accept ROI argument, but if a function doesn't support ROIs yet, you could reduce the frame size setting the windowing. For example, the following sets the frame size to (80x60) from a VGA frame, this gives you higher resolution with less data to process:

Code: Select all

sensor.set_framesize(sensor.VGA)
sensor.set_windowing(((640-80)//2, (480-60)//2, 80, 60))
anderi
Posts: 2
Joined: Mon Oct 17, 2016 10:29 am

Re: Max frame rate / ROI

Postby anderi » Tue Oct 18, 2016 7:50 am

Wow, thanks for the fast reply! That works flawlessly!

Regards,
Andreas

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 21 guests