From 89e308bc6fbec2ae8fe7d981eaac194118347aa6 Mon Sep 17 00:00:00 2001 From: Ken Haagh Date: Wed, 20 Dec 2023 14:59:00 +0100 Subject: [PATCH] value update Signed-off-by: Ken Haagh --- people_tracking/src/people_tracking/people_tracker.py | 2 +- people_tracking/src/people_tracking/person_detection.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/people_tracking/src/people_tracking/people_tracker.py b/people_tracking/src/people_tracking/people_tracker.py index cf3a1bc..853efaf 100755 --- a/people_tracking/src/people_tracking/people_tracker.py +++ b/people_tracking/src/people_tracking/people_tracker.py @@ -719,7 +719,7 @@ def loop(self): validity = self.approved_targets[-val_idx].valid_measurement val_idx += 1 - if current_time - self.approved_targets[-val_idx].time > 2: + if current_time - self.approved_targets[-val_idx].time > 3: rospy.loginfo("Target Lost") self.target_lost = True else: diff --git a/people_tracking/src/people_tracking/person_detection.py b/people_tracking/src/people_tracking/person_detection.py index ba65a47..fa655d4 100755 --- a/people_tracking/src/people_tracking/person_detection.py +++ b/people_tracking/src/people_tracking/person_detection.py @@ -121,8 +121,8 @@ def process_latest_image(self): # Import RGB Image cv_image = self.bridge.imgmsg_to_cv2(latest_image, desired_encoding='passthrough') cv_image = cv2.GaussianBlur(cv_image, (5, 5), 0) - if not laptop: - cv_image = cv2.cvtColor(cv_image, cv2.COLOR_RGB2BGR) + # if not laptop: + # cv_image = cv2.cvtColor(cv_image, cv2.COLOR_RGB2BGR) # Save Image if save_data: