导航

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

    e3o1

    @e3o1

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

    e3o1 关注

    e3o1 发布的帖子

    • 想把图片裁剪了,怎么做呀,像图上的,把白色部分裁剪出来

      0_1563652722505_[8QBE(BD]M{P$SOOMADSVDW.png

      发布在 OpenMV Cam
      E
      e3o1
    • RE: lepton实验失败,一直超时,不知道是什么原因

      @kidswong999 已经显示了lepton的信息,而且完成了辐射测量配置0_1561383903873_9EEJKDng

      发布在 OpenMV Cam
      E
      e3o1
    • RE: lepton实验失败,一直超时,不知道是什么原因

      @kidswong999 操作没问题吖,就是把摄像头取下来,lepton插上去,把这个示例代码放进去,就一直这样。

      发布在 OpenMV Cam
      E
      e3o1
    • lepton实验失败,一直超时,不知道是什么原因

      0_15613705.png

      发布在 OpenMV Cam
      E
      e3o1
    • RE: USB-VCP示例,出错。用USB-VCP示例代码,电脑运行出错。求大佬帮忙。

      @kidswong999 这个代码是openmv的示例代码,分两部分,一部分要用openmv脱机运行,另一部分要用电脑端运行。现在我用他的示例代码运行,openmv通过虚拟串口发送图片给电脑,电脑用的pycharm运行代码,但是一直有问题,我用debug调试发现一直卡在接收数据那一句函数,不知道该怎么办😭

      发布在 OpenMV Cam
      E
      e3o1
    • RE: USB-VCP示例,出错。用USB-VCP示例代码,电脑运行出错。求大佬帮忙。

      @kidswong999

      不行吖,openmv的IDE没有这个模块,😭
      0_1560846325592_M%B}ZD)PKBMH7PVGRP$DGJH.png

      发布在 OpenMV Cam
      E
      e3o1
    • USB-VCP示例,出错。用USB-VCP示例代码,电脑运行出错。求大佬帮忙。

      0_1560772108307_2V~1Q%[@P]KLH_YT7D0L2VV.png

      # USB VCP example.
      # This example shows how to use the USB VCP class to send an image to PC on demand.
      #
      # WARNING:
      # This script should NOT be run from the IDE or command line, it should be saved as main.py
      # Note the following commented script shows how to receive the image from the host side.
      #
      # #!/usr/bin/env python2.7
      # import sys, serial, struct
      # port = '/dev/ttyACM0'
      # sp = serial.Serial(port, baudrate=115200, bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE,
      #             xonxoff=False, rtscts=False, stopbits=serial.STOPBITS_ONE, timeout=None, dsrdtr=True)
      # sp.write("snap")
      # sp.flush()
      # size = struct.unpack('<L', sp.read(4))[0]
      # img = sp.read(size)
      # sp.close()
      # 
      # with open("img.jpg", "w") as f:
      #     f.write(img)
      
      import sensor, image, time, ustruct
      from pyb import USB_VCP
      
      usb = USB_VCP()
      sensor.reset()                      # Reset and initialize the sensor.
      sensor.set_pixformat(sensor.RGB565) # Set pixel format to RGB565 (or GRAYSCALE)
      sensor.set_framesize(sensor.QVGA)   # Set frame size to QVGA (320x240)
      sensor.skip_frames(time = 2000)     # Wait for settings take effect.
      
      while(True):
          cmd = usb.recv(4, timeout=5000)
          if (cmd == b'snap'):
              img = sensor.snapshot().compress()
              usb.send(ustruct.pack("<L", img.size()))
              usb.send(img)
      
      
      发布在 OpenMV Cam
      E
      e3o1