导航

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

    高级搜索

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

    怎么把输出的xyhm,调用出来做一个判断呢?

    import sensor, image, time
    
    sensor.reset()
    sensor.set_pixformat(sensor.RGB565)
    sensor.set_framesize(sensor.QQVGA)
    sensor.skip_frames(time = 2000)
    clock = time.clock()
    while(True):
        clock.tick()
        img = sensor.snapshot()
        for r in img.find_rects(threshold = 10000):
            img.draw_rectangle(r.rect(), color = (255, 0, 0))
            for p in r.corners(): img.draw_circle(p[0], p[1], 5, color = (0, 255, 0))
            print(r)
    

    H
    发布在 OpenMV Cam

    识别二维码时,一离较远就识别不到,是光线问题吗?请问程序上有没有一些可以优化的地方

    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...
    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)
    
    

    F
    发布在 OpenMV Cam

    怎么修改这个二维码的程序使二维码的内容在LCD中显示(纯小白,请大佬揉碎了喂嘴里)

    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...
    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)
    
    

    Z
    发布在 OpenMV Cam

    关于底层代码问题,如何看实现方法的动作代码

    我想知道img,sensor,time这三个包的底层函数中方法,就是关于包里面的方法如何实现的底层代码,我应该在哪里找啊??请赐教!!!

    H
    发布在 OpenMV Cam

    openmv引脚怎么读取高低电平?

    @kidswong999 代码怎样的?
    import sensor, image, time
    from pyb import Pin
    p_out = Pin('P7', Pin.OUT_PP)
    p_out.value(1) 这样跟arduino板子连起来,在arduino板子那个引脚处没有接受到高电平信号

    1
    发布在 OpenMV Cam

    这个识别外形的程序有什么问题吗

    import sensor, image, time

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

    clock = time.clock()

    Auto=(0,20,100,100)

    while(True):
    clock.tick()
    img = sensor.snapshot()

    for c in img.find_circles(threshold = 1600, x_margin = 10 , y_margin = 10, r_margin = 5,  roi=Auto):
        img.draw_circle(c.x(), c.y(), c.r(), color = (255, 0, 0))
        print(c)
    
    
    print("FPS %f" % clock.fps())

    1
    发布在 OpenMV Cam

    为什么img没有定义

    import sensor,image,time,pyb,ujson
    import math
    from pyb import UART
    from pyb import LED
    sensor.reset()
    sensor.set_pixformat(sensor.RGB565)
    sensor.set_framesize(sensor.QQVGA)
    sensor.skip_frames(time = 2000)
    sensor.set_auto_gain(False)
    sensor.set_auto_whitebal(False)
    clock = time.clock()
    red_threshold = (0,100, 0,127, 0,127)
    while(True):
    img.binary([red_threshold])
    img.dilate(2)

    请在这里粘贴代码
    

    G
    发布在 OpenMV Cam

    在模板匹配里怎么设置roi大小啊?

    import time, sensor, image
    from image import SEARCH_EX, SEARCH_DS
    
    
    sensor.reset()
    
    
    sensor.set_contrast(1)
    sensor.set_gainceiling(16)
    
    sensor.set_framesize(sensor.QQVGA)
    
    sensor.set_pixformat(sensor.GRAYSCALE)
    
    
    template = image.Image("/11.pgm")
    
    clock = time.clock()
    
    while (True):
        clock.tick()
        img = sensor.snapshot()
    
    
    
        r = img.find_template(template, 0.70, step=4, search=SEARCH_EX) #, roi=(10, 0, 60, 60))
        if r:
            img.draw_rectangle(r)
    
        print(clock.fps())
    
    

    C
    发布在 OpenMV Cam

    为什么我这一段代码显示的十字总在左上角?

    import sensor, image
    sensor.reset()
    sensor.set_pixformat(sensor.RGB565)
    sensor.set_framesize(sensor.QQVGA) 
    sensor.skip_frames(30)
    sensor.set_auto_gain(False)
    while(True):  
       img = sensor.snapshot()  
       img.lens_corr(1.8)  
       blobs = img.find_qrcodes()   
       if blobs:             
         for b in blobs:                          
          img.draw_rectangle(b[0:4])                          
          img.draw_cross(b[5], b[6],size=5,color=(0,0,0))            
          sensor.snapshot().save("example.jpg")                   
         for code in img.find_qrcodes():             
          print(code)
    
    

    Z
    发布在 OpenMV Cam

    openmv的库函数怎么在电脑上打开查看?比如image,sensor库等

    https://forum.singtown.com/topic/69/sensor-模块的源码在哪里-怎样查看-谢谢/3

    发布在 OpenMV Cam
    • 1
    • 2
    • 26
    • 27
    • 28
    • 29
    • 30
    • 49
    • 50
    • 28 / 50