Code with me using Python and AI to build a face detection app

Sdílet
Vložit
  • čas přidán 7. 07. 2024
  • In this video, I'll be showing you step-by-step how I built a real-time facial recognition application using Python and the OpenCV library. Facial recognition is an incredibly cool and useful technology that can be used for everything from security systems to photo tagging.
    The app I've built can detect, extract, and recognize multiple faces from a webcam feed in just a few seconds. I'll show demos of the final application in action and explain how the underlying machine learning makes it all possible.
    Everything will be coded in Python for simplicity and easy of understanding - no complex math or theory required! By the end, you'll have a complete understanding of how to build your own facial recognition apps with Python and OpenCV.
    Github for OpenCV xml: github.com/opencv/opencv
    TIMESTAMPS
    0:00 What we will be building with python and opencv
    1:25 What is AI (artificial intelligence)?
    1:44 What is machine learning?
    1:57 What is generative AI?
    2:58 What is NLP (natural language processing)?
    4:13 Generative AI and NLP?
    5:15 Code with me building a facial recognition app with Python
    8:45 OpenCV xml file to use
    9:45 End result with python and opencv

Komentáře • 71

  • @JohnR-fc7vr
    @JohnR-fc7vr Před 10 měsíci +3

    You're explaining really well and in very simple terms. Something that the whole community needs to do.

  • @ciftcierdinc
    @ciftcierdinc Před 10 měsíci +2

    I love these videos! You are showing so much talent :) Let's go

  • @izael2168
    @izael2168 Před 10 měsíci +15

    Python is incredible, I love this language, it's already in my favorites to try later, top-notch video! Loved it!!

    • @TiffInTech
      @TiffInTech  Před 10 měsíci +2

      Thank you!! Really appreciate that! Hope you are having a great day!

    • @JohnR-fc7vr
      @JohnR-fc7vr Před 10 měsíci +1

      Yes python is incredible. But I had added it to my favourite 7 years ago. I had switched from Java to python because this language is so awesome.

  • @denovo3949
    @denovo3949 Před 10 měsíci

    Thanks Tiff as always!

  • @pile333
    @pile333 Před 10 měsíci +2

    I guess Python deepfake apps must have something in common with this.
    Love this kind of videos.

  • @fazalhayat7848
    @fazalhayat7848 Před 10 měsíci

    Thank you for that video. Good Work

  • @tuurblaffe
    @tuurblaffe Před 7 měsíci

    i have a suggestion, i am almost finished with an extension for my virtual assistant. it works as a screen recorder either recording or take screenshots every n seconds the images get processed by opencv and ocr ofcourse to analyze it. the object detection detects objects on the screen while the ocr detects the text it will then send the detected objects together with the text to my virtual assistant. i gave my assistant a list of items i still need to buy for the hollidays and now i have my own personal shopping assistant. i cannot only tell my assistant what presents i still need but it works with everything else. reading a news paper or a blog and having the assistant explain and summarize it as you are scrolling trough it feels like it adds an additional layer of personality to it and the llm you are running will feel more like a companion than a chatbot in a webui. the recording part is just in a piece of code that sits on my desktop as a kind of button and will only record when i turn it on but will recorde only the screen it is running on as well i can drag it on the second monitor and it doesnt record the first monitor.
    now my next part is to have it browse on its ownv. this allready was somewhat doable by implemznting a webscraper to get the html and extract the stuff you needed byt this requires a scraper for each wzbsite. but if you use vision it can stay the same it doesnt matrer cuz you dont rely on the html anymore as object detection and character recognition pretty much extract what is visible for you so it will only use that. and it has a whole lot of othe stuff you can do with it. as i am shopping i am pretty much am building a database of the items and the prices of them allowing me to track items over time think about the possibilities with this. well and tbh my own llm running locally is pretty much 100 times better than chatgpt for recommending stuff or 1000 times more funny when making jokes about newspaper headlines cuz my assistant is uncensorred and i programmed it do have dark humour :o

  • @palurihitesh8466
    @palurihitesh8466 Před 10 měsíci +2

    wow your videos are really helping me a lot!!!

    • @TiffInTech
      @TiffInTech  Před 10 měsíci +1

      I'm so glad! Hope your week is off to a good start!

    • @palurihitesh8466
      @palurihitesh8466 Před 10 měsíci

      Hey! Could you explain about game development careers in 2023 and it's future@@TiffInTech

  • @suhindubey8178
    @suhindubey8178 Před 10 měsíci

    Wow that's great
    Thank you ❤❤❤

  • @cosanostra-9949
    @cosanostra-9949 Před 10 měsíci

    wow it is so interesting ! :)

  • @lesotv1056
    @lesotv1056 Před 6 měsíci

    Wow love you already ❤

  • @youths-oclock7732
    @youths-oclock7732 Před 4 měsíci

    Thanks Alot!

  • @jacobdebrone
    @jacobdebrone Před 7 měsíci

    You are a whole lot of fun

  • @YashAndTioShow
    @YashAndTioShow Před 9 měsíci +1

    Hi Tiff, great video again, where could i find the information you use to learn all of these projects like this and the pdf to mp3 project. Where can we find the resources or information on how to build cool projects like these?

  • @danacosta5237
    @danacosta5237 Před 10 měsíci +3

    damn this was part of my capstone project in school and it gave me so much trouble. If only this came out last year lmao

    • @TiffInTech
      @TiffInTech  Před 10 měsíci

      No way!! Haha not great timing. Although I’m sure your project turned out great

  • @xpaul.
    @xpaul. Před 6 měsíci

    You need to select the right interpreter in python, which has installed cv2 and numpy. That's why you get the the error on importing python modules.

  • @moisesespiritosanto2195
    @moisesespiritosanto2195 Před 10 měsíci +2

    Hi, I'm from São Paulo! Yeah excellent! Abraço forte de Urso!

    • @TiffInTech
      @TiffInTech  Před 10 měsíci +2

      Yay!! Cheers hope your week is going great!

  • @atakgokhan6449
    @atakgokhan6449 Před 8 měsíci

    Can you share a software that fills in the details of a face with low pixels? Can you do this with Python

  • @arifzafri3552
    @arifzafri3552 Před 9 měsíci +2

    Hi Tiffany, I am a student at college and today is a weekend. I've been playing pokemon go and I am thinking that I would like to build a software that will able to find rare spawns of pokemon. I am watching your videos to get some ideas and it really inspires me 😄

  • @LouKhobor
    @LouKhobor Před 3 měsíci

    Which IDE you are using?

  • @johnoldfield2390
    @johnoldfield2390 Před 10 měsíci +1

    Do you have any cryptocurrency and currency differentiator and explainer courses and then additional information on test nets main nets production servers and where the test net products merge with mainnets occur and or where the conversions are?

  • @realleglesslizard
    @realleglesslizard Před 5 měsíci

    My code doesn't seem to make a camera window when I run it. what could be the problem?

  • @sucode1621
    @sucode1621 Před 9 měsíci

    wow it's interesting with so few lines of code.

  • @user-fw1ok4lz2j
    @user-fw1ok4lz2j Před 10 měsíci

    I got this error ((( module 'cv2' has no attribute 'cv2' )))

  • @mhk9065
    @mhk9065 Před 3 měsíci

    I need your helpto build a vehicle detection system

  • @erickcz7359
    @erickcz7359 Před 10 měsíci

    Wow nice program are u doing this??? Are u learning IA ??? .As developer of IA maybe you have better oportunities in the job of one carrerer...you can have big oportunities if you are working whit IA tecnology❤❤❤❤

  • @juanmacias5922
    @juanmacias5922 Před 10 měsíci

    More small projects. :D

  • @QueenSavagexxx
    @QueenSavagexxx Před 10 měsíci

    this is great! but my question..how do i know i am now importing a virus 😭 im brand spanking new to this

  • @charsiu8444
    @charsiu8444 Před 10 měsíci +2

    What about using the same technology to detect mosquitos, flies, cockroaches, etc. (and maybe somehow link it to a laser pointer) ...

    • @juanmacias5922
      @juanmacias5922 Před 10 měsíci

      I believe Bill Gates had this idea years ago, with mosquitos in Africa lol

  • @vajidalishah3595
    @vajidalishah3595 Před 10 měsíci +1

    Tiff get to the point what is it your mainly programming in? Lol your here there and everywhere 😂🎉

    • @TiffInTech
      @TiffInTech  Před 10 měsíci +1

      I like to build a variety of projects :) Mainly you will see python being used for projects in my videos!

    • @vajidalishah3595
      @vajidalishah3595 Před 10 měsíci

      @@TiffInTech employment wise what is it you are programming in?

  • @n0r.03
    @n0r.03 Před 5 měsíci

    I couldn't find the github file it annoyed me so much can someone please help? And tell me the link of the file?

  • @mr_Stranger_07
    @mr_Stranger_07 Před 10 měsíci

    Ohhh God 🥶 if you are a teacher then I spend my hole life to learn from you ❤️😉😪

  • @gabyenhome2988
    @gabyenhome2988 Před 10 měsíci

    Tkx

  • @carlospinachomiranda9668
    @carlospinachomiranda9668 Před 10 měsíci

    🤩

  • @AbdulGiwa
    @AbdulGiwa Před 10 měsíci

    For the import error, have you tried checking if vs code is using the correct venv, that fixes it for me.

    • @TiffInTech
      @TiffInTech  Před 10 měsíci +1

      I haven’t!! Thank you🙏🏼 going to try that!! Thank you

  • @Eavai19
    @Eavai19 Před 2 měsíci

    please help me create face detection with name (registered user), unknown (unregistered user)

  • @dapken
    @dapken Před 10 měsíci

    Grayscale, well that explains melanin issue

  • @AvinashSingh-vj3rk
    @AvinashSingh-vj3rk Před 10 měsíci

    • @TiffInTech
      @TiffInTech  Před 10 měsíci +1

      Hope you are having a good week!

  • @laraibjaffar1735
    @laraibjaffar1735 Před 10 měsíci +1

    Tif pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls pls make a video on NLP engineering. Plsss

  • @zaid2868
    @zaid2868 Před 8 měsíci

    Do you know about deepfake technology?

  • @udeve
    @udeve Před 6 měsíci

    Asalamu Alaykum pls code source❤

  • @azk3710
    @azk3710 Před 10 měsíci

    Hello

  • @azk3710
    @azk3710 Před 10 měsíci

    I am bigginer person who is this guidance me

  • @Makku293
    @Makku293 Před 10 měsíci

    How am I supposed to pay attention while she's so damn pretty?

  • @TheUnofficialMaker
    @TheUnofficialMaker Před 10 měsíci

    don't care for the angry man background

    • @TiffInTech
      @TiffInTech  Před 10 měsíci

      It’s Jack Nicholson blowing smoke from his cigar! No angry man ☺️💕

  • @izael2168
    @izael2168 Před 10 měsíci +1

    first

    • @TiffInTech
      @TiffInTech  Před 10 měsíci +1

      Yay!! Hope your week is going great 😊

  • @Theyareout2getme
    @Theyareout2getme Před 2 měsíci

    What would u use to make an ai that will recognize faces and body shapes

  • @vikavan9898
    @vikavan9898 Před 9 měsíci

    that was so fun, thank you Tiff 🤍