导航

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

    cif1 创建的帖子

    • C

      请问在灰度图中如何调用histogram.get_threhsold函数?
      OpenMV Cam • • cif1

      2
      0
      赞同
      2
      楼层
      1560
      浏览

      发现了一个拼写错误,get_threhsold改为get_threshold。会更改文档。 import sensor, image, time sensor.reset() sensor.set_pixformat(sensor.GRAYSCALE) # or RGB565. sensor.set_framesize(sensor.QVGA) sensor.skip_frames(time = 2000) sensor.set_auto_gain(False) # must be turned off for color tracking sensor.set_auto_whitebal(False) # must be turned off for color tracking clock = time.clock() while(True): clock.tick() img = sensor.snapshot() # Gets the grayscale histogram for the image into 8 bins. # Bins defaults to 256 and may be between 2 and 256. histogram = img.get_histogram(bins=8) print(histogram.get_threshold()) print(clock.fps())
    • C

      调试界面有黑点,清理感光元件没有用,是清理不到位还是摄像头内部沾了东西,该怎么办
      OpenMV Cam • • cif1

      2
      0
      赞同
      2
      楼层
      1643
      浏览

      可以联系卖家寄回维修。