Skip to content

# ----------------- Face Detection ----------------- def test_face_detection(): print("\n--- Testing Face Detection ---") mp_face = mp.solutions.face_detection face = mp_face.FaceDetection() img = random_image() results = face.process(cv2.cvtColor(img, cv2.COLOR_BGR2RGB)) if results.detections: print("Faces detected:", len(results.detections)) else: print("No faces detected") cv2.imshow("Face Detection", img) cv2.waitKey(1000) cv2.destroyAllWindows() #Create Face detection#576

Open
22ES045 wants to merge 1 commit intogoogle-ai-edge:mainfrom
22ES045:patch-1

Commits

Commits on Sep 9, 2025