33 std::shared_ptr<ZEDCamera> ExampleZEDCam1 = globals::g_pCameraHandler->GetZED(CameraHandler::ZEDCamName::eHeadMainCam);
35 ExampleZEDCam1->Start();
38 std::shared_ptr<TagDetector> ExampleTagDetector1 = globals::g_pTagDetectionHandler->GetTagDetector(TagDetectionHandler::TagDetectors::eHeadMainCam);
40 ExampleTagDetector1->Start();
47 std::vector<tagdetectutils::ArucoTag> vTagDetections1;
56 std::future<bool> fuCopyStatus1;
57 std::future<bool> fuDetectionCopyStatus1;
58 std::future<bool> fuDetectionFrameCopyStatus1;
61 if (ExampleZEDCam1->GetUsingGPUMem())
64 fuCopyStatus1 = ExampleZEDCam1->RequestFrameCopy(cvGPUNormalFrame1);
69 fuCopyStatus1 = ExampleZEDCam1->RequestFrameCopy(cvNormalFrame1);
72 fuDetectionFrameCopyStatus1 = ExampleTagDetector1->RequestDetectionOverlayFrame(cvDetectionsFrame1);
74 fuDetectionCopyStatus1 = ExampleTagDetector1->RequestDetectedArucoTags(vTagDetections1);
77 if (fuCopyStatus1.get())
80 if (ExampleZEDCam1->GetUsingGPUMem())
83 cvGPUNormalFrame1.
download(cvNormalFrame1);
88 std::to_string(ExampleZEDCam1->GetIPS().GetExactIPS()),
95 cv::imshow(
"BasicCamExample Frame1", cvNormalFrame1);
99 if (fuDetectionFrameCopyStatus1.get() && !cvDetectionsFrame1.
empty())
103 std::to_string(ExampleTagDetector1->GetIPS().GetExactIPS()),
110 cv::imshow(
"Detections Overlay Frame1", cvDetectionsFrame1);
114 if (fuDetectionCopyStatus1.get())
117 LOG_INFO(logging::g_qConsoleLogger,
"Detections1 vector length: {}", vTagDetections1.size());
123 LOG_INFO(logging::g_qConsoleLogger,
"Main FPS: {}", FPS.
GetAverageIPS());
137 network::g_bRoveCommUDPStatus =
false;
138 network::g_bRoveCommTCPStatus =
false;
141 globals::g_pTagDetectionHandler->StopAllDetectors();
142 globals::g_pCameraHandler->StopAllCameras();
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)