AIAS/4_video_sdks/rtsp_facemask_sdk
2023-07-08 22:09:44 +08:00
..
models no message 2023-07-08 22:09:44 +08:00
src/main no message 2023-07-08 22:09:44 +08:00
pom.xml no message 2023-07-08 22:09:44 +08:00
README_cn.md no message 2023-07-08 22:09:44 +08:00
README.md no message 2023-07-08 22:09:44 +08:00
rtsp_facemask_sdk.iml no message 2023-07-08 22:09:44 +08:00
rtsp-facemask-sdk.iml no message 2023-07-08 22:09:44 +08:00

Download the model and put it in the models directory

Mask detection

Mask detection is helping to fight against pneumonia, and artificial intelligence technology is being applied to epidemic prevention and control. In cutting off the transmission pathway of anti-epidemic diseases, wearing masks has become one of the most important measures. However, in actual scenarios, there are still people who do not take it seriously, do not pay attention, or have a lucky mentality and do not wear masks, especially in public places, which poses great risks to individuals and the public. The mask detection function based on artificial intelligence can perform real-time detection based on the camera video stream.

SDK function

Through rtsp streaming, real-time detection of masks (requires a desktop computer with a graphics card, otherwise it will be more laggy).

  • RTSP address of cameras such as Hikvision/Dahua: rtsp://user:password@192.168.16.100:554/Streaing/Channels/1
  • RTSP address of video platforms such as Hikvision/Dahua: rtsp://192.168.16.88:554/openUrl/6rcShva
  • Your own RTSP address

Run the face detection example

  1. First, download the sample code
git clone https://github.com/mymagicpower/AIAS.git
  1. Import the examples project into the IDE:
cd rtsp_facemask_sdk
  1. Run the example code: RtspFaceMaskDetectionExample

The effect is as follows:

result