{"id":23536210,"url":"https://github.com/jdeng/goface","last_synced_at":"2026-03-05T16:40:08.295Z","repository":{"id":57495918,"uuid":"118657297","full_name":"jdeng/goface","owner":"jdeng","description":"Face Detector based on MTCNN, tensorflow and golang","archived":false,"fork":false,"pushed_at":"2022-08-04T17:03:41.000Z","size":1838,"stargazers_count":120,"open_issues_count":0,"forks_count":26,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-23T08:59:50.211Z","etag":null,"topics":["face-detector","golang","mtcnn","tensorflow"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/jdeng.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}},"created_at":"2018-01-23T19:18:17.000Z","updated_at":"2025-02-27T15:06:54.000Z","dependencies_parsed_at":"2022-08-28T20:20:29.380Z","dependency_job_id":null,"html_url":"https://github.com/jdeng/goface","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/jdeng%2Fgoface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdeng%2Fgoface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdeng%2Fgoface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdeng%2Fgoface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdeng","download_url":"https://codeload.github.com/jdeng/goface/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250403832,"owners_count":21424794,"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":["face-detector","golang","mtcnn","tensorflow"],"created_at":"2024-12-26T02:17:30.728Z","updated_at":"2026-03-05T16:40:08.246Z","avatar_url":"https://github.com/jdeng.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goface\nFace detector/embeddings based on MTCNN, tensorflow and golang\n\nImplementation based on https://github.com/davidsandberg/facenet . Tensorflow (1.4.1) and the golang binding are required. \n\nModel file `cmd/mtcnn.pb` is converted from `facenet` too (see `scripts/convert.py`. You will need to add `facenet/src` to PYTHONPATH to use it). You may need to regenerate the model file for a different version of tensorflow.\n\nThe `facenet` protobuf model file is available for download (see instructions from `facenet`).\n\n# Usage\n\n```\n\t// detection\n\tbs, err := ioutil.ReadFile(*imgFile)\n\timg, err := goface.TensorFromJpeg(bs)\n\tdet, err := goface.NewMtcnnDetector(\"mtcnn.pb\")\n\tbbox, err := det.DetectFaces(img) //[][]float32, i.e., [x1,y1,x2,y2],...\n\n\t// embeddings\n\tmean, std := goface.MeanStd(img)\n\twimg, err := goface.PrewhitenImage(img, mean, std)\n\tfn, err := goface.NewFacenet(\"facenet.pb\")\n\temb, err := fn.Embedding(wimg)\n```\nSee `cmd/detect.go`. Use `go build` to build the binary and run with `--help`.\n\n# Notes\n\n* Not exactly the same (e.g., nms/padding is depending on tensorflow implementation).\n* Not fully tested. Performance could a little bit worse.\n* Face landmark support not implemented.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdeng%2Fgoface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdeng%2Fgoface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdeng%2Fgoface/lists"}