导航

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

    高级搜索

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

    RuntimeError: Sensor control failed

    openmv里在运行时出现RuntimeError: Sensor control failed的错误弹窗,应该如何解决?

    Y
    发布在 OpenMV Cam

    请问一下怎么实现HSV图

    @l46w 直接把sensor设置成灰度不就行了?

    https://docs.singtown.com/micropython/zh/latest/openmvcam/library/omv.sensor.html#sensor.sensor.set_pixformat

    发布在 OpenMV Cam

    找不到 ml 文件怎么解决

    import sensor, image, time, os, ml, math, uos, gc
    0_1727331732035_88797635-c350-43b2-8207-0e0c11d06a38-image.png

    U
    发布在 OpenMV Cam

    怎么能减小灰度图与彩图之间的切换频率?

    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.
    clock = time.clock()                # Create a clock object to track the FPS.
    
    while(True):
        clock.tick()                    # Update the FPS clock.
        img = sensor.snapshot()
        # img这里是彩色
        img = img.to_grayscale()
        # img这里是灰色
        print(clock.fps())
    

    发布在 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配置之后, 跳过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)

    报错信息为
    this function is unavailable on your OpenMV Cam

    F
    发布在 OpenMV Cam

    运行lcd_1.py后,lcd还是白屏,是什么原因?

    LCD Example

    Note: To run this example you will need a LCD Shield for your OpenMV Cam.

    The LCD Shield allows you to view your OpenMV Cam's frame buffer on the go.

    import sensor, image, 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.

    while(True):
    lcd.display(sensor.snapshot()) # Take a picture and display the image.

    D
    发布在 OpenMV Cam

    如何获取一个像素点的LAB值

    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.
    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.
        pixel_rgb = img.get_pixel(0,0)
        print(pixel_rgb)
        pixel_lab = image.rgb_to_lab(pixel_rgb)
        print(pixel_lab)
    

    发布在 OpenMV Cam

    04-ulab ulab数学操作返回错误'module' object has no attribute 'array'

    更改为:

    import sensor, image, time
    from ulab import numpy as np
    sensor.reset()                          # Reset and initialize the sensor.
    sensor.set_pixformat(sensor.GRAYSCALE)  # Set pixel format to RGB565 (or GRAYSCALE)
    sensor.set_framesize(sensor.QQVGA)      # Set frame size to QVGA (320x240)
    clock = time.clock()                    # Create a clock object to track the FPS.
    
    while (True):
        img = sensor.snapshot()         # Take a picture and return the image.
        a = np.array(img, dtype=np.uint8)
        print("mean: %d std:%d"%(np.mean(a), np.std(a)))
    

    发布在 OpenMV Cam

    官方例程报错 no module named 'display'

    import sensor
    import display
    
    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 = display.SPIDisplay()  # Initialize the lcd screen.
    
    while True:
        lcd.write(sensor.snapshot())  # Take a picture and display the image.
    
    

    0_1700048980491_724712f5-6bc5-43ea-b4fa-d901d41f0c62-image.png

    貌似删了注册表的东西,重装ide也一样报错。

    6
    发布在 OpenMV Cam

    可以调节曝光度色调之类参数吗,怎样调节

    距离,和曝光,调色没有关系。

    感光元件控制:
    http://book.openmv.cc/example/21-Sensor-Control/sesnor_manual_gain_control.html

    发布在 OpenMV Cam
    • 1
    • 2
    • 10
    • 11
    • 12
    • 13
    • 14
    • 49
    • 50
    • 12 / 50