导航

    • 登录
    • 搜索
    • 版块
    • 产品
    • 教程
    • 论坛
    • 淘宝
    1. 主页
    2. yivh
    3. 帖子
    Y
    • 举报资料
    • 资料
    • 关注
    • 粉丝
    • 屏蔽
    • 帖子
    • 楼层
    • 最佳
    • 群组

    yivh 创建的帖子

    • Y

      在LED等下拍照频闪
      OpenMV Cam • • yivh

      2
      0
      赞同
      2
      楼层
      974
      浏览

      你这不可能是LED,LED频率很快的,不会影响OpenMV,估计是荧光灯。 暂时的办法: 运行下面的代码:先改exposure_us,直到不频闪,注意画面亮度会改变。然后再增加gain_db把画面亮度变大。 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.set_auto_exposure(False, \ exposure_us = 100000) sensor.set_auto_gain(False, gain_db=1) 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()) 如果有条件,建议换个灯,或者加一个补光灯。https://singtown.com/product/50776/openmv-light-shield/
    • Y

      这个软件怎么可以隔一段时间自动保存图像❓
      OpenMV Cam • • yivh

      2
      0
      赞同
      2
      楼层
      885
      浏览

      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. times = 0 while(True): img = sensor.snapshot() times += 1 if times > 100: img.save("1.jpeg") times = 0