• 免费好用的星瞳AI云服务上线!简单标注,云端训练,支持OpenMV H7和OpenMV H7 Plus。可以替代edge impulse。 https://forum.singtown.com/topic/9519
  • 我们只解决官方正版的OpenMV的问题(STM32),其他的分支有很多兼容问题,我们无法解决。
  • 如果有产品硬件故障问题,比如无法开机,论坛很难解决。可以直接找售后维修
  • 发帖子之前,请确认看过所有的视频教程,https://singtown.com/learn/ 和所有的上手教程http://book.openmv.cc/
  • 每一个新的提问,单独发一个新帖子
  • 帖子需要目的,你要做什么?
  • 如果涉及代码,需要报错提示全部代码文本,请注意不要贴代码图片
  • 必看:玩转星瞳论坛了解一下图片上传,代码格式等问题。
  • 求助关于人脸分辨的相关问题



    • 你好请问这个人脸识别代码为什么不能输出num的值,串行口显示没有输出值,万分感谢
      0_1609842711289_屏幕截图(206).png

      import sensor, time, image, pyb
      
      sensor.reset() # Initialize the camera sensor.
      sensor.set_pixformat(sensor.GRAYSCALE) # or sensor.GRAYSCALE
      sensor.set_framesize(sensor.B128X128) # or sensor.QQVGA (or others)
      sensor.set_windowing((92,112))
      sensor.skip_frames(10) # Let new settings take affect.
      sensor.skip_frames(time = 5000) #等待5s
      num = 0
      def min(pmin, a, s):
          global num
          print(00000000)
          if a < pmin:
              pmin = a
              num = s
              
          return pmin
          sensor.reset() # Initialize the camera sensor.
          sensor.set_pixformat(sensor.GRAYSCALE) # or sensor.GRAYSCALE
          sensor.set_framesize(sensor.B128X128) # or sensor.QQVGA (or others)
          sensor.set_windowing((92,112))
          sensor.skip_frames(10) # Let new settings take affect.
          sensor.skip_frames(time = 5000) #等待5s
          
          NUM_SUBJECTS = 2
          NUM_SUBJECTS_IMGS = 20
          img = sensor.snapshot()
          d0 = img.find_lbp((0, 0, img.width(), img.height()))
          img = None
          pmin = 999999
          num = 0
          for s in range(1, NUM_SUBJECTS + 1):
              dist = 0
              for i in range(2, NUM_SUBJECTS_IMGS + 1):
                  img = image.Image("singtown/s%d/%d.pgm" % (s, i))
                  d1 = img.find_lbp((0, 0, img.width(), img.height()))
                  dist += image.match_descriptor(d0, d1)
              print("Average dist for subject %d: %d" % (s, dist / NUM_SUBJECTS_IMGS))
              pmin = min(pmin, dist / NUM_SUBJECTS_IMGS, s)
              print(pmin)
              if dist / NUM_SUBJECTS_IMGS == pmin:
                  num = s
          print(num)
      
      


    • https://singtown.com/learn/50033/

      有没有按照视频的步骤操作?



    • 确实跟着教程一步一步走 但就是分辨不出来



    • @kidswong999 是按照视频的步骤进行的