{"id":16802125,"url":"https://github.com/simonzhaoms/facedetect","last_synced_at":"2025-03-17T06:15:31.877Z","repository":{"id":83508946,"uuid":"165994534","full_name":"simonzhaoms/facedetect","owner":"simonzhaoms","description":"Simple face detection package for MLHUB","archived":false,"fork":false,"pushed_at":"2023-05-12T22:05:17.000Z","size":975,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T15:45:07.736Z","etag":null,"topics":["computer-vision","face-detection","mlhub"],"latest_commit_sha":null,"homepage":null,"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/simonzhaoms.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":"2019-01-16T07:27:14.000Z","updated_at":"2023-05-12T22:05:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f889a16-3ab2-403a-9b9a-7c488d50d979","html_url":"https://github.com/simonzhaoms/facedetect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonzhaoms%2Ffacedetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonzhaoms%2Ffacedetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonzhaoms%2Ffacedetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonzhaoms%2Ffacedetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonzhaoms","download_url":"https://codeload.github.com/simonzhaoms/facedetect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243982292,"owners_count":20378606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["computer-vision","face-detection","mlhub"],"created_at":"2024-10-13T09:38:44.223Z","updated_at":"2025-03-17T06:15:31.852Z","avatar_url":"https://github.com/simonzhaoms.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Face Detection #\n\nThis is a simple face detection example of using machine learning\nalgorithms to search faces within a picture.  It originates from\nShantnu Tiwari's tutorial -- [Face Recognition with Python, in Under\n25 Lines of\nCode](https://realpython.com/face-recognition-with-python/) and [Face\nDetection in Python Using a\nWebcam](https://realpython.com/face-detection-in-python-using-a-webcam/).\nIt uses [OpenCV](https://opencv.org) cascade to break the problem of\ndetecting faces into multiple stages.  The algorithm starts at the top\nleft of a picture and moves down across small blocks of data.  During\nthe moves, a series of coarse-to-fine quick tests are carried out on\neach block.  And it will only detect a face if all stages pass.\n\nSee the github repository for examples of its usage:\nhttps://github.com/simonzhaoms/facedetect\n\n\n## Usage ##\n\n* To install and demostrate the algorithm:\n\n  ```console\n  $ pip3 install mlhub\n  $ ml install   facedetect\n  $ ml configure facedetect\n  $ ml demo      facedetect\n  ```\n\n## Examples\n\nTo detect faces:\n\n  - From a local image file:\n\n    ```console\n    $ ml score facedetect ~/.mlhub/facedetect/images/abba.png\n    ```\n\n  - From an image on the web:\n\n    ```console\n    $ ml score facedetect https://github.com/opencv/opencv/raw/master/samples/data/lena.jpg\n    ```\n\t\n  - From your camera:\n  \n    ```console\n\t$ ml live facedetect\n\t```\n\nSometimes the algorithm will fail to detect real faces, then you need\nto fine-tune the parameters to get the ideal results:\n\n```console\n$ ml score facedetect https://github.com/ageitgey/face_recognition/raw/master/tests/test_images/obama.jpg\n$ ml score facedetect https://github.com/ageitgey/face_recognition/raw/master/tests/test_images/obama.jpg --scaleFactor 1.3\n$ ml live facedetect --scaleFactor 1.3 --minSize 7 --minNeighbors 40\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonzhaoms%2Ffacedetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonzhaoms%2Ffacedetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonzhaoms%2Ffacedetect/lists"}