Navigation

    • Login
    • Search
    • 版块
    • 产品
    • 教程
    • 论坛
    • 淘宝
    1. Home
    2. syxh
    S
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    • mipush

    syxh

    @syxh

    0
    Reputation
    5
    Posts
    22
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    syxh Follow

    Posts made by syxh

    • 为什么矩形对象只能用for语句创建,不可以直接用=创建?
      THRESHOLD =(23, 103)
      import sensor, image
      from pyb import LED,Timer,Pin
      
      sensor.reset()
      sensor.set_vflip(True)
      sensor.set_hmirror(True)
      sensor.set_pixformat(sensor.GRAYSCALE)
      sensor.set_framesize(sensor.QQQVGA)
      sensor.set_auto_whitebal(True)
      sensor.skip_frames(time = 2000)
      clock = time.clock()
      
      while(True):
          clock.tick()
          img = sensor.snapshot().mean(3).binary([THRESHOLD])
          img.draw_rectangle((0,10,80,60))
          rec = img.find_rects(roi=(0,20,80,60),threshold=55000)
          img.draw_rectangle(rec.rect(), color = (0, 255, 0))
          '''for rec in img.find_rects(roi=(0,20,80,60),threshold=55000):
              img.draw_rectangle(rec.rect(), color = (0, 255, 0))'''
      
      

      0_1613571120883_屏幕截图 2021-02-17 221118.png

      posted in OpenMV Cam
      S
      syxh
    • RE: 追踪色块程序关掉白平衡后,开盖启动程序时随机出现三种不同的色调

      0_1607861965287_6.png

      posted in OpenMV Cam
      S
      syxh
    • RE: 追踪色块程序关掉白平衡后,开盖启动程序时随机出现三种不同的色调

      0_1607861952272_5.png

      posted in OpenMV Cam
      S
      syxh
    • RE: 追踪色块程序关掉白平衡后,开盖启动程序时随机出现三种不同的色调

      0_1607861934216_4.png

      posted in OpenMV Cam
      S
      syxh
    • 追踪色块程序关掉白平衡后,开盖启动程序时随机出现三种不同的色调
      import sensor, image, time
      
      color_lab=[(4, 27, -13, 9, -8, 11)]#black
      
      sensor.reset()
      sensor.set_pixformat(sensor.RGB565)
      sensor.set_framesize(sensor.QVGA)
      sensor.skip_frames(time = 2000)
      sensor.set_auto_gain(False)
      sensor.set_auto_whitebal(False)
      clock = time.clock()
      
      while(True):
          clock.tick()
          img = sensor.snapshot().lens_corr(strengh=1.8,zoom=1.0)
          for blob in img.find_blobs(color_lab,merge=True,area_threshold=200,pixel_threshold=1000):
              img.draw_rectangle(blob.rect())#draw a rectangle
              img.draw_cross(blob.cx(),blob.cy())
              print(blob.code())
      

      2_1607861893354_6.png 1_1607861893354_5.png 0_1607861893351_4.png 请在这里粘贴代码

      posted in OpenMV Cam
      S
      syxh