导航

    • 登录
    • 搜索
    • 版块
    • 产品
    • 教程
    • 论坛
    • 淘宝
    1. 主页
    2. 搜索

    高级搜索

    搜索子版块
    保存设置 清除设置
    共 499 条结果匹配 "sensor",(耗时 0.25 秒)

    请问怎么在RGB565情况下用img.getregression()函数?

    设置sensor格式,get_regression的阈值参数改成lab就行了。

    发布在 OpenMV Cam

    OPENMV链接wifi扩展版后出来的图像,灰色图像呈现黑白两色,彩色图像发绿也看不清图

    sensor.set_contrast(1)
    sensor.set_brightness(1)
    sensor.set_saturation(1)
    sensor.set_gainceiling(16)
    

    这几行设置sensor的删掉。

    发布在 OpenMV Cam

    边缘检测的不兼容性问题

    最开始的sensor.__write_reg添加了之后,sensor的图像不能更新。
    最后一行sensor.snapshot()是什么用?

    我注释掉了这两个。

    以下的代码是可以的。

    import sensor, time, image
    
    sensor.reset()
    
    sensor.set_contrast(3)
    sensor.set_gainceiling(16)
    sensor.set_framesize(sensor.VGA)
    sensor.set_windowing((320, 240))
    sensor.set_pixformat(sensor.GRAYSCALE)
    
    sensor.skip_frames(time = 2000)
    sensor.set_auto_gain(False, value=100)
    
    FILE_NAME = "666"
    img = sensor.snapshot()
    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设置阈值
    
    clock = time.clock() # 追踪FPS
    
    #if (sensor.get_id() == sensor.OV7725):
        #sensor.__write_reg(0xAC, 0xDF)
        #sensor.__write_reg(0x8F, 0xFF)
    
    while(True):
        clock.tick() # Track elapsed milliseconds between snapshots().
        img = sensor.snapshot() # Take a picture and return the image.
    
        img.morph(kernel_size, kernel)
        img.binary(thresholds)
        img.erode(1, threshold = 2)
        print(clock.fps()) # Note: Your OpenMV Cam runs about half as fast while
        #time.sleep(100)
        
        kpts = img.find_keypoints(max_keypoints=150, threshold=10, scale_factor=1.2)
        if (kpts == None):
            raise(Exception("Couldn't find any keypoints!"))
        
        image.save_descriptor(kpts, "/%s.orb"%(FILE_NAME))
        
        img.draw_keypoints(kpts)
    

    发布在 OpenMV Cam

    请问求出来的这个K是只适用于这个程序,还是适用于这个摄像头的所有与Tag有关程序?

    sensor的窗口大小变了,或者镜头变了,就不一样。

    发布在 OpenMV Cam

    4路pwm为啥会和像素格式有冲突?

    pwm用的中断。
    sensor也用到了中断,可能是冲突了。

    发布在 OpenMV Cam

    openmv摄像头锁帧

    具体是什么程序,什么硬件,什么sensor,什么固件?

    发布在 OpenMV Cam

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

    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

    发布在 OpenMV Cam

    sensor 模块的源码在哪里?怎样查看,谢谢!

    新手请教 sensor 模块的源码在哪里?怎样查看,谢谢!

    W
    发布在 OpenMV Cam

    摄像头传输到电脑的图像有时候偏绿

    你的程序有问题,导致sensor没设置好,所以会偏绿

    发布在 OpenMV Cam

    拍的图片不对,内容有错位现象

    @4uva 硬件是什么?固件版本是什么?sensor模组是什么?

    发布在 OpenMV Cam
    • 1
    • 2
    • 7
    • 8
    • 9
    • 10
    • 11
    • 49
    • 50
    • 9 / 50