摘要: AprilTag的种类叫家族(family),有下面的几种: TAG16H5 → 0 to 29TAG25H7 → 0 to 241TAG25H9 → 0 to 34TAG36H10 → 0 to 2319TAG36H11 → 0 to 586ARTOOLKIT → 0 to 511 注意:一般使用 阅读全文
posted @ 2021-01-12 16:04 oldxi 阅读(843) 评论(0) 推荐(0) 编辑
摘要: 本次测量的物体为:一个绿色小瓶盖 首先得通过阈值编译器得到这个绿色小瓶盖得阈值: 代码如下: import sensor, image, time #导入模块 # For color tracking to work really well you should ideally be in a ve 阅读全文
posted @ 2021-01-06 16:01 oldxi 阅读(2275) 评论(0) 推荐(0) 编辑
摘要: find_blobs函数: 通过find_blobs函数可以找到色块.我们来讨论一下,find_blobs的细节。 image.find_blobs(thresholds, roi=Auto, x_stride=2, y_stride=1, invert=False, area_threshold= 阅读全文
posted @ 2021-01-06 15:15 oldxi 阅读(4681) 评论(0) 推荐(1) 编辑
摘要: 首先连接好摄像头端口,点击运行闪烁灯代码(代码如下): #import time, pyb from time import sleep from pyb import LED led1 = LED(1) led2 = LED(2) led3 = LED(3) # Red LED = 1, Gree 阅读全文
posted @ 2021-01-06 13:53 oldxi 阅读(3927) 评论(0) 推荐(0) 编辑
摘要: 转载于:https://www.cnblogs.com/zoutingrong/p/12868667.html 正是步行者,一步步登峰! 阅读全文
posted @ 2020-06-07 18:12 oldxi 阅读(274) 评论(0) 推荐(0) 编辑
摘要: OBJ=test.o zhan.o duilie.o ditu.o welcome.o init.o menu.o time.o user.o data.o test:$(OBJ) zhan.h duilie.h ditu.h welcome.h init.h menu.h time.h user. 阅读全文
posted @ 2020-06-07 18:00 oldxi 阅读(522) 评论(0) 推荐(0) 编辑
摘要: void jiesujiemian() { //printf("\t\t\t乘客您慢走!\n"); printf("\t\t\t***已到达目的地,您慢走!***\n"); FILE *fp; char ch; fp=fopen("Data.txt","a"); if(fp!=NULL){ prin 阅读全文
posted @ 2020-06-07 17:53 oldxi 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 详细代码,参考如下网址: https://blog.csdn.net/keith_bb/article/details/53055380 正是步行者,一步步登峰! 阅读全文
posted @ 2020-04-26 21:27 oldxi 阅读(1498) 评论(0) 推荐(0) 编辑
摘要: 在LINUX下不能使用getch()函数来使密码不回显,因为在linux下没有conio.h库文件,去网上找到解决方法将其替换为curses.h,仍然没用 #include<stdio.h> #include<stdlib.h> #include<string.h> int main(int arg 阅读全文
posted @ 2020-04-26 20:03 oldxi 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 代码如下: /*AUTOR:XIXI*/#include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct node{ char name[20]; //定义两个字符型数组 char pass[20]; struct node 阅读全文
posted @ 2020-04-25 11:21 oldxi 阅读(640) 评论(0) 推荐(0) 编辑