{"id":13749577,"url":"https://github.com/jaysalvat/jquery.facedetection","last_synced_at":"2026-01-10T16:14:30.989Z","repository":{"id":57282552,"uuid":"1048401","full_name":"jaysalvat/jquery.facedetection","owner":"jaysalvat","description":"A jQuery plugin to detect faces on images, videos and canvases.","archived":false,"fork":true,"pushed_at":"2021-02-28T14:58:19.000Z","size":2341,"stargazers_count":2787,"open_issues_count":0,"forks_count":485,"subscribers_count":158,"default_branch":"master","last_synced_at":"2024-12-30T20:05:27.298Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://facedetection.jaysalvat.com","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"liuliu/ccv","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaysalvat.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":"2010-11-03T16:38:39.000Z","updated_at":"2024-11-19T10:24:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jaysalvat/jquery.facedetection","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaysalvat%2Fjquery.facedetection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaysalvat%2Fjquery.facedetection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaysalvat%2Fjquery.facedetection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaysalvat%2Fjquery.facedetection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaysalvat","download_url":"https://codeload.github.com/jaysalvat/jquery.facedetection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235607123,"owners_count":19017298,"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":[],"created_at":"2024-08-03T07:01:06.287Z","updated_at":"2025-10-07T08:30:26.830Z","avatar_url":"https://github.com/jaysalvat.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"jQuery Face Detection Plugin\n============================\n\n[![Build Status](https://travis-ci.org/jaysalvat/jquery.facedetection.png?branch=master)](https://travis-ci.org/jaysalvat/https://travis-ci.org/jaysalvat/jquery.facedetection)\n[![NPM version](https://badge.fury.io/js/jquery.facedetection.svg)](http://badge.fury.io/js/jquery.facedetection)\n[![Bower version](https://badge.fury.io/bo/jquery.facedetection.svg)](http://badge.fury.io/bo/jquery.facedetection)\n\nA jQuery/Zepto plugin to detect faces on images, videos and canvases to get theirs coordinates.\n\n**Importante note:** This plugin uses an algorithm by [Liu Liu](http://liuliu.me/).\n\nDemos\n-----\n\nWebsite and demo here:\n\n[http://facedetection.jaysalvat.com/](http://facedetection.jaysalvat.com/)\n\nGet started\n-----------\n\nDownload the plugin with the method of your choice.\n\n- Download the [last release](http://jaysalvat.github.io/jquery.facedetection/releases/latest/jquery.facedetection.zip) manually\n- Or install it with [Bower](http://bower.io/).\n\n        bower install jquery.facedetection\n\n- Or install it with [NPM](https://www.npmjs.org/package/jquery.facedetection).\n\n        npm install jquery.facedetection\n\nInclude [jQuery](https://code.jquery.com/jquery-3.2.1.min.js) and the plugin.\n\n    \u003cscript src=\"https://code.jquery.com/jquery-3.2.1.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"path/to/dist/jquery.facedetection.min.js\"\u003e\u003c/script\u003e\n\nSet a picture with some faces in your HTML page.\n\n    \u003cimg id=\"picture\" src=\"img/face.jpg\"\u003e\n\nApply the plugin to this image and get the face coordinates.\n\n    \u003cscript\u003e\n        $('#picture').faceDetection({\n            complete: function (faces) {\n                console.log(faces);\n            }\n        });\n    \u003c/script\u003e\n\nResults\n-------\n\nReturns an array of found faces object:\n\n- **x** — X coord of the face in the picture\n- **y** — Y coord of the face in the picture\n- **width** — Width of the face\n- **height** — Height of the face\n- **positionX** — X position relative to the document\n- **positionY** — Y position relative to the document\n- **offsetX** — X position relative to the offset parent\n- **offsetY** — Y position relative to the offset parent\n- **scaleX** — Ratio between original image width and displayed width\n- **scaleY** — Ratio between original image height and displayed height\n- **confidence** — Level of confidence\n\nSettings\n--------\n- **interval** — Interval (default 4)\n- **minNeighbors** — Minimum neighbors threshold which sets the cutoff level for discarding rectangle groups as face (default 1)\n- **confidence** — Minimum confidence (default null)\n- **async** — Async mode if Worker available (default false). The async mode uses Workers and needs the script to be on the same domain.\n- **grayscale** — Convert to grayscale before processing (default true)\n- **complete** — Callback function trigged after the detection is completed\n\n        complete: function (faces) {\n            // ...\n        }\n\n- **error** — Callback function trigged on errors\n\n        error: function (code, message) {\n            // ...\n        }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaysalvat%2Fjquery.facedetection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaysalvat%2Fjquery.facedetection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaysalvat%2Fjquery.facedetection/lists"}