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.

28 lines
637 B
C++

//
// Created by Jack Yu on 28/11/2017.
//
#ifndef HYPERPR_SEGMENTATIONFREERECOGNIZER_H
#define HYPERPR_SEGMENTATIONFREERECOGNIZER_H
#include "Recognizer.h"
namespace pr {
class SegmentationFreeRecognizer {
public:
const int CHAR_INPUT_W = 14;
const int CHAR_INPUT_H = 30;
const int CHAR_LEN = 84;
SegmentationFreeRecognizer(std::string prototxt, std::string caffemodel);
std::pair<std::string, float>
SegmentationFreeForSinglePlate(cv::Mat plate,
std::vector<std::string> mapping_table);
private:
cv::dnn::Net net;
};
} // namespace pr
#endif // HYPERPR_SEGMENTATIONFREERECOGNIZER_H