CN113240871A - Alarm method, alarm device, storage medium and electronic device - Google Patents
Alarm method, alarm device, storage medium and electronic device Download PDFInfo
- Publication number
- CN113240871A CN113240871A CN202110558767.6A CN202110558767A CN113240871A CN 113240871 A CN113240871 A CN 113240871A CN 202110558767 A CN202110558767 A CN 202110558767A CN 113240871 A CN113240871 A CN 113240871A
- Authority
- CN
- China
- Prior art keywords
- target object
- image
- determining
- alarm
- information
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000033001 locomotion Effects 0.000 claims abstract description 76
- 238000004590 computer program Methods 0.000 claims description 16
- 230000008859 change Effects 0.000 claims description 10
- 238000010191 image analysis Methods 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000004364 calculation method Methods 0.000 description 11
- 238000012544 monitoring process Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000004422 calculation algorithm Methods 0.000 description 8
- 238000004458 analytical method Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 230000001965 increasing effect Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 241001465754 Metazoa Species 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000000638 stimulation Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B7/00—Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00
- G08B7/06—Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00 using electric transmission, e.g. involving audible and visible signalling through the use of sound and light sources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Alarm Systems (AREA)
Abstract
The embodiment of the invention provides an alarm method, an alarm device, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring image information of a target area; analyzing the image information to acquire type information and position information of the target object; determining motion data of the target object according to the position information of the target object; determining an alarm mode corresponding to the type information in a case where it is determined that an alarm operation needs to be performed based on the motion data; and performing alarm operation according to the alarm mode. According to the invention, the problem that the alarm mode cannot be flexibly adjusted according to the type of the target object in the related technology is solved, and the effects of flexibly adjusting the alarm mode according to the type of the target object and improving the alarm flexibility are further achieved.
Description
Technical Field
The embodiment of the invention relates to the field of communication, in particular to an alarm method, an alarm device, a storage medium and an electronic device.
Background
Along with the increasing living standard, people pay more attention to the safety problem, meanwhile, as the demand of safety monitoring is more and more, the safety monitoring requirements for scenes such as dangerous areas, forbidden areas, key protection areas, garden peripheries and the like are more and more important, generally, the safety monitoring for the scenes is generally realized by arranging a sound and light warning camera for safety monitoring.
At present, when a warning camera executes an acousto-optic warning function, a flashing white light lamp and a loudspeaker of warning equipment are linked to play a corresponding warning prompt tone under the condition of a trigger event, the acousto-optic warning mode is single, the warning volume and the lamp light strong light are fixed, and automatic adjustment cannot be flexibly carried out according to the type of a monitored target and a target track.
For example, if the target object in the monitoring screen is an old person or a child, the old person or the child may be frightened by too much alarm sound, the old person or the child may not frighten by too little alarm sound, and the eyes of the old person or the child may be too much stimulated by too much light intensity.
At present, no better solution is provided for the above problems.
Disclosure of Invention
The embodiment of the invention provides an alarm method, an alarm device, a storage medium and an electronic device, which at least solve the problem that the alarm mode cannot be flexibly adjusted according to the type of a target object in the related art.
According to an embodiment of the present invention, there is provided an alarm method including:
acquiring image information of a target area, wherein the image information contains information of a target object located in the target area;
analyzing the image information to acquire the type information and the position information of the target object;
determining motion data of the target object according to the position information of the target object;
determining an alarm mode corresponding to the type information in a case where it is determined that an alarm operation needs to be performed based on the motion data;
and performing alarm operation according to the alarm mode.
In an exemplary embodiment, the image information includes a predetermined number of consecutive frame images, wherein the determining motion data of the target object according to the position information of the target object includes:
determining center coordinate information of the target object contained in each frame image in the case of determining that the information of the target object is contained in each of the predetermined number of consecutive frame images;
and determining the motion data of the target object according to the determined central coordinate information in each frame of image.
In an exemplary embodiment, the determining the motion data of the target object according to the center coordinate information determined from each frame of image includes:
determining a designated number of image areas included in each frame of image;
determining a target image area of the target object in each frame of image according to the determined center coordinate information in each frame of image;
and determining the motion data of the target object according to a target image area of the target object in each frame of image and the change condition of the central coordinate information of the target object in each frame of image.
In an exemplary embodiment, the determining the alert mode corresponding to the type information in case it is determined that an alert operation needs to be performed based on the motion data includes:
determining that the alert operation needs to be performed and determining an alert mode corresponding to the type information, in a case where it is determined based on the motion data that the following condition is met:
and determining that the time for entering the preset warning area is less than a preset threshold value based on the movement direction and the movement speed included in the movement data.
In an exemplary embodiment, the determining the alert mode corresponding to the type information includes:
determining a distance risk coefficient and a time risk coefficient of the target object according to the motion data and preset warning region information;
determining an alarm coefficient according to the time risk coefficient and the distance risk coefficient;
and determining the alarm mode according to the alarm coefficient and the type information.
According to another embodiment of the present invention, there is provided an alarm device including:
the image information acquisition module is used for acquiring image information of a target area, wherein the image information comprises information of a target object located in the target area;
the image analysis module is used for analyzing the image information to acquire the type information and the position information of the target object;
a motion data determination module, configured to determine motion data of the target object according to the position information of the target object;
an alarm mode determination module for determining an alarm mode corresponding to the type information in case of determining that an alarm operation needs to be performed based on the motion data;
and the alarm module is used for carrying out alarm operation according to the alarm mode.
In one exemplary embodiment, the motion data determination module includes:
a central coordinate determination unit configured to determine central coordinate information of the target object contained in each frame image in a case where the image information includes a predetermined number of consecutive frame images;
and the data determining unit is used for determining the motion data of the target object according to the central coordinate information determined from each frame of image.
In one exemplary embodiment, the data determining unit includes:
an image area determination subunit operable to determine a specified number of image areas included in each frame of image;
the target area determining subunit is configured to determine, according to the center coordinate information determined in each frame of image, a target image area where the target object is located in each frame of image;
and the data determining subunit is used for determining the motion data of the target object according to a target image area where the target object is located in each frame of image and the change situation of the central coordinate information of the target object in each frame of image.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the guarantee module can be adjusted according to the type information and the motion data of the target object by determining the type information and the motion data of the target object, so that the problem that the alarm mode cannot be flexibly adjusted according to the type of the target object in the related art can be solved, the effect of flexibly adjusting the alarm mode according to the type of the target object and improving the alarm flexibility can be achieved.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal of an alarm method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alarm method according to an embodiment of the present invention;
FIG. 3 is a block diagram of an alarm device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an alarm device according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart diagram according to an embodiment of the present invention;
FIG. 6 is a diagram of an actual scenario in accordance with an embodiment of the present invention;
FIG. 7 is a schematic diagram of criterion calculation according to an embodiment of the invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the operation on the mobile terminal as an example, fig. 1 is a hardware structure block diagram of the mobile terminal of an alarm method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to an alarm method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, an alarm method is provided, and fig. 2 is a flowchart according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, acquiring image information of a target area, wherein the image information comprises information of a target object located in the target area;
in this embodiment, the target area may be a traffic lane, a park, an interior of a building (e.g., an interior of a stadium), an exterior of a building (e.g., around a pool), or the like, where monitoring is needed; the acquisition of the image information may be (but is not limited to) acquired by acquiring a target area through an image acquisition device, such as a video camera, an infrared camera, a visible light camera, and the like, where the image acquisition device may continuously monitor the target area to acquire the image information of the target area, may periodically monitor the target area to acquire the image information, and may randomly monitor the target area to acquire the image information of the target area; the target object may be (but is not limited to) an object located in the target area, such as a pedestrian, a vehicle, an animal, a building, etc., the information of the target object includes type information, position information, feature information, etc., of the target object, wherein the type information includes the type of the target object, such as a vehicle, a pedestrian, a building, a street lamp, an animal, etc., the position information includes coordinates, longitude and latitude, etc., of the target object, and the feature information includes color, height, width, facial features, etc., of the target object.
Step S204, analyzing the image information to acquire the type information and the position information of the target object;
in this embodiment, the type information and the position information of the target object are obtained to determine whether the target object is included in the continuous frame images to track the target object and adjust different alarm modes according to the target object, and determine the motion condition of the target object.
The analysis processing may (but is not limited to) perform format decoding, image feature analysis, and the like on the image information, and the analysis processing may be implemented according to a preset analysis algorithm, a preset analysis model, or other manners; the analysis processing may be (but is not limited to) implemented by a built-in module or device, such as a CPU, an FPGA, a GPU, a single chip, a PLC, or the like, or implemented by an external device or device, such as an industrial computer.
Step S206, determining the motion data of the target object according to the position information of the target object;
in this embodiment, the motion data of the target object is determined to determine the distance between the target object and the dangerous area, so that the target object can be prompted by an alarm in time.
The motion data includes (but is not limited to) data such as the motion direction, the motion speed, the estimated motion track of the target object, and the estimated time when the target object reaches the dangerous area; the determination of the motion data may be (but is not limited to) determined according to the change of the position information of the target object in the continuous frame images, or may be determined by other methods; the determination of the motion data may be (but is not limited to) implemented by a built-in module or device, such as a CPU, an FPGA, a GPU, a single chip, a PLC, or the like, or implemented by an external device or device, such as an industrial computer, or the like.
Step S208, determining an alarm mode corresponding to the type information under the condition that the alarm operation needs to be executed based on the motion data;
in this embodiment, the determination of the alarm mode according to the type information enables the alarm mode to perform appropriate alarm reminding on the target object, reduces extra loss caused by excessive stimulation on the target object, and enables the alarm process to be adaptive to different types of target objects.
The alarm modes include (but are not limited to) sound alarm with different frequencies and amplitudes, light alarm with different brightness and combination thereof.
For example, when the target object is a pedestrian, the influence of the light on the pedestrian is less than that of the sound alert due to the slow moving speed of the pedestrian, so that the sound adjusting module is controlled to play an alert role; when the target object is a motor vehicle, the danger of the warning coefficient is highest due to the characteristic of the motor vehicle that the speed is high, so that the deterrence effect can be realized by adopting a mode of synchronously increasing the light and sound alarm effects; when the target object is a non-motor vehicle, the alarm prompt tone is mainly used, and the light is used for assisting the prompt, because if the light is too strong and is directly emitted to the non-motor vehicle driver, the sight line is shielded, so that accidents are possibly caused, and the intensity of sound alarm can be increased to remind the non-motor vehicle driver; when the target objects are of various types, the priority can be set, audible and visual alarm prompt is carried out in sequence from high to low according to the priority of the danger coefficients possibly existing in the alarm objects, and if the priority can be set to be reduced by motor vehicles, non-motor vehicles and pedestrians in sequence.
And step S2010, performing alarm operation according to the alarm mode.
In this embodiment, after the alarm mode is determined, an audible and visual alarm is performed according to the audible and visual control level corresponding to the alarm mode, so as to prompt the target object for an alarm.
It should be noted that, in addition to performing sound-light alarm, the alarm operation may also be notifying workers near the target area through a connected communication network, so that the workers can perform alarm prompt on the target object or patrol the target area in time, so as to rescue or expel the target object entering the dangerous area in time, and further improve the effectiveness of the alarm prompt.
Through the steps, the alarm mode is determined according to the type information of the target object, so that the alarm mode can adapt to different target objects, and the effectiveness of alarm prompt is enhanced; the problem that the alarm mode cannot be flexibly adjusted according to the type of the target object in the related technology is solved, and the effects of flexibly adjusting the alarm mode according to the type of the target object and improving the alarm flexibility are achieved.
The main body of the above steps may be a base station, a terminal, etc., but is not limited thereto.
In an alternative embodiment, the image information comprises a predetermined number of consecutive frame images, wherein determining the motion data of the target object based on the position information of the target object comprises:
step S2062 of determining center coordinate information of the target object contained in each frame image in a case where it is determined that information of the target object is contained in a predetermined number of consecutive frame images;
step S2064, determining the motion data of the target object based on the center coordinate information determined from each frame of image.
In the embodiment, the calculation amount can be reduced by determining the motion data of the target object through the central coordinate information of the target object, so that the calculation efficiency is improved, and meanwhile, the interference of other data can be reduced by determining the transportation data according to the central coordinate information, namely, the target object is convenient to track, and the accuracy of the data is also improved.
The center coordinate information may be determined by determining edge coordinate information of the target object through the identification frame and calculating according to edge coordinates of the coordinate frame and the edge coordinate information of the target object, wherein the calculation mode may be calculation according to a preset coordinate algorithm, may also be calculation according to a preset calculation model, and may also be calculation through other modes; the determination of the motion data may be determined according to the change of the center coordinate information, may be determined according to the difference between the center coordinate and the preset comparison data, or may be determined in other manners.
In an alternative embodiment, determining the motion data of the target object based on the determined center coordinate information from each frame of image comprises:
step S20642 of determining a specified number of image regions included in each frame image;
step S20644, determining the target image area of the target object in each frame of image according to the determined center coordinate information in each frame of image;
step S20646, determining the motion data of the target object according to the target image area where the target object is located in each frame of image and the change situation of the center coordinate information of the target object in each frame of image.
In the embodiment, by setting the image area, a user can conveniently and visually determine the change of the target image area of the target object in each frame of image, and meanwhile, the change of the central coordinate information of the target object is conveniently tracked and calculated, so that the operation efficiency is improved.
The image area may be at least three areas which divide the screen into an upper area, a middle area and a lower area, or at least three areas which divide the screen into a left area, a middle area and a right area, or at least three areas from an upper left corner to a lower right corner; the position distribution of the graphic regions may be distributed according to a preset rule or may be randomly distributed.
In an alternative embodiment, in the case where it is determined that the alert operation needs to be performed based on the motion data, determining the alert mode corresponding to the type information includes:
step S2082, under the condition that the following conditions are determined to be met based on the motion data, determining that the alarm operation needs to be executed, and determining the alarm mode corresponding to the type information:
and determining that the time for the distance to enter the preset warning area is less than the preset threshold value based on the moving direction and the moving speed included in the moving data.
In this embodiment, the preset warning area may be an area with high risk, such as a pool or a restricted area, or an area prohibited by laws and regulations.
In an alternative embodiment, determining the alert mode corresponding to the type information includes:
step S20822, determining a distance risk coefficient and a time risk coefficient of the target object according to the motion data and preset warning region information;
step S20824, determining an alarm coefficient according to the time risk coefficient and the distance risk coefficient;
and S20826, determining an alarm mode according to the alarm coefficient and the type information.
In this embodiment, the distance risk coefficient and the time risk coefficient are calculated separately in order to determine the distance between the target object and the surveillance zone and the time to reach the surveillance zone, thereby determining the risk level of the state and the position of the target object.
The distance risk coefficient, the time risk coefficient and the alarm coefficient can be (but are not limited to) realized by an internal module or device, such as a CPU, an FPGA, a GPU, a singlechip, a PLC and the like, or realized by an external device or device, such as an industrial computer and the like; and the distance risk coefficient, the time risk coefficient and the alarm coefficient can be (but are not limited to) calculated by a preset algorithm formula, and can also be calculated by a preset model.
For example, the risk factor evaluation criterion is expressed by the following formula:
Y=Sb+(1+α+β)*Lbformula (1)
In the formula, SbThe standard value of the sound alarm is given by actual scene test. L isbThe standard value of the intensity of the light alarm is also given by the actual scene test. Alpha is a distance danger coefficient and is determined by the distance from a warning line, and the closer the distance is, the larger alpha is; the calculation formula for α is as follows:
α=k1*(D-d1) /D type (2)
Wherein D is the distance of the warning zone and D1Is the distance, k, of the detected object from the warning line1The constant coefficient can be adjusted according to the light intensity required by the scene; beta is a time risk coefficient, which is determined by the time t when the detected object moves to the warning line, and the shorter the time is, the larger the risk coefficient is, the larger beta is; the formula for β is as follows:
β=k2t type (3)
In the formula (1), the constraint of beta is beta LbWith a set maximum upper limit, when the upper limit is reached, beta is not changed, k2Is a constant coefficient, t is calculated as follows:
v when the detected object is in motionxNot equal to 0, then t ═ d1/vx(ii) a When the moving speed v of the detected objectxWhen 0, β is 0; v. ofxCorresponding to the velocity component of the detected object relative to the direction perpendicular to the warning line; at the same time, by determining vxThe moving speed V and the direction of the detected object can be calculated.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions 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) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an alarm device is further provided, and the alarm device is used to implement the above embodiments and preferred embodiments, which have already been described and will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of an alarm device according to an embodiment of the present invention, and as shown in fig. 3, the device includes:
the image information acquisition module 32 is configured to acquire image information of a target area, where the image information includes information of a target object located in the target area;
the image analysis module 34 is configured to perform analysis processing on the image information to obtain type information and position information of the target object;
a motion data determining module 36, configured to determine motion data of the target object according to the position information of the target object;
an alarm mode determination module 38 configured to determine an alarm mode corresponding to the type information in a case where it is determined that an alarm operation needs to be performed based on the motion data;
and an alarm module 310, configured to perform an alarm operation according to the alarm mode.
In an alternative embodiment, the motion data determination module 36 includes:
a center coordinate determination unit 362 for determining center coordinate information of the target object contained in each frame image in a case where it is determined that information of the target object is contained in each of a predetermined number of consecutive frame images;
a data determining unit 364, configured to determine motion data of the target object according to the center coordinate information determined from each frame of image.
In an alternative embodiment, the data determination unit 364 includes:
an image region determining subunit 3642 configured to determine a specified number of image regions included in each frame of image;
a target area determining subunit 3644, configured to determine, according to the center coordinate information determined in each frame of image, a target image area where the target object is located in each frame of image;
a data determining subunit 3646, configured to determine motion data of the target object according to a target image area where the target object is located in each frame of image and a change of the center coordinate information of the target object in each frame of image.
In an alternative embodiment, the alert mode determination module 38 includes:
the mode determination unit 382 determines that an alarm operation needs to be performed and determines an alarm mode corresponding to the type information, in a case where it is determined based on the motion data that the following conditions are met:
and determining that the time for the distance to enter the preset warning area is less than the preset threshold value based on the moving direction and the moving speed included in the moving data.
In an alternative embodiment, the mode determination unit 382 includes:
a risk coefficient determination subunit 3822, which determines a distance risk coefficient and a time risk coefficient of the target object according to the motion data and preset warning region information;
an alarm coefficient determination subunit 3824 that determines an alarm coefficient based on the time risk coefficient and the distance risk coefficient;
a mode determination subunit 3826, which determines an alarm mode according to the alarm coefficient and the type information.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
The present invention will be described with reference to specific examples.
As shown in fig. 4, the method specifically includes the following steps:
smart surveillance camera (corresponding to image information acquisition module 32 in fig. 3): the system is used for monitoring an actual monitoring scene;
intelligent algorithm module (corresponding to image parsing module 34 in fig. 3): the intelligent warning camera is used for recognizing scene pictures acquired by the intelligent warning camera so as to determine the types of target objects in a monitored area, such as pedestrians, motor vehicles, non-motor vehicles, animals and the like;
central processing module (corresponding to alert mode determination module 38 in fig. 3): the intelligent alarm system is used for respectively controlling the alarm sound control module and the light control module to adjust alarm sound and alarm light according to the type of the target object identified by the intelligent algorithm module, so that the audio equipment and the light equipment output sound-light alarm prompts.
As shown in fig. 5, the specific control flow includes the following steps:
step 1: system initialization, initialization process of system parameters of modules such as images and intelligence;
step 2: dividing a picture image monitored by the camera into m frames, wherein m > is 3 (corresponding to step S501 in fig. 5);
and step 3: starting an intelligent detection function of a camera, continuously detecting an alarm target in a monitoring scene, and reporting object attributes of a monitored object, wherein the monitored object can be a person, a motor vehicle or a non-motor vehicle (corresponding to step S502 in FIG. 5);
and 4, step 4: acquiring coordinate information of the object detected by the intelligent algorithm (corresponding to step S503 in fig. 5);
and 5: detecting whether the frame of N continuous frames has coordinate information of an object, wherein N can be any value, and usually N takes a value of 3 (corresponding to step S504 in FIG. 5);
step 6: calculating a central coordinate by using the coordinate information fed back by the intelligent algorithm of the N frames, and drawing a motion track on the picture according to a time axis for the central coordinates of a plurality of continuous N frames (corresponding to step S505 in FIG. 5);
and 7: through the above process, three criteria are integrated (corresponding to step S506 in fig. 5):
criterion 1: according to the object attributes detected by the intelligent algorithm, people, vehicles, non-motor vehicles and mixed types can be classified;
criterion 2: according to the obtained object center coordinates, the position of the object occupying the picture can be judged, and the position can be divided into an upper part, a middle part and a lower part of the picture;
criterion 3: upon detection ofThe movement track of the center coordinate of the object is calculated and analyzed, and the moving speed V of the object can be calculated by calibrating the picturexAnd can judge the direction of the object movement, including horizontal movement, vertical movement, oblique movement, wherein, according to the movement track, can also judge whether in vertical movement and oblique movement, from picture top to bottom or from bottom to top;
and 8: aiming at the respective characteristics of three main alarm objects of people, motor vehicles and non-motor vehicles, 3 sets of corresponding light control modules and sound control modules are designed, and suitable sound alarm and light alarm prompt can be output according to the difference of the alarm objects (corresponding to step S507 in figure 5).
Wherein, fig. 6 is an application scene diagram of the present invention, as shown in fig. 6, it is assumed that a target (corresponding to a pedestrian in fig. 6) is driven from the farthest end to get close to a video camera, at this time, a sound and light warning camera is installed at a high position, and simultaneously a corresponding warning region (corresponding to the lower right corner region in fig. 6) is drawn in a monitoring scene, and an intelligent event warning is started to link an audio warning and light warning module, when a target invades a region, corresponding warning prompt tone information is sent and corresponding light is started for respective sound and light control modules of different targets, so as to play a warning role, wherein, the warning modes corresponding to different types of targets are as follows:
1. pedestrian mode:
the pedestrian moving speed is low, the influence of lamplight on the pedestrian is smaller than that of sound warning, the sound adjusting module is controlled to play a warning role, the distance and time estimation of the warning line are adopted as the judgment standard of the danger coefficient, the closer to the warning line, the larger the danger coefficient is, the time for the pedestrian to walk to the warning line is estimated according to the moving direction and the moving speed, and the shorter the time for the pedestrian to walk to the warning line is, the larger the danger coefficient is. And comprehensively judging the danger coefficient by combining the distance information and the time information, and outputting the acousto-optic warning value Y.
As shown in FIG. 7, according to the recipe risk factor evaluation criteria, the following formula is used:
Y=Sb+(1+α+β)*Lbformula (4)
In the formula, SbThe standard value of the sound alarm is given by actual scene test. L isbThe standard value of the intensity of the light alarm is also given by the actual scene test. α is a distance risk coefficient, and is determined by the distance from the warning line, and the specific calculation formula of α is as follows, the closer the distance is, the larger α is:
α=k1*(D-d1) /D type (5)
Wherein D is the distance of the warning zone and D1Is the distance, k, of the detected object from the warning line1The constant coefficient is used for adjusting the coefficient according to the light intensity required by the scene. β is a time risk coefficient, and is determined by the time t when the detected object moves to the alarm line, and β is larger as the time is shorter and the risk coefficient is larger. The specific calculation formula of β is as follows:
β=k2t type (6)
Wherein the constraint of beta is beta-LbWith a set maximum upper limit, beta no longer changes when the upper limit is reached, k2Is a constant coefficient, t is calculated as follows: v when the detected object is in motionxNot equal to 0, then t ═ d1/vx(ii) a When the moving speed v of the detected objectxWhen 0, β is 0; meanwhile, the moving speed V and the moving direction of the detected object are calculated according to the criterion 3 obtained by tracking the moving track of the detected object in the step 7, wherein V isxCorresponding to the velocity component of the detected object relative to the perpendicular to the warning line.
2. Vehicle mode:
when the target object is a motor vehicle, the motor vehicle is characterized by high speed and highest danger of the warning coefficient, so that the light and sound alarm effects can be synchronously increased to play a role of frightening, and the distance danger coefficient and the time danger coefficient can be synchronously superposed to control the intensity of the sound by referring to a strategy of adjusting the light alarm intensity aiming at a pedestrian mode, so that the sound and the light alarm are synchronously enhanced.
3. Non-motor vehicle mode:
when the target object is a non-motor vehicle, the target object mainly takes an alarm prompt tone as a main object and light auxiliary prompt is carried out, wherein if the light is shot to the non-motor vehicle driver too strongly, sight line shielding is caused, and accidents can happen to the non-motor vehicle driver in the driving process, so that the intensity of sound alarm can be increased to remind the non-motor vehicle driver to avoid crossing a warning line. The method for enhancing the sound alarm volume intensity can obtain a light alarm strategy similar to a pedestrian mode.
4. Mixed mode:
when various types of target objects are detected in the picture, the priority can be set, the priority is set to be a motor vehicle, a non-motor vehicle and a person in sequence from high to low according to the possible danger coefficients of the alarm objects, and sound-light alarm prompt is carried out according to the method.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. An alarm method, comprising:
acquiring image information of a target area, wherein the image information contains information of a target object located in the target area;
analyzing the image information to acquire the type information and the position information of the target object;
determining motion data of the target object according to the position information of the target object;
determining an alarm mode corresponding to the type information in a case where it is determined that an alarm operation needs to be performed based on the motion data;
and performing alarm operation according to the alarm mode.
2. The method of claim 1, wherein the image information comprises a predetermined number of consecutive frame images, and wherein the determining motion data of the target object based on the position information of the target object comprises:
determining center coordinate information of the target object contained in each frame image in the case of determining that the information of the target object is contained in each of the predetermined number of consecutive frame images;
and determining the motion data of the target object according to the determined central coordinate information in each frame of image.
3. The method of claim 2, wherein determining motion data of the target object based on the determined center coordinate information from each frame of image comprises:
determining a designated number of image areas included in each frame of image;
determining a target image area of the target object in each frame of image according to the determined center coordinate information in each frame of image;
and determining the motion data of the target object according to a target image area of the target object in each frame of image and the change condition of the central coordinate information of the target object in each frame of image.
4. The method of claim 1, wherein in the event that it is determined that an alert operation needs to be performed based on the motion data, determining an alert mode corresponding to the type information comprises:
determining that the alert operation needs to be performed and determining an alert mode corresponding to the type information, in a case where it is determined based on the motion data that the following condition is met:
and determining that the time for entering the preset warning area is less than a preset threshold value based on the movement direction and the movement speed included in the movement data.
5. The method of claim 1, wherein the determining an alert mode corresponding to the type information comprises:
determining a distance risk coefficient and a time risk coefficient of the target object according to the motion data and preset warning region information;
determining an alarm coefficient according to the time risk coefficient and the distance risk coefficient;
and determining the alarm mode according to the alarm coefficient and the type information.
6. An alarm device, comprising:
the image information acquisition module is used for acquiring image information of a target area, wherein the image information comprises information of a target object located in the target area;
the image analysis module is used for analyzing the image information to acquire the type information and the position information of the target object;
a motion data determination module, configured to determine motion data of the target object according to the position information of the target object;
an alarm mode determination module for determining an alarm mode corresponding to the type information in case of determining that an alarm operation needs to be performed based on the motion data;
and the alarm module is used for carrying out alarm operation according to the alarm mode.
7. The apparatus of claim 6, wherein the motion data determination module comprises:
a central coordinate determination unit configured to determine central coordinate information of the target object contained in each frame image in a case where the image information includes a predetermined number of consecutive frame images;
and the data determining unit is used for determining the motion data of the target object according to the central coordinate information determined from each frame of image.
8. The apparatus of claim 7, wherein the data determination unit comprises:
an image area determination subunit operable to determine a specified number of image areas included in each frame of image;
the target area determining subunit is configured to determine, according to the center coordinate information determined in each frame of image, a target image area where the target object is located in each frame of image;
and the data determining subunit is used for determining the motion data of the target object according to a target image area where the target object is located in each frame of image and the change situation of the central coordinate information of the target object in each frame of image.
9. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110558767.6A CN113240871A (en) | 2021-05-21 | 2021-05-21 | Alarm method, alarm device, storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110558767.6A CN113240871A (en) | 2021-05-21 | 2021-05-21 | Alarm method, alarm device, storage medium and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113240871A true CN113240871A (en) | 2021-08-10 |
Family
ID=77138196
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110558767.6A Pending CN113240871A (en) | 2021-05-21 | 2021-05-21 | Alarm method, alarm device, storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113240871A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114501045A (en) * | 2021-12-29 | 2022-05-13 | 浙江大华技术股份有限公司 | Live broadcast method, live broadcast device, electronic device and storage medium |
CN114973573A (en) * | 2022-06-14 | 2022-08-30 | 浙江大华技术股份有限公司 | Target intrusion determination method and device, storage medium and electronic device |
CN116229672A (en) * | 2022-12-16 | 2023-06-06 | 深圳信可通讯技术有限公司 | Dangerous area emergency early warning and rescue system and method based on big data |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11222882A (en) * | 1998-02-05 | 1999-08-17 | Komatsu Ltd | Dangerous zone monitoring device |
CN104200466A (en) * | 2014-08-20 | 2014-12-10 | 深圳市中控生物识别技术有限公司 | Early warning method and camera |
CN105930787A (en) * | 2016-04-16 | 2016-09-07 | 南京林业大学 | Vehicle door opening early-warning method |
KR20180013427A (en) * | 2016-07-29 | 2018-02-07 | 주식회사 에어테크미디어 | Broadcasting system and method based on automatic control function of volume level and directional function |
CN107680348A (en) * | 2017-07-31 | 2018-02-09 | 深圳市心上信息技术有限公司 | Fence intelligent alarm method, device, storage medium and computer equipment |
CN110070695A (en) * | 2019-04-24 | 2019-07-30 | 河南书网教育科技股份有限公司 | A kind of method for early warning, device, server and communication system |
CN110450711A (en) * | 2019-08-22 | 2019-11-15 | 昆山聚创新能源科技有限公司 | Vehicle and its control method, control device |
CN112288975A (en) * | 2020-11-13 | 2021-01-29 | 珠海大横琴科技发展有限公司 | Event early warning method and device |
-
2021
- 2021-05-21 CN CN202110558767.6A patent/CN113240871A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11222882A (en) * | 1998-02-05 | 1999-08-17 | Komatsu Ltd | Dangerous zone monitoring device |
CN104200466A (en) * | 2014-08-20 | 2014-12-10 | 深圳市中控生物识别技术有限公司 | Early warning method and camera |
CN105930787A (en) * | 2016-04-16 | 2016-09-07 | 南京林业大学 | Vehicle door opening early-warning method |
KR20180013427A (en) * | 2016-07-29 | 2018-02-07 | 주식회사 에어테크미디어 | Broadcasting system and method based on automatic control function of volume level and directional function |
CN107680348A (en) * | 2017-07-31 | 2018-02-09 | 深圳市心上信息技术有限公司 | Fence intelligent alarm method, device, storage medium and computer equipment |
CN110070695A (en) * | 2019-04-24 | 2019-07-30 | 河南书网教育科技股份有限公司 | A kind of method for early warning, device, server and communication system |
CN110450711A (en) * | 2019-08-22 | 2019-11-15 | 昆山聚创新能源科技有限公司 | Vehicle and its control method, control device |
CN112288975A (en) * | 2020-11-13 | 2021-01-29 | 珠海大横琴科技发展有限公司 | Event early warning method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114501045A (en) * | 2021-12-29 | 2022-05-13 | 浙江大华技术股份有限公司 | Live broadcast method, live broadcast device, electronic device and storage medium |
CN114973573A (en) * | 2022-06-14 | 2022-08-30 | 浙江大华技术股份有限公司 | Target intrusion determination method and device, storage medium and electronic device |
CN114973573B (en) * | 2022-06-14 | 2024-08-20 | 浙江大华技术股份有限公司 | Target intrusion determination method and device, storage medium and electronic device |
CN116229672A (en) * | 2022-12-16 | 2023-06-06 | 深圳信可通讯技术有限公司 | Dangerous area emergency early warning and rescue system and method based on big data |
CN116229672B (en) * | 2022-12-16 | 2023-12-15 | 深圳信可通讯技术有限公司 | Dangerous area emergency early warning and rescue system and method based on big data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113240871A (en) | Alarm method, alarm device, storage medium and electronic device | |
US11801833B2 (en) | Method for influencing entities at a roadway intersection | |
CN112614359B (en) | Traffic control method and device, road side equipment and cloud control platform | |
US20210241468A1 (en) | Systems and methods for intelligent video surveillance | |
US11250699B2 (en) | System and method of adaptive traffic management at an intersection | |
CN111126235B (en) | Detection processing method and device for illegal berthing of ship | |
CN112001208B (en) | Target detection method and device for vehicle blind area and electronic equipment | |
CN113095161B (en) | Dangerous behavior identification method and device, terminal equipment and computer storage medium | |
CN110718041B (en) | Method, device and system for preventing children from getting lost and storage medium | |
CN112172663A (en) | Danger alarm method based on door opening and related equipment | |
CN111811399B (en) | Detection method and device | |
EP4418015A1 (en) | Image sensor data control system | |
CN114332707A (en) | Method and device for determining equipment effectiveness, storage medium and electronic device | |
CN114973573B (en) | Target intrusion determination method and device, storage medium and electronic device | |
CN116778673A (en) | Water area safety monitoring method, system, terminal and storage medium | |
US11830126B2 (en) | Accurate representation of camera field of view in two-dimensional mapping applications | |
JP2022120116A (en) | Traffic light identification method, apparatus, electronic device, storage medium, computer program, roadside device, cloud control platform, and vehicle road cooperative system | |
CN111427063B (en) | Mobile device traffic control method, device, equipment, system and medium | |
CN111047864A (en) | Warning method, warning equipment and computer storage medium for running red light | |
CN114053730B (en) | Amusement vehicle and running control method and device thereof, storage medium and terminal | |
CN113611131B (en) | Vehicle passing method, device, equipment and computer readable storage medium | |
WO2022204153A1 (en) | Image based tracking system | |
CN107665332B (en) | Intersection occupancy and vehicle flow calculation method and device | |
CN112580482A (en) | Animal monitoring method, terminal and storage medium | |
CN113053096B (en) | Traffic accident early warning method and device, storage medium and intelligent lamp pole |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210810 |
|
RJ01 | Rejection of invention patent application after publication |