摘要: 比如Known=4325,guid=qwer233,Element=fdger2354, 把guid=后面的qwer233给提取出来。 即提取“guid=”和“,”之间的字符串。 #include <iostream> #include <string> #include <regex> using 阅读全文
posted @ 2022-06-21 10:08 萧海~ 阅读(398) 评论(0) 推荐(0) 编辑
摘要: OpenCV中在图片上输出中文一般需要借助FreeType库实现。FreeType库是一个完全免费(开源)的、高质量的且可移植的字体引擎,它提供统一的接口来访问多种字体格式文件。但使用FreeType需要下载库并重新编译,过程麻烦一点。 在Python中,可以借助PIL(Python Imaging 阅读全文
posted @ 2022-06-21 10:01 萧海~ 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 在OpenCV的“photo.hpp”中定义了一个inpaint函数,可以用来实现图像的修复和复原功能,inpaint函数的原型如下: void inpaint( InputArray src, InputArray inpaintMask, OutputArray dst, double inpa 阅读全文
posted @ 2022-06-21 09:38 萧海~ 阅读(295) 评论(0) 推荐(0) 编辑
摘要: C++11中引入了一个用于多线程操作的thread类,简单多线程示例: #include <iostream> #include <thread> #include <Windows.h> using namespace std; void thread01() { for (int i = 0; 阅读全文
posted @ 2022-06-21 09:16 萧海~ 阅读(364) 评论(0) 推荐(0) 编辑