Terminal_region_limit.h 586 B

12345678910111213141516171819202122232425
  1. //
  2. // Created by zx on 2020/1/16.
  3. //
  4. #ifndef TERMINAL_REGION_LIMIT_H
  5. #define TERMINAL_REGION_LIMIT_H
  6. #include "Railing.h"
  7. class Terminal_region_limit
  8. {
  9. Terminal_region_limit(Railing* left_railing,Railing* right_railing);
  10. /*
  11. * 检验是否碰撞左右栏杆,
  12. * 返回结果:左边碰撞,右边碰撞,左右都碰撞,正确
  13. */
  14. Error_manager verify(cv::RotatedRect rect);
  15. protected:
  16. //左边栏杆
  17. Railing* mp_left_railing;
  18. //右边栏杆
  19. Railing* mp_right_railing;
  20. };
  21. #endif //TERMINAL_REGION_LIMIT_H