Add ostream for ArucoTag

This commit is contained in:
ackimixs
2024-04-25 11:32:05 +02:00
parent 0c65575c68
commit 95b3d5076e
2 changed files with 10 additions and 0 deletions

View File

@@ -87,3 +87,8 @@ void ArucoTag::find() {
int ArucoTag::getNbFind() const {
return nbFind;
}
std::ostream& operator<<(std::ostream& os, const ArucoTag& tag) {
os << "ArucoTag{id=" << tag.id() << ", name=" << tag.name() << ", pos=[" << tag.pos()[0] << ", " << tag.pos()[1] << "], rot=[" << tag.rot()[0] << ", " << tag.rot()[1] << ", " << tag.rot()[2] << "]}";
return os;
}