Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pose_detection_retinaface.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
import tensorflow as tf
import numpy as np
import cv2
import tensorflow.experimental.numpy as tnp

tnp.experimental_enable_numpy_behavior()

# load retinaFace face detector
detector_model = tf.saved_model.load('./models/tf_retinaface_mbv2/')
Expand Down Expand Up @@ -306,6 +309,7 @@ def recover_pad_output(outputs, pad_params):
#============================================================================
# FONT SETTING (font style, size and color)
font = cv2.FONT_HERSHEY_COMPLEX # Text in video
font_size = 0.6
blue = (0, 0, 255)
green = (0,128,0)
red = (255, 0, 0)
Expand Down