导航

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

    42ti

    @42ti

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

    42ti 关注

    42ti 发布的帖子

    • RE: load_decriptor方法一直报错

      @kidswong999 谢谢,不过这个函数中文文档和IDE的自动代码补全都是错误的这个,你们可以把它改过来

      发布在 OpenMV Cam
      4
      42ti
    • RE: load_decriptor方法一直报错

      @42ti 一直报错 'module' object has no attribute 'load_decriptor' 但是用help(image)看这个方法是有的。固件库也已经更新到最新了

      发布在 OpenMV Cam
      4
      42ti
    • load_decriptor方法一直报错
      import sensor, time, image, pyb
      
      sensor.reset() # Initialize the camera sensor.
      sensor.set_pixformat(sensor.GRAYSCALE) # or sensor.GRAYSCALE
      sensor.set_framesize(sensor.B128X128) # or sensor.QQVGA (or others)
      sensor.set_windowing((92,112))
      sensor.skip_frames(10) # Let new settings take affect.
      sensor.skip_frames(time = 500) #等待5s
      # 拍摄当前人脸。
      img = sensor.snapshot()
      
      d0 = img.find_lbp((0, 0, img.width(), img.height()))
      
      
      d1 = image.load_decriptor("cs/c1.orb")
      
      dist= image.match_descriptor(d0, d1)
      print(dist)
      
      
      发布在 OpenMV Cam
      4
      42ti