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

Conversation

@22ES045
Copy link

@22ES045 22ES045 commented Sep 9, 2025

import cv2
import mediapipe as mp
import numpy as np

@google-cla
Copy link

google-cla bot commented Sep 9, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant