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.
27 lines
551 B
27 lines
551 B
#ifndef EASYPR_CORE_CHARSIDENTIFY_H_
|
|
#define EASYPR_CORE_CHARSIDENTIFY_H_
|
|
|
|
#include "easypr/util/kv.h"
|
|
#include <memory>
|
|
#include "opencv2/opencv.hpp"
|
|
|
|
namespace easypr {
|
|
|
|
class CharsIdentify {
|
|
public:
|
|
static CharsIdentify* instance();
|
|
|
|
int classify(cv::Mat f, bool isChinses = false);
|
|
|
|
std::pair<std::string, std::string> identify(cv::Mat input, bool isChinese = false);
|
|
|
|
private:
|
|
CharsIdentify();
|
|
|
|
static CharsIdentify* instance_;
|
|
cv::Ptr<cv::ml::ANN_MLP> ann_;
|
|
std::shared_ptr<Kv> kv_;
|
|
};
|
|
}
|
|
|
|
#endif // EASYPR_CORE_CHARSIDENTIFY_H_
|