导航

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

    fuzs

    @fuzs

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

    fuzs 关注

    fuzs 发布的帖子

    • OPENMV 阈值二值化的数学模型

      麻烦请问OPENMV 阈值二值化的数学模型是什么呢?资料中没有找到,是wallner算法吗?还是其他的,望大神解答

      发布在 OpenMV Cam
      F
      fuzs
    • RE: 像素块数量提取的相关问题

      @kidswong999
      已解决 十分感谢🙏 🙏🏻 🙏🏼

      发布在 OpenMV Cam
      F
      fuzs
    • RE: 像素块数量提取的相关问题

      0_1562309867943_11.png
      调试过程中出现了该问题 请问是调用有问题吗? 该如何解决呢?

      发布在 OpenMV Cam
      F
      fuzs
    • RE: 像素块数量提取的相关问题

      @kidswong999 不好意思 再请问一下 这个“色块”用什么代码指代呢?直接就是image.blob?

      发布在 OpenMV Cam
      F
      fuzs
    • RE: 像素块数量提取的相关问题

      Single Color RGB565 Blob Tracking Example

      This example shows off single color RGB565 tracking using the OpenMV Cam.

      import sensor, image, time, math, lcd
      from pyb import UART

      Color Tracking Thresholds (L Min, L Max, A Min, A Max, B Min, B Max)

      The below thresholds track in general red/green/blue things. You may wish to tune them...

      thresholds = (0, 100, -128, -7, -9, 127), # generic_red_thresholds

      sensor.reset()
      sensor.set_pixformat(sensor.RGB565)
      sensor.set_framesize(sensor.QVGA) # 320*240
      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()
      lcd.init()
      uart = UART(3, 9600, timeout_char=1000) # i使用给定波特率初始化
      uart.init(9600, bits=8, parity=None, stop=0, timeout_char=1000) # 使用给定参数初始化

      Only blobs that with more pixels than "pixel_threshold" and more area than "area_threshold" are

      returned by "find_blobs" below. Change "pixels_threshold" and "area_threshold" if you change the

      camera resolution. "merge=True" merges all overlapping blobs in the image.

      while(True):
      clock.tick()
      img = sensor.snapshot()
      for blob in img.find_blobs([thresholds[0]], pixels_threshold=3000, area_threshold=3000, merge=True):
      img.draw_rectangle(blob.rect())
      img.draw_cross(blob.cx(), blob.cy())
      a = 76800
      b = blob.pixels()
      c = b/a
      d = int(255-255*c)
      img.draw_string(100,150,'b='+str(b),color=(0,0,0))
      img.draw_string(100,170,'c='+str(c),color=(0,0,0))
      lcd.display(img)
      uart.writechar(d) # write 1 character 写入一个字符
      #time.sleep(500)
      print(a, b, c, d)
      print(clock.fps())

      发布在 OpenMV Cam
      F
      fuzs
    • 像素块数量提取的相关问题

      麻烦请问各位,就是在使用blob.pixels()提取捕捉像素块的数量时,若没有捕捉对象在视野范围内,那么blob.pixels()就没有数据显示(即print没有任何数据显示),0_1562209799015_QQ截图20190704110942.png
      如图所示,上面的部分为视野里有捕捉对象返回的数据,下面的部分为视野里没有捕捉对象返回的数据

      如何设置才能使没有捕捉对象也能返回一个值(比如说返回0)

      发布在 OpenMV Cam
      F
      fuzs