07 2023 档案
摘要:#include "fastdeploy/vision.h" #include #include #include #include #include #include #include #include "opencv2/opencv.hpp" int homeAttackMapX = 977;
阅读全文
摘要:```c++ Pix *mat8ToPix(cv::Mat *mat8) { Pix *pixd = pixCreate(mat8->size().width, mat8->size().height, 8); for(int y=0; yrows; y++) { for(int x=0; xcol
阅读全文
摘要:```c++ bool checkIsHome(const std::string *ADB_IP, cv::Mat *mat, fastdeploy::vision::detection::YOLOv5 *homemodelPoint) { screenShot(ADB_IP, mat); cv:
阅读全文
摘要:```c++ class deviceINFO { /* data */ // adbip // touch stream // mat // model指针 public: std::string ADB_IP; FILE *touchFile; cv::Mat *mat; fastdeploy:
阅读全文
摘要:## fork子进程 ### 原函数 ```c++ void forktest(int *i, pid_t parentid) { tesseract::TessBaseAPI *chi_api = new tesseract::TessBaseAPI(); if (chi_api->Init("/
阅读全文
摘要:## 时间控制相关函数 一些需要备注的网站: https://www.cnblogs.com/terrasse/p/fast-adb.html https://developer.android.google.cn/ndk/downloads?spm=a2c6h.12873639.article-d
阅读全文
摘要:## minitouch控制函数封装 minitouch的github地址: ### 1.原函数 ```c++ void click(FILE *wirteFile, const std::string *ADB_IP, int x, int y) { std::string s = "d 0 "
阅读全文
摘要:## minicap截图 ### 1.原函数 ```c++ void screenShot(const std::string *ADB_IP, cv::Mat *mat) { // 首先,运行runShellAndReturn获取file指针 std::string cmd = "adb -s "
阅读全文
摘要:## popen命令的封装 ### 1.源码 ```c++ int runShellNoReturn(const char *cmd, const char *mode) { FILE *file = popen(cmd, mode); if (file == NULL) { return 1; }
阅读全文
摘要:## 从内存中读取图像 ### 1.源码 ```c++ void createMatFromMem(FILE *file, cv::Mat *mat) { uchar *mem_pic = new uchar[6268932 / sizeof(uchar)]; long size = 0; frea
阅读全文
摘要:## 1. 预编译安装下载 参考github中的文档 进行选择下载: https://github.com/PaddlePaddle/FastDeploy/blob/develop/README_CN.md#fastdeploy-quick-start-cpp 我选择的是c++ cpu版本。 下载下
阅读全文
摘要:## strcat()函数介绍 ### 1.功能 把src所指向的字符串(包括“\0”)复制到dest所指向的字符串后面(删除*dest原来末尾的“\0”)。要保证*dest足够长,以容纳被复制进来的*src。*src中原有的字符不变。返回指向dest的指针。 ### 2.头文件 在C中,函数原型存
阅读全文