导航

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

    4p3d 发布的帖子

    • 怎么调节size_threshold = 2000值?

      green_threshold = (76, 96, -110, -30, 8, 66)
      size_threshold = 2000
      x_pid = PID(p=0.5, i=1, imax=100)
      h_pid = PID(p=0.05, i=0.1, imax=50)
      这个追小球的小车的这个size_threshold = 2000值怎么确定,一点一点调吗,如果小车撞上小球呢?

      发布在 OpenMV Cam
      4
      4p3d
    • RE: 这个为啥不行,改个分辨率就不行了?

      这个有SD卡啊,之前可以啊

      发布在 OpenMV Cam
      4
      4p3d
    • 这个为啥不行,改个分辨率就不行了?

      0_1685000506604_aa4830e0-4fe9-4a58-b20a-55b15305ebcf-image.png

      发布在 OpenMV Cam
      4
      4p3d
    • openmv要用多线程怎么搞?要用到那些函数?

      😌 😌

      发布在 OpenMV Cam
      4
      4p3d
    • 这个代码发送到星通串口助手上都是乱码什么原因?

      0_1681991932833_f36ccbfb-fa57-4bf1-a803-fd2524c05b53-image.png

      发布在 OpenMV Cam
      4
      4p3d
    • 为什么运行代码后打不开串口,但不运行代码却能打开串口,但连接不到openmv?

      0_1681909699485_b9da245b-234f-4c6b-919f-e9a2aacdd0f5-image.png

      发布在 OpenMV Cam
      4
      4p3d
    • openmv怎么提高测距的距离和精度,怎么优化?
      :weary_face: :weary_face: :weary_face: :weary_face: :weary_face: :weary_face: :weary_face: :weary_face: :weary_face: 请在这里粘贴代码
      
      发布在 OpenMV Cam
      4
      4p3d
    • openmv识别圆环发送坐标后,是以什么为原点,怎么确定openmv和圆环中心位置?

      😘 😇 😇 😇 😇

      发布在 OpenMV Cam
      4
      4p3d
    • openmv识别黑杆,用到哪些函数?

      😌 😌 😌 😌 😌 😌 😌

      发布在 OpenMV Cam
      4
      4p3d
    • 内存分配失败什么原因?

      0_1680757783231_c244e3e7-94cb-4d1b-ae13-164aae55311e-image.png

      发布在 OpenMV Cam
      4
      4p3d
    • 为什么不能执行?怎样才能解决?

      0_1680682119274_80a77a4e-ffb6-4b60-b0ad-0044dc77584e-image.png

      发布在 OpenMV Cam
      4
      4p3d
    • openmv怎么导入barcode库?

      😊 😊

      发布在 OpenMV Cam
      4
      4p3d
    • RE: 部分代码,为什么电脑接收不到圆的坐标?

      这个代码能发出来

      发布在 OpenMV Cam
      4
      4p3d
    • RE: 部分代码,为什么电脑接收不到圆的坐标?

      这个是识别到了圆,串行终端有代码输出,就是通过串口发不到电脑上

      发布在 OpenMV Cam
      4
      4p3d
    • RE: 部分代码,为什么电脑接收不到圆的坐标?

      代码就是上面那些,电脑上啥都没没收到,您看看是不是哪里写错了,新手小白,求指导。

      请在这里粘贴代码
      
      发布在 OpenMV Cam
      4
      4p3d
    • 部分代码,为什么电脑接收不到圆的坐标?
      uart = UART(3, 115200)
          for c in img.find_circles(threshold = 3500, x_margin = 10, y_margin = 10, r_margin = 10,r_min = 2, r_max = 100, r_step = 2):
              img.draw_circle(c.x(), c.y(), c.r(), color = (255, 0, 0))
              print(c)
      
          print("FPS %f" % clock.fps())
      
      uart.init(115200, bits=8, parity=None, stop=1) # init with given parameters
      def send_data_packet(x,y,z,w):
          #frame=[0x2C,18,cx%0xff,int(cx/0xff),cy%0xff,int(cy/0xff),0x5B];
          #data = bytearray(frame)
      
          data = ustruct.pack("<bbhhhhb",      #格式为俩个字符俩个短整型(2字节)
                         0x2C,                      #帧头1
                         0x12,                      #帧头2
                         int(cx), # up sample by 4   #数据1
                         int(cy), # up sample by 4    #数据2
                         int(cw), # up sample by 4    #数据1
                         int(ch), # up sample by 4    #数据2
                         0x5B)
          uart.write(data);data_out = json.dumps(set(data))
             
      
      
      while(True):
          clock.tick()
          date=bytearray[(1,2,3,4,5)]
          uart.write(data)
      
          img = sensor.snapshot()
          c = img.find_circles()
          cx=0;cy=0;
          if c:
               c = find_circles(c)
      
               cx=c.x()
               cy=c.y()
               cw=c.r()
               ch=c.magnitude()
               img.draw_circle(c.x(), c.y(), c.r(), color = (255, 0, 0))
               FH = bytearray([0x2C,0x12,cx,cy,cw,ch,0x5B])
                  #sending_data(cx,cy,cw,ch)
               uart.write(FH)
               print(cx,cy,cw,ch)
               
      

      请在这里粘贴代码

      发布在 OpenMV Cam
      4
      4p3d
    • RE: 串口发送坐标,要用到那些函数?

      就想发送他的中心坐标怎么写

      :face_with_stuck-out_tongue: :face_with_stuck-out_tongue: :face_with_stuck-out_tongue: :face_with_stuck-out_tongue: :face_with_stuck-out_tongue: :face_with_stuck-out_tongue: :face_with_stuck-out_tongue: :face_with_stuck-out_tongue: :face_with_stuck-out_tongue: :face_with_stuck-out_tongue: :face_with_stuck-out_tongue: :face_with_stuck-out_tongue: 请在这里粘贴代码
      
      发布在 OpenMV Cam
      4
      4p3d
    • 串口发送坐标,要用到那些函数?

      通过识别圆后,怎么把它的坐标c.x(),c.y()c.r()通过串口发送到电脑,代码怎么写,要用到那些函数?😞 😞 😞 😞 😞 😅 😅 😅 😅 🤣 🤣 🤣 🤣 😞 😞

      发布在 OpenMV Cam
      4
      4p3d