I was able to connect my arduino portenta h7 to the edge impulse project I’m working on. However, the camera feed doesn’t show up, and I keep getting the following error messages:
Snapshot stream error: ERR: Failed to get snapshot (-1)
Sampling failed
Invalid length for snapshot, expected 76800 or 230400 values, but got 12
It seems to not be a hardware issue, because I tried using the camera on the blob detection tutorial in OpenMV IDE and it worked with no issues. What am I doing wrong here?
Thanks!
I have the same problem, followed all instructions to the T and still get the same error message. The only place I can get the camera to work is OpenMV.
Entering snapshot stream mode…
[SER] Snapshot stream error: ERR: Failed to get snapshot (-1)
[WS ] Incoming sampling request {
path: ‘/api/training/data’,
label: ‘H_T1’,
length: 60000,
interval: 0,
hmacKey: ‘1cfff7ae7423a3ab71dc6810c25c5e79’,
sensor: ‘Camera (320x240)’
}
[SER] Taking snapshot…
[SER] Reading 0% complete…
[WS ] Failed to sample data Error: Received snapshot is not a RAW or JPEG image. For RAW expected 76800 or 230400 values, but got 12
at SerialDevice.sampleRequest (C:\Users\servi\AppData\Roaming\npm\node_modules\edge-impulse-cli\build\cli\daemon.js:324:23)
at async WebSocket. (C:\Users\servi\AppData\Roaming\npm\node_modules\edge-impulse-cli\build\shared\daemon\remote-mgmt-service.js:175:21)