导航

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

    gtao

    @gtao

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

    gtao 关注

    gtao 发布的帖子

    • 如何快速获取整幅图像像素值,生成矩阵?

      需要对整幅图像做运算操作,一个一个点获取太慢了,如何一下把整幅图变成矩阵呢?

      回复: OpenMV图像处理的问题(如何调用像素点)

      发布在 OpenMV Cam
      G
      gtao
    • 为什么手册里有的函数,实际用的时候说没有

      为什么手册里有的函数,实际用的时候说没有,例如这个imagewriter

      import sensor, image, time

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

      clock = time.clock()
      imgnew=image.Image(160,480,sensor.RGB565,copy_to_fb=True)

      img = sensor.snapshot()#copy_to_fb=imgnew)
      ddimg=img.copy(roi=(0,0,50,50))

      imgnew.draw_image(ddimg,5*i,20)

      img.ImageWriter('uuu')
      0_1589881725967_432.png 0_1589881731219_321321.png

      发布在 OpenMV Cam
      G
      gtao
    • RE: 想要把多个帧的同一个区域截取出来,拼到一张图上怎么做?

      @kidswong999 物体在架子上旋转,需要拍物体旋转一周的图像,拼接成一张图,再进行后续操作

      发布在 OpenMV Cam
      G
      gtao
    • 想要把多个帧的同一个区域截取出来,拼到一张图上怎么做?

      1、查到了image构造函数可以生成一个空白的,自定义像素尺寸的图像(这张图当作底版)
      img1=image.Image(500,500,sensor.RGB565, copy_to_fb=True)

      2、查到了draw_image函数,可以把一幅图画到另一图(底版图)的相应位置,用mask来遮罩只剩下想要的区域

      实践了下,出问题了,以下是代码

      import sensor, image, time

      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.
      clock = time.clock() # Create a clock object to track the FPS.

      img_bottom=image.Image(500,500,sensor.RGB565, copy_to_fb=True)

      imgsensor = sensor.snapshot() # Take a picture and return the image.
      img_bottom.draw_image(imgsensor,(2,2))

      0_1588750950366_4e7264c9-7008-465e-90ed-be068581b649-image.png

      Image is not mutable!
      怎么回事?求帮助

      发布在 OpenMV Cam
      G
      gtao