Skip to content

Commit

Permalink
add id field to aruco detection
Browse files Browse the repository at this point in the history
  • Loading branch information
anacg1620 committed Jun 20, 2024
1 parent e12e4af commit def9fbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/YarpPlugins/ArucoDetector/ArucoDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "ArucoDetector.hpp"

#include <vector>
#include <iostream>

#include <yarp/os/LogComponent.h>
#include <yarp/os/LogStream.h>
Expand Down Expand Up @@ -70,7 +71,8 @@ bool ArucoDetector::detect(const yarp::sig::Image& inYarpImg, yarp::os::Bottle&
{"brx", yarp::os::Value(br.x)},
{"bry", yarp::os::Value(br.y)},
{"blx", yarp::os::Value(bl.x)},
{"bly", yarp::os::Value(bl.y)}
{"bly", yarp::os::Value(bl.y)},
{"text", yarp::os::Value(markerIds[i])}
};
}

Expand Down

0 comments on commit def9fbc

Please sign in to comment.