Face masks had always been quite common where I'm from. During flu season, I would see many people wearing face masks in the city. With the COVID-19 pandemic, we see the use of face masks all around the world.
In this entry, my fellow MathWorker, Wanbin, uses deep learning to detect whether a mask is being worn. He has a number of live scripts to walk through the image labeling process, training process, and testing of the model. He includes a pre-trained network that was trained using images provided by his colleagues. If you would like to train your own model, you should supply your own training images.
He also includes a script for testing the model on a live video captured by a webcam. I gave it a try, and his pre-trained network seemed to work fine for me.
要发表评论，请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。