From 291afb9c81aae1d15d9e3edcea618d0a2e1fc5a6 Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期三, 19 三月 2025 17:51:38 +0800
Subject: [PATCH] add samples
---
nodes/ba/vp_ba_stop_node.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/nodes/ba/vp_ba_stop_node.h b/nodes/ba/vp_ba_stop_node.h
index 7c0eafc..c49d225 100644
--- a/nodes/ba/vp_ba_stop_node.h
+++ b/nodes/ba/vp_ba_stop_node.h
@@ -26,9 +26,9 @@
bool point_in_poly(vp_objects::vp_point p, std::vector<vp_objects::vp_point> region);
// stop checking logic parameters which may be configed by constructor passed in by user
- const int check_interval_frames = 20;
- const int check_min_hit_frames = 25 * 2; // 25 fps * 2 seconds
- const int check_max_distance = 5;
+ const int check_interval_frames = 70;
+ const int check_min_hit_frames = 20/3 * 60; // 25 fps * 2 seconds
+ const int check_max_distance = 15; //The closer the camera, the larger the pixel distance.
protected:
virtual std::shared_ptr<vp_objects::vp_meta> handle_frame_meta(std::shared_ptr<vp_objects::vp_frame_meta> meta) override;
public:
--
Gitblit v1.9.1