导航

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

    vwnr

    @vwnr

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

    vwnr 关注

    vwnr 发布的帖子

    • OPENMV4 letnet数字识别

      OPENMV4固件版本4.0.2就没办法用letnet数字识别了吗?文档里只有说3.6.5固件版本之前的,和openmv4 plus

      发布在 OpenMV Cam
      V
      vwnr
    • 脱机运行帧率变低......
      import sensor, image, time
      from pyb import UART
      sensor.reset()
      sensor.set_pixformat(sensor.RGB565)
      sensor.set_framesize(sensor.QQVGA)
      sensor.skip_frames(time = 2000)
      clock = time.clock()
      sensor.set_auto_gain(False)
      sensor.set_auto_whitebal(False)
      sensor.set_windowing((10,0,130,120))
      color_threshold   =(71, 100, -10, 10, -21, 24)
      uart=UART(3,115200)
      def find_max(blobs):
          max_size=0
          for blob in blobs:
              if blob[2]*blob[3] > max_size:
                  max_blob=blob
                  max_size = blob[2]*blob[3]
          return max_blob
      while(True):
          clock.tick()
          img = sensor.snapshot().lens_corr(1.8)
          blobs = img.find_blobs([color_threshold],area_threshold=50,pixels_threshold=50)
          #blobs = img.find_blobs([color_threshold])
          if blobs:
              max_blob = find_max(blobs)
              img.draw_rectangle(max_blob.rect())
              img.draw_cross(max_blob.cx(),max_blob.cy())
              uart.write("x:%03d,y:%03d\r\n"%(max_blob.cx(),max_blob.cy()))
              print("x:%03d,y:%03d\r\n"%(max_blob.cx(),max_blob.cy()))
          print(clock.fps())
      
      

      OPENMV4 H7 ov7725
      固件版本4.0.2

      发布在 OpenMV Cam
      V
      vwnr
    • RE: 用IDE和脱机运行帧率不一样。
      import sensor, image, time
      from pyb import UART
      sensor.reset()
      sensor.set_pixformat(sensor.RGB565)
      sensor.set_framesize(sensor.QQVGA)
      sensor.skip_frames(time = 2000)
      clock = time.clock()
      sensor.set_auto_gain(False)
      sensor.set_auto_whitebal(False)
      sensor.set_windowing((10,0,130,120))
      color_threshold   =(71, 100, -10, 10, -21, 24)
      uart=UART(3,115200)
      def find_max(blobs):
          max_size=0
          for blob in blobs:
              if blob[2]*blob[3] > max_size:
                  max_blob=blob
                  max_size = blob[2]*blob[3]
          return max_blob
      while(True):
          clock.tick()
          img = sensor.snapshot().lens_corr(1.8)
          blobs = img.find_blobs([color_threshold],area_threshold=50,pixels_threshold=50)
          #blobs = img.find_blobs([color_threshold])
          if blobs:
              max_blob = find_max(blobs)
              img.draw_rectangle(max_blob.rect())
              img.draw_cross(max_blob.cx(),max_blob.cy())
              uart.write("x:%03d,y:%03d\r\n"%(max_blob.cx(),max_blob.cy()))
              print("x:%03d,y:%03d\r\n"%(max_blob.cx(),max_blob.cy()))
          print(clock.fps())
      
      

      OPENMV4 H7 ov7725
      固件版本4.0.2

      发布在 OpenMV Cam
      V
      vwnr
    • 用IDE和脱机运行帧率不一样。

      识别颜色代码,用IDE运行程序时有40FPS,脱机运行是OPENMV帧率明显降低,传输出来的数据变慢,并且使用IDE运行程序时,运行一段时间会自动降低到19.2FPS,仅仅是一个简单的识别颜色的程序,降低过分辨率没有任何变化,找其他同学的OPENMV过来运行相同的代码,有的同学的OPENMV甚至只能19.2fps

      发布在 OpenMV Cam
      V
      vwnr