.. _program_listing_file__tmp_ws_src_aruco_ros_aruco_include_aruco_markerlabeler.h: Program Listing for File markerlabeler.h ======================================== |exhale_lsh| :ref:`Return to documentation for file ` (``/tmp/ws/src/aruco_ros/aruco/include/aruco/markerlabeler.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef _aruco_MarkerLabeler_ #define _aruco_MarkerLabeler_ #include "aruco_export.h" #include "dictionary.h" #include namespace aruco { class Marker; class ARUCO_EXPORT MarkerLabeler { public: static cv::Ptr create(Dictionary::DICT_TYPES dict_type, float error_correction_rate = 0); static cv::Ptr create(std::string detector, std::string params = ""); virtual bool detect(const cv::Mat& in, int& marker_id, int& nRotations, std::string& additionalInfo) = 0; virtual int getBestInputSize() { return -1; } virtual int getNSubdivisions() const { return -1; } // returns an string that describes the labeler and can be used to create it virtual std::string getName() const = 0; virtual ~MarkerLabeler() { } }; }; // namespace aruco #endif