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

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 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/nic...
    Want to learn more about it all:
    OpenCV: opencv.org/
    Watson Studio: cloud.ibm.com/...
    Watson Visual Recognition: cloud.ibm.com/...
    Oh, and don't forget to connect with me!
    LinkedIn: / nicholasr. .
    Facebook: / nickrenotte
    GitHub: github.com/nic...
    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...

ความคิดเห็น • 239

  • @sumedhdixit4771
    @sumedhdixit4771 4 ปีที่แล้ว +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  4 ปีที่แล้ว +1

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

  • @mohammadasifbokhtyarmuhi2279
    @mohammadasifbokhtyarmuhi2279 3 ปีที่แล้ว +2

    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  3 ปีที่แล้ว +1

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

  • @KenJee_ds
    @KenJee_ds 3 ปีที่แล้ว +8

    Loving these videos Nicholas!

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @venkatasreeram
    @venkatasreeram 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

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

  • @rakshithrajpulluri3515
    @rakshithrajpulluri3515 3 ปีที่แล้ว +1

    Super video amazing clarity and frankness

  • @akangshamuk
    @akangshamuk 4 ปีที่แล้ว +2

    Keep Going Nicholas... Best of Luck 👍

    • @NicholasRenotte
      @NicholasRenotte  4 ปีที่แล้ว

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

  • @husniramdani9332
    @husniramdani9332 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

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

  • @vstechvideos9373
    @vstechvideos9373 3 ปีที่แล้ว +2

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      Definitely @Viraj Shah, I’ll add it to the list!

  • @muditrustagi5775
    @muditrustagi5775 3 ปีที่แล้ว +2

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

  • @JFi95
    @JFi95 3 ปีที่แล้ว +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  3 ปีที่แล้ว +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: th-cam.com/play/PLgNJO2hghbmhUeJuv7PyVYgzhlgt2TcSr.html

  • @sureejaan
    @sureejaan 3 ปีที่แล้ว +2

    Amazing work man thanks for sharing the knowledge

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      Anytime!! Thanks so much for tuning in!

  • @shahriaralom4547
    @shahriaralom4547 3 ปีที่แล้ว +1

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

  • @arkiv4356
    @arkiv4356 3 ปีที่แล้ว +1

    In associate a service. Visual recognition is missing.

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      Heya @Arkham unfortunately the service has been deprecated. Try checking this out as an alternative: th-cam.com/video/IOI0o3Cxv9Q/w-d-xo.html

  • @jakubkahoun8383
    @jakubkahoun8383 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  2 ปีที่แล้ว

      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.

  • @vrishabvishnu5520
    @vrishabvishnu5520 4 ปีที่แล้ว +2

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

    • @NicholasRenotte
      @NicholasRenotte  4 ปีที่แล้ว +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 🙂

  • @bandhandey2594
    @bandhandey2594 3 ปีที่แล้ว +2

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @pahal8266
    @pahal8266 3 ปีที่แล้ว +2

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @nivethitha8317
    @nivethitha8317 3 ปีที่แล้ว +2

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      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!

  • @omverma3707
    @omverma3707 3 ปีที่แล้ว +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

  • @bilal7572
    @bilal7572 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      Heya @Bilal, is there a larger error?

  • @shafaqmalik4726
    @shafaqmalik4726 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว +1

      Thank you so much @Shafaq Malik 🙏

  • @Cat-su7bm
    @Cat-su7bm 2 ปีที่แล้ว +1

    Nice explane

  • @yarahashim3532
    @yarahashim3532 3 ปีที่แล้ว +3

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

  • @jhanvipankhania7119
    @jhanvipankhania7119 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

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

  • @vrishabvishnu5520
    @vrishabvishnu5520 4 ปีที่แล้ว +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  4 ปีที่แล้ว +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 4 ปีที่แล้ว

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

  • @newstuff0629
    @newstuff0629 3 ปีที่แล้ว +1

    Please help used his image writer, not working(

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @predatorsn1
    @predatorsn1 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @gaminizer1172
    @gaminizer1172 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @rabiraj1387
    @rabiraj1387 3 ปีที่แล้ว

    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'

  • @newstuff0629
    @newstuff0629 3 ปีที่แล้ว +1

    Where are default folder jupyter notebook?

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      Normally wherever you start your jupyter notebook server from!

  • @amalawedni2333
    @amalawedni2333 3 ปีที่แล้ว +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 3 ปีที่แล้ว

      same with me. did you get any solution?

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      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 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

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

    • @antonioalvarez3246
      @antonioalvarez3246 3 ปีที่แล้ว

      maybe 3:14 issue

  • @olikilo
    @olikilo 4 ปีที่แล้ว +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  4 ปีที่แล้ว +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

  • @emmanuelcajucom9506
    @emmanuelcajucom9506 2 ปีที่แล้ว

    Sir please make video tutorial face recognition with mask identification

  • @Sukant98
    @Sukant98 3 ปีที่แล้ว +1

    Great video, Thanks!

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      🙏🙏🙏 Thanks so much @Sukant!

  • @jakkanisaivinodkumar5642
    @jakkanisaivinodkumar5642 3 ปีที่แล้ว +1

    It is not working for unmasked image!

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      Hmm, might need a little performance tuning!

  • @thirashapw
    @thirashapw 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว +1

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

  • @animemv2941
    @animemv2941 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @vrishabvishnu5520
    @vrishabvishnu5520 4 ปีที่แล้ว +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 4 ปีที่แล้ว +1

      please help..

    • @NicholasRenotte
      @NicholasRenotte  4 ปีที่แล้ว

      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 4 ปีที่แล้ว

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

  • @mohitpatil2998
    @mohitpatil2998 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว +1

      Hmmm, have you definited the opencv capture?

  • @antonioguilhermetebas241
    @antonioguilhermetebas241 4 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  4 ปีที่แล้ว +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  3 ปีที่แล้ว +1

      More than a week later but it's out: th-cam.com/video/IOI0o3Cxv9Q/w-d-xo.html @antonio guilherme tebas!

    • @antonioguilhermetebas241
      @antonioguilhermetebas241 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      @@antonioguilhermetebas241 thanks so much!!

  • @SedanurKrc
    @SedanurKrc 3 ปีที่แล้ว +1

    I really like your content. Best of luck 🤗

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว +1

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

  • @farhaan594
    @farhaan594 3 ปีที่แล้ว +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  3 ปีที่แล้ว

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

    • @farhaan594
      @farhaan594 3 ปีที่แล้ว

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

  • @ujjwalsingh827
    @ujjwalsingh827 3 ปีที่แล้ว +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  3 ปีที่แล้ว

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

  • @vrishabvishnu5520
    @vrishabvishnu5520 4 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  4 ปีที่แล้ว

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

  • @zaheersuhabuth2677
    @zaheersuhabuth2677 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว +1

      Heya @Zaheer, can't do it with this model, but you can with this: th-cam.com/video/IOI0o3Cxv9Q/w-d-xo.html

    • @zaheersuhabuth2677
      @zaheersuhabuth2677 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      @@zaheersuhabuth2677 awesomeee!

  • @mummyskitchen5311
    @mummyskitchen5311 4 ปีที่แล้ว +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  4 ปีที่แล้ว

      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 3 ปีที่แล้ว

      @@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 3 ปีที่แล้ว

      @@achendvankar hey ac did you solve it

    • @deeppatel195
      @deeppatel195 3 ปีที่แล้ว

      I am also getting same error did anyone solved it?

  • @arthurarturo4625
    @arthurarturo4625 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

    • @arthurarturo4625
      @arthurarturo4625 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @aryamanchatterjee1654
    @aryamanchatterjee1654 3 ปีที่แล้ว +1

    What is the meaning of Watson Studio as a training model

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @user-gh9oy4hk2j
    @user-gh9oy4hk2j 4 ปีที่แล้ว +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  4 ปีที่แล้ว

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

  • @peteryang3228
    @peteryang3228 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

    • @peteryang3228
      @peteryang3228 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      @@peteryang3228 awesome! How did you go?

  • @didartulepbergenov5699
    @didartulepbergenov5699 2 ปีที่แล้ว

    why when me press q, my frame have error ?

  • @sid5072
    @sid5072 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

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

    • @sid5072
      @sid5072 3 ปีที่แล้ว

      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 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      @@sid5072 awesome work! HMU anytime!

  • @tasarm4939
    @tasarm4939 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @Ritros
    @Ritros 2 ปีที่แล้ว

    is the watson studio model training necessary?

  • @techtechnical2604
    @techtechnical2604 3 ปีที่แล้ว +2

    can this be done in real time?

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว +1

      Sure can!

    • @techtechnical2604
      @techtechnical2604 3 ปีที่แล้ว

      @@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🏅♥️

  • @debayansaha5315
    @debayansaha5315 2 ปีที่แล้ว

    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'

  • @ruiyuqu9039
    @ruiyuqu9039 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

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

  • @adityahingole5630
    @adityahingole5630 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @ashokabalaji
    @ashokabalaji 3 ปีที่แล้ว +1

    Please implement through real life scen

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      With a real time camera for example @Ashoka?

    • @ashokabalaji
      @ashokabalaji 3 ปีที่แล้ว +1

      By switching on camera

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      @@ashokabalaji definitely, check this out: th-cam.com/video/IOI0o3Cxv9Q/w-d-xo.html

  • @shajidmughal3386
    @shajidmughal3386 3 ปีที่แล้ว +1

    where do i have to create this Images folder?

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว +1

      Should be in the same directory as the notebook!

  • @radhwennassar7027
    @radhwennassar7027 3 ปีที่แล้ว +1

    thank you for this great work

  • @rayschannel7868
    @rayschannel7868 2 ปีที่แล้ว

    You need to pay to use Watson Studio?

  • @vishnubhotlabharadwaj2070
    @vishnubhotlabharadwaj2070 3 ปีที่แล้ว +1

    My frame is not responding anyone please help me

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @madhusudhan2279
    @madhusudhan2279 3 ปีที่แล้ว

    Whether visual recognition model is available now in Watson studio?

  • @Ramya_BAIS
    @Ramya_BAIS 3 ปีที่แล้ว +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  3 ปีที่แล้ว

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

    • @Ramya_BAIS
      @Ramya_BAIS 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      @@Ramya_BAIS yep!

    • @Ramya_BAIS
      @Ramya_BAIS 3 ปีที่แล้ว +1

      @@NicholasRenotte but I m doing it on Google collab

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      @@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!

  • @RahulSharma-zy3lg
    @RahulSharma-zy3lg 3 ปีที่แล้ว +1

    Can I make face detection website using python?

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว +1

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

    • @RahulSharma-zy3lg
      @RahulSharma-zy3lg 3 ปีที่แล้ว

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @TaniaVelu
    @TaniaVelu 3 ปีที่แล้ว

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว +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 3 ปีที่แล้ว +1

      @@NicholasRenotte thanks will try this out!

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @sherifeletriby
    @sherifeletriby 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

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

  • @varunvijaywargi5497
    @varunvijaywargi5497 4 ปีที่แล้ว +1

    As usual, fantastic !!!!!!

  • @vrishabvishnu5520
    @vrishabvishnu5520 4 ปีที่แล้ว +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  4 ปีที่แล้ว

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

    • @vrishabvishnu5520
      @vrishabvishnu5520 4 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @sreekrishnagovind5995
    @sreekrishnagovind5995 3 ปีที่แล้ว +1

    Can you please send your source code sir?

  • @queenie_786
    @queenie_786 3 ปีที่แล้ว +1

    Can I get IEEE research paper for this particular project

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

      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

  • @himanshu00712
    @himanshu00712 3 ปีที่แล้ว +1

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

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว +1

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

    • @himanshu00712
      @himanshu00712 3 ปีที่แล้ว +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  3 ปีที่แล้ว

      @@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.

  • @koustavroy8703
    @koustavroy8703 3 ปีที่แล้ว

    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  3 ปีที่แล้ว +1

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

    • @koustavroy8703
      @koustavroy8703 3 ปีที่แล้ว

      @@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  3 ปีที่แล้ว

      @@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 3 ปีที่แล้ว

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

  • @srinidhir2624
    @srinidhir2624 2 ปีที่แล้ว

    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

  • @user___01
    @user___01 3 ปีที่แล้ว +1

    Gold content!

  • @nikhilchaudhary7706
    @nikhilchaudhary7706 3 ปีที่แล้ว

    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  3 ปีที่แล้ว

      Take a look at this @Nikhil, I go into way more detail: th-cam.com/video/yqkISICHH-U/w-d-xo.html

  • @lloydsamson226
    @lloydsamson226 3 ปีที่แล้ว +1

    What if you cover your face using your clothes?

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @Ramya_BAIS
    @Ramya_BAIS 3 ปีที่แล้ว

    How u took pictures at 5:10

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว

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

  • @didartulepbergenov5699
    @didartulepbergenov5699 2 ปีที่แล้ว

    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?

  • @vishnubhotlabharadwaj2070
    @vishnubhotlabharadwaj2070 3 ปีที่แล้ว

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

  • @ramprasadbishnoi9307
    @ramprasadbishnoi9307 3 ปีที่แล้ว +1

    Wow

  • @hailelleultesera8643
    @hailelleultesera8643 3 ปีที่แล้ว

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

    • @anirudhank6337
      @anirudhank6337 3 ปีที่แล้ว

      Same :*) Just when I start :(

    • @hailelleultesera8643
      @hailelleultesera8643 3 ปีที่แล้ว +1

      @@anirudhank6337am really exhausted

    • @NicholasRenotte
      @NicholasRenotte  3 ปีที่แล้ว +1

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

    • @anirudhank6337
      @anirudhank6337 3 ปีที่แล้ว

      @@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 3 ปีที่แล้ว

      @@NicholasRenotte please send the link

  • @bronsonranga5770
    @bronsonranga5770 4 ปีที่แล้ว +1

    🔥🔥🔥