Real Time AI Face Landmark Detection in 20 Minutes with Tensorflow.JS and React

Поделиться
HTML-код
  • Опубликовано: 19 сен 2020
  • Ever wondered how snapchat filters work?
    Three words...facial landmark recognition!
    Facial landmark recognition allows you to detect a number of different points on your face that together make up your eyes, mouth, ears, nose and so on. From there you're able to apply overlays aka filters to get your snap! But there's so much more that it can be used for like emotion analysis and face tracking.
    Sounds a little difficult though, right? Well, in this video you'll learn how to build your own face landmark detector app in 20 minutes using Javascript and Tensorflow.JS.
    In this video you'll learn how to:
    1. Install the Tensorflow.JS facemesh model
    2. Build a Javascript React.JS face landmark detection app
    3. Detecting landmarks on your face in real time using your webcam
    Resources:
    Tensorflow.Js models: www.tensorflow.org/js/models
    HTML Canvas: developer.mozilla.org/en-US/d...
    Create React App: reactjs.org/docs/create-a-new...
    GitHub: github.com/nicknochnack/Facia...
    Oh, and don't forget to connect with me!
    LinkedIn: / nicholasrenotte
    Facebook: / nickrenotte
    GitHub: github.com/nicknochnack
    Happy coding!
    Nick
    P.s. Let me know how you go and drop a comment if you need a hand!
    Music by Epidemic Sounds
  • НаукаНаука

Комментарии • 445

  • @ThangNguyen-zi8bm
    @ThangNguyen-zi8bm 3 года назад +5

    One of the best Facemesh tutorials I've seen so far online. Keep up the good work.

  • @Altanis1
    @Altanis1 3 года назад +20

    why dont you have more subs/views? youre amazing at explaining your code and actually seem passionate unlike most coding tutorial creators. keep going!

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +5

      Thanks soo much, I've only been going at it since May so we're only just getting started! But plenty more to come!!!

  • @yx5991
    @yx5991 3 года назад +43

    I haven't even started watching and can already tell you deserve more views.

  • @froyect
    @froyect 3 года назад +3

    Best 30 minutes spent in my life

  • @nicoleiva5498
    @nicoleiva5498 3 года назад +3

    You deserve more subs dude. I'm on your team now

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Hell yeah!! Welcome to the team @Nico Leiva!

  • @PTAH612
    @PTAH612 3 года назад +8

    WHOA YOU WILL RECEIVED ONE MILLIONS OF VIEWS THAT AMAZING CONTENT RIGHT HERE

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Hell yeah, that's the goal, thanks so much 😊!!

  • @sufyan2317
    @sufyan2317 3 года назад +2

    Absolutely great tutorial...And believe me, you will get dozens of subscriber soon..
    All the Best!

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      Heya @Sufyan Khan, thanks a million! More tutorials to come 👨‍💻!

  • @diversecontent788
    @diversecontent788 3 года назад +1

    Thanks a lot man! looking for more quality content like these

  • @mustafaashraf1340
    @mustafaashraf1340 3 года назад +2

    best tutorial ever

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Thanks so much @mustafa! Definitely, in the works!

  • @tkipkemboi
    @tkipkemboi 3 года назад +2

    You are AWESOME!!! Your tutorials are easy to follow and I love how you break down the concepts as well.
    As a point of feedback, I would love if you could mention some possible applications for noobs.
    Thanks again,
    Subscriber!

  • @dy6697
    @dy6697 2 года назад +1

    Great content man, thank you !!!

  • @codelucky
    @codelucky 3 года назад +2

    As a backend dev, it wasn't difficult to understand the front-end part.
    I like your teaching style. 👍

  • @AndyBnq
    @AndyBnq 2 месяца назад

    Bro thanks very much for all these tutorials.

  • @TagenigmaLLC
    @TagenigmaLLC 3 года назад +1

    Best Face Landmark Detection + Coding Tutorial that I've seen!

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Thanks so much @Timothy! So glad you enjoyed it. Same Timothy from LinkedIn?

    • @TagenigmaLLC
      @TagenigmaLLC 3 года назад +1

      @@NicholasRenotte Yes! :) It's me. I just sent you another epic video idea.

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      @@TagenigmaLLC yesss, alrighty will check it out!

  • @woutvandesompele8310
    @woutvandesompele8310 2 года назад +1

    This was super helpful thank you very much

  • @diegocaumont5677
    @diegocaumont5677 3 года назад +1

    Dope tutorial, keep it going :)

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Thanks so much @Diego Caumont! A bunch more coming. 😄

  • @StaMariaRock
    @StaMariaRock Год назад

    This is an amazing video, what could make it even better, is possible applications for the landmarks, for example, detecting certain dots, and based on it's movements, detect micro-expressions, that could be interesting

  • @CarlosMagno-hp2bo
    @CarlosMagno-hp2bo 11 месяцев назад

    Thank you friend for sharing the teachings learned here will be of great help for my projects

  • @scottpuckett5403
    @scottpuckett5403 3 года назад +1

    great stuff man!

  • @reachinganwesha123
    @reachinganwesha123 3 года назад +1

    Love from India.... Hoping one day I can also figure it out by myself...... Ur videos are awesome..... Explained well..

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      Awesome! Let me know if you need anything along the way :)!

  • @amoshnin
    @amoshnin 3 года назад +1

    Thanks so much for your effort!

  • @jerrylee1657
    @jerrylee1657 3 года назад +1

    Amazing tutorials!

  • @vijayshanker3059
    @vijayshanker3059 3 года назад +1

    Really awesome video.

  • @pierpaologuidotti6342
    @pierpaologuidotti6342 8 месяцев назад

    Thank you to make me gradueated

  • @yonakislinger6301
    @yonakislinger6301 3 года назад +2

    Found your channel today! Great content!

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      🙏 Thanks so much @Yona, anything you'd like to see?

    • @yonakislinger6301
      @yonakislinger6301 3 года назад +1

      @@NicholasRenotte Yeah! I would love to be able to work with the detected landmark points and trigger certain areas (mouth, eyes). Something like gaze recognition or emotion detection.

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      @@yonakislinger6301 awesome stuff, was just planning iris detection today!

    • @yonakislinger6301
      @yonakislinger6301 3 года назад +1

      @@NicholasRenotte Amazing man! Really cool what and especially how you create!

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      @@yonakislinger6301 thanks so much, honestly appreciate it a ton 🙏!

  • @miguecast
    @miguecast Год назад

    Thanks for sharing!

  • @kayan_dev
    @kayan_dev 3 года назад +1

    I try your GitHub repo and build in 1 command " npm i " and it's working so amazing :)

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      Awesome!! Glad you got it running so easily, YESSS!

  • @underlecht
    @underlecht 3 года назад +1

    love your videos

  • @libbylebyane3681
    @libbylebyane3681 3 года назад +1

    Looking forward to converting this to Angular!

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Yess, let me know when you do, would love to take a look at the code @Libby!

  • @Alexandre-vr4zl
    @Alexandre-vr4zl 2 года назад +1

    wow sir, i love the Beginning ||||

  • @keshav2136
    @keshav2136 3 года назад +1

    Good tutorial! ❤️👍🏻

  • @akshitdayal2689
    @akshitdayal2689 2 года назад +1

    You're the bestt!!!!

  • @lifeofaldodevv7375
    @lifeofaldodevv7375 2 года назад +1

    nice, thanks for your videos, i will learn
    i from indonesia

  • @waytosanathan
    @waytosanathan 3 года назад +3

    The key points for me was to switch to video.videoWidth instead of video.offsetWidth & second one is resetting canvas width and height for each loop. Thanks for the simple learning

  • @abeechr
    @abeechr 3 года назад +2

    I would love to see a continuation of this project. Maybe create a filters of your own? Rabbit ears, whiskers, etc...

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      Yah, working on it as we speak. Trying to get the hang of 3d rendering for it!

    • @haibertbarfian6343
      @haibertbarfian6343 3 года назад

      @@NicholasRenotte If you have a patreon, buy me coffee.. or any sort of donation links I will personally donate 100 dollars if you cover how to make a snapchat like camera experience in terms of putting filters on ones face.

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      Heya @@haibertbarfian6343, I have a Patreon but no need to donate for this particular use case. Got it on the list already, what types of filters are you thinking of? Background removal, adding sunglasses etc?

    • @haibertbarfian6343
      @haibertbarfian6343 3 года назад

      @@NicholasRenotte You are a SAINT MY FRIEND!!!! I was thinking of a snapchat like experience where you can put sunglasses, and all sorts of fun filters on a face using react native. Many people have joined the RN community and we need to show the prowess that RN has obtained over the years.. if snapchat filters are possible in RN.. almost anything is! I know that currently there are SDKs that allow this functionality on WEB.. but no one has done it on RN for mobile apps... this is going to be bananas.

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      @@haibertbarfian6343 hell yesss! Definitely, I'm going to get to work on it soon!

  • @lauraestupinan8245
    @lauraestupinan8245 3 года назад +1

    Love it!

  • @pratyushpandey9126
    @pratyushpandey9126 2 года назад +1

    Amazing thanks for such great videos, Can you please tell me how to just extract eyes coordinates

  • @coriariasgibert9945
    @coriariasgibert9945 2 года назад +1

    Great !

  • @isurucumaranathunga
    @isurucumaranathunga 2 года назад

    Thank you so mush Nicholas, this is a great content, so much valuable. I have just one confusion that why the Triangulation matrix is used and how did it formed ?. Again thank you so much.

  • @diegorafass
    @diegorafass 3 года назад +2

    Canva has a delay in relation to the video component. Hide the video and add the camera image to the canva, along with the points on the face. Congratulations on the video!

  • @haesuun
    @haesuun 3 года назад +2

    Awesome! Great tutorial. Are you planning for more tutorials using Posenet and React JS? (Using Teachable Machine)

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      Thanks so much @Haesun Shim, I sure am! I've done a Posenet basic video but have a few others planned with Tensorflow.JS as well: ruclips.net/video/PyxsziqatFE/видео.html

  • @shersim6217
    @shersim6217 2 года назад +2

    I encounter error

  • @IsadoraMenesesDosSantos
    @IsadoraMenesesDosSantos Год назад

    Hello! I loved your video, it was very helpful and easy to understand. Sorry for the inconvenience but would there be some way to recognize the face of a specific person and allow only this person to log in? Like in the phone?? Thank you very much for everything

  • @gliong666
    @gliong666 2 года назад

    Excelent tutorial as usual. Do you have a tip about how to implement liveness in face detection?

  • @shhh826
    @shhh826 3 года назад +3

    I was wondering if you can make a separate video on who to map the detected face landmarks on a 2D/ 3D avatar

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      Working on it @Sarina, definitely planned!

  • @user-yv6tl2yx7r
    @user-yv6tl2yx7r 2 года назад +5

    Your tutorial is very good and I understand it completely. Thank you so much for sharing.
    How to use landmark coordinate point to generate animation avatar?
    In other words, how to use landmark coordinates to compare with virtual components such as eyebrows, and then select a matching eyebrow for image assembly;

    • @NicholasRenotte
      @NicholasRenotte  2 года назад +5

      Working on this atm :) will share a tutorial once I'm done!

    • @yevgeniybondar7509
      @yevgeniybondar7509 2 года назад +2

      @@NicholasRenotte Is the tutorial out yet?

  • @marinavalero7893
    @marinavalero7893 Год назад

    hey Nicholas! this is so cool! do you think I can use this on a tiktok clone I already built using dart?

  • @GooseDave
    @GooseDave 3 года назад +3

    Great work Nicholas. But, there is a typo on line 2673 of utilities.js: 'TRIANGULATION[i * 3 + 2],u' doesn't need the 'u', so guessing a typo. Really enjoyed though - thank you.

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Thanks so much @David, ah i'll update the repo, I think I might have thrown it in just before committing to GH.

  • @jubiaktodeveloper1064
    @jubiaktodeveloper1064 Год назад

    Thanks for sharing bro, btw how to get blink eye, node, turn head etc (gesture face)
    thanks before

  • @haibertbarfian6343
    @haibertbarfian6343 3 года назад +3

    This is amazing! There is no video out there showing an actual implementation of face filters using react native. Do you think you would be able to pull this off? I believe that is a highly coveted topic and there are absolutely 0 videos on it out there.

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +2

      😉 stay tuned!

    • @haibertbarfian6343
      @haibertbarfian6343 3 года назад +1

      @@NicholasRenotte github.com/haibert/graphics-project I want to share my attempt at this with you incase it helps or gives you any ideas.. I have used the expo-face-detector to get a 2D X Y coordinate of the nose and map that to the rotation of this 3D box I have generated on top of the camera using the libraries mentioned below. It is by no means near what it needs to be.. because I only have 2D data using expo face detector... but with the face landmarks you should be able to do much more interesting things. I'M SO STOKED TO SEE YOUR VIDEO!
      "expo-gl": "~10.2.0",
      "expo-graphics": "^2.0.0",
      "expo-three": "5.4.0", (the package versions REALLY matter)
      github.com/haibert/graphics-project
      🥴

  • @steinroardahl9226
    @steinroardahl9226 3 года назад +1

    Greate stuff :-)

  • @BrittBratt0704
    @BrittBratt0704 Год назад

    Great video! You’re really great at explaining explaining everything but is it possible you could help me out? Because I’m getting stuck at the Load Facemesh part. After coding everything It’s throwing an error saying “load” is not a function…

  • @KriGeta
    @KriGeta 3 года назад +3

    Is there any way to export this data into 3D software like blender?

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +2

      Not too sure about pushing out to blender but you could definitely export the x,y and z coords for use elsewhere? I've seen it used alongside three.js for 3d viz @KriGeta.

    • @dbsexclusive5283
      @dbsexclusive5283 3 года назад +2

      @@NicholasRenotte sounds intresting

  • @yashthakkar3453
    @yashthakkar3453 3 года назад +1

    Great Tutorial! Can you please come up with react-native example of same tensor flow model using expo-gl?

  • @alaeddineyacoub6225
    @alaeddineyacoub6225 3 года назад +2

    Awesome work honestly you deserve much more recognition :D One question though when I cloned it and tried to run it it keeps crashing before the detection with an Unhandled Rejection (Error): method must be bilinear or nearest, but was undefined error :) thanks for your help

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Ah, baby steps, the channel is growing thanks to all the love from you guys 😍!! Can you share your code? Where exactly is the error happening in the trace?

    • @alaeddineyacoub6225
      @alaeddineyacoub6225 3 года назад +1

      @@NicholasRenotte I just cloned the code from your repo and tried to start the react app :) (I installed all the prerequisites). Thank you fro your help

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      @@alaeddineyacoub6225 you cloned it directly and it's still crashing? Just checking is your webcam activating when you start the app?

  • @vijaymeena8039
    @vijaymeena8039 3 года назад +1

    this is awesome. i came here coz i have a digital image processing project and i was wondering how to do the same thing in python (_Coz i'm weak in python). now i'm wondering why tf use python when u can do the same in js.(coz my strong point is javaScript. xD).

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Hahahah, the beauty of those libraries is that you can do it in either right! Thanks for checking it out @Vijay!

  • @jacobpiirsalu2862
    @jacobpiirsalu2862 3 года назад +1

    Loved the video it was awesome - do you know how you might remove the flickering of the mask? I'm trying to expand on this project to make a snapchat-like filter application and the flickering gets in the way.

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      Heya @Jacob, I haven't had a chance to fix it yet, I believe it's because the drawing is staged in two parts the dots and the lines. I'm working on a fix in the coming weeks though!

    • @jacobpiirsalu2862
      @jacobpiirsalu2862 3 года назад +1

      @@NicholasRenotte Thank you for the help!

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      @@jacobpiirsalu2862 anytime, will let you know once it's updated!!

  • @rhenapalmarist9965
    @rhenapalmarist9965 3 года назад +1

    awesome tutorial👍🏼 btw, do we have to use react webcam? how do we make it for phone user? I'm a junior student in IT department. I just figured out how to make phone app with unity (using C#).. and wonder how can I combine it with ai face detection

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Heya @Rhena thanks so much! Nope you don't! I just found it easy to work with. Oooooh Unity is something I'm super interested in. Have you checked out Unity ML?

  • @abhishek_maity
    @abhishek_maity 3 года назад +2

    Hi Nick! I just completed your Media Pipe face mesh video and now i am here... one question is coming into my mind is ... can i build the same react app and integrate it with the MediaPipe one ?? please let me know if this is possible then i will try that integrating media pipe with this react app (I don't have much depth knowledge in react.js ). Also I feel media pipe is better than tf face mesh. Please let me know what are your answers/thoughts on this :)

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      Heya @Abhishek, yes you can definitely use medipipe on React in place of TF.js. I believe they're actually based on the same model so I think it's all about using what's easiest. I haven't tested out the js version yet but it's definitely on the list!

  • @lk5776
    @lk5776 2 года назад +2

    like video filter,is it possible to change image instead of drawing line ? in here only to show us how to detect face! to change line to image ! what is best way ? if y know , plz tell me know ㅠㅠ

  • @jonathantanhowann95
    @jonathantanhowann95 2 года назад +1

    Hi, first of all, great job explaining. But i have a question, where do you get the triangulation data? Keep it up!

    • @NicholasRenotte
      @NicholasRenotte  2 года назад +1

      The landmark map? I got it from the official TF Model repository. Need a link?

    • @johnnyla
      @johnnyla 5 месяцев назад

      @@NicholasRenotte Thanks for this video. I'm new the space but I also don't understand the triangulation data. It's hardcoded data. Why is there hard coded triangle data in there?

  • @ekonaldihutabarat4357
    @ekonaldihutabarat4357 3 года назад +1

    nice video

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Thanks so much @Ekonaldi Hutabarat, glad you enjoyed it!

  • @enzobuscaglia8010
    @enzobuscaglia8010 2 года назад +1

    Is there a way to choose either to display or not the predictions based on a "confidence" level of the predicition? I mean, when I get off camera the model keeps trying to predict if there are any faces and draws over the objects in front of the camera.

  • @Zeltraxion
    @Zeltraxion Месяц назад

    Hi this project was very interesting I only have one doubt as to how are u getting the TRIANGULATION metric data since I can't wrap my head around it if you can help or explain

  • @tejaschoudhary3882
    @tejaschoudhary3882 3 года назад +1

    Amazing Content man, spent a day trying to figure this out till I came across your video! Lastly, i was trying to use this model to use pre recorded videos. Do u have any resource/tips I could look into to change the input from webcam to pre recorded videos?

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Heya @Tejas, does it have to be with .Js or are you comfy with Python as well? TBH it'll probs be easier to do with Python if you're wanting to work with pre-recorded vids. LMK I can chase it up for you!

    • @tejaschoudhary3882
      @tejaschoudhary3882 3 года назад +1

      Hey @@NicholasRenotte! Thank you for your response! I’m comfortable with Python but not sure how I would use it to implement this for pre recorded videos! And Yes! Can you please look into this/guide me?? Thanks a lot!!

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      @@tejaschoudhary3882 will add it to the list of videos. You should be able to do it with Media Pipe: google.github.io/mediapipe/solutions/face_mesh.html

    • @tejaschoudhary3882
      @tejaschoudhary3882 3 года назад

      @@NicholasRenotte Just had a look at it! The facemesh is implementable on Python but Iris tracking (separately on Media Pipe but included in the latest version of tensor flow) is unavailable on Python yet.

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      @@tejaschoudhary3882 ah got it!

  • @eKursUZ
    @eKursUZ Год назад

    Can you try with external usb connected camera plz?

  • @yevgeniybondar7509
    @yevgeniybondar7509 2 года назад

    nice

  • @tomgu1809
    @tomgu1809 Год назад

    Very good trainer. I wanna make an easy reconigtion app, first I would load an image with the name on (text) from phone camera to the database. The name input as watermask or another way the image's file name. . then at another location, this app could detect this item (from camera) and output the name on the live image. React Native + Mongobase.

  • @omaraga152
    @omaraga152 2 года назад +1

    Can you make something about body detection? I wanna make a virtual try on

  • @babkenasryan1773
    @babkenasryan1773 Год назад

    Hi Nicolas, you are great, I have a big ask for your, can you help me to create a good app by React and Face Detection functionality in your video for my graduated work in university

  • @danielrotnemer2564
    @danielrotnemer2564 3 года назад +1

    Hi, Thank you so much for this tutorial! Can you make a video explaining how to do this in Java and Android studio? thank you so much!

  • @b843-sanchitashirur6
    @b843-sanchitashirur6 3 года назад +1

    Hey, great video! couldn't stop myself from implementing this! React-webcam is not working on localhost, do you have a way out? 🤔

  • @ganeshdhavale
    @ganeshdhavale 3 года назад +1

    Wow

  • @nixcampbell5399
    @nixcampbell5399 3 года назад +2

    Hello! Thanks for the tutorial! What is your recommendation for the next steps to create a filter; such as distortion/displacement of the face or particles that attach to the mesh? I'm familiar with doing these things with a Kinect camera in Touchdesigner, but working in the browser is new territory for me. Thanks!

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +4

      You could apply an viz overlay from the JS canvas inside of utilities.js! Where and how you adjust the canvas would be dependent on what points you want to attach the filter onto or from. Want me to make a video on this in the future?

    • @nixcampbell5399
      @nixcampbell5399 3 года назад +3

      @@NicholasRenotte yes!

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +2

      @@nixcampbell5399 done, added to the list!

    • @apelibrian3968
      @apelibrian3968 2 года назад +1

      @@NicholasRenotte kindly,,,

    • @dominicsavio7245
      @dominicsavio7245 2 года назад

      @@NicholasRenotte Can you please share the link

  • @mohammadzain7726
    @mohammadzain7726 2 года назад +1

    how can we use this to make a blink detector/ face verification/ yawn detector

  • @chrisjenkins5870
    @chrisjenkins5870 3 года назад +1

    Great video Nicholas!
    I want to link this model to a react native based app. ( Hoping to determine whether a driver is drowsy or not) Can you refer me a direction to look for on how to do it? I'm kinda new for these environments. Thanks.

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Heya @Chris, awesome use case. I'm actually working on a RN solution as we speak, will let you know as soon as it's out!

    • @chrisjenkins5870
      @chrisjenkins5870 3 года назад +1

      @@NicholasRenotte Okay. looking forward to it. Cheers!

  • @putriamaristya3243
    @putriamaristya3243 3 года назад +2

    this is an amazing tutorial i just had to open my laptop and try it for myself! thank you so much. i have a question, i followed your tutorial, however the package @tensorflow-models/facemesh is no longer available. do you have any suggestions on how to resolve this issue? once again, thank you!

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +3

      Heya @Putri, looks like the model name has changed from facemesh to face-landmarks-detection (github.com/tensorflow/tfjs-models/tree/master/face-landmarks-detection). Was looking into it over the last couple of days. There's three quick changes required to get it to work (plus I've updated the code here: github.com/nicknochnack/FacialLandmarkDetection):
      1. Install the new package
      // OLD Installation
      npm install @tensorflow-models/facemesh
      // NEW Installation
      npm install @tensorflow-models/face-landmarks-detection
      2. Change the import
      // OLD Import
      import * as facemesh from "@tensorflow-models/facemesh";
      // NEW Import
      import * as facemesh from "@tensorflow-models/face-landmarks-detection";
      3. Change the load
      // OLD Neural Network Load
      const net = await facemesh.load({
      inputResolution: { width: 640, height: 480 },
      scale: 0.8,
      });
      // NEW Neural Network Load
      const net = await facemesh.load(facemesh.SupportedPackages.mediapipeFacemesh);
      4. Last but not least update the detection function
      // OLD Detection
      const face = await net.estimateFaces(video);
      // NEW Detection
      const face = await net.estimateFaces({input:video});

    • @enzobuscaglia8010
      @enzobuscaglia8010 2 года назад

      @@NicholasRenotte Thanks a lot for this update!

  • @fares7428
    @fares7428 Год назад

    I can detect which face it is based on these points? Like save them in a database an use for face detection

  • @benjaminikwuagwu6469
    @benjaminikwuagwu6469 3 года назад +1

    You're awesome man!👍👍👍
    Instead of using create-react-app, can I use react native instead for this code to work? And how do I add my face mask image on the detected area of my face?

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      Sure can, but I think the webcam module is slightly different if you're doing it on RN. Working on the overlay code now, will share once I've got it up and running @Benjamin!

    • @benjaminikwuagwu6469
      @benjaminikwuagwu6469 3 года назад +2

      @@NicholasRenotte Yes, I think instead of webcam, you'll use RNCamera. i will be waiting for the overlay video. Thanks for your kind response.

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      @@benjaminikwuagwu6469 brilliant! Will let you know as soon as it's out!

    • @benjaminikwuagwu6469
      @benjaminikwuagwu6469 3 года назад +1

      @@NicholasRenotte I really appreciate :)

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      @@benjaminikwuagwu6469 anytime!

  • @farhanwildan2964
    @farhanwildan2964 Год назад

    thank you for your tutorial its help me for my task, but i get some error on const face = await estimateFaces(video); and this error like this estimateFaces is not defined. Can you help me to fix it?

  • @markwalterbilaro7007
    @markwalterbilaro7007 Год назад

    i am curious if you could make a facial recognition using this face mesh?? hmm just like loading or storing dataset as 3d???

  • @ajaypatro1554
    @ajaypatro1554 9 месяцев назад

    Which one is better py or javascript I am from the earth observation domain and I want to work on spatial using images for advanced applications in the Earth observation domain

  • @Sabin184
    @Sabin184 Год назад +2

    I asked a question about this in your other video - but now that I looked at your latest push to your repo. Does the use of useEffect and RequestAnimationFrame prevent some of "lag" the previous implementation had? I used that with blaze pose in my code and it seems to have fixed any sense of lag which is great. I would love to know why this works if this is what fixed that issue. Thanks again for the content.

    • @rensimmons
      @rensimmons Год назад

      I was wondering the same thing

  • @murthyyy
    @murthyyy Год назад

    Can u help me for make tutorial liveness detection with face gesture like blink, nod, turn head etc?

  • @pjos2981
    @pjos2981 3 года назад

    We need more ML and AI

  • @randycook6802
    @randycook6802 3 года назад +1

    Awesome tutorial! btw, can you use the landmarks to get the actual measurement of your face? I'm trying to get the actual measurements of the eyes and nose something like that. its for my school project. TIA

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      Ya, I believe you could, will add it to the upcoming tutorials @Randy!

    • @randycook6802
      @randycook6802 3 года назад +1

      @@NicholasRenotte alright I will watch out for that, thanks for the response! thanks in advance for the tutorial

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      @@randycook6802 anytime, let me know if there's anything else you'd like to see. I'm always updating the video list!

    • @yevgeniybondar7509
      @yevgeniybondar7509 2 года назад

      @@NicholasRenotte i think you need a special webcam for that with 2 cameras

  • @stevenevenshow2790
    @stevenevenshow2790 2 года назад

    Is it possible to use this for facial expression recognition, with data point used for data science /machine learning?

  • @paulinalimady712
    @paulinalimady712 3 года назад +1

    can you make a face recognition program, please?

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Yep! Siamese networks for recognition is coming up!

  • @maximcoding2667
    @maximcoding2667 Год назад

    why you use react and not react-native for mobile ?

  • @huaiguli1550
    @huaiguli1550 3 года назад

    Great video Nicholas. However, I want to plot only the landmarks of the eyes and nose. Do you know their landmark id?

    • @NicholasRenotte
      @NicholasRenotte  2 года назад

      Oooh, I don't have them fully mapped out unfortunately. I think best way to do it is just try mapping out a few at a time.

  • @andihaki
    @andihaki 3 года назад +1

    Hi Nick, any idea how to implement custom Face Landmark Detection. example: only for lips, so i didn't need to track other landmark.
    maybe can u make video for make this custom models :D :thumsup:

    • @NicholasRenotte
      @NicholasRenotte  3 года назад +1

      Heya @Andi, you can filter out what you show by isolating the keypoints. Although it might be easier to train a custom segmentation model for this!

    • @andihaki
      @andihaki 3 года назад

      Okai. Thank you Nick. Could you refer me to video how to make custom model for lips segmentation?🙏

  • @durgamurugan680
    @durgamurugan680 11 месяцев назад

    Hey ,using this can i able to detect which is live face which is image or photo by using only react or java script

  • @user-yv6tl2yx7r
    @user-yv6tl2yx7r 2 года назад +2

    How To Convert Your Photo To Avatar Though Tensorflow Face Landmark Detector?

  • @saboya_dev7947
    @saboya_dev7947 3 года назад +1

    how did you get those triangulation metrics? did you calculate them or are those standard? I am completely new to this, I was able to follow all along till this point...

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      No problems, great question!! They're standard triangulation metrics for that specific facemesh model.

  • @feruzastanov8451
    @feruzastanov8451 3 года назад +1

    Amazing tutorial. Appreciate it. How can I use it for user login? I want to grant access to a certain page after positive face id. Any resources I can look up? I didn't find anything on that on RUclips, nor was I able to google it. Appreciate it.

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Heya @Feruz Astanov, the technique that would allow you to do that is called Face Recognition. You can read more about it here: paperswithcode.com/task/face-recognition. Would you like me to do a video on it?

    • @feruzastanov8451
      @feruzastanov8451 3 года назад

      @@NicholasRenotte oh definitely ! Lol. I have a project to finish in 2 weeks, hope you can drop a video before then. Thank you so so much !

  • @nimeshkumar3663
    @nimeshkumar3663 2 года назад +1

    Hi, can you help me with text detection in an image using tensorflow js or opencv js

  • @dinidurukshan4260
    @dinidurukshan4260 10 месяцев назад

    How can i training model , can you explain using python and open CV

  • @nehalprasad7458
    @nehalprasad7458 2 года назад

    how to fix the face mesh on the face as it moving too much

  • @JonathanPohlner
    @JonathanPohlner 3 года назад +1

    I'm trying to make an app where the user can try different shades of lipstick virtually.. I've found the annotations where it separates the lips out into 4 arrays, 3 of 11 and one of 10. Where I'm getting confused is how did you find the triangulation to draw the whole face mask? How would I map out drawing a texture for just the lips? Any advice or links to other tutorials would be greatly appreciated. It just doesn't seem to be well documented or I'm missing a keyword in my searches.

    • @NicholasRenotte
      @NicholasRenotte  3 года назад

      Yeah, I'm with you here, there isn't much out there on it. This isn't quite what you're looking for but it's a start: livecodestream.dev/post/detecting-face-features-and-applying-filters-with-javascript/ I've got some stuff planned for filters and textures planned!

  • @SurajTapase
    @SurajTapase Год назад

    Error:
    export 'load' (imported as 'facemesh') was not found in '@tensorflow-models/face-landmarks-detection' (possible exports: SupportedModels, createDetector, util)
    What should I do now ?