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.

Recognizer.cpp 709 B

7 years ago
1234567891011121314151617181920212223
  1. //
  2. // Created by Jack Yu on 22/10/2017.
  3. //
  4. #include "Recognizer.h"
  5. namespace pr{
  6. void GeneralRecognizer::SegmentBasedSequenceRecognition(PlateInfo &plateinfo){
  7. for(auto char_instance:plateinfo.plateChars)
  8. {
  9. std::pair<CharType,cv::Mat> res;
  10. if(char_instance.second.rows*char_instance.second.cols>40) {
  11. label code_table = recognizeCharacter(char_instance.second);
  12. res.first = char_instance.first;
  13. code_table.copyTo(res.second);
  14. plateinfo.appendPlateCoding(res);
  15. } else{
  16. res.first = INVALID;
  17. plateinfo.appendPlateCoding(res);
  18. }
  19. }
  20. }
  21. }