Code Monkey home page Code Monkey logo

mmphego / face_mask_detection_openvino Goto Github PK

View Code? Open in Web Editor NEW
49.0 49.0 18.0 176.97 MB

Detect faces and determine whether people are wearing mask.

Home Page: https://blog.mphomphego.co.za/blog/2020/06/02/Face-Mask-Detection-using-Intel-OpenVINO-and-OpenCV.html

License: GNU General Public License v3.0

Python 80.86% Makefile 18.21% Dockerfile 0.93%
blogpost covid-19 deep-learning edge edgeai face-mask-detection inference intel intel-openvino-toolkit opencv openvino

face_mask_detection_openvino's Introduction

Peek 2020-07-09 15-53

Data Engineer | Mentor @ Udacity | Applied ML Enthusiast | Technical Blogger | AWS Community Builder

I little bit about me

🎓  I'm currently working towards an AWS Data Engineering Cert.
🌱  I'm on track with learning more about DataOps, MLOps, DevOps and Software Architecture.
✍️  In my free time, I enjoy hiking, open-sea swimming and spending time with family.
💬  Lets have a Meet or Zoom call, feel free to pick a slot on Calendly to talk with me.
✉️  You can drop me an email at [email protected] with a subject containing "GitHub: ..."! It will be a pleasure to talk with you!.
📄  Check my now page to get to know me a little better.


github stats

NOTE: This does not indicate my skill level or language proficiency, it's merely a GitHub metric of which languages I have the most code of on GitHub.


Latest blog posts


Links

darkwood email linkedin docker youtube twitter

face_mask_detection_openvino's People

Contributors

mmphego avatar munoz0raul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

face_mask_detection_openvino's Issues

OVMS Configuration

Hi,

Thanks for sharing this model, it's great. I'm trying to get this model into the OpenVino Model Server - Do you have the model.json configuration parameters (inputs, outputs) for deploying the model in OVMS? For example, this a config file i used for another model

"inputs": [
          {
            "input_name": "data",
            "input_format": "NCHW",
            "color_format": "BGR",
            "target_height": 320,
            "target_width": 544,
            "channels": 3
          }
        ],
      "outputs": [
          {
              "output_name": "detection_out",
              "confidence_threshold": 0.1,
              "classes": {
                  "background": 0.0,
                  "person": 1.0
              },
              "value_index_mapping": {
                  "image_id": 0,
                  "value": 1,
                  "confidence": 2,
                  "x_min": 3,
                  "y_min": 4,
                  "x_max": 5,
                  "y_max": 6
              }
          }
      ],


Thanks,
Francisco

Unsupported layers found IECore OpenVINO MYRIAD

Everything works perfectly when I run the following on cpu, but when I choose MYRIAD: --device 'MYRIAD', the following exception is raised:


~/mask-openvino/face_mask_detection_openvino$ python3 main.py     --face-model models/face-detection-adas-0001.xml     --mask-model models/face_mask.xml     --debug     -i resources/mask.mp4 --device 'MYRIAD'
Traceback (most recent call last):
  File "main.py", line 221, in <module>
    infer_on_stream(args)
  File "main.py", line 137, in infer_on_stream
    device=args.device,
  File "/home/nvr/mask-openvino/face_mask_detection_openvino/inference.py", line 72, in load_model
    raise RuntimeError(msg)
RuntimeError: Unsupported layers found: ['data'], Check whether extensions are available to add to IECore.

I am using:
ubuntu 18 LTS
Python 3.6.9

I would appreciate a quick help for this.

Multiple results

Hello, great work.

What changes I should do into the code to detect multiple results? Now, the system detects multiple faces but only one mask. For example, if there are 3 people, 2 with mask and 1 without mask, the system detect 3 faces but detects only one result for masks and show that all have mask.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.