超时是什么意思?
M
m13t
@m13t
0
声望
30
楼层
1403
资料浏览
0
粉丝
0
关注
m13t 发布的帖子
-
uart = UART(3, 9600,timeout=1000)这个意思是一秒发一次串口数据?为啥它是一直在发?
import time
from pyb import UARTUART 3, and baudrate.
uart = UART(3, 9600,timeout=1000)
while(True):
uart.write("Hello World!\n") -
为什么有线图传显示屏显示的画面会这么卡?帧缓冲区的画面都很流畅
# 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")
-
RE: 为什么有线图传显示屏相比实时帧缓冲区滞后这么多?
就是有线图传显示屏显示的画面比帧缓冲区显示的画面慢几帧图像,主程序没写延时,就是程序比较多。例程里的程序主程序很简洁就不会滞后
-
RE: edge impulse训练神经网络进行分类,分类的标准是什么?是根据形状呢?颜色呢?还是什么?
@kidswong999 同一类训练的图片有很多不同的特征,训练的效果好吗
-
edge impulse训练神经网络进行分类,分类的标准是什么?是根据形状呢?颜色呢?还是什么?
edge impulse训练神经网络进行分类,分类的标准是什么?是根据形状呢?颜色呢?还是什么?