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



    • 我将AMG8833的i2c口对接到OPENMV的P4,P5,
      0_1556442905648_d39993d6-53b3-432e-9c25-94b6e19d7ee2-image.png
      但是运行例程时AMG8833在IDE无数据,程序如下

      # AMG8833 Overlay Demo
      #
      # This example shows off how to overlay a heatmap onto your OpenMV Cam's
      # live video output from the main camera.
      
      import sensor, image, time, fir, lcd
      
      ALT_OVERLAY = False # Set to True to allocate a second ir image.
      
      sensor.reset()
      sensor.set_pixformat(sensor.RGB565)
      sensor.set_framesize(sensor.QQVGA2)
      sensor.skip_frames(time = 2000)
      
      # Initialize the thermal sensor
      fir.init(type=fir.FIR_AMG8833)
      
      # Init the lcd.
      lcd.init()
      
      # Allocate another frame buffer for smoother video.
      extra_fb = sensor.alloc_extra_fb(sensor.width(), sensor.height(), sensor.RGB565)
      
      # FPS clock
      clock = time.clock()
      
      while (True):
          clock.tick()
      
          # Capture an image
          img = sensor.snapshot()
      
          # Capture FIR data
          #   ta: Ambient temperature
          #   ir: Object temperatures (IR array)
          #   to_min: Minimum object temperature
          #   to_max: Maximum object temperature
          ta, ir, to_min, to_max = fir.read_ir()
      
          if not ALT_OVERLAY:
              # Scale the image and belnd it with the framebuffer
              fir.draw_ir(img, ir)
          else:
              # Create a secondary image and then blend into the frame buffer.
              extra_fb.clear()
              fir.draw_ir(extra_fb, ir, alpha=256)
              img.blend(extra_fb, alpha=128)
      
          # Draw ambient, min and max temperatures.
          img.draw_string(8, 0, "Ta: %0.2f C" % ta, color = (255, 0, 0), mono_space = False)
          img.draw_string(8, 8, "To min: %0.2f C" % to_min, color = (255, 0, 0), mono_space = False)
          img.draw_string(8, 16, "To max: %0.2f C"% to_max, color = (255, 0, 0), mono_space = False)
      
          lcd.display(img)
          # Force high quality streaming...
          img.compress(quality=90)
      
          # Print FPS.
          print(clock.fps())
      
      

      IDE显示如下图,无数据显示
      0_1556443686203_1dc8d4f6-9eeb-41b8-9ddd-3d7571397aba-image.png