You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def extract_bbox(self, image):
detector = face_detection.FaceAlignment(
face_detection.LandmarksType._2D,
flip_input=False,
face_detector=self.face_detector)
h, w, _ = image.shape
print("extract_box: image height=", h)
print("extract_box: image width=", w)
frame = [image]
#frame = image
predictions = detector.get_detections_for_image(np.array(frame))
person_num = len(predictions)
print("extract_box", "person_num=",person_num)
if person_num == 0:
return np.array([])
results = []
face_boxs = []
for rect in predictions:
print("extract_box: a rect in predictions =", rect)
检测输出始终为:
extract_box: image height= 624
extract_box: image width= 656
extract_box person_num= 1
extract_box: a rect in predictions = (0, 0, 0, 0)
1 persons have been detected
Got a person's face in rect: [0 0 0 0 0]
导致后续无法生成视频。
The text was updated successfully, but these errors were encountered:
在/usr/local/python3.7.0/lib/python3.7/site-packages/ppgan/apps/first_order_predictor.py的如下函数中
检测输出始终为:
导致后续无法生成视频。
The text was updated successfully, but these errors were encountered: