This commit is contained in:
ackimixs
2024-05-02 14:39:40 +02:00
parent 235300bf83
commit c258972acf
2 changed files with 5 additions and 3 deletions

View File

@@ -13,11 +13,11 @@ ArucoDetector::ArucoDetector(const std::string& calibrationPath, const Team team
// TODO
// Adjusting parameters based on specific needs
/*parameters->adaptiveThreshConstant = true;
parameters->minMarkerPerimeterRate = 0.03;
parameters->adaptiveThreshConstant = true;
parameters->minMarkerPerimeterRate = 0.02;
parameters->maxMarkerPerimeterRate = 4.0;
parameters->perspectiveRemoveIgnoredMarginPerCell = 0.13;
parameters->polygonalApproxAccuracyRate = 0.03;*/
parameters->polygonalApproxAccuracyRate = 0.03;
this->readCameraParameters(calibrationPath);

View File

@@ -58,6 +58,8 @@ int main(int argc, char *argv[])
client.sendMessage("aruco;strat;ready;1");
usleep(500'000);
while (true) {
auto r = detector.detectArucoTags({whiteFlower, purpleFlower, solarPanel});