justadudewhohacks / face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
MIT License
16.49k stars 3.68k forks source link

face-mask implementation #620

Open inandi opened 4 years ago

inandi commented 4 years ago

Hi,

first of all, thank you for this awesome plugin...cheers!!!

I just want to know, how I can detect face with a mask or not? do i need to create new model for this. I am trying to understand the manifest JSON files and shard files. can you give me some tips!!!

m-alcu commented 4 years ago

i'm in the same wave... I suppose that it is necessary to train a net similar to face expression or perhaps swap this net with a facemask net....

How to train a new net?

luanfonceca commented 4 years ago

+1 to this issue. Did you guys were able to figure that out?

Thanks!

rm5565 commented 4 years ago

+1. Also looking for a face-with-mask detection solution with face-api.js. Would be great.

raulocho commented 4 years ago

Hi there i have a facemask model trained, now just trying figure how i setup that into faceapi for concat the results. Any help will be welcome guys.

Great proyect thank you for the efford

aveloso4 commented 4 years ago

@raulocho Did you already managed to setup your trained model into faceapi?

raulocho commented 3 years ago

@aveloso4 Yes exactly, sorry for delay answering, had a bad time that weeks with work. I have the model ready just need take the face from face api and concat the result in the analysis Json.

Reaper622 commented 3 years ago

@raulocho Can u show some code about how to use your own mask model with face-api.js ?