导航

    • 登录
    • 搜索
    • 版块
    • 产品
    • 教程
    • 论坛
    • 淘宝
    1. 主页
    2. lqh4
    L
    • 举报资料
    • 资料
    • 关注
    • 粉丝
    • 屏蔽
    • 帖子
    • 楼层
    • 最佳
    • 群组

    lqh4

    @lqh4

    0
    声望
    9
    楼层
    609
    资料浏览
    0
    粉丝
    0
    关注
    注册时间 最后登录

    lqh4 关注

    lqh4 发布的帖子

    • RE: 串口发送数据无法发送数据

      问题应该不在于我是不是使用了 if name

      发布在 OpenMV Cam
      L
      lqh4
    • 串口发送数据无法发送数据
      import sensor
      import time
      import image
      import json
      from pyb import UART
      
      def Init_Cam():
          sensor.reset()
          sensor.set_pixformat(sensor.RGB565) # grayscale is faster (160x120 max on OpenMV-M7)
          sensor.set_framesize(sensor.QQVGA)
          sensor.skip_frames(time = 2000)
          global clock
          clock = time.clock()
      
      def Init_Uart(Baud):
          global uart
          uart = UART(3, Baud)
      
      def Init_Func():
          Init_Cam()
          Init_Uart(19200)
      
      def main():
          Init_Func()
          while(True):
              clock.tick()
              img = sensor.snapshot()
              # 下面的`threshold`应设置为足够高的值,以滤除在图像中检测到的具有
              # 低边缘幅度的噪声矩形。最适用与背景形成鲜明对比的矩形。
              for r in img.find_rects(threshold = 10000):
                  img.draw_rectangle(r.rect(), color = (255, 0, 0))
                  for p in r.corners(): img.draw_circle(p[0], p[1], 5, color = (0, 255, 0))
                  print(r)
                  #uart.writechar(67)#Send a char
              uart.write("1234\n2345\n3456\nabcd\n")#Test Send to Uart Data
              uart.write(r+'\n')
              #print("FPS %f" % clock.fps())
      
      if __name__ == "__main__":
          main()
      

      请问下为什么我的这个程序发送串口数据,通过串口助手无法看到串口数据

      发布在 OpenMV Cam
      L
      lqh4
    • RE: openmv 串口发送没有问题,但是串口接收不到数据

      请问下,OpenMV的串口初始化不是3吗?

      发布在 OpenMV Cam
      L
      lqh4
    • 如何查看当前IDE的MircoPython版本

      如何查看当前IDE的MircoPython版本

      发布在 OpenMV Cam
      L
      lqh4
    • RE: 为什么openmv连接电脑会有U盘跳出来,但是却连不上openmvide呢?

      这个是个串口驱动的,插入设备的时候看不到串口驱动名吗?

      发布在 OpenMV Cam
      L
      lqh4
    • RE: 为什么openmv连接电脑会有U盘跳出来,但是却连不上openmvide呢?

      你有安装这个的驱动吗?

      发布在 OpenMV Cam
      L
      lqh4
    • openMV的一些路径问题

      import sensor 这个sensor的源路径在什么地方?

      发布在 OpenMV Cam
      L
      lqh4
    • 请问OpenMV IDE怎么设置代码自动补齐功能。

      1.请问OpenMV IDE怎么设置代码自动补齐功能。
      2.使用其他sensor模块的路径在哪?

      发布在 OpenMV Cam
      L
      lqh4