31 std::shared_ptr<BasicCamera> ExampleBasicCam1 = globals::g_pCameraHandler->GetBasicCam(CameraHandler::BasicCamName::eHeadGroundCam);
33 ExampleBasicCam1->Start();
36 std::unique_ptr<TagDetector> ExampleTagDetector1 = std::make_unique<TagDetector>(ExampleBasicCam1);
38 ExampleTagDetector1->Start();
44 std::vector<tagdetectutils::ArucoTag> vTagDetections1;
53 std::future<bool> fuCopyStatus1 = ExampleBasicCam1->RequestFrameCopy(cvNormalFrame1);
55 std::future<bool> fuDetectionCopyStatus1 = ExampleTagDetector1->RequestDetectedArucoTags(vTagDetections1);
57 std::future<bool> fuDetectionFrameCopyStatus1 = ExampleTagDetector1->RequestDetectionOverlayFrame(cvDetectionsFrame1);
60 if (fuCopyStatus1.get() && !cvNormalFrame1.
empty())
64 std::to_string(ExampleBasicCam1->GetIPS().GetExactIPS()),
71 cv::imshow(
"BasicCamExample Frame1", cvNormalFrame1);
75 if (fuDetectionFrameCopyStatus1.get() && !cvDetectionsFrame1.
empty())
79 std::to_string(ExampleTagDetector1->GetIPS().GetExactIPS()),
86 cv::imshow(
"Detections Overlay Frame1", cvDetectionsFrame1);
90 if (fuDetectionCopyStatus1.get())
93 LOG_INFO(logging::g_qConsoleLogger,
"Detections1 vector length: {}", vTagDetections1.size());
99 LOG_INFO(logging::g_qConsoleLogger,
"Main FPS: {}", FPS.
GetAverageIPS());
113 globals::g_pTagDetectionHandler->StopAllDetectors();
114 globals::g_pCameraHandler->StopAllCameras();
117 globals::g_pCameraHandler =
nullptr;
118 globals::g_pTagDetectionHandler =
nullptr;
void putText(InputOutputArray img, const String &text, Point org, int fontFace, double fontScale, Scalar color, int thickness=1, int lineType=LINE_8, bool bottomLeftOrigin=false)