We are moving to the H7 Plus in effort to classify using a neural network and now we are experiencing an issue on 2 units now with the H7 Plus that was not present with the H7. On both cams we have used the same sensor (MT9V034).
We configure the sensor as below and then we are in a loop waiting for an input signal, take a snapshot, analyze the image and repeat.
Every first image is over exposed and then subsequent images are still a little grainy (not consistent).
If there is an extended delay from a trigger (say 5 seconds) then the next image will be over exposed and then subsequent images are not (yet still grainy).
Exact same code on the H7 was outputting crisp images each time.
In an effort to get to the root cause with the H7 Plus I added a call to the main while loop to call the sensor.set_auto_exposure(False, exposure_us=1750)) and the problem of the 1st image over exposed went away and the images were crisp but having other timing issues in terms of calling the set_auto_exposure repeatedly.
It seems like there is an issue with the set_auto_exposure with the H7 plus and the MT9V034 (did not try with other sensors) and would like to try get this resolved.
Any ideas or suggestions would be greatly appreciated.
Not sure if it related to issue #1156
configure camera...
sensor.reset()
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.set_framesize(sensor.QQVGA)
sensor.set_windowing((winx, winy, winw, winh))
sensor.ioctl(sensor.IOCTL_SET_TRIGGERED_MODE, True)
sensor.set_auto_gain(False)
sensor.set_auto_exposure(False, exposure_us = 1750)
# -------------------------------------------------------------------------------------------------
# Setup the GPIO (P7/P8/P9) Pins
# -------------------------------------------------------------------------------------------------
# Setup the Input Pin that receives signal from sensor
IP_IN = pyb.Pin(pyb.Pin.board.P8, pyb.Pin.IN, pyb.Pin.PULL_UP)
# Setup the Output Pin that signals the Main Board the "CAM DATA READY/NOT_READY" status
IP_OUT = pyb.Pin(pyb.Pin.board.P7, pyb.Pin.OUT_OD)
main while loop...
if triggered
snapshot
analyze