{"id":15684150,"url":"https://github.com/micheleriva/face-detection","last_synced_at":"2025-05-07T15:21:44.423Z","repository":{"id":57232165,"uuid":"158869973","full_name":"micheleriva/face-detection","owner":"micheleriva","description":"👤 Node.js face detection library based on OpenCv","archived":false,"fork":false,"pushed_at":"2021-10-15T18:10:15.000Z","size":1769,"stargazers_count":10,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T21:26:29.393Z","etag":null,"topics":["computer-vision","face-detection","face-detection-using-opencv","image-recognition","neural-network","neural-networks","node","node-js","nodejs","opencv","opencv3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/micheleriva.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-23T19:16:12.000Z","updated_at":"2024-07-11T05:46:29.000Z","dependencies_parsed_at":"2022-08-31T14:10:32.818Z","dependency_job_id":null,"html_url":"https://github.com/micheleriva/face-detection","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/micheleriva%2Fface-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheleriva%2Fface-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheleriva%2Fface-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/micheleriva%2Fface-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/micheleriva","download_url":"https://codeload.github.com/micheleriva/face-detection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252902729,"owners_count":21822292,"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","face-detection-using-opencv","image-recognition","neural-network","neural-networks","node","node-js","nodejs","opencv","opencv3"],"created_at":"2024-10-03T17:11:40.795Z","updated_at":"2025-05-07T15:21:44.405Z","avatar_url":"https://github.com/micheleriva.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 👤 Face Detection OCV3.js\n\nSimple face detection class based on OpenCV for Node.js on top of C++ APIS.\n\n# Installation\n\n```sh\n$ yarn add face-detection\n```\n\nor\n\n```sh\n$ npm install --save face-detection\n```\n\nNote: installation may require some minutes. This library uses `opencv4nodejs` which needs to be compiled from sources and that process is gonna take some time.\n\n# Usage\n\n```js\nimport FaceDetection as FD from 'face-detection'\n\nasync function detection() {\n\n  const IMG = await FD.readImg('./foo.jpg') // this will return a cvImgObject\n  const RES = await FD.detect(IMG)\n\n  console.log(JSON.stringify(RES, null, 2))\n\n}\n\ndetection()\n\n```\n\noutput: \n\n```js\n{\n  \"objects\": [\n    {\n      \"height\": 69,         // height of face bounding\n      \"width\": 69,          // width of face bounding\n      \"y\": 69,              // y coordinate of left-up bounding corner\n      \"x\": 345              // x coordinate of left-up bounding corner\n    },\n    {\n      \"height\": 148,        // height of face bounding\n      \"width\": 148,         // width of face bounding\n      \"y\": 4,               // y coordinate of left-up bounding corner\n      \"x\": 300              // x coordinate of left-up bounding corner\n    }\n  ],\n  \"numDetections\": [        // numDetections.length = number of faces found\n    71,                     // accuracy\n    4                       // accuracy\n  ]\n}\n```\n\n# Examples\n\n![example1](/examples/01.png)\n![example2](/examples/02.png)\n![example3](/examples/03.png)\n![example4](/examples/04.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicheleriva%2Fface-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicheleriva%2Fface-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicheleriva%2Fface-detection/lists"}