From 7829b3e9cce31c55e586968fce38088c0a008bd2 Mon Sep 17 00:00:00 2001 From: seungriyou Date: Fri, 10 Jun 2022 06:32:05 +0000 Subject: [PATCH] [Fix] Modify height condition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 실험 결과가 재현되지 않는 문제점을 해결하기 위해 height 조건을 수정하였습니다. issue #98 --- model/recognition/face_recog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model/recognition/face_recog.py b/model/recognition/face_recog.py index 2b2492f..cff9d56 100644 --- a/model/recognition/face_recog.py +++ b/model/recognition/face_recog.py @@ -127,7 +127,7 @@ def recognize_faces(self): last_original_frame = last_original_frame[:, :, ::-1] height, width = last_original_frame.shape[:2] last_original_frame = last_original_frame[int(height*0.2):, int(width*0.2):int(width*0.8)] - if height > 600: + if height > 800: last_original_frame = cv2.resize(last_original_frame, None, fx=0.6, fy=0.6) frames.append(last_original_frame) frames_real_time.append(frame_num-1) @@ -135,7 +135,7 @@ def recognize_faces(self): start_original_frame = start_original_frame[:, :, ::-1] height, width = start_original_frame.shape[:2] start_original_frame = start_original_frame[int(height*0.2):, int(width*0.2):int(width*0.8)] - if height > 600: + if height > 800: start_original_frame = cv2.resize(start_original_frame, None, fx=0.6, fy=0.6) frames.append(start_original_frame) frames_real_time.append(frame_num)