Systems and methods of detecting mask usage
Example aspects include a method, an apparatus and a computer-readable medium of enforcing a mask wearing rule, comprising monitoring video frames of one or more video feeds. The aspects further include detecting a person in at least one video frame of the video frames. The at least one video frame corresponding to a first area of one or more areas. Additionally, the aspects further include determining whether the person is in violation of a mask wearing rule. Additionally, the aspects further include generating an alert in response to determining that the person is in violation of the mask wearing rule.
1. A method of detecting mask usage, comprising:
monitoring video frames of one or more video feeds;
detecting a person in at least one video frame of the video frames, the at least one video frame corresponding to a first area of one or more areas;
detecting one or more detected facial features within the at least one video frame via a facial feature detection algorithm;
determining that the one or more detected facial features of the person comprise one or more particular facial features;
determining an occupancy rate of an enforcement area;
determining, in response to the occupancy rate exceeding an occupancy rate threshold, that the person is in violation of a mask wearing rule when the one or more detected facial features comprise the one or more particular facial features; and
generating an alert in response to determining that the person is in violation of the mask wearing rule.
2. The method of claim 1 , wherein the one or more particular facial features include nose and mouth facial features.
3. The method of claim 1 , wherein determining that the person is in violation of the mask wearing rule further comprises determining that the mask wearing rule indicates that the first area is a portion of the enforcement area of the mask wearing rule.
4. The method of claim 1 , wherein the person is a first person, and further comprising:
granting access to a second person to a second area of the one or more areas in response to determining that the second person is in compliance with the mask wearing rule.
5. The method of claim 1 , further comprising:
obtaining identification information of the person; and
wherein generating the alert comprises notifying the person of a mask wearing rule violation, the person being notified according to the identification information.
6. The method of claim 1 , wherein generating the alert comprises providing the at least one video frame displaying the person in violation of the mask wearing rule.
7. The method of claim 1 , wherein generating the alert comprises notifying one or more recipients of a mask wearing rule violation, the one or more recipients being associated with the first area.
8. An apparatus for detecting mask usage, comprising:
a non-transitory memory storing computer-executable instructions; and
a processor communicatively coupled with the non-transitory memory and configured to execute the computer-executable instructions to:
monitor video frames of one or more video feeds;
detect a person in at least one video frame of the video frames, the at least one video frame corresponding to a first area of one or more areas;
detect one or more detected facial features within the at least one video frame via a facial feature detection algorithm;
determine that the one or more detected facial features of the person comprise one or more particular facial features;
determine an occupancy rate of an enforcement area;
determine, in response to the occupancy rate exceeding an occupancy rate threshold, that the person is in violation of a mask wearing rule when the one or more detected facial features comprise the one or more particular facial features; and
generate an alert in response to determining that the person is in violation of the mask wearing rule.
9. The apparatus of claim 8 , wherein the one or more particular facial features include nose and mouth facial features.
10. The apparatus of claim 8 , wherein to determine that the person is in violation of the mask wearing rule further comprises to determine whether the mask wearing rule indicates that the first area is a portion of the enforcement area of the mask wearing rule.
11. The apparatus of claim 8 , wherein the person is a first person, and the processor is configured to execute further computer-executable instructions to:
granting access to a second person to a second area of the one or more areas in response to determining that the second person is in compliance with the mask wearing rule.
12. The apparatus of claim 8 , wherein the processor is configured to execute further computer-executable instructions to:
obtain identification information of the person; and
wherein to generate the alert comprises to notify the person of a mask wearing rule violation, the person being notified according to the identification information.
13. The apparatus of claim 8 , wherein to generate the alert comprises to provide the at least one video frame displaying the person in violation of the mask wearing rule.
14. The apparatus of claim 8 , wherein to generate the alert comprises to notify one or more recipients of a mask wearing rule violation, the one or more recipients being associated with the first area.
15. A non-transitory computer-readable medium storing computer-readable instructions for detecting mask usage, executable by a processor to:
monitor video frames of one or more video feeds;
detect a person in at least one video frame of the video frames, the at least one video frame corresponding to a first area of one or more areas;
detect one or more detected facial features within the at least one video frame via a facial feature detection algorithm;
determine that the one or more detected facial features of the person comprise one or more particular facial features;
determine an occupancy rate of an enforcement area;
determine, in response to the occupancy rate exceeding an occupancy rate threshold, that the person is in violation of a mask wearing rule when the one or more detected facial features comprise the one or more particular facial features; and
generate an alert in response to determining that the person is in violation of the mask wearing rule.
16. The non-transitory computer-readable medium of claim 15 , wherein the one or more particular facial features include nose and mouth facial features.
17. The non-transitory computer-readable medium of claim 15 , wherein to determine that the person is in violation of the mask wearing rule comprises to determine that the mask wearing rule indicates that the first area is a portion of the enforcement area of the mask wearing rule.
18. The non-transitory computer-readable medium of claim 15 , wherein the person is a first person and the computer-readable instructions comprise further computer-readable instructions to:
grant access to a second person to a second area of the one or more areas in response to determining that the second person is in compliance with the mask wearing rule.
19. The non-transitory computer-readable medium of claim 15 , wherein the computer-readable instructions comprise further computer-readable instructions to:
obtain identification information of the person; and
wherein to generate the alert comprises to notify the person of a mask wearing rule violation, the person being notified according to the identification information.