InfineFilter.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * @Author: lishengyin lishengyin@sz-sunwin.com
  3. * @Date: 2022-09-04 21:52:00
  4. * @LastEditors: lishengyin
  5. * @LastEditTime: 2022-10-20 11:33:43
  6. * @FilePath: /gsd_check/models/InfineFilter.hpp
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. #ifndef __InfineFilter_hpp_
  10. #define __InfineFilter_hpp_
  11. #include <iostream>
  12. #include "config.hpp"
  13. #include <opencv2/opencv.hpp>
  14. #include "CNStreamInferData.h"
  15. using namespace std;
  16. namespace gsd
  17. {
  18. class InfineFilter
  19. {
  20. private:
  21. InfineFilter(){}
  22. public:
  23. /**
  24. * @description: 获取单例
  25. * @return {*}
  26. */
  27. static std::shared_ptr<InfineFilter> getPtr();
  28. /**
  29. * @description: 比例过滤器
  30. * @param {Ptr} result
  31. * @return {*}
  32. */
  33. bool proportionalFilter(CNStreamInferData::Ptr result);
  34. /**
  35. * @description: AlienFilter
  36. * @param {Ptr} result
  37. * @return {*}
  38. */
  39. bool AlienFilter(CNStreamInferData::Ptr result);
  40. /**
  41. * @description: InfineFilter
  42. * @param {*}
  43. * @return {*}
  44. */
  45. ~InfineFilter(){}
  46. };
  47. } // namespace name
  48. #endif