{"id":40749490,"url":"https://github.com/leandroveronezi/go-recognizer","last_synced_at":"2026-01-21T15:40:16.289Z","repository":{"id":54677217,"uuid":"244026051","full_name":"leandroveronezi/go-recognizer","owner":"leandroveronezi","description":"Face detection and recognition using golang","archived":false,"fork":false,"pushed_at":"2023-04-17T18:00:38.000Z","size":29120,"stargazers_count":73,"open_issues_count":0,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-13T19:58:35.452Z","etag":null,"topics":["cnn-classification","dlib-face-detection","dlib-face-recognition","face-detection","face-recognition","golang"],"latest_commit_sha":null,"homepage":"https://leandroveronezi.github.io/go-recognizer","language":"Go","has_issues":false,"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/leandroveronezi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-02-29T19:07:10.000Z","updated_at":"2025-12-04T04:17:10.000Z","dependencies_parsed_at":"2024-06-18T21:39:58.141Z","dependency_job_id":null,"html_url":"https://github.com/leandroveronezi/go-recognizer","commit_stats":null,"previous_names":["leandroveronezi/recognizer"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/leandroveronezi/go-recognizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandroveronezi%2Fgo-recognizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandroveronezi%2Fgo-recognizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandroveronezi%2Fgo-recognizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandroveronezi%2Fgo-recognizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leandroveronezi","download_url":"https://codeload.github.com/leandroveronezi/go-recognizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leandroveronezi%2Fgo-recognizer/sbom","scorecard":{"id":581936,"data":{"date":"2025-08-11","repo":{"name":"github.com/leandroveronezi/go-recognizer","commit":"95b348022f568b2482d2c968ca84e865aa162b51"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/26 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-q7pp-wcgr-pffx","Warn: Project is vulnerable to: GO-2023-1990 / GHSA-j3p8-6mrq-6g7h","Warn: Project is vulnerable to: GO-2023-1989 / GHSA-x92r-3vfx-4cv3","Warn: Project is vulnerable to: GO-2024-2937 / GHSA-9phm-fm57-rhg8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T19:24:16.141Z","repository_id":54677217,"created_at":"2025-08-20T19:24:16.141Z","updated_at":"2025-08-20T19:24:16.141Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28635919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T15:01:31.228Z","status":"ssl_error","status_checked_at":"2026-01-21T14:42:58.942Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-classification","dlib-face-detection","dlib-face-recognition","face-detection","face-recognition","golang"],"created_at":"2026-01-21T15:40:12.024Z","updated_at":"2026-01-21T15:40:16.274Z","avatar_url":"https://github.com/leandroveronezi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Face detection and recognition using golang\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/leandroveronezi/go-recognizer)](https://goreportcard.com/report/github.com/leandroveronezi/go-recognizer)\n[![GoDoc](https://godoc.org/github.com/leandroveronezi/go-recognizer?status.png)](https://godoc.org/github.com/leandroveronezi/go-recognizer)\n![MIT Licensed](https://img.shields.io/github/license/leandroveronezi/go-recognizer.svg)\n![](https://img.shields.io/github/repo-size/leandroveronezi/go-recognizer.svg)\n[![](https://img.shields.io/badge/Require-go--face-blue.svg)](https://github.com/Kagami/go-face)\n\n## Requirements\ngo-recognizer require go-face to compile. go-face need to have dlib (\u003e= 19.10) and libjpeg development packages installed.\n\n### Ubuntu 18.10+, Debian sid\n\nLatest versions of Ubuntu and Debian provide suitable dlib package so just run:\n\n```bash\n# Ubuntu\nsudo apt-get install libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg-turbo8-dev\n# Debian\nsudo apt-get install libdlib-dev libblas-dev libatlas-base-dev liblapack-dev libjpeg62-turbo-dev\n```\n\n### macOS\n\nMake sure you have [Homebrew](https://brew.sh) installed.\n\n```bash\nbrew install dlib\n```\n\n### Windows\n\nMake sure you have [MSYS2](https://www.msys2.org) installed.\n\n1. Run `MSYS2 MSYS` shell from Start menu\n2. Run `pacman -Syu` and if it asks you to close the shell do that\n3. Run `pacman -Syu` again\n4. Run `pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-dlib`\n5.\n   1. If you already have Go and Git installed and available in PATH uncomment\n      `set MSYS2_PATH_TYPE=inherit` line in `msys2_shell.cmd` located in MSYS2\n      installation folder\n   2. Otherwise run `pacman -S mingw-w64-x86_64-go git`\n6. Run `MSYS2 MinGW 64-bit` shell from Start menu to compile and use go-face\n\n### Other systems\n\nTry to install dlib/libjpeg with package manager of your distribution or\n[compile from sources](http://dlib.net/compile.html). Note that go-face won't\nwork with old packages of dlib such as libdlib18. Alternatively create issue\nwith the name of your system and someone might help you with the installation\nprocess.\n\n\n## Usage\n\nTo use go-recognizer in your Go code:\n\n```go\nimport \"github.com/leandroveronezi/go-recognizer\"\n```\n\nTo install go-recognizer in your $GOPATH:\n\n```bash\ngo get github.com/leandroveronezi/go-recognizer\n```\n\n## Models\n\nCurrently `shape_predictor_5_face_landmarks.dat`, `mmod_human_face_detector.dat` and\n`dlib_face_recognition_resnet_model_v1.dat` are required. You may download them\nfrom [dlib-models](https://github.com/davisking/dlib-models) repo:\n\n```bash\nmkdir models \u0026\u0026 cd models\nwget https://github.com/davisking/dlib-models/raw/master/shape_predictor_5_face_landmarks.dat.bz2\nbunzip2 shape_predictor_5_face_landmarks.dat.bz2\nwget https://github.com/davisking/dlib-models/raw/master/dlib_face_recognition_resnet_model_v1.dat.bz2\nbunzip2 dlib_face_recognition_resnet_model_v1.dat.bz2\nwget https://github.com/davisking/dlib-models/raw/master/mmod_human_face_detector.dat.bz2\nbunzip2 mmod_human_face_detector.dat.bz2\n```\n\n## Examples\n\n###### Face detection \n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/leandroveronezi/go-recognizer\"\n\t\"path/filepath\"\n)\n\nconst fotosDir = \"fotos\"\nconst dataDir = \"models\"\n\nfunc main() {\n\n\trec := recognizer.Recognizer{}\n\terr := rec.Init(dataDir)\n\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\trec.Tolerance = 0.4\n\trec.UseGray = true\n\trec.UseCNN = false\n\tdefer rec.Close()\n\n\tfaces, err := rec.RecognizeMultiples(filepath.Join(fotosDir, \"elenco3.jpg\"))\n\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\timg, err := rec.DrawFaces2(filepath.Join(fotosDir, \"elenco3.jpg\"), faces)\n\n    \tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\t\n\trec.SaveImage(\"faces2.jpeg\", img)\n\n}\n```\n\n![](https://leandroveronezi.github.io/go-recognizer/examples/faces2.jpg)\n\n\n\n\n\n\n\n\n\n###### Face recognition \n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/leandroveronezi/go-recognizer\"\n\t\"path/filepath\"\n)\n\nconst fotosDir = \"fotos\"\nconst dataDir = \"models\"\n\nfunc addFile(rec *recognizer.Recognizer, Path, Id string) {\n\n\terr := rec.AddImageToDataset(Path, Id)\n\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n}\n\nfunc main() {\n\n\trec := recognizer.Recognizer{}\n\terr := rec.Init(dataDir)\n\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\trec.Tolerance = 0.4\n\trec.UseGray = true\n\trec.UseCNN = false\n\tdefer rec.Close()\n\n\taddFile(\u0026rec, filepath.Join(fotosDir, \"amy.jpg\"), \"Amy\")\n\taddFile(\u0026rec, filepath.Join(fotosDir, \"bernadette.jpg\"), \"Bernadette\")\n\taddFile(\u0026rec, filepath.Join(fotosDir, \"howard.jpg\"), \"Howard\")\n\taddFile(\u0026rec, filepath.Join(fotosDir, \"penny.jpg\"), \"Penny\")\n\taddFile(\u0026rec, filepath.Join(fotosDir, \"raj.jpg\"), \"Raj\")\n\taddFile(\u0026rec, filepath.Join(fotosDir, \"sheldon.jpg\"), \"Sheldon\")\n\taddFile(\u0026rec, filepath.Join(fotosDir, \"leonard.jpg\"), \"Leonard\")\n\n\trec.SetSamples()\n\n\tfaces, err := rec.ClassifyMultiples(filepath.Join(fotosDir, \"elenco3.jpg\"))\n\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\n\timg, err := rec.DrawFaces(filepath.Join(fotosDir, \"elenco3.jpg\"), faces)\n\n    \tif err != nil {\n\t\tfmt.Println(err)\n\t\treturn\n\t}\n\t\n\trec.SaveImage(\"faces.jpg\", img)\n\n}\n\n```\n\n![](https://leandroveronezi.github.io/go-recognizer/examples/faces.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleandroveronezi%2Fgo-recognizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleandroveronezi%2Fgo-recognizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleandroveronezi%2Fgo-recognizer/lists"}