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 851 B

4 years ago
1234567891011121314151617181920212223242526272829303132
  1. //
  2. // Created by Jack Yu on 20/09/2017.
  3. //
  4. #ifndef HYPERPR_PLATEDETECTION_H
  5. #define HYPERPR_PLATEDETECTION_H
  6. #include <PlateInfo.h>
  7. #include <opencv2/opencv.hpp>
  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,
  16. std::vector<pr::PlateInfo> &plateInfos,
  17. int min_w = 36, int max_w = 800);
  18. // std::vector<pr::PlateInfo> plateDetectionRough(cv::Mat
  19. // InputImage,int min_w= 60,int max_h = 400);
  20. // std::vector<pr::PlateInfo>
  21. // plateDetectionRoughByMultiScaleEdge(cv::Mat InputImage);
  22. private:
  23. cv::CascadeClassifier cascade;
  24. };
  25. } // namespace pr
  26. #endif // HYPERPR_PLATEDETECTION_H