Skip to content

Commit

Permalink
[Fix] Modify height condition
Browse files Browse the repository at this point in the history
- 실험 결과가 재현되지 않는 문제점을 해결하기 위해 height 조건을
수정하였습니다.
issue #98
  • Loading branch information
seungriyou committed Jun 10, 2022
1 parent 02d7cb1 commit 7829b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/recognition/face_recog.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ 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)

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)
Expand Down

0 comments on commit 7829b3e

Please sign in to comment.