You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
/*
|
|
* @Author: xiewenji 527774126@qq.com
|
|
* @Date: 2025-07-25 09:14:25
|
|
* @LastEditors: xiewenji 527774126@qq.com
|
|
* @LastEditTime: 2025-09-23 17:49:42
|
|
* @FilePath: /BOE_FOG/AlgorithmModule/example/Image_ReadAndChange.h
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
/*
|
|
//图片基本处理
|
|
*/
|
|
#ifndef Image_ReadAndChange_H_
|
|
#define Image_ReadAndChange_H_
|
|
|
|
#include <vector>
|
|
#include <thread>
|
|
#include "ImgCheckConfig.h"
|
|
using namespace std;
|
|
|
|
|
|
// 图片读取的通道
|
|
class Image_ReadChannel
|
|
{
|
|
public:
|
|
struct ReadImageName
|
|
{
|
|
std::string strDetChannle;
|
|
std::vector<std::string> strImgNameList;
|
|
|
|
ReadImageName()
|
|
{
|
|
strImgNameList.clear();
|
|
strDetChannle = "";
|
|
}
|
|
};
|
|
|
|
private:
|
|
/* data */
|
|
public:
|
|
Image_ReadChannel(/* args */);
|
|
~Image_ReadChannel();
|
|
|
|
bool containsChinese(const std::string &str);
|
|
|
|
int ReadJsonConfig(std::string json_path); // 加载检测图片名称配置参数
|
|
|
|
bool CompareIgnoreCase(const std::string &str1, const std::string &str2);
|
|
|
|
std::string strDetName(std::string strImageName);
|
|
|
|
private:
|
|
std::vector<ReadImageName> m_ChannelNameList;
|
|
};
|
|
|
|
#endif |