#pragma once #include #include "yolo.h" class InteligentRoi { private: int personId; static bool compPointPrio(const std::pair& a, const std::pair& b, const cv::Point2i& center); static void slideRectToPoint(cv::Rect& rect, const cv::Point2i& point); static cv::Rect maxRect(bool& incompleate, const cv::Size2i& imageSize, std::vector> mustInclude = {}); public: InteligentRoi(const Yolo& yolo); bool getCropRectangle(cv::Rect& out, const std::vector& detections, const cv::Size2i& imageSize); };