00001 #ifndef TAGDETECTOR_H 00002 #define TAGDETECTOR_H 00003 00004 #include <vector> 00005 00006 #include "opencv2/opencv.hpp" 00007 00008 #include "AprilTags/TagDetection.h" 00009 #include "AprilTags/TagFamily.h" 00010 #include "AprilTags/FloatImage.h" 00011 00012 namespace AprilTags { 00013 00014 class TagDetector { 00015 public: 00016 00017 const TagFamily thisTagFamily; 00018 00020 // note: TagFamily is instantiated here from TagCodes 00021 TagDetector(const TagCodes& tagCodes) : thisTagFamily(tagCodes) {} 00022 00023 std::vector<TagDetection> extractTags(const cv::Mat& image); 00024 00025 }; 00026 00027 } // namespace 00028 00029 #endif