Runtime error: sensor timeout!

Discussion related to "under the hood" OpenMV topics.
serg706
Posts: 1
Joined: Fri Jan 05, 2018 2:42 pm

Runtime error: sensor timeout!

Postby serg706 » Fri Jan 05, 2018 2:52 pm

Error occurs after several seconds of operation. Code is very simple.

import sensor
img = sensor.snapshot()
while(True):
img = sensor.snapshot()

Factory reset did not help.
M7 version, firmware 2.60 latest.
User avatar
iabdalkader
Posts: 525
Joined: Sun May 24, 2015 3:53 pm

Re: Runtime error: sensor timeout!

Postby iabdalkader » Fri Jan 05, 2018 5:41 pm

Hi, you need to call sensor.reset() and set the frame size and format before doing anything else. See the helloworld.py example.

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests