I use OV2640 cam in UXGA/JPEG mode on STM32F765 with firmware 3.5.3.
The time between pics is very high when usb is connected.
Even if frame view is desactivated in openmvide, or the test is only through uvc terminal.
Here is an test code :
Code: Select all
import sensor, image, time, os, pyb total = 10 for i in range(total) : filename='temp/test_%d.jpg' % i try: os.stat(filename) os.remove(filename) print("%s is deleted" % filename) except OSError: print("%s does not exist" % filename) sensor.reset() sensor.set_pixformat(sensor.JPEG) sensor.set_framesize(sensor.UXGA) for i in range(total) : start = pyb.millis() filename='temp/test_%d.jpg' % i try: sensor.snapshot().save(filename) print('Record %d en %dms: %s' % ( i, pyb.elapsed_millis(start), filename) ) except: print("Error of Record %d: %s" % (i, filename) ) print('photo record is finished')
If i run this code from sdcard without usb connected and take pictures of a stopwatch, the time between pics is around 250ms.
Thanks for help,