r/javascript • • Jun 25 '18

face-api.js — JavaScript API for Face Recognition in the Browser with tensorflow.js

https://medium.com/@muehler.v/face-api-js-javascript-api-for-face-recognition-in-the-browser-with-tensorflow-js-bcc2a6c4cf07
326 Upvotes

10 comments sorted by

18

u/[deleted] Jun 26 '18

Sick! I want to tinker with this when I get home. Maybe use for future project with raspberry pi.

10

u/psayre23 Jun 26 '18

Needs a bit more CPU than a RaspPi can handle. But I’d bet an Asus Tinker Board would be enough.

11

u/house_monkey Jun 26 '18

Horrifying thumbnail

2

u/PurplePerceptron Jun 26 '18

Use the extracted attributes of faces to train a KNN classifier. Check this out https://github.com/mljs/knn

2

u/[deleted] Jun 26 '18

Depending on the scale of your problem. Using euclidean distance as a simple metric works very well, plus you don't have to train a classifier. In a large scale scenario, euclidean distance does not scale anymore, that's when you would train a classifier :)

1

u/ADLYT Jul 12 '18

Hey,
I am posting a whole series of Videos on TensorflowJS on youtube..The Series  Contains Basics to advances stuffs..It shall also Contains Basic and Advance Examples.   

Have a Look at https://www.youtube.com/watch?v=qa1OXssGBHw

1

u/noreallyimthepope Jun 26 '18

How long before an extension that replaces all faces on the internet with Nick Cave? Paging /r/OneTrueGod

1

u/[deleted] Jun 26 '18

A deep fakes chrome extension? Challenge accepted ;)

0

u/[deleted] Jun 26 '18

[deleted]

0

u/noreallyimthepope Jun 26 '18

lol oops

Just saw an article headline with his (Caves) name so it must have stuck :-)

0

u/Shamim77777 Jun 26 '18

Do you have any Vanilla JS implementation?