add aruco member funs

This commit is contained in:
jario-jin
2023-12-15 22:13:32 +08:00
parent dd3216e19e
commit c74319529c
4 changed files with 17 additions and 0 deletions
+1
View File
@@ -46,6 +46,7 @@ class ArucoDetector : public CameraAlgorithm
public:
ArucoDetector();
void detect(cv::Mat img_, TargetsInFrame& tgts_);
void getIdsWithLengths(std::vector<int>& ids_, std::vector<double>& lengths_);
private:
void _load();
bool _params_loaded;
+1
View File
@@ -128,6 +128,7 @@ public:
bool getBox(Box& b);
bool getAruco(int& id, std::vector<cv::Point2f> &corners);
bool getAruco(int& id, std::vector<cv::Point2f> &corners, cv::Vec3d &rvecs, cv::Vec3d &tvecs);
bool getEllipse(double& xc_, double& yc_, double& a_, double& b_, double& rad_);
std::string getJsonStr();