导航

    • 登录
    • 搜索
    • 版块
    • 产品
    • 教程
    • 论坛
    • 淘宝
    1. 主页
    2. 搜索

    高级搜索

    搜索子版块
    保存设置 清除设置
    共 499 条结果匹配 "sensor",(耗时 0.23 秒)

    关闭白平衡和自动增益后,改变光源的亮度却还是会被自动校正平衡。如何彻底关闭白平衡和自动增益?

    简单的成像代码如下:

    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.XGA)   # Set frame size to QVGA (320x240)
    sensor.set_auto_gain(False)                     #关闭相机自动增益
    sensor.set_auto_whitebal(False)                 #关闭相机自动白平衡
    sensor.skip_frames(time = 2000)     # Wait for settings take effect.
    clock = time.clock()                # Create a clock object to track the FPS.
    
    while(True):
        clock.tick()                    # Update the FPS clock.
        img = sensor.snapshot()         # Take a picture and return the image.
        img.lens_corr(1.3)
        print(clock.fps())              # Note: OpenMV Cam runs about half as fast when connected
                                        # to the IDE. The FPS should increase once disconnected.
    
    

    I
    发布在 OpenMV Cam

    openmv在RGB565下,上下两端的颜色总是偏暗,而且摄像头启动高度不同,整体的亮度也不同,请问有什么解决方法吗?

    我发现我的摄像头的感光元件貌似有点问题,在运行https://book.openmv.cc/example/21-Sensor-Control/sensor-manual-whitebal-control.html这个程序的时候,输出的值一直都是(0.0,0.0,0.0),其他的感光元件相关的值我打印出来也是零,比如:sensor.get_gain_db()也是零,我的另一个摄像头就是正常的,我尝试通过指定白平衡的值,比如:sensor.set_auto_whitebal(False, rgb_gain_db = (63.3876, 60.206, 62.0487)),但是打印出来的还是0

    G
    发布在 OpenMV Cam

    识别二维后输出的数据是啥意思

    import sensor, image
    
    sensor.reset()
    sensor.set_pixformat(sensor.RGB565)
    sensor.set_framesize(sensor.QQVGA) # can be QVGA on M7...
    sensor.skip_frames(30)
    sensor.set_auto_gain(False) # must turn this off to prevent image washout...
    while(True):
        img = sensor.snapshot()
        img.lens_corr(1.8) # strength of 1.8 is good for the 2.8mm lens.
        for code in img.find_qrcodes():
            print(code)
    

    H
    发布在 OpenMV Cam

    运行同一个寻找色块的例子,但是视野中会出现下面第一张图这种情况?请问为什么呢?可以解决吗?

    看上去你的sensor的代码不全。
    运行这个程序。
    https://book.openmv.cc/quick-starter.html#追踪小球

    如果还是这样,就联系售后维修。

    发布在 OpenMV Cam

    openmv在识别色块中为什么一直出现这种错误

    https://forum.singtown.com/topic/3865/sensor-qvga如何在程序中途转换成sensor-vga的形式

    发布在 OpenMV Cam

    openMV的一些路径问题

    https://forum.singtown.com/topic/69/sensor-模块的源码在哪里-怎样查看-谢谢

    发布在 OpenMV Cam

    使用cascade文件,是不是要吧圖像弄成灰才能夠識別呢?為什麼我彩色的,總是沒有識別出來?

    
    
    import sensor, time, image
    sensor.reset()
    sensor.set_pixformat(sensor.GRAYSCALE)
    sensor.set_framesize(sensor.LCD)
    sensor.skip_frames(time = 2000)
    sensor.set_auto_gain(False)
    sensor.set_framesize(sensor.LCD)
    sensor.set_auto_whitebal(False)
    stopgrey_cascade = image.HaarCascade("stopgrey.cascade", stages=25)
    print(stopgrey_cascade)
    clock = time.clock()
    
    while (True):
        clock.tick()
        img = sensor.snapshot()
        objects = img.find_features(stopgrey_cascade, threshold=0.75, scale_factor=1.25)
    
        for r in objects:
            img.draw_rectangle(r)
    
        print(clock.fps())
    

    G
    发布在 OpenMV Cam

    如何c语言编译开发固件

    sensor中设置图像大小会损失掉很多信息
    那么请问我该如何添加这个功能?
    引申一下,我该如何在image中添加一个method

    F
    发布在 OpenMV Cam

    用教程公式的二维码扫描不到,不知道怎么回事

    import sensor, image

    sensor.reset()
    sensor.set_pixformat(sensor.RGB565)
    sensor.set_framesize(sensor.QQVGA) # can be QVGA on M7...
    sensor.skip_frames(30)
    sensor.set_auto_gain(False) # must turn this off to prevent image washout...
    while(True):
    img = sensor.snapshot()
    img.lens_corr(1.8) # strength of 1.8 is good for the 2.8mm lens.
    for code in img.find_qrcodes():
    print(code)

    1
    发布在 OpenMV Cam

    怎们控制巡线代码只执行一段时间,通俗点就是怎们控制某个函数或者语句只执行一段时间?

    在死循环里使用millis判断当前时间。

    import sensor, image, time
    import pyb
    
    sensor.reset()
    sensor.set_pixformat(sensor.RGB565)
    sensor.set_framesize(sensor.QVGA)
    sensor.skip_frames(time = 2000)
    
    clock = time.clock()
    start = pyb.millis()
    while(True):
        if pyb.millis() - start<5000:
            clock.tick()
            img = sensor.snapshot()
            print(clock.fps())
        else:
            print("after 5s")
    

    发布在 OpenMV Cam
    • 1
    • 2
    • 25
    • 26
    • 27
    • 28
    • 29
    • 49
    • 50
    • 27 / 50