From 2aa7936fca6df11f6f7ce03ba8209027ec90f45f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik <sthalik@misaki.pl> Date: Sat, 16 Oct 2021 12:46:45 +0200 Subject: tracker/trackhat: buffer flush --- tracker-trackhat/trackhat.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tracker-trackhat/trackhat.hpp') diff --git a/tracker-trackhat/trackhat.hpp b/tracker-trackhat/trackhat.hpp index 2cdc083b..9f87da66 100644 --- a/tracker-trackhat/trackhat.hpp +++ b/tracker-trackhat/trackhat.hpp @@ -1,10 +1,11 @@ #pragma once #include "../tracker-pt/pt-api.hpp" -#include "track_hat_driver.h" #include "compat/macros.hpp" #include "options/options.hpp" +#include <track_hat_driver.h> + #include <array> #include <atomic> #include <opencv2/core.hpp> @@ -25,7 +26,7 @@ using namespace options; struct trackhat_settings : opts { trackhat_settings(); - value<slider_value> exposure{b, "exposure", {0xfff0, 1, 0xfff0}}; + value<slider_value> exposure{b, "exposure", {0x80, 0x10, 0xff}}; value<slider_value> threshold{b, "threshold", {0x97, 64, 0xff}}; value<model_type> model{b, "model", model_mini_clip_left}; value<double> min_pt_size{b, "min-point-size", 2}; @@ -111,7 +112,7 @@ private: struct trackhat_frame final : pt_frame { - void init_points(trackHat_ExtendedPoints_t points, double min_size, double max_size); + void init_points(const trackHat_ExtendedPoints_t& points, double min_size, double max_size); trackhat_frame() = default; ~trackhat_frame() override = default; -- cgit v1.2.3