{"id":23146582,"url":"https://github.com/rcode879/haar-cascade-detector","last_synced_at":"2026-04-28T08:03:01.192Z","repository":{"id":254929443,"uuid":"847998016","full_name":"Rcode879/Haar-cascade-detector","owner":"Rcode879","description":"A human recognition program that can detect human faces and bodies.","archived":false,"fork":false,"pushed_at":"2024-09-01T22:38:57.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T13:27:07.474Z","etag":null,"topics":["ai","computer-vision","haar-cascade","haar-cascade-classifier","haarcascade-frontalface","machine-learning","opencv","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rcode879.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-27T00:10:45.000Z","updated_at":"2024-11-29T22:01:07.000Z","dependencies_parsed_at":"2024-08-27T02:30:57.346Z","dependency_job_id":"d56b6b36-9323-46e5-8505-0f4c3e96310b","html_url":"https://github.com/Rcode879/Haar-cascade-detector","commit_stats":null,"previous_names":["rcode879/haar-cascade-detector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rcode879/Haar-cascade-detector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rcode879%2FHaar-cascade-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rcode879%2FHaar-cascade-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rcode879%2FHaar-cascade-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rcode879%2FHaar-cascade-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rcode879","download_url":"https://codeload.github.com/Rcode879/Haar-cascade-detector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rcode879%2FHaar-cascade-detector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32371673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","computer-vision","haar-cascade","haar-cascade-classifier","haarcascade-frontalface","machine-learning","opencv","python"],"created_at":"2024-12-17T16:31:05.439Z","updated_at":"2026-04-28T08:03:01.162Z","avatar_url":"https://github.com/Rcode879.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Face and Body Detection using OpenCV\n\nThis Python script utilizes OpenCV to perform real-time detection of frontal faces, side faces, and full bodies using a webcam. The program captures video frames, processes them to detect various features, and displays the results with visual annotations.\n\n## Features\n\n- **Real-time face and body detection**: Detects frontal faces, side faces, and full bodies using Haar Cascade classifiers.\n- **Visual annotations**: Draws rectangles, lines, and text around detected faces and bodies.\n- **Midpoint calculation**: Computes and displays the midpoint of detected frontal faces.\n- **Dynamic updates**: Continuously processes the video stream and updates the display in real-time.\n\n## Installation\n\n1. **Clone the repository**:\n\n    ```bash\n    git clone https://github.com/Rcode879/Haar-cascade-detector.git\n    cd Haar-cascade-detector\n    ```\n\n2. **Install the required libraries**:\n\n    Ensure you have Python installed (preferably Python 3.6 or higher) and install the required dependencies:\n\n    ```bash\n    pip install opencv-python\n    ```\n\n## Usage\n\n1. **Run the script**:\n\n    Execute the script to start the webcam and begin detecting faces and bodies:\n\n    ```bash\n    python detector.py\n    ```\n\n2. **Interact with the application**:\n\n    - The webcam feed will open in a window named `frame`.\n    - The program will highlight detected faces and bodies with annotations.\n    - To stop the program, press the `q` key.\n\n## How It Works\n\n- **Capture Video**: Initializes the video capture from the default webcam.\n- **Set Resolution**: Configures the capture to HD resolution (1280x720).\n- **Load Haar Cascades**: Loads pre-trained Haar Cascade classifiers for detecting frontal faces, side faces, and full bodies.\n- **Process Each Frame**:\n  - Converts each frame to grayscale for efficient detection.\n  - Uses the Haar Cascade classifiers to detect frontal faces, side faces, and bodies.\n  - Draws rectangles, lines, and text annotations around the detected objects.\n  - Displays the annotated frame in a window.\n- **Exit on Key Press**: Ends the loop and releases resources when the `q` key is pressed.\n\n## Dependencies\n\n- [OpenCV](https://opencv.org/) (cv2)\n\n## Acknowledgements\n\nThis project utilizes the OpenCV library for image processing and computer vision tasks. Haar Cascade classifiers are provided by OpenCV's pre-trained models.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcode879%2Fhaar-cascade-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frcode879%2Fhaar-cascade-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcode879%2Fhaar-cascade-detector/lists"}