Build a Face Mask Detector in 20 Minutes with Watson and Python

Sdílet
Vložit
  • čas přidán 26. 07. 2024
  • We’re living in strange times at the moment.
    And it seems like wearing masks in public are becoming the norm.
    So…maybe you’d like to detect who’s wearing one and possibly who’s not.
    This is a perfect problem for deep learning and object detection.
    In this video you’ll learn how to use Watson Visual Recognition, Python and OpenCV to build a face mask detector. By the end you’ll have all the code required to deploy your very own face mask detector with Python. In this video you’re detecting face masks but you could also use this to detect a whole bunch of other objects as well!
    In this video you’ll learn how to:
    1. Capturing Images with OpenCV
    2. Visualising detections using Matplotlib
    3. Training Custom Object Detection Models with Watson
    Github Repo for the Project: github.com/nicknochnack/FaceM...
    Want to learn more about it all:
    OpenCV: opencv.org/
    Watson Studio: cloud.ibm.com/catalog/service...
    Watson Visual Recognition: cloud.ibm.com/catalog/service...
    Oh, and don't forget to connect with me!
    LinkedIn: / nicholasr. .
    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 Lakey Inspired
    Chill Day - • LAKEY INSPIRED - Chill...
  • Věda a technologie

Komentáře • 239

  • @sumedhdixit4771
    @sumedhdixit4771 Před 3 lety +10

    High Quality content man !! you deserve 1million subs i m sure u r gonna get more than that !! kudos to ur hardwork👍

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Oh man, thanks so much @Sumedh Dixit! Appreciate it a million!

  • @venkatasreeram
    @venkatasreeram Před 3 lety +2

    Bro, It was Awesome...... I madly love what you have done. Expecting more videos on OpenCV in future. All the very best bro.

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Thank you so much @venkata sreeram, definitely, plenty more to come👨‍💻!

  • @KenJee_ds
    @KenJee_ds Před 3 lety +8

    Loving these videos Nicholas!

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      🤟🤟🤟 hell yeah, thanks @Ken!! Just checked out your channel mad ❤️!!

  • @rakshithrajpulluri3515
    @rakshithrajpulluri3515 Před 3 lety +1

    Super video amazing clarity and frankness

  • @sureejaan
    @sureejaan Před 3 lety +2

    Amazing work man thanks for sharing the knowledge

  • @Sukant98
    @Sukant98 Před 3 lety +1

    Great video, Thanks!

  • @shafaqmalik4726
    @shafaqmalik4726 Před 3 lety +1

    You are awsome man!
    Brilliant!
    Way to go. Best of luck

  • @akangshamuk
    @akangshamuk Před 3 lety +2

    Keep Going Nicholas... Best of Luck 👍

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      I'm on it 👨‍💻, thanks so much @46.Akangsha Mukherjee!

  • @vstechvideos9373
    @vstechvideos9373 Před 3 lety +2

    Love your content, can you please make a full tutorial on React-Js and React Native from start to Finish? :)

  • @varunvijaywargi5497
    @varunvijaywargi5497 Před 4 lety +1

    As usual, fantastic !!!!!!

  • @SedanurKrc
    @SedanurKrc Před 3 lety +1

    I really like your content. Best of luck 🤗

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Heya @Sendanur, 🙏🙏🙏 thanks so much, plenty more to come!

  • @mohammadasifbokhtyarmuhi2279

    Bro,make a video on a guideline or roadmap on how someone become a data scientist. Hope u will take it into consideration. Btw,it was a great video.

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Awesome suggestion @Mohammad, I'll put it on the list of non-technical videos I've got coming!

  • @olikilo
    @olikilo Před 3 lety +1

    I've been trying to fix my recognition model in watson but every time I train the model then test it out, the detection scores are way off and the boxes appear in the wrong place. I've tried the method you used to capture images with python and I've also tried image sets of people with and without masks from online but the results are still the same, any advice?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +3

      Definitely! So there's a few things you can do here:
      1. Upload and train your model with more images
      2. Use images with a bigger variety, different angles, different lighting, different people
      3. Increase your confidence score when predicting, so that you only show the results with the highest likelihood of a result

  • @radhwennassar7027
    @radhwennassar7027 Před 3 lety +1

    thank you for this great work

  • @yarahashim3532
    @yarahashim3532 Před 3 lety +3

    THAT WAS AMAZING!
    THANK YOU SO MUCH,
    I really needed to watch this video for my graduation project!
    Keep it up 👍🏻😍

  • @JFi95
    @JFi95 Před 3 lety +2

    Impressive work! Unfortunately I am only getting version v3 in the lite plan, so I cannot do the last part of the tutorial. Also, I saw that IBM will shut off the server for visual recognition in Dec. 21...

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Heya @Jonas, I believe that's still the case 😞 (it wasn't when I released the video unfortunately). I've started putting together an open source set of CV tutorials to help out the YT fam, a little more involved but you get wayyyyy more control: czcams.com/play/PLgNJO2hghbmhUeJuv7PyVYgzhlgt2TcSr.html

  • @omverma3707
    @omverma3707 Před 3 lety +1

    hi sir my web camera isn't opening for me to record the images with mask and without, I am using pycharm and this the error which I get- " [ WARN:0] global C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-wvn_it83\opencv\modules\videoio\src\cap_msmf.cpp (434) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback" please help me out

  • @pahal8266
    @pahal8266 Před 3 lety +2

    Hey!!!
    how did you start capturing the images @ 5:10
    didnt understand that

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @pahal, it's done with OpenCV. It'll immediately open up an image capture window that you can use to capture images!

  • @shahriaralom4547
    @shahriaralom4547 Před 3 lety +1

    Please make more difficult projects with functionalis like, without mask person 's count, take pictures of them, alarm system etc

  • @jakubkahoun8383
    @jakubkahoun8383 Před 2 lety +1

    Great vid, btw you write really fast and without mistakes lol.

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety

      Hahaha, I speed up the coding in the vids, I also make a sh*t ton of mistakes. I think this was one of my early YT vids where I wanted it to look perfect.

  • @rabiraj1387
    @rabiraj1387 Před 3 lety

    Hey @
    Nicholas Renotte open cv imshow Error in windows how to solve this
    OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-memyuvq3\opencv\modules\highgui\src\window.cpp:651: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage'

  • @muditrustagi5775
    @muditrustagi5775 Před 3 lety +2

    Hello sir!! great video
    I am getting an error when running in colab in the line
    cv2.imshow('frame', frame)
    please help :(

  • @vrishabvishnu5520
    @vrishabvishnu5520 Před 3 lety +2

    Heyy, silly question here....do you require an external webcam for this?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      No silly questions my man! The video uses an integrated MacBook webcam. If you didn’t have an integrated webcam then yep, you would need an external camera. Let me know if you need a hand 🙂

  • @ruiyuqu9039
    @ruiyuqu9039 Před 3 lety

    I am trying to access to set up the visual recognition service, and it seems like they don't have the Lite plan?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @Ruiyu Qu, I think this might have changed recently. I'm putting up a new tutorial soon on building from scratch!

  • @vrishabvishnu5520
    @vrishabvishnu5520 Před 3 lety +2

    Hello Sir, I am having a problem with my Watson studio, when I choose to create my own image detector the page freezes. So is there any other alternative to Watson studio?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      All good! Let's dig into it:
      1. Can you try clearing your cache and cookies
      2. Do you have a visual recognition service up and associated to Watson Studio
      3. The other alternative is to do it via the API but that doesn't have a GUI cloud.ibm.com/docs/visual-recognition?topic=visual-recognition-object-detection-overview

    • @vrishabvishnu5520
      @vrishabvishnu5520 Před 3 lety

      @@NicholasRenotte Well, I figured out that I didn't have a visual recognition service up and associated to Watson Studio. Thanks a lot!!

  • @Cat-su7bm
    @Cat-su7bm Před 2 lety +1

    Nice explane

  • @Ritros
    @Ritros Před rokem

    is the watson studio model training necessary?

  • @bilal7572
    @bilal7572 Před 3 lety +1

    Unable to label image on watson studio. Kindly help. Getting this error
    Error in Watson Visual Recognition service: Received empty image data respons

  • @ujjwalsingh827
    @ujjwalsingh827 Před 3 lety +1

    Hey Nicholas, I am constantly getting an error like:
    An error occurred while updating 0a4ec073-7151-11eb-88fa-841bf56a51fc.jpg
    Error in Watson Visual Recognition service: Received empty image data response.
    This error comes whenever I try to label object for an image Mask or NoMask. Any solutions ??

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @Ujjwal, looks like the image might not have been passed through successfully. Try comparing to the baseline code!

  • @gaminizer1172
    @gaminizer1172 Před 3 lety +1

    heyy i am in my code it's coming cv2 not defines 'cap' not defined
    what to do bro

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Try running the cell that creates the video capture. Should be something like this cap = cv2.VideoCapture(0)

  • @user___01
    @user___01 Před 3 lety +1

    Gold content!

  • @thirashapw
    @thirashapw Před 3 lety +1

    is IBM Visual Recognition deprecated? I can't find though

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Yeah it was @Thirasha, check out the Python alternative instead: czcams.com/play/PLgNJO2hghbmhUeJuv7PyVYgzhlgt2TcSr.html

  • @nivethitha8317
    @nivethitha8317 Před 3 lety +2

    Bro how we can add voice alert along with this system??

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Yep @Nivethitha! I'll make a note for the real time video, once a detection occurs it can trigger an email alert or play a sound!

  • @debayansaha5315
    @debayansaha5315 Před 2 lety

    Hey Nicholas, I am getting this error
    OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:801: error: (-215:Assertion failed) !_img.empty() in function 'cv::imwrite'

  • @predatorsn1
    @predatorsn1 Před 3 lety +1

    (-215:Assertion failed) !_img.empty() in function 'cv::imwrite i have this error, please helpme!

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @Marcelo, just double checking you're running this on a local machine and you have access to the webcam?

  • @bandhandey2594
    @bandhandey2594 Před 3 lety +2

    Very nice thing! But im getting this error!
    File "", line 7
    if cv2.waitKey(1) & 0xFF == ord('q')
    ^
    SyntaxError: invalid syntax

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Can you try running without the & 0xFF == ord('q') @Brandhan Dey?

  • @bronsonranga5770
    @bronsonranga5770 Před 4 lety +1

    🔥🔥🔥

  • @mohitpatil2998
    @mohitpatil2998 Před 3 lety +1

    hey Nicholas, my code is showing
    NameError
    in
    NameError :
    name 'cap' is not defined.

  • @user-gh9oy4hk2j
    @user-gh9oy4hk2j Před 3 lety +1

    We have seen the content of checking the mask on your Youtubu channel. Can you provide an API that can be used in the unity program? We are going to do a project to check whether to wear a mask. I look forward to your response.

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Hey definitely, check this out: github.com/watson-developer-cloud/unity-sdk

  • @vrishabvishnu5520
    @vrishabvishnu5520 Před 3 lety +1

    I am trying really hard...not finding a solution to my error mentioned below pls help me out

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      No problemo! Check out the code that needs to be added in the other comment 🙂

  • @madhusudhan2279
    @madhusudhan2279 Před 3 lety

    Whether visual recognition model is available now in Watson studio?

  • @tasarm4939
    @tasarm4939 Před 3 lety +1

    hi nicholas how can ı convert this notebook file to a real py project with GUİ

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya, check this out: czcams.com/video/IOI0o3Cxv9Q/video.html in that vid, we build a real time model and create a GUI using the OpenCV imshow functionality.

  • @shajidmughal3386
    @shajidmughal3386 Před 3 lety +1

    where do i have to create this Images folder?

  • @didartulepbergenov5699

    why when me press q, my frame have error ?

  • @animemv2941
    @animemv2941 Před 3 lety +1

    can i ask what algorithm is being use here? thank you for answering !

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @Anime, I believe this is using a ResNet architecture!

  • @antonioguilhermetebas241
    @antonioguilhermetebas241 Před 3 lety +1

    great video, it helped me a lot, thanks.
    Is it possible to use that model in real time?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +2

      Heya @antonio guilherme tebas, not this one but I'm making a video on real time face mask detection this coming week!

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      More than a week later but it's out: czcams.com/video/IOI0o3Cxv9Q/video.html @antonio guilherme tebas!

    • @antonioguilhermetebas241
      @antonioguilhermetebas241 Před 3 lety +1

      @@NicholasRenotte great!!!! many thanks bro. another great tutorial!!!

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      @@antonioguilhermetebas241 thanks so much!!

  • @arthurarturo4625
    @arthurarturo4625 Před 3 lety +1

    I get
    No module named 'ibm_watson'
    When I try to run
    "from ibm_watson import VisualRecognitionV4
    "
    at point 2 Scoring

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya man, can you try running the following command in a cell:
      !pip install ibm-watson

    • @arthurarturo4625
      @arthurarturo4625 Před 3 lety +1

      pip install --upgrade ibm-watson
      I forgot to do this! My fault

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      @@arthurarturo4625 happens to the best of us! Let me know how you go!!

  • @newstuff0629
    @newstuff0629 Před 3 lety +1

    Please help used his image writer, not working(

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Double check you have the full file path created, might have a subfolder missing!

  • @rayschannel7868
    @rayschannel7868 Před rokem

    You need to pay to use Watson Studio?

  • @arkiv4356
    @arkiv4356 Před 3 lety +1

    In associate a service. Visual recognition is missing.

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @Arkham unfortunately the service has been deprecated. Try checking this out as an alternative: czcams.com/video/IOI0o3Cxv9Q/video.html

  • @TaniaVelu
    @TaniaVelu Před 3 lety

    why am i not able to use different images captured it throws error saying coollection error?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Not too sure, would need to see the error to help debug. Can you try this notebook, it's an updated version of the image collection code: github.com/nicknochnack/TFODCourse/blob/main/1.%20Image%20Collection.ipynb

    • @TaniaVelu
      @TaniaVelu Před 3 lety +1

      @@NicholasRenotte thanks will try this out!

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      @@TaniaVelu awesome, let me know how you go!

  • @aryamanchatterjee1654
    @aryamanchatterjee1654 Před 3 lety +1

    What is the meaning of Watson Studio as a training model

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @Aryaman Chatterjee, Watson Studio is the data science platform. You can do a ton of DS and ML stuff from there.

  • @mummyskitchen5311
    @mummyskitchen5311 Před 3 lety +1

    Hey Nick, here it was where I got stuck:
    ----> 4 cv2.imwrite(imgname, frame)
    error: OpenCV(4.1.2) /io/opencv/modules/imgcodecs/src/loadsave.cpp:715: error: (-215:Assertion failed) !_img.empty() in function 'imwrite'
    .
    Please NOTE: I am running all of this in Colab, hope that should not be any issue?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya Aman! With Colab, you need to do a little more work to access your webcam. Check out this solution under Camera Capture: colab.research.google.com/notebooks/snippets/advanced_outputs.ipynb#scrollTo=2viqYx97hPMi

    • @achendvankar
      @achendvankar Před 3 lety

      @@NicholasRenotte I am getting the same error even though i am working in a Jupyter notebook.
      The error is as follows:
      ----> 4 cv2.imwrite(imgname, frame)
      error: OpenCV(4.3.0) C:\projects\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:738: error: (-215:Assertion failed) !_img.empty() in function 'cv::imwrite'

    • @tasarm4939
      @tasarm4939 Před 3 lety

      @@achendvankar hey ac did you solve it

    • @deeppatel195
      @deeppatel195 Před 3 lety

      I am also getting same error did anyone solved it?

  • @husniramdani9332
    @husniramdani9332 Před 3 lety +2

    IBM Watson™ Visual Recognition is discontinued. Existing instances are supported until 1 December 2021, but as of 7 January 2021, you can't create instances. Any instance that exists on 1 December 2021 will be deleted.

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Yah, a bit of a pain but I'm going heaps of open source vids on OD.

  • @zaheersuhabuth2677
    @zaheersuhabuth2677 Před 3 lety +1

    This is gold! How do i make it a real time detection?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Heya @Zaheer, can't do it with this model, but you can with this: czcams.com/video/IOI0o3Cxv9Q/video.html

    • @zaheersuhabuth2677
      @zaheersuhabuth2677 Před 3 lety +1

      @@NicholasRenotte yes I've already came across it while going through your channel 😁😁😁

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      @@zaheersuhabuth2677 awesomeee!

  • @vrishabvishnu5520
    @vrishabvishnu5520 Před 3 lety +1

    I'm getting this error......... when I type this code
    authenticator = IAMAuthenticator(apikey)
    service = VisualRecognitionV4('2018-03-19', authenticator=authenticator)
    service.set_service_url(url)
    AN ERROR SHOWS UP saying:
    name 'IAMAuthenticator' is not defined

    • @vrishabvishnu5520
      @vrishabvishnu5520 Před 3 lety +1

      please help..

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Hey there! Can you add this before your authenticator code.
      # Install IBM Watson
      !pip install ibm-watson
      # Import authenticator
      from ibm_cloud_sdk_core.authenticators import IAMAuthenticator

    • @vrishabvishnu5520
      @vrishabvishnu5520 Před 3 lety

      @@NicholasRenotte Thanks a lot sir, it means a lot to me!!!

  • @didartulepbergenov5699

    hi, i have a question. when you take a photo with a mask, without a mask in a notebook, do you yourself press to take a picture, or does the code itself take pictures several times?

  • @jhanvipankhania7119
    @jhanvipankhania7119 Před 2 lety

    Hey Nicholas! I couldn't figure out Visual Recognition thing in Watson Studio.
    In Watson Studio :-
    Step 1 : Add Project
    Step 2: Select Visual Recognition
    Step 3: To provision.... click here thing
    Step 4: I couldn't find / see in my UI the Visual Recognition service option
    Please help me out figure how to proceed on adding Visual Studio service (associate)
    Thanks already man!!

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety

      Heya, it's been deprecated unfortunately. It isn't available anymore, I've got some open-source examples using TFOD on the channel though!

  • @sid5072
    @sid5072 Před 3 lety +1

    Hey there Nicholas! Great video. Can you help me locate the Images folder. I have searched in the env folder(anaconda3) as well as the notebook directory. I found nothing but the IPYNB files inside the directory. :)

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Heya @Sid, have you created an image folder for collection?

    • @sid5072
      @sid5072 Před 3 lety

      Heyy@@NicholasRenotte :), Yes I did, but then I couldn't find any images inside the folder("Images/Mask"). All I could find were the IPYNB files(notepad) and the IPYNB checkpoints. (:

    • @sid5072
      @sid5072 Před 3 lety +1

      Hey there@@NicholasRenotte, I got this working after creating a new directory(from scratch). Thank you (: peace. (='w'=)

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      @@sid5072 awesome work! HMU anytime!

  • @newstuff0629
    @newstuff0629 Před 3 lety +1

    Where are default folder jupyter notebook?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Normally wherever you start your jupyter notebook server from!

  • @emmanuelcajucom9506
    @emmanuelcajucom9506 Před 2 lety

    Sir please make video tutorial face recognition with mask identification

  • @srinidhir2624
    @srinidhir2624 Před 2 lety

    OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp:801: error: (-215:Assertion failed) !_img.empty() in function 'cv::imwrite'
    i am getting this error whenever i am executing third line and also i am getting many traceback errors like assertion failed, can you provide me a solution for it

  • @koustavroy8703
    @koustavroy8703 Před 3 lety

    In Watson Studio, whenever I try to label any image it gives me an error message saying "Received Empty image data response" .. Can u plz help to solve this...

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      You're API is up and running? I believe the service is deprecated for new instances.

    • @koustavroy8703
      @koustavroy8703 Před 3 lety

      @@NicholasRenotte I tried using the visual recognition service by creating a new account but it won't let me... Is there any other way to complete the object detection step but still continue with your tutorial??

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      @@koustavroy8703 not with this one unfortunately if you can't create the API. Are you down for giving it a try with open source?

    • @koustavroy8703
      @koustavroy8703 Před 3 lety

      @@NicholasRenotte yes plz... would love to👍👍

  • @vrishabvishnu5520
    @vrishabvishnu5520 Před 3 lety +1

    Hello Sir, hope you are doing fine. All my codes are working fine, but is there a way to get Real Time mask detection?!
    because I am not able to access it. Please help me out as usual.

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Hi @Vrishab Vishnu, this tutorial is focused on non-real time detection. I've got a real time tutorial coming up!

    • @vrishabvishnu5520
      @vrishabvishnu5520 Před 3 lety +1

      @@NicholasRenotte okay great!! Can't wait for it then!!

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @anonymous three, it's finally out, an end-to-end walkthrough on building this model for real-time: czcams.com/video/IOI0o3Cxv9Q/video.html!

  • @amalawedni2333
    @amalawedni2333 Před 3 lety +2

    Thank you for this vidio i have an error with cv2.imwrite(imgname, frame)
    error: OpenCV(4.1.2) /io/opencv/modules/imgcodecs/src/loadsave.cpp:715: error: (-215:Assertion failed) !_img.empty() in function 'imwrite'

    • @deeppatel195
      @deeppatel195 Před 3 lety

      same with me. did you get any solution?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @amal and @Deep Patel, this is normally because your webcam isn't capturing any images. I'd suggest the following:
      1. Ensure that your webcam is on and activating
      2. If it is and still not capturing, restart your Python Kernel
      3. Ensure that the file name and file path are correctly defined

    • @deeppatel195
      @deeppatel195 Před 3 lety +1

      @@NicholasRenotte thanks for the reply . While I was doing this project my camera drivers got uninstalled 😂 and it’s not getting back now even if I restart . Any leads.?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      @@deeppatel195 try restarting your kernel, stop Jupyter and kick off everything again?

    • @antonioalvarez3246
      @antonioalvarez3246 Před 3 lety

      maybe 3:14 issue

  • @sreekrishnagovind5995
    @sreekrishnagovind5995 Před 2 lety +1

    Can you please send your source code sir?

  • @adityahingole5630
    @adityahingole5630 Před 3 lety +1

    HOW MUCH TIME DOES IT TAKE TO TRAIN MODEL
    SAME AS 44 IMAGES AS YOU

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @Aditya, I don't rememember the exact time unfortunately but it didn't take that long.

  • @himanshu00712
    @himanshu00712 Před 3 lety +1

    Hey Nicholas, can you help me deploy this in a real time live camera.

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Definitely!! I can do one better for you @Himanshu, here’s how to do it in real time with opencv: czcams.com/video/IOI0o3Cxv9Q/video.html and this is how to do it with JavaScript: czcams.com/video/ZTSRZt04JkY/video.html

    • @himanshu00712
      @himanshu00712 Před 3 lety +1

      @@NicholasRenotte Thank You Nicholas, I checked out these videos, it was very helpful for me, but I have a idea to add in it, and its to add one more label i.e. incorrect way of wearing mask, I am trying to do it following the your steps, thank you again!

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      @@himanshu00712 great question, during your labelling step you can add in another class (e.g. called incorrectly worn) and train with it to add it in.

  • @jakkanisaivinodkumar5642
    @jakkanisaivinodkumar5642 Před 3 lety +1

    It is not working for unmasked image!

  • @nikhilchaudhary7706
    @nikhilchaudhary7706 Před 3 lety

    Thanks for the video, can you please elaborate next time? I'm looking forward to it as my graduation project, and i am not really familiar with these websites, shortcuts 😅
    What did u use to insert extra line 11:50
    Also what did you do/press to insert camera images into jupyter. I'll need to keep seperate folders ready for the same?
    Also please can i get in touch with you somehow for doubts whenever youre free? 😅

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Take a look at this @Nikhil, I go into way more detail: czcams.com/video/yqkISICHH-U/video.html

  • @queenie_786
    @queenie_786 Před 3 lety +1

    Can I get IEEE research paper for this particular project

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @Kruthika Rajesh, not quite IEEE but it's based on Yolo, here's a paper describing it: openaccess.thecvf.com/content_cvpr_2016/papers/Redmon_You_Only_Look_CVPR_2016_paper.pdf

  • @sherifeletriby
    @sherifeletriby Před 3 lety

    I have a code that reads the photo or video and determines if a mask is wearing or not. The question is how to calculate the accuracy

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @Sherif Eletriby, want to share your code and I can take a look?

  • @farhaan594
    @farhaan594 Před 3 lety +1

    It throws out an error and I can't seem to find an answer to it:
    ---------------------------------------------------------------------------
    KeyError Traceback (most recent call last)
    in
    ----> 1 obj = analyze_images['images'][0]['objects']['collections'][0]['objects'][0]['object']
    2 coords = analyze_images['images'][0]['objects']['collections'][0]['objects'][0]['location']
    KeyError: 'collections'

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Hey 👋 @Farhaan Ashraf, what do you get if you print(coords)?

    • @farhaan594
      @farhaan594 Před 3 lety

      And now my IBM lite account is deactivated or something... so is there any alternative for Watson Studio?

  • @Ramya_BAIS
    @Ramya_BAIS Před 3 lety

    How u took pictures at 5:10

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Try using this code :) github.com/nicknochnack/TFODCourse/blob/main/1.%20Image%20Collection.ipynb

  • @RahulSharma-zy3lg
    @RahulSharma-zy3lg Před 3 lety +1

    Can I make face detection website using python?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Sure can, would need to use something like Django or Flask @Rahul!

    • @RahulSharma-zy3lg
      @RahulSharma-zy3lg Před 3 lety

      Can I copy whole code of python.. and website degine by react.. is it possible..

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      @@RahulSharma-zy3lg could have a Python API and a react front end yep!

  • @techtechnical2604
    @techtechnical2604 Před 2 lety +2

    can this be done in real time?

    • @NicholasRenotte
      @NicholasRenotte  Před 2 lety +1

      Sure can!

    • @techtechnical2604
      @techtechnical2604 Před 2 lety

      @@NicholasRenotte idk how to thank you but, your projects help students in many ways , cant thank you enough!! Thank you for being a good teacher and always making good content🏅♥️

  • @peteryang3228
    @peteryang3228 Před 3 lety +1

    Why am I cannot associated with a Watson Visual Recognition service?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Heya @Peter, I believe it's been deprecated unfortunately. This is the updated open-source version: czcams.com/video/IOI0o3Cxv9Q/video.html

    • @peteryang3228
      @peteryang3228 Před 3 lety +1

      @@NicholasRenotte much appreciate it! Already watched the video.

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      @@peteryang3228 awesome! How did you go?

  • @vishnubhotlabharadwaj2070

    My frame is not responding anyone please help me

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Yup, hmu in your other comment so it's in one spot :)

  • @ashokabalaji
    @ashokabalaji Před 3 lety +1

    Please implement through real life scen

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      With a real time camera for example @Ashoka?

    • @ashokabalaji
      @ashokabalaji Před 3 lety +1

      By switching on camera

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      @@ashokabalaji definitely, check this out: czcams.com/video/IOI0o3Cxv9Q/video.html

  • @Ramya_BAIS
    @Ramya_BAIS Před 3 lety +1

    Hello sir...firstly thank you for the wonderful project.....since I m doing ur same project as my mini project....as I m doing it I m getting a Name error for the cap variable.....can I get a help frm u as soon as possible 😊

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Ya definitely, try changing the number in cv2.VideoCapture until you see your webcam activating!

    • @Ramya_BAIS
      @Ramya_BAIS Před 3 lety +1

      @@NicholasRenotte sir do I need to install opencv and numpy in my system?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      @@Ramya_BAIS yep!

    • @Ramya_BAIS
      @Ramya_BAIS Před 3 lety +1

      @@NicholasRenotte but I m doing it on Google collab

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      @@Ramya_BAIS oh, you that won't work for the image collection as you need to be able to access your webcam. Once you've collected your images locally you should be able to run the detection on Colab if needed!

  • @vishnubhotlabharadwaj2070

    Hello Nick, I have some trouble in compiling this, could you help me please 🥺

  • @lloydsamson226
    @lloydsamson226 Před 3 lety +1

    What if you cover your face using your clothes?

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety

      Hmmm, try testing it out. I'm guessing you wouldn't get too many detections back.

  • @ramprasadbishnoi9307
    @ramprasadbishnoi9307 Před 3 lety +1

    Wow

  • @hailelleultesera8643
    @hailelleultesera8643 Před 3 lety

    Watson visual recognition is discontinued you cant create new instances any more

    • @anirudhank6337
      @anirudhank6337 Před 3 lety

      Same :*) Just when I start :(

    • @hailelleultesera8643
      @hailelleultesera8643 Před 3 lety +1

      @@anirudhank6337am really exhausted

    • @NicholasRenotte
      @NicholasRenotte  Před 3 lety +1

      Ya, bit of a pain. Can do it with open source though!

    • @anirudhank6337
      @anirudhank6337 Před 3 lety

      @@NicholasRenotte could you please explain this in detail....like is there any way to it else where is there any common name to stuff like this?

    • @hailelleultesera8643
      @hailelleultesera8643 Před 3 lety

      @@NicholasRenotte please send the link