- 博客(4)
- 收藏
- 关注
原创 学习日志4
人脸识别:如果识别到了人脸舵机转动import sensor, time, imagefrom pyb import Servos1 = Servo(1)sensor.reset()sensor.set_contrast(3)sensor.set_gainceiling(16)sensor.set_framesize(sensor.HQVGA)sensor.set_pixformat(sensor.GRAYSCALE)face_cascade = image.HaarCasca
2020-07-27 09:44:24 85
原创 学习日志3
#当检测出是红色时亮红灯或者绿色时亮绿灯或者蓝色时亮蓝灯。# Single Color RGB565 Blob Tracking Example## This example shows off single color RGB565 tracking using the OpenMV Cam.import sensor, image, time, mathfrom pyb import LEDred=LED(1)green=LED(2)bule=LED(3)threshold_in
2020-07-26 09:33:08 121
原创 学习日志2
#认识并学会读这些代码import sensor, image, timefrom pid import PIDfrom pyb import Servopan_servo=Servo(1)tilt_servo=Servo(2)red_threshold = (13, 49, 18, 61, 6, 47)pan_pid = PID(p=0.07, i=0, imax=90) #脱机运行或者禁用图像传输,使用这个PIDtilt_pid = PID(p=0.05, i=0, imax=
2020-07-25 07:44:17 86
原创 学习日志
学习日志#作业mark=[]def markreg(student,ask): mark.append(student) print("当前打卡人数为:",len(mark)) for ask in mark: if ask==student: flag=1 else: flag=0 markstudent=""while markstudent!="打卡完毕": markstudent=input("今天你打卡了吗?你是谁?")
2020-07-24 09:04:47 99
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人