logo

IDE中预览时出现黑色条纹轮播

2021-07-30 20:20
C
syxh
4410cc6b-a6aa-463e-8252-b36b77e101d8.jpeg
27322766-bc34-4e72-ba7b-a73f6881b4e9.jpeg
e92d973a-bcbe-44af-98e8-53ed7f956175.jpeg
import sensor, image, time

sensor.reset() # 初始化sensor
sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
#设置图像色彩格式,有RGB565色彩图和GRAYSCALE灰度图两种
sensor.set_framesize(sensor.QQVGA) # or sensor.QVGA (or others)
sensor.set_saturation(3)
sensor.set_contrast(3)
sensor.set_brightness(3)
sensor.skip_frames(time = 1000)
sensor.set_auto_exposure(False, 4532)
sensor.set_auto_gain(False,gain_db=8.95857)
sensor.set_auto_whitebal(False,rgb_gain_db=(-4.64378, -6.02073, -3.05939))
sensor.skip_frames(time = 3000)
clock = time.clock()

while(True):
    clock.tick()
    img = sensor.snapshot()#.find_edges(image.EDGE_CANNY,threshold=(70, 100))
    '''cs=img.find_circles(threshold = 3000, x_margin = 50, y_margin = 50, r_margin = 10,r_min = 2, r_max = 100, r_step = 2)
    if cs:
        for c in cs:
            img.draw_circle(c.x(), c.y(), c.r(), color = (255, 0, 0))
            print(c)
    else:
        print("None")'''
    print(clock.fps())
2021-07-31 11:44
I
网红小智智 星瞳科技

使用的什么sensor,什么固件版本?

2021-08-01 11:10
C
syxh

@kidswong999 OV7725,固件版本4.0.2

2021-08-01 11:27
I
网红小智智 星瞳科技

我使用OpenMV4 H7测试代码没有发现这个问题。

你的图片是IDE截图的吗?

IDE版本是多少?

2021-08-01 17:05
C
syxh

@kidswong999 2.6.9版本IDE录制的帧缓冲区

2021-08-02 14:05
I
网红小智智 星瞳科技

所以你使用的录制工具出现的问题?截图有没有出现?

2021-08-02 22:51
C
syxh

@kidswong999 我接LCD显示模块也是这样