OpenMV N6 (PAG7936) 1280x800 @ 120 FPS

Hi !

I just got my N6! Great job!!!

How do I get 120 frames per second with a resolution of 1280x720 (GRAYSCALE).
Is there a sample code?

Just change the pixformat to GRAYSCALE from RGB565. Note the output resolution is 1280x800.

I did so, but the resolution in the OpenMV IDE (v4.8.9) displays as 512x320

sensor.reset()  
sensor.set_pixformat(sensor.GRAYSCALE)  
sensor.set_framesize(sensor.HD)

Click the JPEG button on the right of the IDE. There’s JPEG and RAW output now, the RAW output is scaled. Note that this is for the demo view, it’s still whatever res you asked for on the camera.

I don’t see the JPEG button. Is it really in the IDE version 4.8.9?

Can I ask you for a screenshot?

After you connect, click the JPG mode button. It will way JPG Mode or RAW depending on which it’s in.

I don’t really have a JPEG-RAW toggle button.

After I did install the latest development version through the tools menu, this button appeared!

Thank you so much for the hint.

I noticed this feature, before I updated to the latest version, the print(clock.fps()) command averaged 118 frames per second. After updating to the latest version 5.0.0, it shows an average of 57 frames per second. My code has not changed. What could be the problem? How do I get ~120 frames per second?

I figured it out. If you disable image display on the screen, FPS rises to 118.

Yeah, it’s the overhead of streaming to the IDE. Note that we have a PR that will fix that coming soon: ports/stm32: Add VENC jpeg compressor. by kwagyeman · Pull Request #3114 · openmv/openmv · GitHub - It’s like 5x faster.

That’s great news! It will be very wonderful!!!

One more passing question.

I can’t switch the camera to sensor.BINARY mode ?

How can this be done?

You do:

img.to_bitmap()

Sensors don’t output binary images.

Great! It worked, but it was pretty slow. FPS dropped a lot