Hello I am using the pyopenmv.py script to connect to the OpenMV camera using USB.
Some of the time it connects correctly, but other times it does not and instead produces the error
File "camera.py", line 66, in <module>
fb = pyopenmv.fb_dump()
File "/Users/kobi/CS/openmvcam/tools/pyopenmv.py", line 74, in fb_dump
size = fb_size()
File "/Users/kobi/CS/openmvcam/tools/pyopenmv.py", line 71, in fb_size
return struct.unpack("III", __serial.read(12))
struct.error: unpack requires a buffer of 12 bytes
It seems that the buffer does not have the necessary bytes set up yet, but I’m not sure how to make sure it does.
Any suggestions?