Alarm method and device
First Claim
Patent Images
1. A processor-implemented alarm method, comprising:
- acquiring a monitoring video from camera equipment in communication with a processor;
detecting whether the monitoring video contains a moving target;
if it is detected that the monitoring video contains the moving target, determining whether the moving target is a preset object; and
if the moving target is determined to be the preset object, forbidding sending corresponding alarm information to a terminal,wherein detecting whether the monitoring video contains the moving target comprises;
acquiring a pixel value of each pixel in a video image of the monitoring video;
determining, based on the pixel value of each pixel in the video image and a preset background model, whether the video image contains foreground pixels, the preset background model being configured to represent a distribution characteristic of a pixel value of each background pixel in the video image on a time domain; and
if it is determined that the video image contains the foreground pixels, determining that the monitoring video contains the moving target; and
wherein determining whether the moving target is a preset object comprises;
in the video image of the monitoring video, cropping an area where the moving target is located to obtain a target image;
processing a size of the target image into a preset size;
extracting a characteristic vector from the target image according to a preset classification model;
calculating probabilities of the target image belonging to multiple types included in the preset classification model, according to the characteristic vector and the preset classification model;
determining a type with a maximum probability as a type of the moving target; and
when the determined type is a preset type, determining that the moving target is the preset object.
1 Assignment
0 Petitions
Accused Products
Abstract
An alarm method is disclosed. The method may comprise acquiring a monitoring video, detecting whether the monitoring video contains a moving target, determining whether the moving target is a preset object if it is detected that the monitoring video contains the moving target, and forbidding sending corresponding alarm information to a terminal if the moving target is determined to be the preset object.
9 Citations
11 Claims
-
1. A processor-implemented alarm method, comprising:
-
acquiring a monitoring video from camera equipment in communication with a processor; detecting whether the monitoring video contains a moving target; if it is detected that the monitoring video contains the moving target, determining whether the moving target is a preset object; and if the moving target is determined to be the preset object, forbidding sending corresponding alarm information to a terminal, wherein detecting whether the monitoring video contains the moving target comprises; acquiring a pixel value of each pixel in a video image of the monitoring video; determining, based on the pixel value of each pixel in the video image and a preset background model, whether the video image contains foreground pixels, the preset background model being configured to represent a distribution characteristic of a pixel value of each background pixel in the video image on a time domain; and if it is determined that the video image contains the foreground pixels, determining that the monitoring video contains the moving target; and wherein determining whether the moving target is a preset object comprises; in the video image of the monitoring video, cropping an area where the moving target is located to obtain a target image; processing a size of the target image into a preset size; extracting a characteristic vector from the target image according to a preset classification model; calculating probabilities of the target image belonging to multiple types included in the preset classification model, according to the characteristic vector and the preset classification model; determining a type with a maximum probability as a type of the moving target; and when the determined type is a preset type, determining that the moving target is the preset object. - View Dependent Claims (2, 3, 10, 11)
-
-
4. An alarm device, comprising:
-
a processor in communication with camera equipment; and a memory configured to store instructions executable by the processor, wherein the processor is configured to; acquire a monitoring video from the camera equipment; detect whether the monitoring video contains a moving target; if it is detected that the monitoring video contains the moving target, determine whether the moving target is a preset object; and if the moving target is determined to be the preset object, forbid sending corresponding alarm information to a terminal, wherein, in detecting whether the monitoring video contains the moving target, the processor is further configured to; acquire a pixel value of each pixel in a video image of the monitoring video; determine, based on the pixel value of each pixel in the video image and a preset background model, whether the video image contains foreground pixels, the preset background model being configured to represent a distribution characteristic of a pixel value of each background pixel in the video image on a time domain; and if it is determined that the video image contains the foreground pixels, determine that the monitoring video contains the moving target; and wherein, in determining whether the moving target is a preset object, the processor is further configured to; in the video image of the monitoring video, crop an area where the moving target is located to obtain a target image; process a size of the target image into a preset size; extract a characteristic vector from the target image according to a preset classification model; calculate probabilities of the target image belonging to multiple types included in the preset classification model, according to the characteristic vector and the preset classification model; determine a type with a maximum probability as a type of the moving target; and when the determined type is a preset type, determine that the moving target is the preset object. - View Dependent Claims (5, 6)
-
-
7. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor of a device, cause the device to perform an alarm method, the method comprising:
-
acquiring a monitoring video from camera equipment in communication with the processor; detecting whether the monitoring video contains a moving target; if it is detected that the monitoring video contains the moving target, determining whether the moving target is a preset object; and if it is determined that the moving target is the preset object, forbidding sending corresponding alarm information to a terminal, wherein detecting whether the monitoring video contains the moving target comprises; acquiring a pixel value of each pixel in a video image of the monitoring video; determining, based on the pixel value of each pixel in the video image and a preset background model, whether the video image contains foreground pixels, the preset background model being configured to represent a distribution characteristic of a pixel value of each background pixel in the video image on a time domain; and if it is determined that the video image contains the foreground pixels, determining that the monitoring video contains the moving target; and wherein determining whether the moving target is a preset object comprises; in a video image of the monitoring video, cropping an area where the moving target is located to obtain a target image; processing a size of the target image into a preset size; extracting a characteristic vector from the target image according to a preset classification model; calculating probabilities of the target image belonging to multiple types included in the preset classification model, according to the characteristic vector and the preset classification model; determining a type with a maximum probability as a type of the moving target; and when the determined type is a preset type, determining that the moving target is the preset object. - View Dependent Claims (8, 9)
-
Specification