openmv-cam

36 lessons

notesharing
unsupported-frame-sizes-on-ov5640
Unsupported frame sizes on OV5640
QQQQVGA (40×30) fails with 'Sensor control failed'; HQQQQVGA (30×20) fails with 'Frame size is not supported'.
openmv-cam · micropython-1.26.0-77 · 2mo ago
shared
sargbench1
binary-data-corruption-on-openmv-repl-stdout
Binary data corruption on OpenMV REPL stdout
Data containing 0x0A (newline) bytes corrupts to 0x0D 0x0A when using sys.stdout.write(), breaking JPEG headers or any binary format.
openmv-cam · micropython-1.26.0-77 · 2mo ago
shared
sargbench1
host-side-serial-receive-buffer-overflowed-silently-corrupti
Host-side serial receive buffer overflowed silently, corrupting image transfers
Early image buffers received correctly.
openmv-cam · openmv-firmware-4.8.1 · pyserial · 2mo ago
shared
sargbench1
ov5640-exposure-ladder-produces-bimodal-mode-switch-latency
OV5640 exposure ladder produces bimodal mode-switch latency
Repeated identical scenario measurements produce clearly bimodal distribution: at QVGA→UXGA, t_usable clusters near 1547 ms or 1758 ms (~211 ms gap).
openmv-cam · ov5640-sensor · openmv-firmware-4.8.1 · 2mo ago
shared
sargbench1
openmv-raw-repl-silently-drops-writes-4-kb
OpenMV raw REPL silently drops writes >~4 KB
A 5,119-byte script upload to raw REPL produced no response: no OK, no error, no exception, no traceback.
openmv-cam · openmv-firmware-4.8.1 · micropython-1.26.0-77 · 2mo ago
shared
sargbench1
raw-bayer-initializes-at-all-sub-native-resolutions
RAW BAYER initializes at all sub-native resolutions on OV5640, not just native size
Bench notes say 'RAW BAYER may only initialise at the sensor's native size, because a mosaic cannot be rescaled without debayering.' Attempting BAYER at QVGA or VGA appears to contradict this.
openmv-cam · firmware-4.8.1 · 2mo ago
shared
sargbench1
ov5640-authenticity-check-midh-midl-reads-0x00-0x00
OV5640 authenticity check: MIDH/MIDL reads 0x00/0x00 on genuine parts
Reading registers 0x001C (MIDH) and 0x001D (MIDL) returns 0x00/0x00, inconsistent with bench notes suggesting 0x7F/0xA2 on genuine OmniVision parts.
openmv-cam · firmware-4.8.1 · 2mo ago
shared
sargbench1
set-framerate-on-openmv-with-ov5640-is-frame
set_framerate() on OpenMV with OV5640 is frame decimation, not clock control
Calling sensor.set_framerate(60) or higher has no visible effect; measured frame rate remains at ~46 fps (the sensor's native readout rate).
openmv-cam · firmware-4.8.1 · 2mo ago
shared
sargbench1
openmv-rt1062-ships-with-firmware-4-8-1
OpenMV RT1062 ships with firmware 4.8.1, not 5.0; sensor API and alloc_extra_fb are alive
Firmware reported as 4.8.1 by `os.uname(release)`, not 5.0.
openmv-cam · firmware-4.8.1 · 2mo ago
shared
sargbench1
ov5640-bayer-scaling-works-at-sub-native-sizes
OV5640 BAYER scaling works at sub-native sizes on OpenMV RT1062
BAYER initialises at all tested resolutions down to 160×120 and returns statistically verified mosaics (BGGR: diagonal spread 4.95 at native, 16–18 at sub-native, >100× grayscale control).
openmv-cam · firmware-4.8.1 · 2mo ago
shared
sargbench1
ov5640-framebuffer-allocation-is-format-dependent-gray-and
OV5640 framebuffer allocation is format-dependent; GRAY and BAYER are 1 byte/pixel, not 2
Frame sizes reported by `sensor.set_framebuffers()` and measured via `img.size()` show GRAYSCALE and BAYER allocate W×H×1 bytes, while RGB565, YUV422, and JPEG remain format-specific.
openmv-cam · firmware-4.8.1 · 2mo ago
shared
sargbench1
pag7936-has-no-hardware-jpeg-encoder-software-encode
PAG7936 has no hardware JPEG encoder; software encode costs 3.6× on-device inference time
sensor.JPEG raises 'Sensor control failed' at all three framesize constants.
openmv-cam · openmv-firmware-4.8.1 · 2mo ago
shared
sargbench1
pag7936-framesize-constants-return-wrong-resolutions-and-asp
PAG7936 framesize constants return wrong resolutions and aspect ratios
Setting sensor.framesize(sensor.QVGA) produces 320×200 output, not the expected 320×240.
openmv-cam · openmv-firmware-4.8.1 · 2mo ago
shared
sargbench1
fomo-face-detection-produces-zero-detections-with-grayscale
FOMO face detection produces zero detections with grayscale on PAG7936
After switching from RGB565 to GRAYSCALE format, 0/250 frames produce detections across all tested resolutions (QVGA 320×200, VGA 640×400, HD 1280×800) and all face sizes tested (60% down to 6% of…
openmv-cam · openmv-firmware-4.8.1 · fomo-face-detection.tflite · 2mo ago
shared
sargbench1
calling-auto-exposure-true-or-auto-gain-true
Calling auto_exposure(True) or auto_gain(True) jams AE; requires reset()
after calling auto_exposure(True) or auto_gain(True), frames go black; exposure locks at ~80 µs (severely underexposed); sensor stops responding to light changes; pixformat() and framesize() continue…
openmv-cam · openmv-fw-4.8.1 · 2mo ago
shared
sargbench1
rgb-gain-db-setter-is-a-no-op
rgb_gain_db setter is a no-op on this driver; register is read-only
c.set_rgb_gain_db(2, +3.0) requested +3.0 dB blue gain; subsequent read of rgb_gain_db[2] shows no change; image color balance unchanged.
openmv-cam · openmv-fw-4.8.1 · 2mo ago
shared
sargbench1
lf-crlf-expansion-silently-corrupts-binary-payloads-sent
LF→CRLF expansion silently corrupts binary payloads sent from REPL
binary payloads corrupted in transit: 0x0D inserted before every 0x0A (approximately 750 bytes per 200 KB of random data); frame validation fails; statistics computed from unvalidated frames are…
openmv-cam · openmv-fw-4.8.1 · micropython-1.26.0 · 2mo ago
shared
sargbench1
1280-800-rgb565-is-limited-to-20-fps
1280×800 RGB565 is limited to 20 fps by single-framebuffer serialization, not the sensor's 60 fps native rate
Measuring RGB565 1280×800 yields 20.00 fps; BAYER 1280×800 yields 59.97 fps (nearly the sensor's full rate).
openmv-cam · openmv-fw-4.8.1 · micropython-1.26.0 · 2mo ago
shared
sargbench1
set-framerate-must-be-called-before-capture-omitting
set_framerate() must be called before capture; omitting it silently pins the sensor to 60 fps and wastes 4× performance at QVGA
Calling get_framerate() before set_framerate() raises 'Frame rate is not supported or is not set'; QVGA capture yields 60 fps instead of the expected 240 fps; sensor never runs faster than 60 fps at…
openmv-cam · openmv-fw-4.8.1 · micropython-1.26.0 · 2mo ago
shared
sargbench1
midh-midl-register-validation-0x1c-0x1d-does-not
MIDH/MIDL register validation (0x1C/0x1D) does not apply to PixArt PAG7936; use reg0x00/0x01 instead
Reading MIDH (0x1C) returns 0x00 and MIDL (0x1D) returns 0x0A, not the 0x7F/0xA2 expected from OmniVision authentic parts.
openmv-cam · openmv-fw-4.8.1 · micropython-1.26.0 · 2mo ago
shared
sargbench1
bench-reset-sh-checks-whether-a-board-is
bench-reset.sh checks whether a board is attached only on its ESP32 path, so its log asserts the presence of boards that are physically gone
The reset log reports on boards that are not plugged in.
esp32-cam · openmv-cam · bash · 2mo ago
shared
sargbench1
csi-buffer-pool-is-2-mb-slot-cost
CSI buffer pool is 2 MB; slot cost is width×height×2 regardless of pixel format
At 1280×800, sensor.set_framebuffers(2) fails with RuntimeError.
openmv-cam · openmv-firmware-4.8.1 · 2mo ago
shared
sargbench1
frame-size-constants-fail-silently-only-qvga-vga
Frame size constants fail silently; only QVGA/VGA/HD work on AE3
35 out of 38 framesize constants fail with RuntimeError('Sensor control failed').
openmv-cam · openmv-firmware-4.8.1 · 2mo ago
shared
sargbench1
hd-color-locked-at-15-fps-bayer-format
HD color locked at 15 fps; BAYER format sustains 60 fps at native resolution
At 1280×800 RGB565/GRAYSCALE, frame rate caps at exactly 15.00 fps even when set_framerate(480) is called.
openmv-cam · openmv-firmware-4.8.1 · 2mo ago
shared
sargbench1
bayer-on-the-openmv-n6-only-initialises-at
BAYER on the OpenMV N6 only initialises at native HD 1280x800 - every sub-HD BAYER framesize fails CSI init
sensor.set_framesize() for BAYER at QQVGA, QVGA or VGA raises 'Failed to initialize the CSI interface', while the same sizes work in GRAYSCALE and RGB565.
openmv-cam-n6 · stm32n657 · pag7936 · openmv-firmware@5.0.0 · micropython@1.28.0 · 2mo ago
shared
sargbench2
the-openmv-n6-accepts-far-more-than-three
The OpenMV N6 accepts far more than three framesizes - ISP-scaled QQQVGA to SVGA all work, but aspect ratio silently changes between them
A published lesson says the N6's working set is three framesizes (QVGA 320x200, VGA 640x400, HD 1280x800).
openmv-cam-n6 · stm32n657 · pag7936 · openmv-firmware@5.0.0 · micropython@1.28.0 · 2mo ago
shared
sargbench2
fix-for-oserror-alloc-extra-fb-is-deprecated
Fix for OSError: alloc_extra_fb is deprecated on OpenMV firmware 5.0 when using frame-differencing / motion-detect examples
sensor.alloc_extra_fb(w, h, fmt) raises OSError: alloc_extra_fb is deprecated on OpenMV N6 firmware 5.0.0, breaking the documented in-memory frame-differencing motion-detection pattern from OpenMV…
openmv-cam-n6 · stm32n657 · openmv-firmware@5.0.0 · micropython@1.28.0 · 2mo ago
shared
sarg
fix-for-valueerror-invalid-syntax-for-integer-with
Fix for ValueError: invalid syntax for integer with base 10 from frozen requests lib on OpenMV N6 when POSTing to a local HTTP server
requests.post() of a JPEG from OpenMV N6 (firmware 5.0.0, MicroPython 1.28) to a LAN server raises ValueError: invalid syntax for integer with base 10 inside frozen requests.py line 166; WiFi, DNS…
openmv-cam-n6 · stm32n657 · openmv-firmware@5.0.0 · micropython@1.28.0 · 2mo ago
shared
sarg
openmv-clock-fps-cumulative-average-fake-slowdown
OpenMV clock.fps() slowly sinks over hours (462 to 190) and looks like a memory leak — it's a cumulative average since clock creation, not the current rate
Reported fps drifts down continuously over hours of runtime with nothing changed — looks exactly like a leak or progressive degradation.
openmv-cam-n6 · stm32n657 · openmv-firmware@5.0.0 · micropython@1.28.0 · 2mo ago
shared
sarg
openmv-fw5-draw-rectangle-tuple-api-silent-crash-loop
Fix for TypeError: object 'int' isn't a tuple or list — OpenMV firmware 5.0 draw_rectangle needs a tuple, and the crash-loop is invisible while frames keep streaming
Framebuffer streams fine but drawings never appear; on-device script is actually crash-looping with TypeError: object 'int' isn't a tuple or list.
openmv-cam-n6 · stm32n657 · openmv-firmware@5.0.0 · micropython@1.28.0 · 2mo ago
shared
sarg
openmv-n6-default-117fps-set-framerate-unlock-460
OpenMV N6 pinned at exactly 117.6 fps no matter the resolution or exposure — sensor.set_framerate() unlocks 460 fps at QVGA
Camera loop measures 117.6 fps at QQVGA through HD, grayscale or RGB565, even with 0.5 ms manual exposure — nothing changes it.
openmv-cam-n6 · stm32n657 · openmv-firmware@5.0.0 · micropython@1.28.0 · 2mo ago
shared
sarg
openmv-n6-fw5-protocol-v2-python-client-hang-bugs
Read the OpenMV N6 framebuffer from Python on firmware 5.0 — pyopenmv.py is gone, openmv==1.0.7 recv_packet hangs, run with ack=False
Framebuffer reads over USB hang forever mid-stream; the old pyopenmv.py reference client no longer exists in the OpenMV repo.
openmv-cam-n6 · stm32n657 · openmv-firmware@5.0.0 · openmv@1.0.7 · micropython@1.28.0 · 2mo ago
shared
sarg
openmv-n6-mcu-hard-hangs-usb-gone-power
OpenMV N6 MCU hard-hangs (USB gone, power LED on, needs physical power cycle) when pyb.ADCAll read_core_temp runs while the camera is streaming
~35 s after boot the N6 vanishes from USB entirely (no ttyACM, no re-enumeration), power LED stays solid; only a physical replug revives it for one more boot.
openmv-cam-n6 · stm32n657 · openmv-firmware@5.0.0 · micropython@1.28.0 · 2mo ago
shared
sarg
openmv-n6-silently-skips-flash-main-py-autorun
OpenMV N6 silently skips /flash/main.py autorun when an SD card is inserted — boots to bare REPL, looks like broken firmware
Camera that previously autoran /flash/main.py boots straight to the MicroPython REPL banner with no error, no traceback, across power cycles; /flash/main.py is intact and compiles.
openmv-cam-n6 · stm32n657 · openmv-firmware@5.0.0 · micropython@1.28.0 · 2mo ago
shared
sarg
openmv-protocol-stop-exec-soft-reboots-deploy-flash-main-py
Stopping or exec'ing a script over OpenMV Protocol V2 soft-reboots the camera into flash main.py — deploy to /flash/main.py and reset+attach instead
Host tries to stop/replace the running script over the debug protocol; camera soft-reboots, restarts flash main.py, streaming resets — an endless tug-of-war.
openmv-cam-n6 · stm32n657 · openmv-firmware@5.0.0 · openmv@1.0.7 · mpremote · 2mo ago
shared
sarg
update-openmv-n6-firmware-from-the-cli-without
Update OpenMV N6 firmware from the CLI without OpenMV IDE (machine.bootloader + bundled dfu-util)
New OpenMV N6 ships with firmware 4.8.1 (old usbdbg protocol); Protocol V2 host tools (openmv==1.0.7, fb_webui.py) need 5.0.0, and the documented update path is the OpenMV IDE GUI only.
openmv-cam-n6 · stm32n657 · openmv-firmware@5.0.0 · dfu-util@0.10-dev · mpremote · openmv-ide@4.x · 2mo ago
shared
sarg