导航

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

    m13t 发布的帖子

    • RE: uart = UART(3, 9600,timeout=1000)这个意思是一秒发一次串口数据?为啥它是一直在发?

      超时是什么意思?

      发布在 OpenMV Cam
      M
      m13t
    • uart = UART(3, 9600,timeout=1000)这个意思是一秒发一次串口数据?为啥它是一直在发?

      import time
      from pyb import UART

      UART 3, and baudrate.

      uart = UART(3, 9600,timeout=1000)

      while(True):
      uart.write("Hello World!\n")

      发布在 OpenMV Cam
      M
      m13t
    • 为什么有线图传显示屏显示的画面会这么卡?帧缓冲区的画面都很流畅
      # Edge Impulse - OpenMV Image Classification Example
      
      import sensor, image, time, os, tf,tv
      
      sensor.reset()                         # Reset and initialize the sensor.
      sensor.set_pixformat(sensor.RGB565)    # Set pixel format to RGB565 (or GRAYSCALE)
      sensor.set_framesize(sensor.SIF)      # Set frame size to QVGA (320x240)
      #sensor.set_windowing((240, 240))       # Set 240x240 window.
      #sensor.skip_frames(time=2000)          # Let the camera adjust.
      tv.init(triple_buffer=False) # Initialize the tv.
      tv.channel(8) # For wireless video transmitter shield
      net = "trained.tflite"
      labels = [line.rstrip('\n') for line in open("labels.txt")]
      
      clock = time.clock()
      while(True):
          clock.tick()
      
          img = sensor.snapshot()
      
          # default settings just do one detection... change them to search the image...
          for obj in tf.classify(net, img, min_scale=1.0, scale_mul=0.8, x_overlap=0.5, y_overlap=0.5):
              print("**********\nPredictions at [x=%d,y=%d,w=%d,h=%d]" % obj.rect())
              img.draw_rectangle(obj.rect())
              # This combines the labels and confidence values into a list of tuples
              predictions_list = list(zip(labels, obj.output()))
      
              for i in range(len(predictions_list)):
                  print("%s = %f" % (predictions_list[i][0], predictions_list[i][1]))
          tv.display(img)
          print(clock.fps(), "fps")
      
      发布在 OpenMV Cam
      M
      m13t
    • RE: 为什么有线图传显示屏相比实时帧缓冲区滞后这么多?

      就是有线图传显示屏显示的画面比帧缓冲区显示的画面慢几帧图像,主程序没写延时,就是程序比较多。例程里的程序主程序很简洁就不会滞后

      发布在 OpenMV Cam
      M
      m13t
    • 为什么有线图传显示屏相比实时帧缓冲区滞后这么多?

      为什么有线图传显示屏相比实时帧缓冲区滞后这么多?

      发布在 OpenMV Cam
      M
      m13t
    • RE: edge impulse训练神经网络进行分类,分类的标准是什么?是根据形状呢?颜色呢?还是什么?

      分成很多类的话效果也不好,甚至也没合在一起的好,该怎么弄呢

      发布在 OpenMV Cam
      M
      m13t
    • RE: edge impulse训练神经网络进行分类,分类的标准是什么?是根据形状呢?颜色呢?还是什么?

      @kidswong999 同一类训练的图片有很多不同的特征,训练的效果好吗

      发布在 OpenMV Cam
      M
      m13t
    • edge impulse训练神经网络进行分类,分类的标准是什么?是根据形状呢?颜色呢?还是什么?
      edge impulse训练神经网络进行分类,分类的标准是什么?是根据形状呢?颜色呢?还是什么?
      发布在 OpenMV Cam
      M
      m13t
    • RE: openmv能识别垃圾数量吗?

      @kidswong999 可以用特征点识别来识别数量吗

      发布在 OpenMV Cam
      M
      m13t
    • openmv能识别垃圾数量吗?

      openmv能识别垃圾数量吗?

      发布在 OpenMV Cam
      M
      m13t
    • RE: 定时器中断频率为小数要怎么实现?

      @kidswong999 在 定时器中断频率为小数要怎么实现? 中说:

      millis()

      millis()返回的是什么值?

      发布在 OpenMV Cam
      M
      m13t
    • 定时器中断中,主函数很多代码为什么会影响到回调函数

      定时器中断中,主函数很多代码为什么会影响到回调函数,回调函数里有计数大于某个值时清零,但主函数很多代码后不会回调函数的那个计数变量清零了是什么情况?

      发布在 OpenMV Cam
      M
      m13t
    • RE: 定时器中断频率不能为小数吗?还有我不能在回调函数计数吗?当计的数大于某个值时才执行其他功能

      主函数很多代码为什么会影响到回调函数,回调函数里有计数大于某个值时清零,但主函数很多代码后不会清理了是什么情况

      发布在 OpenMV Cam
      M
      m13t
    • RE: 定时器中断频率不能为小数吗?还有我不能在回调函数计数吗?当计的数大于某个值时才执行其他功能

      回调函数里能写很多代码吗

      发布在 OpenMV Cam
      M
      m13t
    • RE: 定时器中断频率为小数要怎么实现?

      我需要定时中断了控制串口发数据,需要定时久一点

      发布在 OpenMV Cam
      M
      m13t
    • 定时器中断频率为小数要怎么实现?

      Timer(4,freq=0.1)

      发布在 OpenMV Cam
      M
      m13t
    • RE: 定时器中断频率不能为小数吗?还有我不能在回调函数计数吗?当计的数大于某个值时才执行其他功能

      回调函数不能有内存申请的话,那我想用定时器中断该怎么办?

      发布在 OpenMV Cam
      M
      m13t
    • 定时器中断频率不能为小数吗?还有我不能在回调函数计数吗?当计的数大于某个值时才执行其他功能
      import time
      from pyb import Pin, Timer, LED
      
      blue_led  = LED(3)
      i=0
      # we will receive the timer object when being called
      # Note: functions that allocate memory are Not allowed in callbacks
      def tick(timer): 
          i=i+1
          if i>=5:
              blue_led.toggle()
          
      tim = Timer(2, freq=1)      # create a timer object using timer 2 - trigger at 1Hz
      tim.callback(tick)          # set the callback to our tick function
      
      while (True):
          time.sleep_ms(1000)
          print(i)
      
      发布在 OpenMV Cam
      M
      m13t
    • RE: 光源扩展板代码不能改成P0口作为定时器口吗

      不能用其他引脚吗

      发布在 OpenMV Cam
      M
      m13t
    • RE: 将代码保存在flash里,脱机运行,串口发送数据,用电源供电串口发不了数据,用usb线供电又很正常

      嗯嗯,知道了,确实是没共地

      发布在 OpenMV Cam
      M
      m13t