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.
EasyPR/include/easypr/core/chars_identify.h

27 lines
551 B

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