导航

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

    高级搜索

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

    运行helloworld.py例程,图像显示正常,一段时间后(几秒到几分钟不等),图像卡死,内置储存u盘被弹出?

    # Hello World Example
    #
    # Welcome to the OpenMV IDE! Click on the green run arrow button below to run the script!
    
    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.
        print(clock.fps())              # Note: OpenMV Cam runs about half as fast when connected
                                        # to the IDE. The FPS should increase once disconnected.
    
    

    G
    发布在 OpenMV Cam

    教程里的lcd是不是无法使用了?

    https://book.openmv.cc/shield/lcd.html

    # 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
    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中
    

    0_1701001305837_ade34d33-b2f8-47ea-ba60-cef28a145c13-image.png

    S
    发布在 OpenMV Cam

    数字识别里面用tf为什么会报这样的错?

    This code run in OpenMV4 H7 or OpenMV4 H7 Plus

    import sensor, image, time, os, tf

    sensor.reset() # Reset and initialize the sensor.
    sensor.set_pixformat(sensor.GRAYSCALE) # Set pixel format to RGB565 (or GRAYSCALE)
    sensor.set_framesize(sensor.QVGA) # Set frame size to QVGA (320x240)
    sensor.set_windowing((240, 240)) # Set 240x240 window.
    sensor.skip_frames(time=2000) # Let the camera adjust.

    clock = time.clock()
    while(True):
    clock.tick()
    img = sensor.snapshot().binary([(0,64)])
    for obj in tf.classify("trained.tflite", img, min_scale=1.0, scale_mul=0.5, x_overlap=0.0, y_overlap=0.0):
    output = obj.output()
    number = output.index(max(output))
    print(number)
    print(clock.fps(), "fps")0_1722129942345_87cf88370ba087e50d8b451e5f765e81.png

    5
    发布在 OpenMV Cam

    openmv里头是否含有builtins模块,我看说明文档在内置函数提了,但是没有找到

    执行这两句话代码,IDE直接就闪退了。。。,而且import builtins 的高亮颜色也不对,比如和import sensor 的颜色不一样

    Z
    发布在 OpenMV Cam

    可以用OPENMV 传感器扩展板代替PCA9685的OPENMV 舵机扩展板么 I2C的地址是什么?

    传感器扩展板,https://singtown.com/product/49896/openmv-sensor-shield/
    和舵机扩展板,https://singtown.com/product/49898/openmv-servo-shield/

    功能完全不一样,不存在替代。

    发布在 OpenMV Cam

    怎么更好地识别颜色,每次选好一种颜色的阈值,但是总是被环境的其他颜色干扰

    https://book.openmv.cc/example/21-Sensor-Control/sensor_manual_whitebal_control.html

    手动控制一下白平衡。这样每一次都是一样的亮度,但是换一个环境就变了。

    发布在 OpenMV Cam

    帧缓冲区画图,显示文字问题

    变量一样可以转成字符串。

    
    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()
        a = clock.fps()
        img.draw_string(10,10,str(a),scale=2)
    

    发布在 OpenMV Cam

    识别色块的时候,阈值会受光线影响,我现在识别的阈值挺准的,过一会就不行了,有没有什么方法?

    你可以把阈值的范围调大。

    即使把现在的sensor参数全部固定住,你明天或者天黑了也都不一样了。

    发布在 OpenMV Cam

    openmv 5V供电能承受两台舵机和wifi模块热点模式同时工作时的电流吗?

    舵机直接连接传感器扩展板,底下的三排引脚。

    来自星瞳实验室APP: OpenMV传感器扩展板 https://singtown.com/product/49896/openmv-sensor-shield/

    发布在 OpenMV Cam

    用红色袋子去识别,出现背景颜色变色是什么情况???

    代码的最开始,有两秒的自动设置sensor的参数。如果你在最开始就把红色覆盖上去,可能会颜色异常。

    发布在 OpenMV Cam
    • 1
    • 2
    • 20
    • 21
    • 22
    • 23
    • 24
    • 49
    • 50
    • 22 / 50