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



    • 请在这里粘贴代码# This work is licensed under the MIT license.
      # Copyright (c) 2013-2023 OpenMV LLC. All rights reserved.
      # https://github.com/openmv/openmv/blob/master/LICENSE
      #
      # 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.
      import sensor
      import time
      import 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 = "desc"
      img = sensor.snapshot()
      # NOTE: See the docs for other arguments
      # NOTE: By default find_keypoints returns multi-scale keypoints extracted from an image pyramid.
      kpts = img.find_keypoints(max_keypoints=150, threshold=10, scale_factor=1.2)
      
      if kpts is None:
          raise (Exception("Couldn't find any keypoints!"))
      
      image.save_descriptor(kpts, "/%s.orb" % (FILE_NAME))
      img.save("/%s.pgm" % (FILE_NAME))
      
      img.draw_keypoints(kpts)
      sensor.snapshot()
      time.sleep_ms(1000)
      
      raise (Exception("Please reset the camera to see the new file."))
      ![0_1715741831530_7c831c12-c730-4ff6-975e-01a0e5bc49f2-image.png](https://fcdn.singtown.com/b2b9accf-1b16-4d1c-95f3-08f94d124950.png) 
      

      0_1715741965553_屏幕截图_20240515_105657.png



    • Traceback (most recent call last):
      File "", line 32, in
      TypeError: extra keyword arguments given
      OpenMV v4.5.4; MicroPython v1.22-omv.r22; OPENMV4P-STM32H743
      Type "help()" for more information.



    • set_auto_gain这一行删除