From 00d225a15a40e7f1b31b0c31e7e348ff6713567b Mon Sep 17 00:00:00 2001 From: Hugo Duarte <hugo.duarte91800@gmail.com> Date: Wed, 7 Jul 2021 11:51:37 +0200 Subject: [PATCH] debug construction msg --- .../scripts/raspicam_treatment_node.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/raspicam_treatment_node/scripts/raspicam_treatment_node.py b/raspicam_treatment_node/scripts/raspicam_treatment_node.py index 46d5dd6..aa1871e 100644 --- a/raspicam_treatment_node/scripts/raspicam_treatment_node.py +++ b/raspicam_treatment_node/scripts/raspicam_treatment_node.py @@ -109,8 +109,8 @@ class raspicam_treatment: if max(w/h,h/w)>1 and max(w/h,h/w)<1.9: new_x, new_y = get_pose(x, y, w, h, width, height) msg.size=msg.size+1 - np.append(color,msg.RED) - np.append(pose,[new_x, new_y]) + color.append(msg.RED) + pose.append([new_x, new_y]) # DEBUG if VERBOSE : cv.putText(frame_final,'{0}, {1}'.format(new_x, new_y),(x+int(w/2),y+int(h/2)), cv.FONT_HERSHEY_SIMPLEX, 1,(255,255,255),2) @@ -120,11 +120,8 @@ class raspicam_treatment: if max(w/h,h/w)>1 and max(w/h,h/w)<1.9: new_x, new_y = get_pose(x, y, w, h, width, height) msg.size=msg.size+1 - print(msg.GREEN) - print(new_x) - print(new_y) - np.append(color,msg.GREEN) - np.append(pose,[new_x, new_y]) + color.append(msg.GREEN) + pose.append([new_x, new_y]) # DEBUG if VERBOSE : cv.putText(frame_final,'{0}, {1}'.format(new_x, new_y),(x+int(w/2),y+int(h/2)), cv.FONT_HERSHEY_SIMPLEX, 1,(255,255,255),2) -- GitLab