You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

SegmentationFreeRecognizer.h 637 B

4 years ago
123456789101112131415161718192021222324252627
  1. //
  2. // Created by Jack Yu on 28/11/2017.
  3. //
  4. #ifndef HYPERPR_SEGMENTATIONFREERECOGNIZER_H
  5. #define HYPERPR_SEGMENTATIONFREERECOGNIZER_H
  6. #include "Recognizer.h"
  7. namespace pr {
  8. class SegmentationFreeRecognizer {
  9. public:
  10. const int CHAR_INPUT_W = 14;
  11. const int CHAR_INPUT_H = 30;
  12. const int CHAR_LEN = 84;
  13. SegmentationFreeRecognizer(std::string prototxt, std::string caffemodel);
  14. std::pair<std::string, float>
  15. SegmentationFreeForSinglePlate(cv::Mat plate,
  16. std::vector<std::string> mapping_table);
  17. private:
  18. cv::dnn::Net net;
  19. };
  20. } // namespace pr
  21. #endif // HYPERPR_SEGMENTATIONFREERECOGNIZER_H