You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
465 B
C++
25 lines
465 B
C++
//
|
|
// Created by Jack Yu on 21/10/2017.
|
|
//
|
|
|
|
#ifndef HYPERPR_CNNRECOGNIZER_H
|
|
#define HYPERPR_CNNRECOGNIZER_H
|
|
|
|
#include "Recognizer.h"
|
|
namespace pr {
|
|
class CNNRecognizer : public GeneralRecognizer {
|
|
public:
|
|
const int CHAR_INPUT_W = 14;
|
|
const int CHAR_INPUT_H = 30;
|
|
|
|
CNNRecognizer(std::string prototxt, std::string caffemodel);
|
|
label recognizeCharacter(cv::Mat character);
|
|
|
|
private:
|
|
cv::dnn::Net net;
|
|
};
|
|
|
|
} // namespace pr
|
|
|
|
#endif // HYPERPR_CNNRECOGNIZER_H
|