{"id":14037041,"url":"https://github.com/verifid/facereg","last_synced_at":"2025-10-09T15:02:09.511Z","repository":{"id":57428156,"uuid":"164344467","full_name":"verifid/facereg","owner":"verifid","description":"Python module for face recognition with OpenCV and Deep Learning.","archived":false,"fork":false,"pushed_at":"2021-02-17T20:41:40.000Z","size":1642,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-23T10:30:56.825Z","etag":null,"topics":["cnn-for-visual-recognition","computer-vision","deep-learning","face-recognition","hog-features","opencv"],"latest_commit_sha":null,"homepage":"https://facereg.verifid.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/verifid.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-06T20:52:16.000Z","updated_at":"2021-02-17T20:41:43.000Z","dependencies_parsed_at":"2022-09-19T05:10:23.327Z","dependency_job_id":null,"html_url":"https://github.com/verifid/facereg","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/verifid/facereg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verifid%2Ffacereg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verifid%2Ffacereg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verifid%2Ffacereg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verifid%2Ffacereg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/verifid","download_url":"https://codeload.github.com/verifid/facereg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verifid%2Ffacereg/sbom","scorecard":{"id":918861,"data":{"date":"2025-08-18","repo":{"name":"github.com/verifid/facereg","commit":"49eaa21362694ec24f72c42f73c4bcf8a15facda"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":3,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/deploy-docs.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/verifid/facereg/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/verifid/facereg/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy-docs.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/verifid/facereg/deploy-docs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy-docs.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/verifid/facereg/deploy-docs.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy-docs.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/verifid/facereg/deploy-docs.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/deploy-docs.yml:17","Warn: pipCommand not pinned by hash: .github/workflows/deploy-docs.yml:19","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   6 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 3 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-cxjf-x6jp-p7mc","Warn: Project is vulnerable to: GHSA-q799-q27x-vp7w","Warn: Project is vulnerable to: PYSEC-2023-181","Warn: Project is vulnerable to: GHSA-qr4w-53vh-m672","Warn: Project is vulnerable to: PYSEC-2023-183"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T23:27:04.659Z","repository_id":57428156,"created_at":"2025-08-24T23:27:04.660Z","updated_at":"2025-08-24T23:27:04.660Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272847020,"owners_count":25003115,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"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":["cnn-for-visual-recognition","computer-vision","deep-learning","face-recognition","hog-features","opencv"],"created_at":"2024-08-12T03:02:25.837Z","updated_at":"2025-10-09T15:02:09.421Z","avatar_url":"https://github.com/verifid.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"facereg\n=======\n\n.. image:: https://img.shields.io/pypi/v/facereg.svg\n    :target: https://pypi.org/pypi/facereg/\n\n.. image:: https://img.shields.io/pypi/pyversions/facereg.svg\n    :target: https://pypi.org/project/facereg\n\n.. image:: https://github.com/verifid/facereg/workflows/facereg%20ci/badge.svg\n    :target: https://github.com/verifid/facereg/actions\n\n.. image:: https://codecov.io/gh/verifid/facereg/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/verifid/facereg\n\n.. image:: https://pepy.tech/badge/facereg\n    :target: https://pepy.tech/project/facereg\n\n**facereg** is a module for face recognition with OpenCV and Deep Learning.\n\nFor now it can be used for just images. It is easy to use with a handy feature \nwhich downloads images from Google for you with given keywords to create dataset/s.\n\nUses two different technics **CNN** and **HoG** for recognition based on `dlib \u003chttp://dlib.net/\u003e`_'s\nface recognition system with using `face_recognition \u003chttps://github.com/ageitgey/face_recognition\u003e`_.\n**facereg** has totally three different layers and only recognizer has connection on encoder.\n\n|image_layers|\n\nPrerequisites\n=============\n\n* `CMake \u003chttps://cmake.org\u003e`_\n* All dependencies are listed on ``requirements.txt`` and will be installed when you install with **pip**.\n\nInstallation\n============\n\n* Install module using ``pip``::\n\n    $ pip install facereg\n\n\n* Download the latest ``facereg`` library from: https://github.com/verifid/facereg and install module using ``pip``::\n\n    $ pip install -e .\n\n* Extract the source distribution and run::\n\n    $ python setup.py build\n    $ python setup.py install\n\nUsage\n=====\n\n* ``google_images``:\n\n.. code:: python\n\n    import os\n    from facereg import google_images\n\n    output_directory = os.getcwd() + '/datasets' # directory path where you want to save photos\n    image_paths = google_images.download('michael jordan', limit=3)\n\n* ``face_encoder``:\n\n.. code:: python\n\n    import os\n    from facereg import face_encoder\n\n    datasets_path = os.getcwd() + '/datasets'\n    encodings_path = os.path.dirname(os.path.realpath(__file__)) + '/encodings.pickle'\n    # these are default values for this method\n    face_encoder.encode_faces(datasets=datasets_path, encodings=encodings_path, detection_method='cnn')\n\n* ``recognize_faces``:\n\n.. code:: python\n\n    from facereg import recognize_faces\n\n    image_path = 'DIRECTORY PATH OF YOUR_IMAGE'\n    names = recognize_faces.recognize(image_path)\n    # returns found names from your datasets\n\nCLI Usage\n=========\n\n* Download images\n\n.. code::\n\n    # -d: keyword, -l: limit\n    $ python -m facereg -d 'michael jordan'\n    $ python -m facereg -d 'michael jordan' -l 5\n\n* Recognition\n\n.. code::\n\n    # -i: Directory path for image\n    $ python -m facereg -i tests/resources/michael_jordan.jpeg\n\nSample Result\n=============\n\n|image_sample|\n\n.. |image_layers| image:: https://raw.githubusercontent.com/verifid/facereg/master/resources/layers.png\n.. |image_sample| image:: https://raw.githubusercontent.com/verifid/facereg/master/resources/mj\u0026sp.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifid%2Ffacereg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverifid%2Ffacereg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifid%2Ffacereg/lists"}