Navigation

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

    u2qh

    @u2qh

    0
    Reputation
    1
    Posts
    142
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    u2qh Follow

    Posts made by u2qh

    • 运行这段代码,openmv H7 Plus为什么会自动重启?
      while(True):
          clock.tick()
          img = sensor.snapshot().lens_corr(1.8)
          #img.gaussian(1)
          redBlobs = img.find_blobs([redThreshold],x_stride = 50,x_stride = 50,pixel_threshold = 400)
          blueBlobs = img.find_blobs([blueThreshold],x_stride = 50,x_stride = 50,pixel_threshold = 400)
          img.draw_rectangle(10,50,50,50,(255,255,0))
      
          if redBlobs:
              for r in redBlobs:
                  redRect = r.rect()
                  for c in img.find_circles(redRect,threshold = 3500):
                      if c :
                          print("redCircle")
                  for s in img.find_rects(redRect,threshold = 5000):
                      if s:
                          print("redSquare")
      
      posted in OpenMV Cam
      U
      u2qh