CN108198203B - Motion alarm method, device and computer readable storage medium - Google Patents
Motion alarm method, device and computer readable storage medium Download PDFInfo
- Publication number
- CN108198203B CN108198203B CN201810100937.4A CN201810100937A CN108198203B CN 108198203 B CN108198203 B CN 108198203B CN 201810100937 A CN201810100937 A CN 201810100937A CN 108198203 B CN108198203 B CN 108198203B
- Authority
- CN
- China
- Prior art keywords
- ratio
- motion
- preset
- transverse
- contour
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/20—Analysis of motion
- G06T7/246—Analysis of motion using feature-based methods, e.g. the tracking of corners or segments
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B13/00—Burglar, theft or intruder alarms
- G08B13/18—Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength
- G08B13/189—Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems
- G08B13/194—Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems
- G08B13/196—Actuation by interference with heat, light, or radiation of shorter wavelength; Actuation by intruding sources of heat, light, or radiation of shorter wavelength using passive radiation detection systems using image scanning and comparing systems using television cameras
- G08B13/19602—Image analysis to detect motion of the intruder, e.g. by frame subtraction
- G08B13/19606—Discriminating between target movement or movement in an area of interest and other non-signicative movements, e.g. target movements induced by camera shake or movements of pets, falling leaves, rotating fan
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30232—Surveillance
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Geometry (AREA)
- Image Analysis (AREA)
Abstract
The invention discloses a motion alarm method, which comprises the steps of acquiring the outline of a moving object when the moving object exists in a detected image frame; acquiring the transverse sudden increase percentage of the contour; and when the transverse sudden increase percentage is larger than the preset percentage, performing alarm operation. The invention also discloses a motion alarm device and a computer readable storage medium. When the moving object exists in the detected image frame, the contour of the moving object is obtained, the transverse sudden increase percentage of the contour is obtained, and because the pet generally does not have a transverse sudden increase part, when the transverse sudden increase percentage is larger than the preset percentage, the detected moving object is probably a person, at the moment, the alarm operation can be carried out, and the false alarm caused when the detected moving object is the pet is avoided.
Description
Technical Field
The invention relates to the technical field of security and protection, in particular to a motion alarm method and device and a computer readable storage medium.
Background
At present, the field of security protection movement often needs to detect whether a living body invades, and when the living body invades, an alarm is given. Detecting the live body invasion among the prior art often realizes through the discernment of moving object, listens and mainly discerns the target of motion, just reports to the police when discerning when having the moving object, but a lot of people's homes may have the pet, and the pet also can lead to the condition of wrong report police to appear when moving at home.
Disclosure of Invention
The invention mainly aims to provide a motion alarm method, a motion alarm device and a computer readable storage medium, and aims to solve the technical problem of false alarm caused by pets in the prior art.
In order to achieve the above object, the present invention provides a motion warning method, including the steps of:
when a moving object exists in the detected image frame, acquiring the contour of the moving object;
acquiring a transverse sudden increase percentage of the outline, wherein the width of a transverse width sudden increase position of the outline is a first width, the width before the transverse width sudden increase position is a second width, and the transverse sudden increase percentage is a percentage between the first width and the second width;
and when the transverse sudden increase percentage is greater than a preset percentage, performing alarm operation.
Optionally, the motion warning method includes:
when the transverse sudden increase percentage is larger than a preset percentage, acquiring a transverse sudden increase position of the outline and a top position of the outline;
calculating a first pitch of the top position and lateral bump position, and calculating a first ratio of the first pitch to a maximum height of the profile;
and when the first ratio is smaller than or equal to a first preset ratio, performing alarm operation.
Optionally, the motion warning method further includes:
when the first ratio is larger than a first preset ratio, acquiring the widest position of the outline and the bottom position of the outline;
calculating a second spacing of the bottom position from a widest position and calculating a second ratio of the second spacing to a maximum height of the profile;
and when the second ratio is smaller than or equal to a second preset ratio, performing alarm operation.
Optionally, the motion warning method further includes:
when the transverse sudden increase percentage is larger than a preset percentage, acquiring the widest position of the contour;
calculating a third separation of the widest position of the profile from the top position or top position of the profile;
and when the third distance is smaller than a third ratio of the third distance to the maximum height of the outline and is smaller than or equal to a third preset ratio, performing alarm operation.
Optionally, after the step of obtaining the contour of the moving object, the motion alarm method further includes:
acquiring the length-width ratio of the contour;
when the aspect ratio is larger than a preset aspect ratio, the step of acquiring the transverse bump percentage of the contour is performed.
Optionally, the step of obtaining the aspect ratio of the contour includes:
acquiring a minimum circumscribed rectangle of the outline;
and calculating the aspect ratio of the minimum bounding rectangle, and taking the calculated aspect ratio as the aspect ratio of the outline.
Optionally, the motion warning method further includes:
collecting image frames at regular time according to a preset sampling interval;
when the image frames are acquired, the acquired image frames are compared with the preset number of image frames acquired before so as to determine whether a moving object exists in the acquired image frames.
Optionally, the step of obtaining the contour of the moving object includes:
calculating pixel differences of adjacent image frames in a preset number of image frames pairwise, wherein the preset number is greater than or equal to three;
and carrying out AND calculation on the pixel difference to obtain the contour of the moving object.
The invention also proposes a movement warning device comprising: a memory, a processor and a motion alert program stored on the memory and executable on the processor, the motion alert program when executed by the processor implementing the steps of the motion alert method as described above.
The invention also proposes a computer-readable storage medium on which a motion warning program is stored, which, when executed by a processor, implements the steps of the motion warning method as described above.
According to the motion alarm method, the motion alarm device and the computer readable storage medium provided by the embodiment of the invention, when the moving object exists in the detected image frame, the contour of the moving object is obtained, and the transverse sudden increase percentage of the contour is obtained.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a motion warning method according to the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of the motion warning method of the present invention;
FIG. 4 is a schematic flow chart of a motion warning method according to a third embodiment of the present invention;
FIG. 5 is a schematic flow chart of a fourth embodiment of a motion warning method according to the present invention;
fig. 6 is a flowchart illustrating a motion alarm method according to a fifth embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows:
when a moving object exists in the detected image frame, acquiring the contour of the moving object;
acquiring the transverse sudden increase percentage of the contour;
when the transverse sudden increase percentage is larger than a preset percentage, alarming operation is carried out
Because detection live body invasion among the prior art often realizes through the discernment of moving object, listens and mainly discerns the target of motion, just reports to the police when discerning moving object, but a lot of people's homes may have the pet, and the pet also can lead to the condition of wrong report police to appear when moving at home.
The invention provides a solution, when a moving object exists in a detected image frame, the contour of the moving object is obtained, the transverse sudden increase percentage of the contour is obtained, because a pet generally has no transverse sudden increase part, when the transverse sudden increase percentage is larger than a preset percentage, the detected moving object is probably a person, at the moment, an alarm operation can be carried out, and the false alarm caused when the detected moving object is a pet is avoided.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The device of the embodiment of the invention can be household electrical appliance (such as an air conditioner), and also can be a terminal or alarm equipment
As shown in fig. 1, the apparatus may include: the processor 1001 is, for example, a CPU, a communication bus 1002, a camera 1003, a memory 1004, and an alarm device 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1003 may optionally be a wireless interface (e.g., WI-FI interface), a bluetooth interface, a ZIGBEE wireless network interface, or the like. The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1004 may alternatively be a storage device separate from the processor 1001.
The alarm device in the invention can be an alarm such as a buzzer or an audible and visual alarm, and can also be a communication module for sending alarm signals to a preset communication terminal.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, memory 1004, which is a type of computer storage medium, may include an operating system and a motion alert program.
In the terminal shown in fig. 1, the processor 1001 may be configured to invoke a motion alert program stored in the memory 1004 and perform the following operations:
when a moving object exists in the detected image frame, acquiring the contour of the moving object;
acquiring a transverse sudden increase percentage of the outline, wherein the width of a transverse width sudden increase position of the outline is a first width, the width before the transverse width sudden increase position is a second width, and the transverse sudden increase percentage is a percentage between the first width and the second width;
and when the transverse sudden increase percentage is greater than a preset percentage, performing alarm operation.
Further, processor 1001 may invoke a motion alert program stored in memory 1004 to also perform the following operations:
when the transverse sudden increase percentage is larger than a preset percentage, acquiring a transverse sudden increase position of the outline and a top position of the outline;
calculating a first pitch of the top position and lateral bump position, and calculating a first ratio of the first pitch to a maximum height of the profile;
and when the first ratio is smaller than or equal to a first preset ratio, performing alarm operation.
Further, processor 1001 may invoke a motion alert program stored in memory 1004 to also perform the following operations:
when the first ratio is larger than a first preset ratio, acquiring the widest position of the outline and the bottom position of the outline;
calculating a second spacing of the bottom position from a widest position and calculating a second ratio of the second spacing to a maximum height of the profile;
and when the second ratio is smaller than or equal to a second preset ratio, performing alarm operation.
Further, processor 1001 may invoke a motion alert program stored in memory 1004 to perform the following operations:
when the transverse sudden increase percentage is larger than a preset percentage, acquiring the widest position of the contour;
calculating a third separation of the widest position of the profile from the top position or top position of the profile;
and when the third distance is smaller than a third ratio of the third distance to the maximum height of the outline and is smaller than or equal to a third preset ratio, performing alarm operation.
Further, processor 1001 may invoke a motion alert program stored in memory 1004 to also perform the following operations:
acquiring the length-width ratio of the contour;
when the aspect ratio is larger than a preset aspect ratio, the step of acquiring the transverse bump percentage of the contour is performed.
Further, processor 1001 may invoke a motion alert program stored in memory 1004 to also perform the following operations:
acquiring a minimum circumscribed rectangle of the outline;
and calculating the aspect ratio of the minimum bounding rectangle, and taking the calculated aspect ratio as the aspect ratio of the outline.
Further, processor 1001 may invoke a motion alert program stored in memory 1004 to also perform the following operations:
collecting image frames at regular time according to a preset sampling interval;
when the image frames are acquired, the acquired image frames are compared with the preset number of image frames acquired before so as to determine whether a moving object exists in the acquired image frames.
Further, processor 1001 may invoke a motion alert program stored in memory 1004 to also perform the following operations:
calculating pixel differences of adjacent image frames in a preset number of image frames pairwise, wherein the preset number is greater than or equal to three;
and carrying out AND calculation on the pixel difference to obtain the contour of the moving object.
Referring to fig. 2, a motion warning method according to a first embodiment of the present invention includes:
step S10, when a moving object exists in the detected image frame, the contour of the moving object is obtained;
the outline of the moving object can be obtained by identifying the detected moving object and identifying the outline of the moving object obtained by identification; the frame difference method can also be adopted to identify the moving object and obtain the contour of the moving object.
The moving image can obtain the position parameter determination of the same pixel point in each frame through the comparison of multi-frame images, and if the position parameter changes, the moving object exists in the image; or the state or the posture of the same object in the multi-frame images can be determined, and when the state or the posture of the object is different, the motion of the object is described; frame difference methods may also be used to identify moving objects.
Step S20, obtaining a lateral run-out percentage of the contour, wherein the width of a lateral width run-out position of the contour is a first width, the width before the lateral width run-out position is a second width, and the lateral run-out percentage is a percentage between the first width and the second width;
in this embodiment, the transverse width increasing positions of the contour may be detected according to a preset sequence, for example, the transverse width increasing positions are obtained from the top to the bottom of the contour, a first width of the position is obtained when the transverse width increasing positions are detected, and a second width before the transverse width increasing is obtained, a percentage between the first width and the second width is calculated, and the percentage is used as the transverse width increasing percentage.
Step S30, judging whether the transverse sudden increase percentage is larger than a preset percentage;
and step S40, when the transverse sudden increase percentage is larger than a preset percentage, performing alarm operation.
The preset percentage may be 50% or other percentages, and the specific preset percentage value may be set by the user as desired.
The alarm operation in the embodiment may include controlling an alarm to output an alarm signal, where the alarm may include a buzzer, an audible and visual alarm, and the like, or may be a display screen or other components for displaying information; the alarm operation can also be sending alarm information to a preset terminal, and the preset terminal can be a mobile phone. When the texture information of the image area where the moving object is located is matched with the texture information of the adjacent image area, no alarm operation is performed, namely, no processing is performed.
According to the motion alarm method provided by the embodiment, when the moving object exists in the detected image frame, the contour of the moving object is obtained, the transverse sudden increase percentage of the contour is obtained, and as the pet generally does not have a transverse sudden increase part, when the transverse sudden increase percentage is larger than the preset percentage, the detected moving object is probably a person, at the moment, the alarm operation can be carried out, and the false alarm caused when the detected moving object is the pet is avoided.
Further, referring to fig. 3, a second embodiment of the motion alarm method according to the present invention is provided based on the first embodiment, and in this embodiment, the motion alarm method according to the present invention further includes:
step S50, when the transverse sudden increase percentage is larger than a preset percentage, acquiring a transverse sudden increase position of the outline and a top position of the outline;
step S60, calculating a first spacing between the top position and the lateral bump position, and calculating a first ratio of the first spacing to a maximum height of the contour;
step S70, judging whether the first ratio is larger than a first preset ratio;
and when the first ratio is smaller than or equal to a first preset ratio, executing the step S40 to perform alarm operation.
When the user faces the camera, the sudden increase position is generally located at the shoulder position of the user, the distance between the shoulder position and the top position of the user generally has a certain proportion to the overall height of the user, and therefore when the first ratio is smaller than or equal to the first preset ratio, the moving object is a person.
It can be understood that, whether the user faces the camera may be determined by a face detection method, and when a face is detected, the lateral sudden increase position of the contour and the top position of the contour may be obtained, and the first distance between the top position and the lateral sudden increase position may be calculated.
The first preset ratio may be one third, or may be set by a user as desired. According to the technical scheme disclosed by the embodiment, whether the detected moving object is a user or not is further determined through the distance between the widest position and the top position of the outline, so that the false alarm is further avoided, and the accuracy of alarming is improved.
Further, referring to fig. 4, a third embodiment of the motion warning method according to the present invention is provided based on the second embodiment, in this embodiment, after the step of calculating the first ratio of the first distance to the maximum height of the contour, the step S70 further includes the following steps:
step S80, when the first ratio is larger than a first preset ratio, acquiring the widest position of the contour and the bottom position of the contour;
step S90, calculating a second distance between the bottom position and the widest position, and calculating a second ratio of the second distance to the maximum height of the profile;
step S100, judging whether the second ratio is larger than a second preset ratio or not;
and when the second ratio is smaller than or equal to a second preset ratio, executing the step S40 to perform alarm operation.
When the user moves towards the camera, the transverse sudden increase and the widest position are probably positioned on the leg part, the first ratio is larger than the first preset ratio, the second distance between the bottom position and the widest position can be directly calculated, and the second ratio between the second distance and the maximum height of the outline is calculated; or when the first ratio is larger than the first preset ratio, calculating a fourth distance between the transverse sudden increase position and the bottom position of the outline, and calculating a fourth ratio between the fourth distance and the maximum height of the outline, and if the fourth ratio is smaller than or equal to the second preset ratio, performing alarm operation.
It is understood that when the first ratio is greater than the first preset ratio, no processing may be performed; and when the second ratio is larger than a second preset ratio, no treatment can be carried out.
In the scheme disclosed by the embodiment, whether the detected moving object is a user is further determined by the maximum width position of the detected outline, so that the alarm accuracy is improved.
Further, referring to fig. 5, a fourth embodiment of the motion alarm method according to the present invention is provided based on the first embodiment, in this embodiment, the motion alarm method further includes:
step S110, when the transverse sudden increase percentage is larger than a preset percentage, acquiring the widest position of the contour;
step S120, calculating a third distance between the widest position of the contour and the top position or the top position of the contour;
step S130, judging whether the third distance is smaller than a third ratio of the maximum height of the contour to the maximum height of the contour or not;
and when the third distance is smaller than a third ratio of the maximum height of the contour to a third preset ratio, executing step S40 to perform an alarm operation.
It can be understood that the widest position of the contour can be obtained, a third distance between the widest position of the contour and the top position of the contour is calculated, and a third ratio of the third distance to the maximum height of the contour is calculated, and when the third ratio is smaller than or equal to a preset third ratio, an alarm operation can be performed; when the third ratio is larger than a preset third ratio, calculating a fourth distance between the widest position of the outline and the bottom position of the outline, and calculating a fourth ratio between the fourth distance and the maximum height of the outline; and when the fourth ratio is smaller than or equal to a fourth preset ratio, performing alarm operation.
According to the scheme disclosed by the embodiment, the moving object can be further identified through the maximum width position while the width mutation position is determined, so that the identification accuracy is improved, and the alarm accuracy is further improved.
Further, referring to fig. 6, a fifth embodiment of the motion warning method according to the present invention is provided based on any one of the first to third embodiments, and in this embodiment, after step S10, the method further includes:
step S140, obtaining the length-width ratio of the contour;
when the aspect ratio is greater than the preset aspect ratio, the step S20 of obtaining the transverse bump percentage of the contour is performed.
It is understood that the aspect ratio of the outline can be calculated by the maximum height and the maximum width of the outline, and the maximum height and the maximum width can be obtained by the circumscribed rectangle, that is, the step of obtaining the aspect ratio of the outline comprises: acquiring a minimum circumscribed rectangle of the outline; and calculating the aspect ratio of the minimum bounding rectangle, and taking the calculated aspect ratio as the aspect ratio of the outline.
The preset aspect ratio may be 1.5, since there is generally a certain aspect ratio for the human body contour, the aspect ratio of the contour may be obtained, and when the aspect ratio is greater than the preset aspect ratio, the lateral sudden increase of the user may be further calculated to further determine whether the moving object is a human.
The embodiment improves the accuracy of alarming through multiple comparison.
Further, a sixth embodiment of the motion alarm method according to the present invention is proposed based on any one of the above embodiments, and in this embodiment, step S10 further includes:
collecting image frames at regular time according to a preset sampling interval;
when the image frames are acquired, the acquired image frames are compared with the preset number of image frames acquired before so as to determine whether a moving object exists in the acquired image frames.
The preset number may be set according to a requirement, for example, may be three, and it is understood that in the scheme described in this embodiment, the preset number of cached data may be deleted at preset time intervals, or the preset capacity of the cache data may be deleted, so as to avoid that the running speed of the terminal is affected by caching more pictures.
When the moving object is determined, the coordinate values of the pixels with the same pixel value can be determined through comparison of the pixel values, the existence of the moving object is indicated when the coordinate values are different, the pixel difference of adjacent image frames in the image frames with the preset number can be directly calculated pairwise, the existence of the moving object is indicated when the pixel difference is not zero, and the obtained moving object is the contour information.
It is understood that step S10 includes:
when a moving object exists in the detected image frames, the pixel difference of adjacent image frames in a preset number of the image frames is calculated pairwise, wherein the preset number is greater than or equal to three;
and carrying out AND calculation on the pixel difference to obtain the contour of the moving object.
When a preset number of image frames are detected, gray level histogram processing can be performed on each image frame to enable the brightness to be uniform, then filtering and filtering noise of the image are performed, then pixel differences of adjacent image frames in the preset number of image frames are calculated pairwise (for example, difference calculation is performed on a first frame and a second frame, and difference calculation is performed on a second frame and a third frame), when the pixel differences are obtained, inconsistent places of each image frame can be obtained, and after the pixel differences and the pixel differences of the pixel differences and the pixel differences of the pixel differences and the pixel differences of the pixel differences and the pixel differences of the pixel and the pixel differences of the pixel and the pixel of the pixel and the pixel of the pixel and the pixel of the pixel and the pixel of the pixel.
The technical scheme disclosed by the embodiment defines the moving object and the determining mode of the moving object outline, the algorithm is very simple, and the alarm efficiency is improved.
In addition, the invention also provides a motion alarm device, and the electricity utilization motion alarm device comprises: the power utilization motion warning method comprises a memory, a processor and a motion warning program stored on the memory and capable of running on the processor, wherein the motion warning program realizes the steps of the power utilization motion warning method when being executed by the processor.
Furthermore, the present invention also proposes a computer-readable storage medium having stored thereon a motion alert program, which when executed by a processor implements the steps of the motion alert method as described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (9)
1. A motion alerting method, characterized in that the motion alerting method comprises the steps of:
when a moving object exists in the detected image frame, acquiring the contour of the moving object;
acquiring a transverse sudden increase percentage of the outline, wherein the width of a transverse width sudden increase position of the outline is a first width, the width before the transverse width sudden increase position is a second width, and the transverse sudden increase percentage is a percentage between the first width and the second width;
when the transverse sudden increase percentage is larger than a preset percentage, performing alarm operation;
the motion warning method further comprises the following steps:
when the transverse sudden increase percentage is larger than a preset percentage, acquiring a transverse sudden increase position of the outline and a top position of the outline;
calculating a first pitch of the top position and lateral bump position, and calculating a first ratio of the first pitch to a maximum height of the profile;
and when the first ratio is smaller than or equal to a first preset ratio, performing alarm operation.
2. The motion alerting method of claim 1, further comprising:
when the first ratio is larger than a first preset ratio, acquiring the widest position of the outline and the bottom position of the outline;
calculating a second spacing of the bottom position from a widest position and calculating a second ratio of the second spacing to a maximum height of the profile;
and when the second ratio is smaller than or equal to a second preset ratio, performing alarm operation.
3. The motion alerting method of claim 1, further comprising:
when the transverse sudden increase percentage is larger than a preset percentage, acquiring the widest position of the contour;
calculating a third pitch between a widest position of the profile and a top position of the profile, and a third ratio of the third pitch to a maximum height of the profile;
and when the third ratio is smaller than or equal to a third preset ratio, performing alarm operation.
4. The motion warning method according to claim 1 or 2, wherein after the step of acquiring the contour of the moving object, the motion warning method further comprises:
acquiring the length-width ratio of the contour;
when the aspect ratio is larger than a preset aspect ratio, the step of acquiring the transverse bump percentage of the contour is performed.
5. The motion alert method of claim 4 wherein the step of obtaining the aspect ratio of the contour comprises:
acquiring a minimum circumscribed rectangle of the outline;
and calculating the aspect ratio of the minimum bounding rectangle, and taking the calculated aspect ratio as the aspect ratio of the outline.
6. The motion alerting method of claim 1, further comprising:
collecting image frames at regular time according to a preset sampling interval;
when the image frames are acquired, the acquired image frames are compared with the preset number of image frames acquired before so as to determine whether a moving object exists in the acquired image frames.
7. The motion warning method of claim 1, wherein the step of obtaining the contour of the moving object comprises:
calculating pixel differences of adjacent image frames in a preset number of image frames pairwise, wherein the preset number is greater than or equal to three;
and carrying out AND calculation on the pixel difference to obtain the contour of the moving object.
8. A motion alert device, comprising: memory, a processor and a motion alert program stored on the memory and executable on the processor, the motion alert program when executed by the processor implementing the steps of the motion alert method as claimed in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a motion alert program, which when executed by a processor implements the steps of the motion alert method according to any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810100937.4A CN108198203B (en) | 2018-01-30 | 2018-01-30 | Motion alarm method, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810100937.4A CN108198203B (en) | 2018-01-30 | 2018-01-30 | Motion alarm method, device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108198203A CN108198203A (en) | 2018-06-22 |
CN108198203B true CN108198203B (en) | 2022-02-08 |
Family
ID=62592295
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810100937.4A Active CN108198203B (en) | 2018-01-30 | 2018-01-30 | Motion alarm method, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108198203B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116434098A (en) * | 2021-12-31 | 2023-07-14 | 浙江宇视科技有限公司 | A motion detection method, device, medium and equipment for a network hard disk video recorder |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8265349B2 (en) * | 2006-02-07 | 2012-09-11 | Qualcomm Incorporated | Intra-mode region-of-interest video object segmentation |
CN103400110A (en) * | 2013-07-10 | 2013-11-20 | 上海交通大学 | Abnormal face detection method in front of ATM (automatic teller machine) |
CN104573811A (en) * | 2015-01-08 | 2015-04-29 | 杭州天迈网络有限公司 | Pedestrian flow counting method based on infrared image and color image fusion |
CN105051754A (en) * | 2012-11-21 | 2015-11-11 | 派尔高公司 | Method and apparatus for detecting people by a surveillance system |
CN105336074A (en) * | 2015-10-28 | 2016-02-17 | 小米科技有限责任公司 | Alarm method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9740937B2 (en) * | 2012-01-17 | 2017-08-22 | Avigilon Fortress Corporation | System and method for monitoring a retail environment using video content analysis with depth sensing |
US20160180175A1 (en) * | 2014-12-18 | 2016-06-23 | Pointgrab Ltd. | Method and system for determining occupancy |
KR102372711B1 (en) * | 2015-10-13 | 2022-03-17 | 삼성전자주식회사 | Image photographing apparatus and control method thereof |
-
2018
- 2018-01-30 CN CN201810100937.4A patent/CN108198203B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8265349B2 (en) * | 2006-02-07 | 2012-09-11 | Qualcomm Incorporated | Intra-mode region-of-interest video object segmentation |
CN105051754A (en) * | 2012-11-21 | 2015-11-11 | 派尔高公司 | Method and apparatus for detecting people by a surveillance system |
CN103400110A (en) * | 2013-07-10 | 2013-11-20 | 上海交通大学 | Abnormal face detection method in front of ATM (automatic teller machine) |
CN104573811A (en) * | 2015-01-08 | 2015-04-29 | 杭州天迈网络有限公司 | Pedestrian flow counting method based on infrared image and color image fusion |
CN105336074A (en) * | 2015-10-28 | 2016-02-17 | 小米科技有限责任公司 | Alarm method and device |
Non-Patent Citations (1)
Title |
---|
智能视频监控系统中基于头肩部的行人检测;钦爽;《中国优秀硕士学位论文全文数据库信息科技辑》;20150215;第2015年卷(第2期);I138-856 * |
Also Published As
Publication number | Publication date |
---|---|
CN108198203A (en) | 2018-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101825045B1 (en) | Alarm method and device | |
JP6137425B2 (en) | Image processing system, image processing apparatus, image processing method, and image processing program | |
WO2015133195A1 (en) | Information processing device, information processing method, and program | |
JP5701005B2 (en) | Object detection apparatus, object detection method, surveillance camera system, and program | |
JP6669243B2 (en) | Monitoring device, monitoring method, and monitoring program | |
CN111191507A (en) | Safety early warning analysis method and system for smart community | |
JP2018151834A (en) | Lost child detection apparatus and lost child detection method | |
CN108198203B (en) | Motion alarm method, device and computer readable storage medium | |
CN108665663B (en) | Monitoring method, air conditioner and computer readable storage medium | |
JP2001160146A (en) | Image recognition method and image recognition device | |
JP6822326B2 (en) | Watching support system and its control method | |
CN107845103B (en) | Alarm method and device based on texture information and computer readable storage medium | |
JP2010140315A (en) | Object detection device | |
JP6311809B2 (en) | Image processing system, image processing apparatus, image processing method, and image processing program | |
CN113706573B (en) | Method and device for detecting moving object and storage medium | |
CN113361469A (en) | Method, device and equipment for identifying coverage state and storage medium | |
US10916016B2 (en) | Image processing apparatus and method and monitoring system | |
US11380187B2 (en) | Information processing apparatus, control method, and program | |
CN111063145A (en) | Intelligent processor for electronic fence | |
JP6124739B2 (en) | Image sensor | |
CN113128330A (en) | Human body falling monitoring system | |
CN111160067A (en) | Danger identification method and device, electronic equipment and computer readable storage medium | |
CN115014542B (en) | Temperature detection method, device, electronic device, and computer-readable storage medium | |
JP5782870B2 (en) | Detection apparatus and detection method | |
CN113095236A (en) | Dangerous behavior identification method based on intelligent glasses |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |