{"id":15949030,"url":"https://github.com/pubkey/face-api-docker-http","last_synced_at":"2025-08-13T18:20:52.377Z","repository":{"id":66053636,"uuid":"331744235","full_name":"pubkey/face-api-docker-http","owner":"pubkey","description":"A microservice for face-api.js to detect faces in images via HTTP requests","archived":false,"fork":false,"pushed_at":"2021-04-30T06:11:33.000Z","size":11126,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-07T14:05:58.931Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/pubkey.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":"2021-01-21T20:18:38.000Z","updated_at":"2021-04-30T06:11:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"1fbc684e-98d2-4133-811a-89cc184406cc","html_url":"https://github.com/pubkey/face-api-docker-http","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pubkey/face-api-docker-http","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Fface-api-docker-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Fface-api-docker-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Fface-api-docker-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Fface-api-docker-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pubkey","download_url":"https://codeload.github.com/pubkey/face-api-docker-http/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Fface-api-docker-http/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270287536,"owners_count":24558625,"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-13T02:00:09.904Z","response_time":66,"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":[],"created_at":"2024-10-07T12:12:39.918Z","updated_at":"2025-08-13T18:20:52.360Z","avatar_url":"https://github.com/pubkey.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# face-api-docker-http\nA microservice for face-api.js to detect faces in images via HTTP requests\n\nRuns [face-api.js](https://github.com/justadudewhohacks/face-api.js/) together with an express server.\n\n\nDocker compose:\n\n```yml\n  face-api:\n    build: https://github.com/pubkey/face-api-docker-http.git\n    ports:\n      - \"5006:5006\"\n```\n\nExample curl request:\n\n```bash\ncurl \\\n       -F 'image=@./face.jpg'                 \\\n       -f http://localhost:5006/upload \u003e out.json\n```\n\nExample request with [got](https://github.com/sindresorhus/got):\n\n```typescript\nconst buffer = await fs.readFileSync(path.join(__dirname, 'face.jpg'));\nconst base64data = buffer.toString('base64');\nconst postData = {\n    image: base64data\n};\nconst response = await got.post\u003cDetectedFace[]\u003e({\n    url: 'http://localhost:5006/base64',\n    responseType: 'json',\n    json: postData\n});\n```\n\n\nExample result:\n\n```json\n[\n  {\n    detection: {\n      _imageDims: [Object],\n      _score: 0.6555111617967467,\n      _classScore: 0.6555111617967467,\n      _className: '',\n      _box: [Object]\n    },\n    landmarks: { _imgDims: [Object], _shift: [Object], _positions: [Array] },\n    unshiftedLandmarks: { _imgDims: [Object], _shift: [Object], _positions: [Array] },\n    alignedRect: {\n      _imageDims: [Object],\n      _score: 0.6555111617967467,\n      _classScore: 0.6555111617967467,\n      _className: '',\n      _box: [Object]\n    },\n    gender: 'male',\n    genderProbability: 0.9573085904121399,\n    age: 30.663358688354492\n  }\n]\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubkey%2Fface-api-docker-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpubkey%2Fface-api-docker-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubkey%2Fface-api-docker-http/lists"}