Method and device for sending alarm message
AssigneeHangzhou Hikvision Digital Technology Co., Ltd.
InventorsHaohao Tong, Junyan Tong, Ye Ren
Life of this patent
Estimating the term…
Abstract
A method for sending an alarm message, and belongs to the field of computer technology. The method includes: acquiring a detection image (201) captured by an image capturing apparatus; determining a target detection area (202); and detecting a person's call status information corresponding to an image in the target detection area according to a preset on-the-phone determination algorithm model, and sending a first alarm message (203) to a server if the person's call status information shows that the person is on the phone.
Claims16
A method for sending an alarm message, comprising:
- acquiring a detection image captured by an image capturing apparatus;
- determining a target detection area in the detection image;
- and
- detecting a person's call status information corresponding to an image in the target detection area according to a preset on-the-phone determination algorithm model, and sending a first alarm message to a server if the person's call status information shows that the person is on the phone,
- wherein determining the target detection area in the detection image comprises:
- detecting a face image area and a head and shoulder image area in the detection image based on a preset face and head and shoulder detection algorithm model;
- and determining the target detection area in the detection image according to detection results of both the face image area and the head and shoulder image area, and
- wherein detecting the face image area and the head and shoulder image area in the detection image based on the preset face and head and shoulder detection algorithm model comprises:
- determining a tentative face image area and a tentative head and shoulder image area in the detection image based on the preset face and head and shoulder detection algorithm model, determining a confidence level corresponding to the tentative face image area as well as a confidence level corresponding to the tentative head and shoulder image area;
- determining a weight value corresponding to the tentative face image area and a weight value corresponding to the tentative head and shoulder image area according to a pre-stored correspondence relationship between position information and weight;
- in response to the confidence level corresponding to the tentative face image area being greater than a preset first confidence level threshold, and the weight value corresponding to the tentative face image area being greater than a preset first weight value threshold, determining the tentative face image area as the face image area;
- and
- in response to the confidence level of the tentative head and shoulder image area being greater than a preset second confidence level threshold, and the weight value corresponding to the tentative head and shoulder image area being greater than a preset second weight value threshold, determining the tentative head and shoulder image area as the head and shoulder image area.
A terminal, which comprises:
- one or more processors;
- and
- one or more memories, wherein
- the one or more memories are configured to store executable program codes;
- the executable program codes stored in the one or more memories are executed by the one or more processors to perform:
- acquiring a detection image captured by an image capturing apparatus;
- determining a target detection area in the detection image;
- and
- detecting a person's call status information corresponding to an image in the target detection area according to a preset on-the-phone determination algorithm model, and sending a first alarm message to a server if the person's call status information shows that the person is on the phone,
- wherein the one or more programs comprise instructions for performing the following steps:
- detecting a face image area and a head and shoulder image area in the detection image based on a preset face and head and shoulder detection algorithm model;
- and
- determining the target detection area in the detection image according to detection results of both the face image area and the head and shoulder image area, and
- wherein detecting the face image area and the head and shoulder image area in the detection image based on the preset face and head and shoulder detection algorithm model comprises:
- determining a tentative face image area and a tentative head and shoulder image area in the detection image based on the preset face and head and shoulder detection algorithm model, determining a confidence level corresponding to the tentative face image area as well as a confidence level corresponding to the tentative head and shoulder image area;
- determining a weight value corresponding to the tentative face image area and a weight value corresponding to the tentative head and shoulder image area according to a pre-stored correspondence relationship between position information and weight;
- in response to the confidence level corresponding to the tentative face image area being greater than a preset first confidence level threshold, and the weight value corresponding to the tentative face image area being greater than a preset first weight value threshold, determining the tentative face image area as the face image area;
- and
- in response to the confidence level of the tentative head and shoulder image area being greater than a preset second confidence level threshold, and the weight value corresponding to the tentative head and shoulder image area being greater than a preset second weight value threshold, determining the tentative head and shoulder image area as the head and shoulder image area.
Dependencies are inferred from the claim text.