{"_id":"face-detect","_rev":"15-a49c0b21275c6bb2847f2df9670456c0","name":"face-detect","description":"A pure-JS facial detection library","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"face-detect","main":"lib/ccv.js","version":"0.0.1","author":{"name":"Owen Smith","email":"owen@orls.co.uk"},"contributors":[{"name":"Liu Liu","url":"http://liuliu.me/"}],"description":"A pure-JS facial detection library","keywords":["face detection","face","ccv","vision"],"repository":{"url":"https://github.com/orls/ccv-purejs.git"},"dependencies":{"canvas":">=0.5.4"},"engines":{"node":">=0.4.0"},"devDependencies":{},"_id":"face-detect@0.0.1","_engineSupported":true,"_npmVersion":"1.0.1rc9","_nodeVersion":"v0.4.2","_defaultsLoaded":true,"dist":{"shasum":"aaeeb2c7431db4c234efcfc0f8ba66b38556c46d","tarball":"https://registry.npmjs.org/face-detect/-/face-detect-0.0.1.tgz","integrity":"sha512-LkHFXKW+l/zA3/At1c29qJkV1GOS8hrF7xczZ8ugjAZZBDaZj1ghLJ3xw3y4RL32VgmJnJVnAEdw/wlLcniufg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDnRkbHDLW/1NlZTXMF2cJFC0rF5EAjbSbPcnicZCjUhAiBGU563oQ+1Wh01zeIGs5gDQa8LVkFUen63gnbee5C6jA=="}]}},"0.0.2":{"name":"face-detect","main":"lib/ccv.js","version":"0.0.2","author":{"name":"Owen Smith","email":"owen@orls.co.uk"},"contributors":[{"name":"Liu Liu","url":"http://liuliu.me/"}],"description":"A pure-JS facial detection library","keywords":["face detection","face","ccv","vision"],"repository":{"url":"git+https://orls@github.com/orls/ccv-purejs.git"},"dependencies":{"canvas":">=0.5.4"},"engines":{"node":">=0.4.0"},"gitHead":"1fbe93e145484b565a68abe2ec731e42df60e13a","bugs":{"url":"https://github.com/orls/ccv-purejs/issues"},"homepage":"https://github.com/orls/ccv-purejs#readme","_id":"face-detect@0.0.2","scripts":{},"_shasum":"d1041bfbb2eb9f2d97cbe141136bcf854b393265","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.11.15","_npmUser":{"name":"orls","email":"owen@orls.co.uk"},"dist":{"shasum":"d1041bfbb2eb9f2d97cbe141136bcf854b393265","tarball":"https://registry.npmjs.org/face-detect/-/face-detect-0.0.2.tgz","integrity":"sha512-Bw3q4a+PNLpo3TKwW+0h9SeLmrWbbd2il3MKmWLrQADKzQ7HWngcFjVXW4pQzOSoPy96bee14h9/3KCo6Kc2Xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMiBupriJ+coJ30DRCpwh5iP70Owofy3bgLZCRMk3twAIhAIxBeby4/zmT8pQi3IuKLdf2A0UXOYyEV4asACXh/gBH"}]},"maintainers":[{"name":"orls","email":"owen@orls.co.uk"}]}},"maintainers":[{"name":"orls","email":"owen@orls.co.uk"}],"time":{"modified":"2022-06-17T23:13:54.730Z","created":"2011-04-30T17:08:52.188Z","0.0.1":"2011-04-30T17:08:53.404Z","0.0.2":"2015-05-12T09:21:57.196Z"},"author":{"name":"Owen Smith","email":"owen@orls.co.uk"},"repository":{"url":"git+https://orls@github.com/orls/ccv-purejs.git"},"users":{"jweidler":true,"stany":true,"calmwinds":true,"goliatone":true,"miketwalker":true},"keywords":["face detection","face","ccv","vision"],"contributors":[{"name":"Liu Liu","url":"http://liuliu.me/"}],"readme":"#Face detection js\n\nA fork of the [pure-javascript face detection](https://github.com/liuliu/ccv/tree/current/js) in [Liu Liu's CCV library](https://github.com/liuliu/ccv) (in branch 'current'), converted for Node and npm.\n\n# Usage\n\nThis package provides the method `detect_objects`, to which you pass a parameters hash. The most important parameter is the canvas obj, into which you should have already loaded an image.\n\nThis method returns an array of hashes, each representing a face, with the following fields:\n\n* `x`, `y` : the coordinates of the top-left corner of the face's bounding box\n* `width`, `height` : the pixel dimensions of the face's bounding box\n* `neighbours`, `confidence` : info from the detection algorithm\n\n### Simple example\n\n    var face_detect = require('face-detect'),\n        Canvas = require('canvas');\n    \n    // ... initialize a canvas object ...\n    \n    var result = face_detect.detect_objects({ \"canvas\" : myCanvas,\n      \"interval\" : 5,\n      \"min_neighbors\" : 1 });\n    \n    console.log('Found ' + result.length  + ' faces.');\n    \n    for (var i = 0; i < result.length; i++){\n      var face =  result[i];\n      console.log(face);\n    }\n    \n\nin future, directly passing an image path or a buffer containing raw png data will be supported\n\n# Credits\n\nIt's important to note that this is *not my work*. All credit for the actual face-detection work should go to [Liu Liu](https://github.com/liuliu/).\n\nI have just taken the browser JS from that project (in branch [current](https://github.com/liuliu/ccv/tree/current/js) ), plucked out the threading support and made it useable with node & npm via [node-canvas](https://github.com/LearnBoost/node-canvas/)\n\n# Install\n\nThis project is installed with [npm](http://npmjs.org).\n\n## from npm repository\n  \n    $cd my-project\n    $ npm install face-detect\n\n## locally with npm\n\n    $ git clone https://orls@github.com/orls/ccv-purejs.git face-detect\n    $ cd face-detect\n    $ npm install\n    $ cd ../my-project\n    $ npm install ../face-detect\n","readmeFilename":"README.md","homepage":"https://github.com/orls/ccv-purejs#readme","bugs":{"url":"https://github.com/orls/ccv-purejs/issues"}}