导航

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

    ia2g

    @ia2g

    0
    声望
    10
    楼层
    2435
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    ia2g 关注

    ia2g 发布的帖子

    • openmv目标跟踪问题?

      1、openmv目标跟踪特征点提取使用的是什么特征提取算法呢,是sift,Hog还是其他/
      2、openmv目标跟踪产生候选样本是用的什么算法,是直接滑动窗口,进行穷举吗,这个不是计算量特别大吗?关键还不知道目标的大小,就是窗口的大小应该多少?
      3、openmv是怎么进行候选样本跟特征点匹配的呢,是传统的生成式模型嘛,还是用的相关滤波算法
      4、openmv的目标跟踪性能如何,能够实现多少帧率的跟踪

      补充,我想做个实时目标跟踪,框出目标的同时,输出目标在图像中的坐标信息给舵机云台,就是宣传视频的那个颜色跟踪案例,就是不知道openmv效果如何,以及能否对遮挡变形等难题的处理做到什么程度了,希望能帮忙解答下。

      发布在 OpenMV Cam
      I
      ia2g
    • RE: openmv与stm32连接卡死?

      @kidswong999 openmv只运行helloworld的程序就是可以的 只有数据通信就不行

      发布在 OpenMV Cam
      I
      ia2g
    • RE: openmv与stm32连接卡死?

      @kidswong999 我试试

      发布在 OpenMV Cam
      I
      ia2g
    • RE: openmv与stm32连接卡死?

      @kidswong999 我是把色块的中心点坐标封装成数据包发送过去

      发布在 OpenMV Cam
      I
      ia2g
    • RE: openmv与stm32连接卡死?

      @kidswong999
      import sensor, image, 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.

      threshold_index = 0 # 0 for red, 1 for green, 2 for blue
      thresholds = [(6,22,-12,16,-7, 20), # generic_red_thresholds
      (30, 100, -64, -8, -32, 32), # generic_green_thresholds
      (0, 30, 0, 64, -128, 0)] # generic_blue_thresholds
      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()
      uart = UART(3, 115200)
      def find_max(blobs):
      max_size=0
      for blob in blobs:
      if blob.pixels() > max_size:
      max_blob=blob
      max_size = blob.pixels()
      return max_blob
      while(True):
      clock.tick()
      img = sensor.snapshot()
      blobs = img.find_blobs([thresholds[threshold_index]])
      if blobs:
      max_blob=find_max(blobs)
      img.draw_rectangle(max_blob.rect())
      img.draw_cross(max_blob.cx(), max_blob.cy())
      a=int(max_blob.cx()/4)
      b=int(max_blob.cy()/4)
      dotx_high=(a>>8)&0XFF
      dotx_low=a&0XFF
      doty_high=(b>>8)&0XFF
      doty_low=b&0XFF
      print(a,b)
      #uart.write(hex(170)+hex(175)+hex(242)+hex(7)+hex(0)+hex(175)+a1+hex(0)+b1+hex(12)+hex(242)+hex(1)+hex(0))
      c=max_blob.pixels()
      pix_high=(c>>8)&0XFF
      pix_low=c&0XFF
      xy=[0xAA, 0xAF,0XF2,0x07,dotx_high,dotx_low,doty_high,doty_low,pix_high,pix_low,0x01,0x00]
      uart.write(bytes(xy))
      time.sleep(10)
      else:
      xy=[0xAA, 0xAF,0XF2,0x07,0x00,0x00,0x00,0x00,0x0c,0xf2,0x00,0x00]
      uart.write(bytes(xy))
      time.sleep(10)

      发布在 OpenMV Cam
      I
      ia2g
    • RE: openmv与stm32连接卡死?

      @kidswong999 115200 分开是可以用的

      发布在 OpenMV Cam
      I
      ia2g
    • RE: openmv与stm32连接卡死?

      就是单片机没法工作 我是跟飞控板连接 卡死之后飞控板led都不闪 显示屏也不闪 就全部不工作

      发布在 OpenMV Cam
      I
      ia2g
    • openmv与stm32连接卡死?

      只要有openmv跟飞控直接有数据通信,单片机就卡死,如果没有发送uart.write就不会卡死。。这是为什么?没弄明白

      发布在 OpenMV Cam
      I
      ia2g
    • RE: 如何将色块的中心坐标做成二进制包发送到串口上?

      @kidswong999 在 如何将色块的中心坐标做成包发送到串口上? 中说:

      x坐标 = 100
      y坐标 = 100

      x坐标高8位 = (x坐标 >> 😎 & 0xFF
      x坐标低8位 = x坐标 & 0xFF

      y坐标高8位 = (y坐标 >> 😎 & 0xFF
      y坐标低8位 = y坐标 & 0xFF

      校验和 = x坐标高8位 + x坐标低8位 + y坐标高8位 + y坐标低8位 # 具体怎么校验自己写吧

      数组 = [0xAA, 0xAF, 0xF2, 0x02, x坐标高8位, x坐标低8位, y坐标高8位, y坐标低8位, 校验和]

      uart.write(bytes(数组))

      谢啦我试试

      发布在 OpenMV Cam
      I
      ia2g
    • 如何将色块的中心坐标做成二进制包发送到串口上?

      0_1547625409504_QQ浏览器截图20190116155641.png

      如截图所示 前两个是固定值,第四个是02 我只要色块的中心坐标 然后5 6 7 8为色块的中心坐标
      最后一个是校验和

      请问怎么将坐标做成包发送到 串口?

      发布在 OpenMV Cam
      I
      ia2g