上一页 1 2 3 4 5 6 7 8 9 10 ··· 83 下一页
摘要: /* 1、复制文件描述符 2、设置/获取文件的状态标识 #include <unistd.h> #include <fcntl.h> int fcntl(int fd, int cmd, ...); 参数: fd:文件描述符 cmd:表示对文件描述符进行如何操作 F_DUPFD:复制文件描述符,得到 阅读全文
posted @ 2023-04-25 15:27 WTSRUVF 阅读(43) 评论(0) 推荐(0) 编辑
摘要: /* 创建文件 #include <sys/stat.h> #include <sys/types.h> int mkdir(const char *pathname, mode_t mode); 参数: mode:权限 移除文件 #include <unistd.h> int rmdir(cons 阅读全文
posted @ 2023-04-25 12:11 WTSRUVF 阅读(14) 评论(0) 推荐(0) 编辑
摘要: /* 判断文件属性 #include <unistd.h> int access(const char *pathname, int mode); 参数: pathname:文件路径 mode:F_OK 是否存在 R_OK 读权限 W_OK 写权限 X_OK 执行权限 返回值: 成功:0 失败:-1 阅读全文
posted @ 2023-04-25 10:31 WTSRUVF 阅读(10) 评论(0) 推荐(0) 编辑
摘要: /* 打开一个已经存在的文件 #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int open(const char *pathname, int flags); 参数: pathname: 文件路径 flags: 文件 阅读全文
posted @ 2023-04-23 22:06 WTSRUVF 阅读(12) 评论(0) 推荐(0) 编辑
摘要: First 为调试而编译时,要加-g关键字 gcc -g test.c -o test -g的作用是: 1、创建符号表,符号表包含了程序中使用的变量名称的列表。 2、关闭所有的优化机制,以便程序执行过程中严格按照原来的C代码进行。 Second gdb命令 启动和退出 gdb 可执行程序 quit 阅读全文
posted @ 2023-04-18 22:11 WTSRUVF 阅读(94) 评论(0) 推荐(0) 编辑
摘要: sudo service network-manager stop sudo rm /var/lib/NetworkManager/NetworkManager.state sudo service network-manager start sudo vim /etc/NetworkManager 阅读全文
posted @ 2023-04-18 20:41 WTSRUVF 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 文件命名: makefile 或者 Makefile Makefile规则 一个Makefile文件中可以有一个或者多个规则 目标...:依赖... 命令(Shell命令) ... 目标:最重要生成的文件(伪目标除外) 依赖:生成目标所需要的文件或是目标 命令:通过执行命令对依赖操作生成目标(命令前 阅读全文
posted @ 2023-04-18 17:41 WTSRUVF 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 省时总结:传参时,容器传入的是引用,而变量传入的是副本 准确地说,在 Python 中,所有传递给函数的参数都是引用。不过,如果参数是不可变对象(例如整数、字符串等),Python 会将这些对象的值复制一份,然后将副本传递给函数。当将一个可变对象传递给一个函数时,函数接收到的就是这个对象的引用,也就 阅读全文
posted @ 2023-02-24 10:52 WTSRUVF 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 横向为x轴 纵向为y轴 img[y][x],第一维对应y,第二维对应x,即第y行,第x列 x, y, w, h = cv2.boundingRect(currentContours[0]):外接矩形求出的坐标即是和上述对应 findContours:求出的轮廓点是顺时针排序 阅读全文
posted @ 2023-02-04 10:54 WTSRUVF 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 一个求轮廓的算法 an alpha value (0< α < ∞) is a parameter imposing the precision of the final boundary. A large value(α->∞) results in the alpha boundary of a 阅读全文
posted @ 2023-01-21 12:07 WTSRUVF 阅读(203) 评论(3) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 83 下一页