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



    • sensor.reset() # Initialize the camera sensor.
          sensor.set_pixformat(sensor.GRAYSCALE) # use grayscale.
          sensor.set_framesize(sensor.QQQVGA) # use QVGA for speed. 80 * 60
          sensor.skip_frames(30) # Let new settings take affect.
          sensor.set_auto_gain(False) # must be turned off for color tracking
          sensor.set_auto_whitebal(False)
          clock = time.clock()
         
      while(True):
          m = mjpeg.Mjpeg("why.mjpeg")
          
          for i in range(700):
              clock.tick()
              m.add_frame(sensor.snapshot())
          m.close(clock.fps())
          img = sensor.snapshot()
          if Find_Line_ENABLE:
             All_Line = find_all_Line(img)
             Line_Info = line_info_process(All_Line)
             (Type,P0,P1,ang,flag) = RecognitionForm(ProcessImg(img),img)
      
             if Line_Info[0] == 0:
                  img.draw_circle(Line_Info[1],Line_Info[2], 3, color = 200, thickness = 2, fill = False)
             if All_Line:
                 for ii in All_Line:
                     img.draw_line(ii.line())
             green_led.on()
             red_led.on()
          pass
          if Find_ApriTag_ENABLE:
              (Type,P0,P1,ang) = Find_Apriltags(img)
              red_led.on()
      
          if Find_Circle_ENABLE:
              (Type,P0,P1,ang) = Find_Circle(img)
              green_led.on()
      
          print(Type,P0,P1,ang,flag)
          uart.write(UART_Send(Type,P0,P1,ang,flag))
      
      

      为什么录视频的同时不能出现框框的东西呢



    • 你要画完框之后,再m.add_frame(img)