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.

PlateDetection.h 812 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // Created by 庾金科 on 20/09/2017.
  3. //
  4. #ifndef SWIFTPR_PLATEDETECTION_H
  5. #define SWIFTPR_PLATEDETECTION_H
  6. #include <opencv2/opencv.hpp>
  7. #include <PlateInfo.h>
  8. #include <vector>
  9. namespace pr{
  10. class PlateDetection{
  11. public:
  12. PlateDetection(std::string filename_cascade);
  13. PlateDetection();
  14. void LoadModel(std::string filename_cascade);
  15. void plateDetectionRough(cv::Mat InputImage,std::vector<pr::PlateInfo> &plateInfos,int min_w=36,int max_w=800);
  16. // std::vector<pr::PlateInfo> plateDetectionRough(cv::Mat InputImage,int min_w= 60,int max_h = 400);
  17. // std::vector<pr::PlateInfo> plateDetectionRoughByMultiScaleEdge(cv::Mat InputImage);
  18. private:
  19. cv::CascadeClassifier cascade;
  20. };
  21. }// namespace pr
  22. #endif //SWIFTPR_PLATEDETECTION_H