导航

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

    高级搜索

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

    关于定时器中断函数内产生MemoryError的问题

    import image, math,pyb, sensor, struct, time
    from pyb import UART
    
    global interrupt7_land
    interrupt7_land = 0
    
    def timer_interrupt2(timer):
        if (work_mode == 0x00) :
            pyb.LED(1).toggle()
        else :
            pyb.LED(1).off()
            #print(2)
            if (work_mode == 0x41):
                #print(1)
                tim7 = pyb.Timer(7 ,freq = 1)
                tim7.callback(timer_interrupt7)
    
    def timer_interrupt7(timer):
        global interrupt7_land
        interrupt7_land = 1
        print("ZPJ_COOL")
    
    tim2 = pyb.Timer(2 ,freq = 300)
    tim2.callback(timer_interrupt2)
    work_mode = 0x41
    

    Z
    发布在 OpenMV Cam

    识别绿色和蓝色怎么让输出的两个不同的blob.cx()分开输出??

    import sensor, image, time

    thresholds = [(30, 100, 15, 127, 15, 127),
    (8, 23, -27, -5, 2, 19),
    (0, 27, -10, 17, -20, 3)]

    sensor.reset()
    sensor.set_pixformat(sensor.RGB565)
    sensor.set_framesize(sensor.QVGA)
    sensor.skip_frames(time = 2000)
    sensor.set_auto_gain(False)
    sensor.set_auto_whitebal(False)
    clock = time.clock()

    while(True):
    clock.tick()

    img = sensor.snapshot()
    img.lens_corr(1.8)

    for blob in img.find_blobs(thresholds, pixels_threshold=200, area_threshold=200):
    img.draw_rectangle(blob.rect())
    img.draw_cross(blob.cx(),blob.cy())

        print(blob.cx())

    T
    发布在 OpenMV Cam

    同时读取图片和发送uart串口直接报错了

    import sensor, image, time, math
    from pyb import UART
    
    uart = UART(3, 9600, timeout_char=1000)
    
    sensor.reset()
    sensor.set_vflip(True)
    sensor.set_hmirror(True)
    sensor.set_pixformat(sensor.RGB565)
    sensor.set_framesize(sensor.QQQVGA)
    sensor.skip_frames(time = 100)   
    clock = time.clock()           
    
    THRESHOLD = (3, 37, -22, 20, -40, 19)
    
    while(True):
        img = sensor.snapshot().binary([THRESHOLD]).dilate(5).erode(8)
        uart.write("KR-0,50,0;")
    

    0_1574513423246_c1ee4825-b9b4-4265-8e4f-be9724b60099-image.png

    5
    发布在 OpenMV Cam

    在VGA分辨率下的色块查找?

    使用的是什么OpenMV硬件?OpenMV4 还是OpenMV4 Plus?
    使用的是什么sensor?OV5640,OV7725,还是MT9V034?

    代码是什么?如果涉及代码,需要报错提示与全部代码文本,请注意不要贴代码图片

    发布在 OpenMV Cam

    特征点检测和模板匹配的区别,变化环境的特征识别该用哪一种?

    能不能实现在特征检测的同时进行模板匹配?
    我看这两种例程在sensor传感器设置上不一样,VGA和QQVGA窗口大小不同,我想实现两种例程同时调用,请大神指教

    1
    发布在 OpenMV Cam

    image.save()函数保存的图片,需要将Openmv的USB插拔一次才能在电脑上查看?

    我每次保存一张新图片,在电脑上直接打开SD卡是看不到保存的图片文件的,只有重新拔下来

    import sensor,image,time
    
    sensor.reset()                  
    sensor.set_pixformat(sensor.RGB565)     
    sensor.set_framesize(sensor.QVGA)           
    sensor.set_auto_gain(False)      
    sensor.set_auto_whitebal(False)  
    sensor.skip_frames(20)        
    
    img1 = sensor.snapshot()
    img1.save("1.bmp")
    
    

    V
    发布在 OpenMV Cam

    请问用openmv3识别二维码摄像头不是自动对焦的吗?我这里识别的二维码为什么这么模糊?

    0_1616158994496_微信图片_20210319205827.jpg

    import sensor, image
    
    sensor.reset()
    sensor.set_pixformat(sensor.RGB565)
    sensor.set_framesize(sensor.QQVGA) # can be QVGA on M7...
    sensor.skip_frames(30)
    sensor.set_auto_gain(False) # must turn this off to prevent image washout...
    sensor.set_auto_whitebal(False)
    
    while(True):
    
        img = sensor.snapshot()
        img.lens_corr(1.8) # strength of 1.8 is good for the 2.8mm lens.
        for code in img.find_qrcodes():
            print(code)
    
    

    G
    发布在 OpenMV Cam

    新买的openmv4plus在rpg565下拍摄的图片发绿发暗

    @kidswong999 在 新买的openmv4plus在rpg565下拍摄的图片发绿发暗 中说:

    sensor

    这暗的过头了,而且他发绿啊😰 ,能有能正常拍摄的摄像头套件来替换么,还是只能进行物理补光

    G
    发布在 OpenMV Cam

    急急急Wifi 传图不支持高清图片吗?不支持的话,这个sensor.WQXGA2: 2592x1944 格式是咋用的

    @kidswong999 在 急急急Wifi 传图不支持高清图片吗?不支持的话,这个sensor.WQXGA2: 2592x1944 格式是咋用的 中说:

    sensor.set_pixformat(sensor.JPEG)
    sensor.set_framesize(sensor.WQXGA2)

    0_1690288535343_04248934-ace9-4afd-9638-a751a1d0c305-image.png
    还是不行,内存不够吧

    S
    发布在 OpenMV Cam

    急急急Wifi 传图不支持高清图片吗?不支持的话,这个sensor.WQXGA2: 2592x1944 格式是咋用的

    @kidswong999 在 急急急Wifi 传图不支持高清图片吗?不支持的话,这个sensor.WQXGA2: 2592x1944 格式是咋用的 中说:

    sensor.set_pixformat(sensor.JPEG)
    sensor.set_framesize(sensor.WQXGA2)

    使用Wifi传输的时候 就会出现这个问题,请问该怎样解决

    S
    发布在 OpenMV Cam
    • 1
    • 2
    • 37
    • 38
    • 39
    • 40
    • 41
    • 49
    • 50
    • 39 / 50