• OpenMV VSCode 扩展发布了,在插件市场直接搜索OpenMV就可以安装
  • 如果有产品硬件故障问题,比如无法开机,论坛很难解决。可以直接找售后维修
  • 发帖子之前,请确认看过所有的视频教程,https://singtown.com/learn/ 和所有的上手教程http://book.openmv.cc/
  • 每一个新的提问,单独发一个新帖子
  • 帖子需要目的,你要做什么?
  • 如果涉及代码,需要报错提示全部代码文本,请注意不要贴代码图片
  • 必看:玩转星瞳论坛了解一下图片上传,代码格式等问题。
  • 如何将jpg数据分片成500字节大小,以便通过NB通讯发送到服务器?



    •   img = sensor.snapshot()
      
          for i, detection_list in enumerate(net.predict([img], callback=fomo_post_process)):
              if i == 0: continue  # background class
              if len(detection_list) == 0: continue  # no detections for this class?
      
              print("This is %s " % labels[i])
             # for x, y, w, h, score in detection_list:
             #     center_x = math.floor(x + (w / 2))
             #     center_y = math.floor(y + (h / 2))
             #     print(f"x {center_x}\ty {center_y}\tscore {score}")
             #     img.draw_circle((center_x, center_y, 12), color=colors[i])
      
             #print(clock.fps(), "fps", end="\n\n")
             # uart3.write("This is %s " % labels[i])
      
              img_compressed = img.compress(quality=(50))
              size = ustruct.pack("<L", len(img_compressed))
      
              for xxx in range(0,len(img_compressed),500):
                 
                  uart3.write(size)
                  uart3.write(b';')
                  uart3.write(img_compressed)
                  time.sleep(1)