Navigation

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

    2clp

    @2clp

    0
    Reputation
    9
    Posts
    387
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    2clp Follow

    Posts made by 2clp

    • 使用串口只能发送数据但不能接收数据?

      看的是教程视频,用的是里面的代码,还以为是板子没插好,然后用了万用表测了确实是接通了的

      import time
      from pyb import UART
      
      # Always pass UART 3 for the UART number for your OpenMV Cam.
      # The second argument is the UART baud rate. For a more advanced UART control
      # example see the BLE-Shield driver.
      uart = UART(3, 9600, timeout_char=1000)
      
      while(True):
          #uart.write("Hello World!\r\n")
          #time.sleep(1000)
          if uart.any():
                a = uart.readline()
                print(a)
      
      posted in OpenMV Cam
      2
      2clp
    • RE: openmv3.0.0可以改变帧率么,。。遇到的问题是,识别数码管数字,数码管有频闪,导致识别结果错误。

      你好,如果数码管的频率改不了,针对openmv有什么方法或者思路吗?

      posted in OpenMV Cam
      2
      2clp
    • blobs识别问题,求大神指点

      想识别一个红色的物体,识别到输出1,没有识别到输出0,但是我再运行时,总是输出1,即便没有看到红色的物体,下面是我的代码:

      import sensor, image, time, math,pyb
      
      sensor.reset()
      sensor.set_pixformat(sensor.RGB565)
      sensor.set_framesize(sensor.QVGA)
      sensor.skip_frames(time = 2000)
      sensor.set_auto_gain(False) # must be turned off for color tracking
      sensor.set_auto_whitebal(False) # must be turned off for color tracking
      clock = time.clock()
      
      thresholds = [(30, 100, 15, 127, 15, 127), # generic_red_thresholds
                    (30, 100, -64, -8, -32, 32), # generic_green_thresholds
                    (0, 30, 0, 64, -128, 0)] # generic_blue_thresholds
      
      while(True):
          clock.tick()
          img = sensor.snapshot()
          blobs = img.find_blobs([thresholds[0]],  pixels_threshold=50, area_threshold=100, merge=True) 
          for blob in blobs:
                  img.draw_rectangle(blob.rect())
                  img.draw_cross(blob.cx(), blob.cy()) 
                  
                  if  blob :
                          print(1)
                  else:
                          print(0)
      

      希望高人指点指点

      posted in OpenMV Cam
      2
      2clp
    • 怎么统计图像中apriltag或者是数字的数量?

      图片中有很多apriltag或者数字,怎么统计下它们的数量?

      posted in OpenMV Cam
      2
      2clp
    • RE: 请问怎么识别特定ID的AprilTag?

      @kidswong999

          for tag in img.find_apriltags(fx=f_x, fy=f_y, cx=c_x, cy=c_y): # 默认为 TAG36H11
              #print(tag.id())
              img.draw_rectangle(tag.rect(), color = (255, 0, 0))
              img.draw_cross(tag.cx(), tag.cy(), color = (0, 255, 0))
              print_args = (tag.id(), tag.x_translation(), tag.y_translation(), tag.z_translation(), \
                  degrees(tag.x_rotation()), degrees(tag.y_rotation()), degrees(tag.z_rotation()))
              print("ID: %f, Tx: %f, Ty: %f, Tz: %f, Rx: %f, Ry: %f, Rz: %f" % print_args)
      
      像这段代码,如果openmv识别到几个apriltag标志的话,它会出现下面这种情况(只粘贴了两行),把这几个apriltag标志的ID打印出来了,想问一下怎么提取出ID等于15的那个标志呢?
      .....
      ID: 15.000000, Tx: -0.464612, Ty: -2.518064, Tz: -17.411228, Rx: 187.194242, Ry: 43.478470, Rz: 358.177352
      ID: 14.000000, Tx: -3.247705, Ty: -1.681922, Tz: -15.471701, Rx: 152.212372, Ry: 328.892517, Rz: 3.846272
      ......
      posted in OpenMV Cam
      2
      2clp
    • RE: 请问怎么识别特定ID的AprilTag?

      谢谢,有点思路了,不懂再请教

      posted in OpenMV Cam
      2
      2clp
    • 请问怎么识别特定ID的AprilTag?

      有没有办法识别特定ID的AprilTag?可以讲的详细点吗?

      posted in OpenMV Cam
      2
      2clp