summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/module/camera.cpp6
-rw-r--r--tracker-pt/module/camera.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/tracker-pt/module/camera.cpp b/tracker-pt/module/camera.cpp
index e2edfcb6..85439431 100644
--- a/tracker-pt/module/camera.cpp
+++ b/tracker-pt/module/camera.cpp
@@ -56,7 +56,7 @@ Camera::result Camera::get_frame(pt_frame& frame_)
{
cv::Mat& frame = frame_.as<Frame>()->mat;
- const bool new_frame = _get_frame(frame);
+ const bool new_frame = get_frame_(frame);
if (new_frame)
{
@@ -120,7 +120,7 @@ bool Camera::start(int idx, int fps, int res_x, int res_y)
cv::Mat tmp;
- if (_get_frame(tmp))
+ if (get_frame_(tmp))
{
t.start();
return true;
@@ -147,7 +147,7 @@ void Camera::stop()
cam_desired = pt_camera_info();
}
-bool Camera::_get_frame(cv::Mat& frame)
+bool Camera::get_frame_(cv::Mat& frame)
{
if (cap && cap->isOpened())
{
diff --git a/tracker-pt/module/camera.h b/tracker-pt/module/camera.h
index f8f140de..8abe6cf0 100644
--- a/tracker-pt/module/camera.h
+++ b/tracker-pt/module/camera.h
@@ -37,7 +37,7 @@ struct Camera final : pt_camera
void show_camera_settings() override;
private:
- [[nodiscard]] bool _get_frame(cv::Mat& Frame);
+ [[nodiscard]] bool get_frame_(cv::Mat& frame);
double dt_mean = 0, fov = 30;
Timer t;