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

12345678910111213141516171819202122232425262728
  1. //
  2. // Created by 庾金科 on 28/11/2017.
  3. //
  4. #ifndef SWIFTPR_SEGMENTATIONFREERECOGNIZER_H
  5. #define SWIFTPR_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> SegmentationFreeForSinglePlate(cv::Mat plate,std::vector<std::string> mapping_table);
  15. private:
  16. cv::dnn::Net net;
  17. };
  18. }
  19. #endif //SWIFTPR_SEGMENTATIONFREERECOGNIZER_H