导航

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

    dpt5

    @dpt5

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

    dpt5 关注

    dpt5 发布的帖子

    • 使用TOF测距拓展板

      我只是使用测距拓展板,看看TOF的准确度怎么样,为什么老是报这个错误,连接是没有问题的,先是有数据然后就报错
      0_1627713550633_194c3ae2-db9f-4d88-ba70-971ac6665cd1-image.png

      from machine import I2C
      from vl53l1x import VL53L1X
      import time
      
      i2c = I2C(2)
      distance = VL53L1X(i2c)
      
      while True:
          print("range: mm ", distance.read())
          time.sleep_ms(50)
      
      
      发布在 OpenMV Cam
      D
      dpt5
    • PLUS使用较高像素找线

      我的是OPENMV4PLUS,想寻电线,使用VGA像素,为什么找出的是线段这个样子,哪里做的不对

      def Line_Find_Fit(img):
          for l in img.find_lines(roi=Middle_Roi, threshold=800, y_stride=20, theta_margin=10, rho_margin=10):
              if ((l.theta() >= min_degree) and (l.theta() <= max_degree)):#and (l.length() >= 20)
                  img.draw_line(l.line(), color = (255, 0, 0))
                  best_line = l
                  PoleAndLine.Line_flag = 1
                  PoleAndLine.Line_y = (best_line.y1() + best_line.y2())/2
                  print(PoleAndLine.Line_y)
                  return best_line
              else:
                  PoleAndLine.Line_flag = 0
      
      

      0_1627369233127_Snipaste_2021-07-27_14-53-32.jpg

      发布在 OpenMV Cam
      D
      dpt5
    • RE: openmv4PLUS的图像为什么这么偏暗偏绿

      @kidswong999 可能好一点了,但还是感觉偏暗
      1_1626347152356_Snipaste_2021-07-15_19-03-36.jpg 0_1626347152356_Snipaste_2021-07-15_19-01-48.jpg
      下面是用手机拍的
      0_1626347619912_da083a13-415a-4cc5-b072-36d8639d8f36-image.png

      发布在 OpenMV Cam
      D
      dpt5
    • RE: openmv4PLUS的图像为什么这么偏暗偏绿

      @kidswong999 是硬件的问题吗

      发布在 OpenMV Cam
      D
      dpt5
    • RE: openmv4PLUS的图像为什么这么偏暗偏绿

      @kidswong999
      0_1626268321491_6668085f-9eba-49fe-b831-5a15b797faa0-image.png

      发布在 OpenMV Cam
      D
      dpt5
    • RE: openmv4PLUS的图像为什么这么偏暗偏绿

      @kidswong999 跑例程就是这样的效果
      ![0_1626268143648_20f1c5b4-917b-4328-8232-f8e2bfb0ca7d-image.png](正在上传 99%)

      # Hello World Example
      #
      # Welcome to the OpenMV IDE! Click on the green run arrow button below to run the script!
      
      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.
      
      while(True):
          clock.tick()                    # Update the FPS clock.
          img = sensor.snapshot()         # Take a picture and return the image.
          print(clock.fps())              # Note: OpenMV Cam runs about half as fast when connected
                     
      
      发布在 OpenMV Cam
      D
      dpt5
    • openmv4PLUS的图像为什么这么偏暗偏绿

      感觉过头了,白天好一些,色块经常都不灵,openmv4就感觉还正常
      0_1626265959413_Snipaste_2021-07-14_20-24-42.jpg
      0_1626265976728_4620b597-7384-408a-8be8-03b8bf9769d2-image.png
      0_1626265989498_df5fcaf1-4232-44f8-83f4-4234ffb10e7e-image.png
      实际灯挺亮的
      下面是openmv4的图像
      0_1626266032205_544743dd-f1dc-48c4-a131-909fbb39eadd-image.png
      代码里面白平衡,曝光什么的也开了,没什么效果
      plus就这样的吗,还是我哪里做的不对

      发布在 OpenMV Cam
      D
      dpt5