The impact of Covid 19 cases is increasing worldwide due to not complying with social distancing and mask-wearing rules in congested areas such as hospitals, schools, and malls where people have to be together. Although the authorities have taken various precautions to prevent not wearing masks, it is challenging to inspect masks in crowded areas. People who do not wear masks can be unnoticed by visual inspections, which is a critical factor in the increase of the epidemic. This study aims to create an Artificial Intelligence (AI) based mask inspection system with the YOLO V7 deep learning method to ensure that overcrowded public areas are protected from the Covid-19 epidemic.