img = image.Image("ee.pgm")
lcd.display(img)
这样不行哎
这样可以。
你需要详细说一下遇到了什么问题。
@kidswong999 就是将sd卡里的图片显示到lcd上,但是没有反应,

代码就是那样的
你用OpenMV把图像保存成bmp,然后读取。
@kidswong999
img = image.Image("dd.bmp")
lcd.display(img)
没用
请问这个是什么问题啊
知道了,lcd.display(img)不能放在代码的最后一行,不知道什么鬼
你最好给出全部的可执行的代码......
又不能显示了,同样的代码,,,,什么啊



同样的代码,f4能显示图片,f7白屏,是什么原因?
我运行下面的代码很正常,我看到你的尺寸可能不对,应该是QQVGA2保存成bmp
import sensor, image, lcd
sensor.reset() # Initialize the camera sensor.
sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
sensor.set_framesize(sensor.QQVGA2) # Special 128x160 framesize for LCD Shield.
lcd.init() # Initialize the lcd screen.
sensor.snapshot().save("test.bmp")
img = image.Image("test.bmp",copy_to_fb=True)
lcd.display(img) # Take a picture and display the image.@kidswong999 调了很多次之后发现它是有时候显示,有时候不现实,在mv2上就没有显示了,很奇怪
这就不知道了,没准是插针焊接的不好,或者是插的不牢,导致接触不好。