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



    • Keypoints descriptor example.

      This example shows how to save a keypoints descriptor to file. Show the camera an object

      and then run the script. The script will extract and save a keypoints descriptor and the image.

      You can use the keypoints_editor.py util to remove unwanted keypoints.

      NOTE: Please reset the camera after running this script to see the new file.

      import sensor, time, image

      Reset sensor

      sensor.reset()

      Sensor settings

      sensor.set_contrast(3)
      sensor.set_gainceiling(16)
      sensor.set_framesize(sensor.VGA)
      sensor.set_windowing((320, 240))
      sensor.set_pixformat(sensor.GRAYSCALE)

      sensor.skip_frames(time = 2000)
      sensor.set_auto_gain(False, value=100)

      FILE_NAME = "alphabet_A2"
      img = sensor.snapshot()

      NOTE: See the docs for other arguments

      NOTE: By default find_keypoints returns multi-scale keypoints extracted from an image pyramid.

      A= img.find_keypoints(max_keypoints=150, threshold=10, scale_factor=1.2)

      if (A == None):
      raise(Exception("Couldn't find any keypoints!"))

      image.save_descriptor(A, "/%s.orb"%(FILE_NAME))
      img.save("/%s.pgm"%(FILE_NAME))

      img.draw_keypoints(A)
      sensor.snapshot()
      time.sleep(1000)
      raise(Exception("Done! Please reset the camera"))0_1565096881410_QQ图片20190806210744.png