fpsOpencvDnn = frame_count / tt_opencvDnn label = "OpenCV DNN ; FPS : {:.2f}".format(fpsOpencvDnn) cv2.putText(outOpencvDnn, label, (10,50), cv2.FONT_HERSHEY_SIMPLEX, 1.4, (0, 0, 255), 3, cv2.LINE_AA) cv2.imshow("Face Detection Comparison", outOpencvDnn) vid_writer.write(...