I have a lepton 3.5 and a lcd shield both physically rotated -90 degrees and connected to a openmv h7 plus.
The goal is to display on the lcd screen the image unrotated (the sensor and the display in their natural orientation). I managed to do that in the ide, but the lcd driver somehow seems not to do anything about rotations.
The following code seems to do that in ide, but the image on the lcd display remains tilted 90 degrees
sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.LCD) #sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240) #sensor.set_vflip(True) #sensor.set_hmirror(False) #sensor.set_transpose(True) #sensor.set_windowing((128, 160)) sensor.skip_frames(time=5000) clock = time.clock() lcd.init() while(True): clock.tick() img = sensor.snapshot().rotation_corr(0,0,-90) temp = get_target_temp(70,50,20,20,img) lcd.display(img)