# Face bounding box creation
faceBoxes = []
for i in range(detections.shape[2]):
#Bounding box creation if confidence > 0.7
confidence = detections[0, 0, i, 2]
if confidence > 0.7:
x1 = int(detections[0, 0, i, 3]*fr_w)
y1 = int(detections[0, 0, i, 4]*fr_h)
x2 = int(detections[0, 0, i, 5]*fr_w)
y2 = int(detections[0, 0, i, 6]*fr_h)
faceBoxes.append([x1, y1, x2, y2])
cv2.rectangle(fr_cv, (x1, y1), (x2, y2),
(0, 255, 0), int(round(fr_h/150)), 8)
faceBoxes