Ehi, puoi usare questa API Face Recognition + photobooth.js esempio che ho appena pubblicato - http://mashape.tumblr.com/post/45712257463/face-recognition-using-javascript-and-mashape
La risposta da parte del API consente di affrontare le coordinate elemento, smile detection, e Face Recognition sulla base di una libreria di immagini che hai caricato:
{
“status”: “success”,
“images”: [
“http://lambdal.com/tiger.jpg”
],
“photos”: [
{
“url”: “http://lambdal.com/tiger.jpg”,
“width”: 600,
“tags”: [
{
“eye_left”: {
“y”: 116,
“x”: 357
},
“confidence”: 0.978945010372561,
“center”: {
“y”: 130,
“x”: 339
},
“mouth_right”: {
“y”: 178,
“x”: 366
},
“mouth_left”: {
“y”: 178,
“x”: 310
},
“height”: 140,
“width”: 140,
“mouth_center”: {
“y”: 178,
“x”: 338
},
“nose”: {
“y”: 147,
“x”: 336
},
“eye_right”: {
“y”: 115,
“x”: 314
},
“tid”: “31337”,
“attributes”: [
{
“smile_rating”: 0.7,
“smiling”: true,
“confidence”: 0.7
},
{
“gender”: “male”,
“confidence”: 0.5982579729635792
}
],
“uids”: [
{
“confidence”: 0.742,
“prediction”: “chris1”,
“uid”: “[email protected]”
},
{
“confidence”: 0.161,
“prediction”: “hazel”,
“uid”: “[email protected]”
},
{
“confidence”: 0.065,
“prediction”: “dylan”,
“uid”: “[email protected]”
}
]
}
],
“height”: 585
}
]
}
I reale dubito che ci sarebbe una parte del tutto client-side (non abbastanza performante) - la cosa migliore sarebbe probabilmente scrivere un'interfaccia su OpenCV dal lato server e chiamarla dal tuo JS. – rfw
Poiché questo viene chiuso come off-topic, potremmo migrarlo su https://softwarerecs.stackexchange.com? – hippietrail
@hippietrail Vorrei poterlo fare, ma [i moderatori non lo permetteranno] (http://meta.stackoverflow.com/a/322845/975097). –