print(os.listdir("/"))看一下目录里有什么。
-
RE: LCD显示和光源扩展板冲突吗??
# Untitled - By: Administrator - Fri Apr 12 2024 import sensor, image, time import display from pyb import UART, Pin,Timer sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QQVGA) sensor.skip_frames(time = 2000) lcd = display.SPIDisplay() light = Timer(4, freq=50000).channel(1, Timer.PWM, pin=Pin("P7")) light.pulse_width_percent(10) # 控制亮度 0~100 clock = time.clock() while(True): clock.tick() lcd.write(sensor.snapshot()) print(clock.fps())
-
RE: 关于QVGA图像处理,在官方显示屏上想显示中心位置的图像,该怎么处理?
img = sensor.snapshot()
lcd.write(img, roi=[100,100,128,160]) -
RE: 神经网络训练目标检测数字1到8,要把镜头放到离数字很近时才会检测到1个数字是怎么回事
你这个是识别准确度的问题,多加图片,每个类别加到1000张,可以有比较好的效果。