导航

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

    高级搜索

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

    如何c语言编译开发固件

    OpenMV 目前并没有resize的功能,你可以在sensor里直接设置图像大小

    发布在 OpenMV Cam

    请问,sensor的设置有没有什么要求

    你不是在所有的sensor设置完之后添加的,你是在中间添加的。

    发布在 OpenMV Cam

    新版固件中LCD怎么显示QVGA的中心图像?

    可以添加SCALE_ASPECT_IGNORE

    import sensor
    import display
    import image
    
    sensor.reset()
    sensor.set_pixformat(sensor.RGB565)
    sensor.set_framesize(sensor.QVGA)
    lcd = display.SPIDisplay()
    
    while True:
        lcd.write(sensor.snapshot(), hint=image.SCALE_ASPECT_IGNORE)
    

    发布在 OpenMV Cam

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

    硬件是什么?具体代码是什么?固件版本是什么?sensor模组是什么?

    发布在 OpenMV Cam

    sensor.set_lens_correction这个函数的源代码具体在哪呢?

    这个是调用sensor芯片的isp,对于ov7725:
    https://github.com/openmv/openmv/blob/58e89f124ad327ffbd7bf12f0550e913f50646b2/src/omv/sensors/ov7725.c#L583

    发布在 OpenMV Cam

    想获取分辨率高的图片 但是报错怎么解决?

    0_1689837404197_图片传输.png

    sensor.set_pixformat(sensor.JPEG)
    #FHD 1920x1080 (only for the OV5640 sensor)
    sensor.set_framesize(sensor.FHD)

    S
    发布在 OpenMV Cam

    怎么讲sd卡里的图片显示在LCD上呢?

    我运行下面的代码很正常,我看到你的尺寸可能不对,应该是QQVGA2保存成bmp

    import sensor, image, lcd
    
    sensor.reset() # Initialize the camera sensor.
    sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE
    sensor.set_framesize(sensor.QQVGA2) # Special 128x160 framesize for LCD Shield.
    lcd.init() # Initialize the lcd screen.
    
    sensor.snapshot().save("test.bmp")
    img = image.Image("test.bmp",copy_to_fb=True)
    lcd.display(img) # Take a picture and display the image.
    

    发布在 OpenMV Cam

    调用difference函数问题

    import sensor, image, time
    
    sensor.reset()                      # Reset and initialize the sensor.
    sensor.set_pixformat(sensor.GRAYSCALE) # Set pixel format to RGB565 (or GRAYSCALE)
    sensor.set_framesize(sensor.QQVGA)   # Set frame size to QVGA (320x240)
    sensor.skip_frames(time = 2000)     # Wait for settings take effect.
    sensor.set_auto_whitebal(False)
    clock = time.clock()                # Create a clock object to track the FPS.
    
    clock.tick()# Update the FPS clock.
    img = sensor.snapshot().mean(1)
    template = image.Image("/template.bmp")
    sensor.skip_frames(time = 2000)
    diff = img.difference(template)
    

    在RGB565格式时是可以用的

    3
    发布在 OpenMV Cam

    如何实现上电自动录制视频并保存

    
    import sensor
    import time
    import mjpeg
    import machine
    
    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.
    
    led = machine.LED("LED_RED")
    
    while True:
        
        led.on()
        m = mjpeg.Mjpeg("example.mjpeg")
        
        clock = time.clock()  # Create a clock object to track the FPS.
        for i in range(5*60*30):
            clock.tick()
            m.add_frame(sensor.snapshot())
            print(clock.fps())
        
        m.close(clock.fps())
        led.off()
        
        print("saved")
    
    

    发布在 OpenMV Cam

    怎么能减小灰度图与彩图之间的切换频率?

    https://docs.singtown.com/micropython/zh/latest/openmvcam/library/omv.image.html#image.to_grayscale

    不更改sensor,直接把彩色的图片转为灰度图。

    发布在 OpenMV Cam
    • 1
    • 2
    • 11
    • 12
    • 13
    • 14
    • 15
    • 49
    • 50
    • 13 / 50