In the past two years 2020 and 2021, the COVID-19 outburst has had a serious effect on human life. The effects and side effects of COVID-19 are being stroked in almost every discipline relevant to survival and development. The healthcare system was in a problematic situation during this tough time in pandemic situation all over the world. One of the many precautions and protections used to break the chain of spreading of this virus is wearing a mask and keeping safe distance. In a network of smart cities where entirely public spaces are monitored by Closed-Circuit Television (CCTV) cameras, we are offering a strategy in this study that restricts the spread of COVID-19 by identifying people not wearing mask. The network alerts the proper authority whenever a person without a mask is discovered. It is believed that our research will help many countries throughout the world stop the spread of this infectious disease. We've examined this on 200 real people in the present, with a 100% success rate. It is also observed that when more than one person in front of CCTV success rate reduced exponentially © 2022 IEEE.