导航

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

    26cl 发布的帖子

    • RE: openmv 图像闪屏 加失真

      @kidswong999 ?

      发布在 OpenMV Cam
      2
      26cl
    • RE: openmv 图像闪屏 加失真

      @kidswong999 就是软件打开的屏幕会一闪一闪
      我能发视频给你看嘛

      发布在 OpenMV Cam
      2
      26cl
    • openmv 图像闪屏 加失真

      0_1592996825735_Screenshot_20200624_190645.jpg ```

      #设置阈值,(0,100)检测黑色线
      THRESHOLD = (0, 100) # Grayscale threshold for dark things...
      
      #设置是否使用img.binary()函数进行图像分割
      BINARY_VISIBLE = True # Does binary first so you can see what the linear regression
                            # is being run on... might lower FPS though.
      
      import sensor, image, time
      
      sensor.reset()
      sensor.set_pixformat(sensor.GRAYSCALE)
      sensor.set_framesize(sensor.QQVGA)
      sensor.skip_frames(time = 2000)
      clock = time.clock()
      
      while(True):
          clock.tick()
          img = sensor.snapshot().binary([THRESHOLD]) if BINARY_VISIBLE else sensor.snapshot()
          img.invert()
      
      
      发布在 OpenMV Cam
      2
      26cl