Computer Vision Applications using OpenCV

Apply a Face Mask to a Selfie you own this product

This project is part of the liveProject series Computer Vision Applications using OpenCV
basics of Python • basics of OpenCV • basics of bitwise operation
skills learned
tracking mouse events • using bitwise operations • saving images
Vishwesh Shrimali
1 week · 3-6 hours per week · BEGINNER

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • share your subscription with another person
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!


5, 10 or 20 seats+ for your team - learn more

Look inside
In this quick liveProject, you’ll develop a selfie enhancement application to build awareness of the importance of mask-wearing during a pandemic. You’ll use a laptop webcam to capture a user’s selfie, load a face mask image with a transparent background, and apply the face mask onto the image at the location selected by the user.
This project is designed for learning purposes and is not a complete, production-ready application or solution.

book resources

When you start your liveProject, you get full access to the following books for 90 days.

project author

Vishwesh Shrimali
Vishwesh Ravi Shrimali is an AI and computer vision engineer with a mechanical engineering background. In his previous company, he was involved in developing the official OpenCV AI course series. He has also written multiple books on OpenCV and machine learning. He has recently joined Mercedes Benz R&D India as an engineer in the ADAS domain. He is also pursuing his master's in ML & AI from LJMU.


This liveProject is for aspiring OpenCV developers with some knowledge of Python. To begin these liveProjects, you will need to be familiar with:

  • Basics of Python
  • Basics of NumPy
    • Creating NumPy arrays
    • NumPy array datatypes
    • Extracting values from NumPy array using binary logic
  • Basics of OpenCV
    • Reading and writing images using OpenCV
    • Displaying images using OpenCV
    • Colorspaces in OpenCV
  • Bitwise operations

you will learn

In this liveProject you’ll learn essential OpenCV skills for developing useful computer vision applications.

  • Tracking mouse events
  • Using bitwise operations
  • Saving images


You choose the schedule and decide how much time to invest as you build your project.
Project roadmap
Each project is divided into several achievable steps.
Get Help
While within the liveProject platform, get help from other participants and our expert mentors.
Compare with others
For each step, compare your deliverable to the solutions by the author and other participants.
book resources
Get full access to select books for 90 days. Permanent access to excerpts from Manning products are also included, as well as references to other resources.

choose your plan


only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Apply a Face Mask to a Selfie project for free