openmv运行程序后自动断电如何解决?
import sensor, image, time, pyb
sensor.reset() # Initialize the camera sensor.
sensor.set_pixformat(sensor.GRAYSCALE) # or sensor.GRAYSCALE
sensor.set_framesize(sensor.B128X128) # or sensor.QQVGA (or others)
sensor.set_windowing((92,112))
sensor.skip_frames(10) # Let new settings take affect.
sensor.skip_frames(time = 1000)
while(True):
img = sensor.snapshot()
roi1=(10,0,80,60)
d1= img.find_lbp(roi1)
删去部分函数,只重复给d1赋值相同的lbp时,不会断电
IDE提示“find_displacement”object not iterable
import sensor, image, time
sensor.reset() # Initialize the camera sensor.
sensor.set_pixformat(sensor.GRAYSCALE) # or sensor.GRAYSCALE
sensor.set_framesize(sensor.B64X64) # or B40x30 or B64x64
clock = time.clock() # Tracks FPS.
old = sensor.snapshot()
while(True):
clock.tick() # Track elapsed milliseconds between snapshots().
img = sensor.snapshot()
[delta_x, delta_y, response] = old.find_displacement(img) #这句报的错
old = img.copy()
print("%0.1f X\t%0.1f Y\t%0.2f QoR\t%0.2f FPS" %(delta_x, delta_y, response, clock.fps()))
大佬
The image sensor is detached or failed to initialize!
看上去是sensor模块没插紧,或者坏了。
建议联系售后维修。
拍摄rgb565图片后会得到一个img矩阵(应该是矩阵吧?)
import sensor, image, time
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.skip_frames(time = 2000)
clock = time.clock()
while(True):
clock.tick()
img = sensor.snapshot()
print(img[0])
openmv的屏幕出现黑点?
就是sensor芯片上面沾灰了,擦一下就行,不行就寄回维修。
openmv plua 运行代码后出现下面情况但在另外一个openmv上运行不会出现
运行hello world有没有问题?不同sensor的OpenMV,25行的曝光不一样。
rgb_to_lab问题
img= sensor. snapshot()
trgb=[(200, 0, 0) , (255, 50, 50)]
tlab=img.rgb_to_lab(tfb[0[])
报错 Image object has no attribute 'rgb
_to_lab'
摄像头传输到电脑的图像有时候偏绿
请问哪里的sensor调的不好
wifi拓展板图像传输完成后续问题
什么意思?
调整看到大小就是在代码里改sensor的设置就行。
使用全局快门模组,外部触发采集图像并保存,无法实现10帧以上的保存速度,有没有什么更快地保存方式。
import sensor, image, time
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QQVGA)
sensor.skip_frames(time = 2000)
clock = time.clock()
img = sensor.snapshot()
while(True):
clock.tick()
img.save("test.jpeg")
print(clock.fps())