共 499 条结果匹配 "sensor",(耗时 0.06 秒)
关于OpenMV分辨率初始化命令的问题?
可以改变,直接设置即可sensor.set_framesize(sensor.**VGA)
同时识别颜色和圆的sensor设置问题
使用同一个sensor设置就行,统一为QQVGA。
sensor.snapshot() 若是拍照不成功,或者摄像头出故障,返回什么值?
没有
不过。。。为什么要有?sensor又不会坏。
machine vs pyb
改为
import sensor, image, time
from machine import Pin
p0=Pin("P0", Pin.OUT)
这个程序中的lcd.py文件在哪儿找?
import sensor, image
import 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.
#lcd初始化
while(True):
lcd.display(sensor.snapshot()) # Take a picture and display the image.
#将图像显示在lcd中
这个软件怎么可以隔一段时间自动保存图像❓
import sensor, image, time
sensor.reset() # Reset and initialize the sensor.
sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
sensor.skip_frames(time = 2000) # Wait for settings take effect.
times = 0
while(True):
img = sensor.snapshot()
times += 1
if times > 100:
img.save("1.jpeg")
times = 0