导航

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

    x6sp 创建的帖子

    • X

      获取特征点的中心坐标报错
      OpenMV Cam • • x6sp

      2
      0
      赞同
      2
      楼层
      1249
      浏览

      https://book.openmv.cc/example/09-Feature-Detection/keypoints.html 看这个程序。你的代码都不对。
    • X

      对于某一张已保存好的边缘图像,如何提取该边缘图像的特征点,以及如何得知特征点的坐标呢
      OpenMV Cam • • x6sp

      2
      0
      赞同
      2
      楼层
      1513
      浏览

      读取图像:https://book.openmv.cc/example/03-Drawing/copy2fb.html 计算特征:https://book.openmv.cc/example/09-Feature-Detection/keypoints.html
    • X

      请问对一张图片边缘检测完后,如何保存获得的边缘图像?
      OpenMV Cam • • x6sp

      3
      0
      赞同
      3
      楼层
      1588
      浏览

      import sensor, image, time # 仍然需要初始化 sensor sensor.reset() # 设置 sensor sensor.set_contrast(1) sensor.set_gainceiling(16) # 设置sensor的像素格式 sensor.set_framesize(sensor.QQVGA) sensor.set_pixformat(sensor.GRAYSCALE) kernel_size = 1 # kernel width = (size*2)+1, kernel height = (size*2)+1 kernel = [-1, -1, -1,\ -1, +8, -1,\ -1, -1, -1] thresholds = [(100, 255)] # grayscale thresholds设置阈值 # 导入 image img = image.Image("/example.bmp", copy_to_fb=True) img.morph(kernel_size, kernel) img.binary(thresholds) img.erode(1, threshold = 2) img.save('binary.bmp') # Flush FB sensor.flush() # Add a small delay to allow the IDE to read the flushed image. # 添加一个小的延迟,以允许IDE读取刷新后的图像 time.sleep_ms(100) 参考代码: https://book.openmv.cc/example/03-Drawing/copy2fb.html https://book.openmv.cc/example/04-Image-Filters/edge-detection.html
    • X

      如何保存检测到的边缘
      OpenMV Cam • • x6sp

      2
      0
      赞同
      2
      楼层
      1200
      浏览

      img.save('1.jpg')