导航

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

    lf4z

    @lf4z

    开心每一天

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

    lf4z 关注

    lf4z 发布的帖子

    • RE: OPENMV的SD卡可以保持运行程序,但是录制视频,GIF都是0K,一般是什么问题呢?

      @kidswong999 录制视频也是0k,不能打开播放

      发布在 OpenMV Cam
      lf4z
    • RE: OPENMV的SD卡可以保持运行程序,但是录制视频,GIF都是0K,一般是什么问题呢?

      @kidswong999
      复制错了:
      import sensor, image, time, gif, pyb

      RED_LED_PIN = 1
      BLUE_LED_PIN = 3

      sensor.reset() # Initialize the camera sensor.
      sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
      sensor.set_framesize(sensor.QQVGA) # or sensor.QVGA (or others)
      sensor.skip_frames(time = 2000) # Let new settings take affect.
      clock = time.clock() # Tracks FPS.

      pyb.LED(RED_LED_PIN).on()
      sensor.skip_frames(time = 2000) # Give the user time to get ready.

      pyb.LED(RED_LED_PIN).off()
      pyb.LED(BLUE_LED_PIN).on()

      g = gif.Gif("example.gif", loop=True)

      print("You're on camera!")
      for i in range(100):
      clock.tick()
      # clock.avg() returns the milliseconds between frames - gif delay is in
      g.add_frame(sensor.snapshot(), delay=int(clock.avg()/10)) # centiseconds.
      print(clock.fps())

      g.close()
      pyb.LED(BLUE_LED_PIN).off()
      print("Done! Reset the camera to see the saved recording.")

      发布在 OpenMV Cam
      lf4z
    • RE: OPENMV的SD卡可以保持运行程序,但是录制视频,GIF都是0K,一般是什么问题呢?

      @kidswong999
      IDE中的:example/video_recording/gif.py
      源码:
      import sensor, image, time

      sensor.reset()
      sensor.set_pixformat(sensor.RGB565)
      sensor.set_framesize(sensor.QVGA)
      sensor.skip_frames(time = 2000)
      clock = time.clock()

      while(True):
      clock.tick()
      img = sensor.snapshot()
      print(clock.fps())

      发布在 OpenMV Cam
      lf4z
    • RE: OPENMV的SD卡可以保持运行程序,但是录制视频,GIF都是0K,一般是什么问题呢?

      @kidswong999 使用的是官方例程

      发布在 OpenMV Cam
      lf4z
    • OPENMV的SD卡可以保持运行程序,但是录制视频,GIF都是0K,一般是什么问题呢?

      使用的官方例程,可以创建录制视频或GIF,都是创建的文件,但是文件都是0K的。

      发布在 OpenMV Cam
      lf4z
    • OpenMV使用DFU更新固件后,usb插在电脑上,蓝灯闪烁,电脑没有弹出,新设备?有大佬知道怎么回事吗?

      OpenMV使用DFU更新固件后,usb插在电脑上,蓝灯闪烁,电脑没有弹出,新设备?有大佬知道怎么回事吗?

      发布在 OpenMV Cam
      lf4z
    • RE: 怎么将GIT上的源码编译成openmv2的配置(openmv3已经在Ubuntu下编译成功了[不使用qt工具])

      @kidswong999 谢谢提醒,已经发新帖了。

      发布在 OpenMV Cam
      lf4z
    • openmv内核代码中使用的printf()打印的信息可以在哪个串口上查看呢?

      内核代码中很多printf(),还有类似的fs_printf()都是什么在哪可以查看呢?

      发布在 OpenMV Cam
      lf4z