22 #ifndef OV_CORE_TRACK_ARUCO_H 23 #define OV_CORE_TRACK_ARUCO_H 26 #include <opencv2/aruco.hpp> 54 explicit TrackAruco(std::unordered_map<
size_t, std::shared_ptr<CamBase>> cameras,
int numaruco,
bool stereo,
HistogramMethod histmethod,
58 aruco_dict = cv::aruco::getPredefinedDictionary(cv::aruco::DICT_6X6_1000);
59 aruco_params = cv::aruco::DetectorParameters::create();
64 std::exit(EXIT_FAILURE);
82 void display_active(cv::Mat &img_out,
int r1,
int g1,
int b1,
int r2,
int g2,
int b2, std::string overlay =
"")
override;
94 void perform_tracking(
double timestamp,
const cv::Mat &imgin,
size_t cam_id,
const cv::Mat &maskin);
103 #if ENABLE_ARUCO_TAGS 105 cv::Ptr<cv::aruco::Dictionary> aruco_dict;
108 cv::Ptr<cv::aruco::DetectorParameters> aruco_params;
111 std::unordered_map<size_t, std::vector<int>> ids_aruco;
112 std::unordered_map<size_t, std::vector<std::vector<cv::Point2f>>> corners, rejects;
Tracking of OpenCV Aruoc tags.
Visual feature tracking base class.
Struct for a collection of camera measurements.
void feed_new_camera(const CameraData &message) override
Process a new image.
virtual void display_active(cv::Mat &img_out, int r1, int g1, int b1, int r2, int g2, int b2, std::string overlay="")
Shows features extracted in the last image.
TrackAruco(std::unordered_map< size_t, std::shared_ptr< CamBase >> cameras, int numaruco, bool stereo, HistogramMethod histmethod, bool downsize)
Public constructor with configuration variables.
HistogramMethod
Desired pre-processing image method.
Core algorithms for OpenVINS.
#define PRINT_ERROR(x...)