38 std::shared_ptr<BasicCamera> ExampleBasicCam1 = std::make_unique<BasicCam>(0, 1280, 720, 60, PIXEL_FORMATS::eBGR, 0, 0,
false);
40 ExampleBasicCam1->Start();
53 std::future<bool> fuCopyStatus1 = ExampleBasicCam1->RequestFrameCopy(cvNormalFrame1);
54 std::future<bool> fuCopyStatus2 = ExampleBasicCam1->RequestFrameCopy(cvNormalFrame2);
57 if (fuCopyStatus1.get() && !cvNormalFrame1.
empty())
60 LOG_INFO(logging::g_qConsoleLogger,
61 "BasicCam Getter FPS: {} | 1% Low: {}",
62 ExampleBasicCam1->GetIPS().GetAverageIPS(),
63 ExampleBasicCam1->GetIPS().Get1PercentLow());
67 std::to_string(ExampleBasicCam1->GetIPS().GetExactIPS()),
74 cv::imshow(
"BasicCamExample Frame1", cvNormalFrame1);
78 if (fuCopyStatus2.get() && !cvNormalFrame2.empty())
81 LOG_INFO(logging::g_qConsoleLogger,
82 "BasicCam Getter FPS: {} | 1% Low: {}",
83 ExampleBasicCam1->GetIPS().GetAverageIPS(),
84 ExampleBasicCam1->GetIPS().Get1PercentLow());
88 std::to_string(ExampleBasicCam1->GetIPS().GetExactIPS()),
95 cv::imshow(
"BasicCamExample Frame2", cvNormalFrame2);
101 LOG_INFO(logging::g_qConsoleLogger,
"Main FPS: {}", FPS.
GetAverageIPS());
115 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)