From f111cb002b9c6065fdf6bb274ce5857a9e875e8c Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期三, 05 六月 2019 15:38:49 +0800
Subject: [PATCH] face rectangle

---
 code/test_on_video_dlib.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/code/test_on_video_dlib.py b/code/test_on_video_dlib.py
index eefced7..8ae74fa 100644
--- a/code/test_on_video_dlib.py
+++ b/code/test_on_video_dlib.py
@@ -106,15 +106,19 @@
         print(frame_num)
 
         ret,frame = video.read()
+        
         if ret == False:
             break
-
+        
+        frame = cv2.resize(frame, (960, 540), interpolation=cv2.INTER_LINEAR)
+        print(frame.shape)
         cv2_frame = cv2.cvtColor(frame,cv2.COLOR_BGR2RGB)
 
         # Dlib detect
         dets = cnn_face_detector(cv2_frame, 1)
 
         for idx, det in enumerate(dets):
+            print('**********************yes****************************yes********************************yes************************************')
             # Get x_min, y_min, x_max, y_max, conf
             x_min = det.rect.left()
             y_min = det.rect.top()

--
Gitblit v1.8.0