CN111629165B - Alarm video processing method, device, equipment and storage medium - Google Patents

Alarm video processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN111629165B
CN111629165B CN202010733963.8A CN202010733963A CN111629165B CN 111629165 B CN111629165 B CN 111629165B CN 202010733963 A CN202010733963 A CN 202010733963A CN 111629165 B CN111629165 B CN 111629165B
Authority
CN
China
Prior art keywords
alarm
monitoring
video
time period
alarm signal
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
Application number
CN202010733963.8A
Other languages
Chinese (zh)
Other versions
CN111629165A (en
Inventor
李太友
陈桂刚
刘纯
李大勤
宋晨
黄海瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin Zhongxin Zhiguan Information Technology Co ltd
Original Assignee
Tianjin Zhongxin Zhiguan Information Technology Co ltd
Tianjin Meiteng Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tianjin Zhongxin Zhiguan Information Technology Co ltd, Tianjin Meiteng Technology Co Ltd filed Critical Tianjin Zhongxin Zhiguan Information Technology Co ltd
Priority to CN202010733963.8A priority Critical patent/CN111629165B/en
Publication of CN111629165A publication Critical patent/CN111629165A/en
Application granted granted Critical
Publication of CN111629165B publication Critical patent/CN111629165B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M11/00Telephonic communication systems specially adapted for combination with other electrical systems
    • H04M11/04Telephonic communication systems specially adapted for combination with other electrical systems with alarm systems, e.g. fire, police or burglar alarm systems
    • H04M11/045Telephonic communication systems specially adapted for combination with other electrical systems with alarm systems, e.g. fire, police or burglar alarm systems using recorded signals, e.g. speech
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Alarm Systems (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for processing an alarm video. The method comprises the following steps: when an alarm signal is received, determining a monitoring time period corresponding to the alarm signal according to alarm information of the alarm signal; and acquiring video data in the monitoring time period in the monitoring equipment corresponding to the alarm signal, and generating an alarm video. According to the embodiment of the invention, the monitoring time period is determined according to the alarm information of the alarm signal, and the video in the monitoring time period in the monitoring equipment is used as the alarm video, so that the problem of redundant alarm video data is solved, the waste of server resources is avoided, the pertinence of the alarm video is improved, and the subsequent processing efficiency of the alarm video data and the alarm condition is improved.

Description

Alarm video processing method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of video monitoring, in particular to a method, a device, equipment and a storage medium for processing an alarm video.
Background
The safety prevention and control system is based on electronic technology, sensor technology and computer technology and integrates safety prevention equipment and equipment into a whole, thereby achieving the purposes of preventing invasion, theft, damage, fire, explosion, safety inspection and the like and maintaining social public safety. With the development of society, security protection is more and more emphasized by various industries, and the security protection device is widely applied to the fields of banks, markets, office buildings, schools and the like and has a good effect.
Electronic monitoring has been developed rapidly in recent years, and digital monitoring has been fully entered from past analog monitoring, and especially, the computer is successfully used in monitoring, and the video monitoring is more fully developed and applied due to the characteristics of easy storage, high processing speed, stable performance and the like of the computer.
At present, the existing video monitoring scheme usually monitors, records and stores the scene in real time after the alarm occurs. However, since the video monitoring schemes are all unified video recording and storing modes, the problem of long monitoring video data is easily caused, and the monitoring video still needs to be manually screened in the later period to acquire video data related to alarm, so that the processing efficiency of the monitoring video is low and the resource of the server is wasted.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for processing an alarm video, which are used for avoiding the waste of server resources, improving the pertinence of the alarm video and further improving the subsequent processing efficiency of alarm video data and alarm conditions.
In a first aspect, an embodiment of the present invention provides a method for processing an alarm video, where the method includes:
when an alarm signal is received, determining a monitoring time period corresponding to the alarm signal according to alarm information of the alarm signal;
and acquiring video data in the monitoring time period in the monitoring equipment corresponding to the alarm signal, and generating an alarm video.
In a second aspect, an embodiment of the present invention further provides an apparatus for processing an alarm video, where the apparatus includes:
the monitoring time period determining module is used for determining a monitoring time period corresponding to the alarm signal according to the alarm information of the alarm signal when the alarm signal is received;
and the alarm video generation module is used for acquiring video data in the monitoring time period in the monitoring equipment corresponding to the alarm signal and generating an alarm video.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement any of the alert video processing methods referred to above.
In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform any of the above-mentioned alarm video processing methods.
According to the embodiment of the invention, the monitoring time period is determined according to the alarm information of the alarm signal, and the video in the monitoring time period in the monitoring equipment is used as the alarm video, so that the problem of redundant alarm video data is solved, the waste of server resources is avoided, the pertinence of the alarm video is improved, and the subsequent processing efficiency of the alarm video data and the alarm condition is improved.
Drawings
Fig. 1 is a flowchart of a method for processing an alarm video according to an embodiment of the present invention.
Fig. 2 is a flowchart of a processing method of an alarm video according to a second embodiment of the present invention.
Fig. 3 is a schematic diagram of an apparatus for processing an alarm video according to a third embodiment of the present invention.
Fig. 4 is a schematic diagram of a specific example of an apparatus for processing an alarm video according to a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of an alarm video processing method according to an embodiment of the present invention, where the embodiment is applicable to monitoring an alarm site, and the method may be executed by an alarm video processing apparatus, where the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in a terminal device. The method specifically comprises the following steps:
and S110, when the alarm signal is received, determining a monitoring time period corresponding to the alarm signal according to the alarm information of the alarm signal.
The alarm device generates an alarm signal by collecting physical phenomena in a defense deployment monitoring area. In one embodiment, the alarm information optionally includes at least one of an alarm type, an alarm time, an alarm level, an alarm area, and an alarm device number. As an example, the alarm type of the alarm signal may be a fire alarm signal, a temperature alarm signal, a special gas alarm signal, an illegal intrusion alarm signal, and the like. The alarm time includes the time when the alarm device has collected the target physical phenomenon, for example, the target physical phenomenon may be a temperature higher than 50 ℃, and the alarm time may be 12 months, 1 day, 13: 00. The alarm level is the danger level of the alarm signal of the different alarm types set by the user. Illustratively, the alarm level of the fire alarm signal is a first alarm level, and the alarm level of the illegal intrusion alarm signal is a second alarm level, wherein the first level is higher than the second level. Different alarm devices may correspond to the same or different monitoring areas, for example, when the alarm device 1 sends out an alarm signal, the monitoring area corresponding to the alarm device 1 is used as an alarm area, and the alarm area and the number 1 are used as alarm information.
In one embodiment, optionally, the monitoring duration range is determined according to at least one of the alarm type, the alarm time and the alarm level of the alarm signal, and the monitoring period corresponding to the alarm signal is determined according to the alarm time and the monitoring duration range.
In one embodiment, optionally, the monitoring duration range includes a duration range before the alarm time and/or a duration range after the alarm time. The time length range before the alarm time and the time length range after the alarm time can be the same or different. For example, when the monitoring time length range includes a time length range before the alarm time and a time length range after the alarm time, assuming that the monitoring time length range is 10 minutes, the time length ranges before the alarm time and after the alarm time may be both 5 minutes. Of course, the time period before the alarm time may be in the range of 6 minutes, and the time period after the alarm time may be in the range of 4 minutes.
In one embodiment, optionally, a mapping relationship between the alarm information and the monitoring duration range is established, and the monitoring duration range corresponding to the alarm signal is determined according to the mapping relationship. In one embodiment, when only one type of the alarm information is available, if the alarm information is of an alarm level, the monitoring duration range corresponding to the first alarm level is 10 minutes, and the monitoring duration range corresponding to the second alarm level is 5 minutes. In another embodiment, when the alarm information comprises at least two types, such as an alarm level and an alarm time, the alarm time is between 7:00 and 18:00, and the alarm level is a first alarm level, the monitoring time duration range is 10 minutes; when the alarm time is between 20:00 and 24:00 and the alarm level is the second alarm level, although the alarm level of the alarm signal is the second alarm level, the alarm signal occurs at night, and personnel cannot process the alarm event in time, so the monitoring time length range can be set to be 20 minutes. The mapping relation between the alarm information and the monitoring time range is not limited, and the mapping relation can be set reasonably according to actual conditions.
In one embodiment, optionally, the monitoring duration range corresponding to each monitoring device is determined according to the distance between the alarm device corresponding to the alarm signal and the at least one monitoring device corresponding to the alarm signal. The monitoring device corresponding to the alarm signal exemplarily includes a monitoring device a and a monitoring device B, a distance between the monitoring device a and the alarm device is 10m, and a distance between the monitoring device B and the alarm device is 5m, so that a monitoring duration range corresponding to the monitoring device B is greater than a monitoring duration range corresponding to the monitoring device a.
Wherein, for example, assuming that the alarm time is 13:00, and the monitoring duration range includes 10 minutes before the alarm time and 20 minutes after the alarm time, the monitoring period is 12:50-13: 20.
And S120, acquiring video data in the monitoring time period in the monitoring equipment corresponding to the alarm signal, and generating an alarm video.
The monitoring equipment is used for recording real-time or timing video of scene information of a defense deployment monitoring area. In one embodiment, optionally, the number of monitoring devices corresponding to the alarm signal is at least one. Specifically, an association relationship is established between the alarm device and the monitoring device, for example, the alarm device 1 corresponds to the monitoring device a and the monitoring device B. When the alarm device 1 sends out an alarm signal, the monitoring devices corresponding to the alarm signal include a monitoring device a and a monitoring device B.
When the monitoring device records the video data at regular time, after receiving the alarm signal, in one embodiment, if the monitoring device is in a closed state, the monitoring device is controlled to start a video recording function so as to acquire the video data of a monitoring time period corresponding to the alarm signal. Illustratively, when the alarm time is 13:00 and the monitoring time period is 13:00-13:10, the monitoring device is controlled to record 10 minutes of video data. In another embodiment, if the monitoring device is in an on state and the time difference between the alarm time and the timing off time of the monitoring device is smaller than the monitoring duration range after the alarm time, the timing off time is adjusted according to the monitoring duration range. Illustratively, when the alarm time is 13:00, the monitoring time period is 13:00-13:10, and the timing off time of the monitoring device is 13:05, the timing off time of the monitoring device is adjusted to 13: 10.
The alarm video comprises video data in a monitoring time period corresponding to each monitoring device. Illustratively, the alarm video includes video data from 13:00 to 13:10 in monitoring device A and video data from 13:00 to 13:10 in monitoring device B. In one embodiment, the alarm video corresponding to each monitoring device is displayed in different windows of the display device. In another embodiment, a monitoring device selected by a user is received, and an alarm video corresponding to the monitoring device is displayed in a window of a display device.
The format of the alarm video stored in the existing video monitoring scheme is generally an H264 video format, and in this embodiment, optionally, after the alarm video is generated, the alarm video is stored in an MP4 video format.
On the basis of the above embodiment, optionally, audio data in a monitoring time period in the monitoring device corresponding to the alarm signal is acquired, and an alarm audio is generated. The advantage that sets up like this lies in, audio data is faster for video data's acquisition speed, and when the user was inconvenient to look over the warning video, the condition in the monitoring area was known fast to the accessible warning audio frequency to improve the treatment effeciency of the warning condition.
On the basis of the foregoing embodiment, optionally, the method further includes: when a plurality of alarm signals are received within a preset time interval, if a plurality of generated alarm videos correspond to the same monitoring equipment, the plurality of alarm videos are subjected to duplicate removal processing.
The preset time interval may be, for example, 1 second, 5 seconds, or 10 seconds. Of course, the preset time interval may also be 0. When the preset time interval is 0, namely, the alarm devices send out alarm signals at the same time. Wherein, the alarm information of each alarm signal can be the same or different.
Wherein, the same alarm signal corresponds to at least one monitoring device, and different alarm signals may correspond to the same monitoring device. Illustratively, alarm signal 1 corresponds to monitoring device a, monitoring device B, and monitoring device C, and alarm signal 2 corresponds to monitoring device a, monitoring device D, and monitoring device E. In one embodiment, when alarm signal 1 and alarm signal 2 are received within a preset time interval, the alarm video a1 and the alarm video a2 generated according to alarm signal 1 and alarm signal 2, respectively, correspond to the monitoring device a. Because the alarm time of the alarm signal 1 is similar to or the same as that of the alarm signal 2, the video contents of the alarm video a1 and the alarm video a2 are also similar to or the same as each other, and two identical or similar sets of video data occupy more server resources, which causes waste of server resources.
In one embodiment, the deduplication processing method optionally includes a key frame matching method and a visual feature extraction method. In the exemplary method, the key frame image of the alarm video is selected, the key frame image is matched with the key frame image of another alarm video, and if the matching is successful, the two alarm videos are regarded as the repeated alarm videos. The visual feature extraction method is characterized in that video frame images in the alarm videos are counted based on colors and/or textures to obtain color histograms and/or texture histograms, and the similarity of the color histograms and/or the texture histograms of the two alarm videos is compared. And if the similarity meets a preset similarity threshold, the two alarm videos are regarded as repeated alarm videos.
In one embodiment, optionally, the deduplication processing is performed on a plurality of alarm videos, including: taking one of the plurality of alarm videos as a target alarm video, and taking at least one alarm video except the target alarm video as a reference alarm video; determining a deduplication time period according to the start time, the end time and the floating time of the monitoring time period corresponding to the target alarm video, respectively matching the monitoring time period of each reference alarm video with the deduplication time period, and deleting the reference alarm video corresponding to the successfully matched monitoring time period.
The floating time may be 1 second, 30 seconds or 1 minute, for example, but the floating time may also be 0. Wherein, when the floating time is not 0, the floating time can be used to remove the influence of the preset time interval on the deduplication processing. Illustratively, when the preset time interval is 5 minutes, the monitoring time period corresponding to the alarm video A is set to be 13:10-13:30, and the monitoring time period corresponding to the alarm video B is set to be 13:05-13: 25. If the floating time is 0, both the alarm video a and the alarm video B are retained after the deduplication processing. If the float time is not 0, in an embodiment, optionally, the float time is greater than or equal to a preset time interval. Where, illustratively, the float time is 6 minutes. And taking the alarm video A as a target alarm video, determining the de-duplication time period to be (13: 04-13: 16) - (13:24-13:36), matching the alarm video B with the de-duplication time period, and only keeping the alarm video A after de-duplication processing.
The method has the advantages that resource waste rate of the server can be reduced, and operation efficiency of the server is guaranteed. In practical application, if the alarm video 1 corresponding to the alarm signal 1 is deleted due to the repetition with the alarm video 2, the server may call the saved alarm video 2 to display to the user when the user views the alarm video 1 corresponding to the alarm signal 1.
According to the technical scheme of the embodiment, the monitoring time period is determined according to the alarm information of the alarm signal, and the video in the monitoring time period in the monitoring equipment is used as the alarm video, so that the problem of redundant alarm video data is solved, the waste of server resources is avoided, the pertinence of the alarm video is improved, and the subsequent processing efficiency of the alarm video data and the alarm condition is improved.
Example two
Fig. 2 is a flowchart of a method for processing an alarm video according to a second embodiment of the present invention, and the technical solution of the present embodiment is further detailed based on the above-mentioned embodiments. Optionally, the obtaining video data in the monitoring period of the monitoring device corresponding to the alarm signal and generating an alarm video includes: when a plurality of alarm signals are received within a preset time interval, sequencing the alarm signals according to the alarm information of the alarm signals, and sequencing the monitoring equipment corresponding to the alarm signals according to the sequencing result to obtain a monitoring execution queue; and sequentially acquiring video data in the monitoring time period corresponding to each alarm signal in each monitoring device according to the monitoring execution queue, and generating an alarm video corresponding to each alarm signal.
The specific implementation steps of this embodiment include:
s210, when a plurality of alarm signals are received within a preset time interval, determining a monitoring time period corresponding to the alarm signals according to alarm information of the alarm signals.
S220, sequencing the alarm signals according to the alarm information of the alarm signals, and sequencing the monitoring devices corresponding to the alarm signals according to the sequencing result to obtain a monitoring execution queue.
In one embodiment, the alert information optionally includes at least one of an alert type, an alert time, and an alert level. In one embodiment, the alarm information is an alarm level, and the alarm signals are sorted according to the level of the alarm level of each alarm signal. Illustratively, the alarm level corresponding to the alarm signal 1 is a first alarm level, the alarm level corresponding to the alarm signal 2 is a second alarm level, and the level of the first alarm level is higher than that of the second alarm level, the sequencing result is the alarm signal 1 and the alarm signal 2. When the same alarm level corresponds to a plurality of alarm signals, the alarm signals can be randomly sequenced. In another embodiment, the alarm information includes alarm time and alarm level, and the alarm signals are sorted according to the level of the alarm signal, and at least two alarm signals corresponding to the alarm levels are sorted according to the alarm time. Illustratively, the first alarm level corresponds to alarm signal 1 and alarm signal 2, the second alarm level corresponds to alarm signal 3 and alarm signal 4, the alarm signals 1 and 2 are sorted according to the alarm time, and the alarm signals 3 and 4 are sorted according to the alarm time. The ranking of alarm signal 1 is higher than alarm signal 2, assuming that the alarm time of alarm signal 1 is before the alarm time of alarm signal 2.
Wherein each alarm signal corresponds to at least one monitoring device. For example, alarm signal 1 corresponds to monitoring device a and monitoring device B, and alarm signal 2 corresponds to monitoring device C and monitoring device D, so the monitoring execution queue may be monitoring device a, monitoring device B, monitoring device C, and monitoring device D. At least one monitoring device corresponding to the alarm signal can be randomly sequenced, or sequenced according to the distance between each monitoring device and the alarm device.
In one embodiment, there is an overlap between the monitoring devices for multiple alarm signals. Illustratively, the alarm signal 1 corresponds to the monitoring device a and the monitoring device B, the alarm signal 2 corresponds to the monitoring device a and the monitoring device D, and if the monitoring devices are directly sorted according to the sorting result of the alarm signal, the monitoring execution queues are the monitoring device a, the monitoring device B, the monitoring device a and the monitoring device D. The monitoring device a appears twice, and if the alarm video is acquired according to the monitoring execution queue, the alarm video with similar content or similar time appears, so that the load of the server is increased. In an embodiment, optionally, the sorting the monitoring devices corresponding to the alarm signals according to the sorting result to obtain a monitoring execution queue includes: and according to each alarm signal in the sequencing result, if the current monitoring equipment corresponding to the alarm signal does not exist in the current monitoring execution queue, adding the current monitoring equipment to the current monitoring execution queue to obtain a monitoring execution queue.
In an exemplary case, it is assumed that the ranking level of the alarm signal 1 is higher than that of the alarm signal 2, the alarm signal 1 corresponds to the monitoring device a and the monitoring device B, and the alarm signal 2 corresponds to the monitoring device a and the monitoring device D. When the monitoring devices corresponding to the alarm signal 1 are sequenced, a current monitoring execution queue is obtained: monitoring device a and monitoring device B. When the monitoring equipment corresponding to the alarm signal 2 is sequenced, because the monitoring equipment A is already in the current monitoring execution queue, the monitoring equipment A corresponding to the alarm signal 2 is not sequenced; because the monitoring device D does not exist in the current monitoring execution queue, the monitoring device D corresponding to the alarm signal 2 is added to the current monitoring execution queue to obtain a monitoring execution queue: monitoring equipment A, monitoring equipment B and monitoring equipment D.
And S230, sequentially acquiring video data in the monitoring time period corresponding to each alarm signal in each monitoring device according to the monitoring execution queue, and generating an alarm video corresponding to each alarm signal.
Wherein, the monitoring equipment corresponding to a plurality of alarm signals has the condition of overlapping. In one embodiment, when determining the monitoring execution queue, if the overlapping of the monitoring devices is not considered, the monitoring execution queue is exemplarily a monitoring device a, a monitoring device B, a monitoring device a, and a monitoring device D. In an embodiment, optionally, sequentially obtaining video data in the monitoring time period corresponding to each alarm signal in each monitoring device according to the monitoring execution queue includes: and if the current monitoring equipment corresponding to the current alarm signal is the same as the monitoring equipment corresponding to the acquired video data, taking the video data corresponding to the acquired current monitoring equipment as the video data of the current alarm signal.
Specifically, it is assumed that monitoring device a and monitoring device B correspond to alarm signal 1, and monitoring device a and monitoring device D correspond to alarm signal 2. And sequentially acquiring the video data A of the first monitoring equipment A and the video data B of the monitoring equipment B according to the monitoring execution queue to obtain 2 alarm videos corresponding to the alarm signal 1. When the video data of the second monitoring device a in the monitoring execution queue is obtained, the second monitoring device a is the same as the monitoring device corresponding to the video data a, the video data a is used as the video data corresponding to the alarm signal 2, and since the monitoring devices D are different from the monitoring devices corresponding to the video data a and the video data B, the video data D in the monitoring device D can be obtained, and 2 alarm videos corresponding to the alarm signal 2 are obtained.
On the basis of the above embodiment, optionally, at least two video monitoring schemes are integrated, and the video monitoring scheme corresponding to the scheme selection operation is run according to the scheme selection operation input by the user. Illustratively, each video monitoring scheme defines at least one of a mode of an alarm level of an alarm signal, a mapping relation between a monitoring duration range and alarm information, and a generation mode of a monitoring execution queue. When the video scheme is selected, information such as an internet interconnection protocol, a computer port and an account password can be configured, so that the selected video scheme can be configured in the current video monitoring platform. The advantage that sets up like this lies in, and the user can be according to the control demand of reality, and the process of adjusting to the parameter in the control scheme has been avoided manually repeatedly to the nimble video monitoring scheme that selects that corresponds, has simplified video monitoring's step, and has reduced parameter adjustment and has appeared wrong wind direction, and then improves video monitoring's efficiency.
On the basis of the above embodiment, optionally, after the alarm video is generated, the alarm video is sent to the terminal device corresponding to the alarm signal. Illustratively, when the alarm signal is a fire alarm signal, sending an alarm video to a terminal device of a fire department; and when the alarm signal is an illegal intrusion signal, sending the alarm video to the terminal equipment of the security part. The terminal device may be any one of a desktop computer, a notebook computer, a smart phone, a tablet computer, and a device capable of playing a video file, and the type of the terminal device is not limited herein.
According to the technical scheme, the video data in the monitoring equipment are sequentially acquired through the monitoring execution queue, the alarm video is generated, the problem that the processing efficiency of the server is low when multiple alarm signals are sent concurrently is solved, the processing pressure of the server when the multiple alarm signals are sent concurrently is reduced, the probability of the occurrence of the fault problem caused by network occupation is further reduced, and the generation efficiency of the alarm video is improved.
EXAMPLE III
Fig. 3 is a schematic diagram of an apparatus for processing an alarm video according to a third embodiment of the present invention. The embodiment can be suitable for monitoring the alarm site, the device can be realized in a software and/or hardware mode, and the device can be configured in terminal equipment. The processing device of the alarm video comprises:
a monitoring period determining module 310, configured to determine, when the alarm signal is received, a monitoring period corresponding to the alarm signal according to alarm information of the alarm signal;
and an alarm video generating module 320, configured to obtain video data in a monitoring time period in the monitoring device corresponding to the alarm signal, and generate an alarm video.
According to the technical scheme of the embodiment, the monitoring time period is determined according to the alarm information of the alarm signal, and the video in the monitoring time period in the monitoring equipment is used as the alarm video, so that the problem of redundant alarm video data is solved, the waste of server resources is avoided, the pertinence of the alarm video is improved, and the subsequent processing efficiency of the alarm video data and the alarm condition is improved.
On the basis of the foregoing technical solution, optionally, the monitoring period determining module 310 is specifically configured to:
and determining a monitoring time range according to at least one of the alarm type, the alarm time and the alarm grade of the alarm signal, and determining a monitoring time period corresponding to the alarm signal according to the alarm time and the monitoring time range.
On the basis of the above technical solution, optionally, the alarm video generating module 320 includes:
the monitoring execution queue determining unit is used for sequencing the alarm signals according to the alarm information of the alarm signals when receiving a plurality of alarm signals within a preset time interval, and sequencing the monitoring equipment corresponding to the alarm signals according to the sequencing result to obtain a monitoring execution queue;
and the alarm video generation unit is used for sequentially acquiring video data in the monitoring time period corresponding to each alarm signal in each monitoring device according to the monitoring execution queue and generating the alarm video corresponding to each alarm signal.
On the basis of the foregoing technical solution, optionally, the monitoring execution queue determining unit is specifically configured to:
and according to each alarm signal in the sequencing result, if the current monitoring equipment corresponding to the alarm signal does not exist in the current monitoring execution queue, adding the current monitoring equipment to the current monitoring execution queue to obtain a monitoring execution queue.
On the basis of the above technical solution, optionally, the alarm video generating unit is specifically configured to:
and if the current monitoring equipment corresponding to the current alarm signal is the same as the monitoring equipment corresponding to the acquired video data, taking the video data corresponding to the acquired current monitoring equipment as the video data of the current alarm signal.
On the basis of the above technical solution, optionally, the apparatus further includes:
and the duplicate removal processing module is used for performing duplicate removal processing on the plurality of alarm videos if the plurality of generated alarm videos correspond to the same monitoring equipment when the plurality of alarm signals are received within a preset time interval.
On the basis of the above technical solution, optionally, the duplicate removal processing module is specifically configured to:
taking one of the plurality of alarm videos as a target alarm video, and taking at least one alarm video except the target alarm video as a reference alarm video;
determining a deduplication time period according to the start time, the end time and the floating time of the monitoring time period corresponding to the target alarm video, respectively matching the monitoring time period of each reference alarm video with the deduplication time period, and deleting the reference alarm video corresponding to the successfully matched monitoring time period.
Fig. 4 is a schematic diagram of a specific example of an apparatus for processing an alarm video according to a third embodiment of the present invention. The processing apparatus of the alarm video shown in fig. 4 is configured with a video monitoring scheme API Interface (Application Programming Interface) and a video monitoring scheme selection policy. The first video monitoring scheme and the second video monitoring scheme can be configured on the processing device of the alarm video in an integrated mode, and a user can select and call the first video monitoring scheme or the second video monitoring scheme according to requirements through the video monitoring scheme selection strategy device. The video monitoring schemes are illustrated here, and the number and types of configured video monitoring schemes are not limited. Fig. 4 shows 3 video configuration interfaces, which are respectively a WEB (WEB page) video configuration interface, a PAD (tablet computer) video configuration interface and an APP (application program) video configuration interface. The processing device of the alarm video in the embodiment is further provided with a camera configuration service, an authority configuration service, a push configuration service and an alarm video service. The camera is equivalent to the monitoring device in this embodiment, and exemplarily, the camera configuration service may be used to configure a mapping relationship between the camera and the alarm device. For example, the permission configuration service may be configured to configure viewing permissions of different cameras, for example, different cameras correspond to different viewing passwords, and a camera corresponding to the viewing password may be viewed by inputting the viewing password. In one embodiment, optionally, the viewing frequency of the camera is counted, and a focus list of the camera is created according to the counting result. Specifically, a camera with a viewing frequency greater than a preset frequency threshold may be added to the attention list. Further, the cameras in the attention list are sorted according to the viewing frequency. In an exemplary embodiment, the push configuration service may be configured to configure a terminal device that receives an alarm video corresponding to the alarm signal, and after the alarm video is generated, send the alarm video to the corresponding terminal device according to the push configuration service. The alarm video service can be used for generating an alarm video according to the alarm information. Each module of the video surveillance apparatus shown in fig. 4 may call data in the database or save the generated data in the database.
The processing device of the alarm video provided by the embodiment of the invention can be used for executing the processing method of the alarm video provided by the embodiment of the invention, and has corresponding functions and beneficial effects of the execution method.
It should be noted that, in the embodiment of the processing apparatus for an alarm video, the units and modules included in the embodiment are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention, where the embodiment of the present invention provides a service for implementing the method for processing an alarm video according to the foregoing embodiment of the present invention, and a processing device for an alarm video according to the foregoing embodiment may be configured. Fig. 5 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 5 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention.
As shown in FIG. 5, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 5, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, such as implementing a method for processing an alarm video provided by an embodiment of the present invention, by executing a program stored in the system memory 28.
Through the equipment, the problem of redundant alarm video data is solved, the waste of server resources is avoided, the pertinence of the alarm video is improved, and the subsequent processing efficiency of the alarm video data and the alarm condition is improved.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for processing an alarm video, the method including:
when an alarm signal is received, determining a monitoring time period corresponding to the alarm signal according to alarm information of the alarm signal;
and acquiring video data in a monitoring time period in the monitoring equipment corresponding to the alarm signal, and generating an alarm video.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the above method operations, and may also perform related operations in the method for processing an alarm video provided by any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A processing method of an alarm video is characterized by comprising the following steps:
when an alarm signal is received, determining a monitoring time period corresponding to the alarm signal according to alarm information of the alarm signal; wherein, the determining the monitoring time interval corresponding to the alarm signal according to the alarm information of the alarm signal comprises:
determining a monitoring time range according to at least two alarm information of the alarm type, the time period and the alarm grade of the alarm signal, and determining a monitoring time period corresponding to the alarm signal according to the alarm time and the monitoring time range;
acquiring video data in the monitoring time period in the monitoring equipment corresponding to the alarm signal, and generating an alarm video;
when a plurality of alarm signals sent by a plurality of alarm devices are received within a preset time interval, if a plurality of generated alarm videos correspond to the same monitoring device, the plurality of alarm videos are subjected to duplicate removal processing; wherein, the same alarm signal corresponds to at least two monitoring devices;
the performing of the duplicate removal processing on the plurality of alarm videos includes:
taking one alarm video in a plurality of alarm videos as a target alarm video, and taking at least one alarm video except the target alarm video as a reference alarm video;
determining a deduplication time period according to the start time, the end time and the floating time of the monitoring time period corresponding to the target alarm video, respectively matching the monitoring time period of each reference alarm video with the deduplication time period, and deleting the reference alarm video corresponding to the successfully matched monitoring time period.
2. The method of claim 1, wherein the obtaining video data in the monitoring period in the monitoring device corresponding to the alarm signal and generating an alarm video comprises:
when a plurality of alarm signals are received within a preset time interval, sequencing the alarm signals according to the alarm information of the alarm signals, and sequencing the monitoring equipment corresponding to the alarm signals according to the sequencing result to obtain a monitoring execution queue;
and sequentially acquiring video data in the monitoring time period corresponding to each alarm signal in each monitoring device according to the monitoring execution queue, and generating an alarm video corresponding to each alarm signal.
3. The method according to claim 2, wherein the sorting the monitoring devices corresponding to the alarm signals according to the sorting result to obtain a monitoring execution queue comprises:
according to each alarm signal in the sequencing result, if the current monitoring equipment corresponding to the alarm signal does not exist in the current monitoring execution queue, adding the current monitoring equipment to the current monitoring execution queue to obtain a monitoring execution queue.
4. The method according to claim 3, wherein the sequentially obtaining video data in the monitoring time period corresponding to each alarm signal in each monitoring device according to the monitoring execution queue comprises:
and if the current monitoring equipment corresponding to the current alarm signal is the same as the monitoring equipment corresponding to the acquired video data, taking the video data corresponding to the acquired current monitoring equipment as the video data of the current alarm signal.
5. An apparatus for processing an alarm video, comprising:
the monitoring time period determining module is used for determining a monitoring time period corresponding to the alarm signal according to the alarm information of the alarm signal when the alarm signal is received;
a monitoring period determination module, specifically configured to: determining a monitoring time range according to at least two alarm information of the alarm type, the time period and the alarm grade of the alarm signal, and determining a monitoring time period corresponding to the alarm signal according to the alarm time and the monitoring time range;
the alarm video generation module is used for acquiring video data in the monitoring time period in the monitoring equipment corresponding to the alarm signal and generating an alarm video;
the duplicate removal processing module is used for performing duplicate removal processing on the plurality of alarm videos if the plurality of generated alarm videos correspond to the same monitoring equipment when a plurality of alarm signals sent by the plurality of alarm equipment are received within a preset time interval; wherein, the same alarm signal corresponds to at least two monitoring devices;
the duplicate removal processing module is specifically configured to:
taking one alarm video in a plurality of alarm videos as a target alarm video, and taking at least one alarm video except the target alarm video as a reference alarm video;
determining a deduplication time period according to the start time, the end time and the floating time of the monitoring time period corresponding to the target alarm video, respectively matching the monitoring time period of each reference alarm video with the deduplication time period, and deleting the reference alarm video corresponding to the successfully matched monitoring time period.
6. A terminal device, characterized in that the terminal device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of processing an alarm video of any of claims 1-4.
7. A storage medium containing computer-executable instructions for performing the method of processing an alarm video according to any one of claims 1-4 when executed by a computer processor.
CN202010733963.8A 2020-07-28 2020-07-28 Alarm video processing method, device, equipment and storage medium Active CN111629165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010733963.8A CN111629165B (en) 2020-07-28 2020-07-28 Alarm video processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010733963.8A CN111629165B (en) 2020-07-28 2020-07-28 Alarm video processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111629165A CN111629165A (en) 2020-09-04
CN111629165B true CN111629165B (en) 2020-12-18

Family

ID=72271534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010733963.8A Active CN111629165B (en) 2020-07-28 2020-07-28 Alarm video processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111629165B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112383756B (en) * 2020-11-13 2021-08-17 珠海大横琴科技发展有限公司 Video monitoring alarm processing method and device
CN112422849A (en) * 2020-11-26 2021-02-26 上海骄成机电设备有限公司 Welding abnormal data acquisition method and device, electronic equipment and storage medium
CN113938649A (en) * 2021-09-24 2022-01-14 成都智元汇信息技术股份有限公司 Alarm message duplicate removal method and device
CN114074339A (en) * 2021-11-29 2022-02-22 合肥欣奕华智能机器有限公司 Vibration detection device of robot
CN115223343A (en) * 2022-07-07 2022-10-21 广东韶钢松山股份有限公司 Control method, device, system, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077244A (en) * 2013-01-17 2013-05-01 广东威创视讯科技股份有限公司 Method and device for searching for monitoring videos
CN104918005A (en) * 2015-04-14 2015-09-16 谢冬 Device, system and method for intercepting and sending monitoring record in real-time
CN106331609A (en) * 2016-08-23 2017-01-11 山东康威通信技术股份有限公司 Video control method based on alarm triggering
WO2017090004A2 (en) * 2015-11-26 2017-06-01 Tessitura Govi S.R.L. Security and alarm system
CN107689166A (en) * 2017-10-16 2018-02-13 哈工大机器人集团重庆普耀信息产业发展有限公司 A kind of Flying Area in Airport monitoring management system and management method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825879A (en) * 2005-07-07 2006-08-30 王文彪 Remote safety monitoring apparatus and method
CN101790081B (en) * 2010-01-15 2012-01-04 上海市浦东新区保安服务总公司 Link alarm video monitoring integrated information centralized management system and control method thereof
CN110942581A (en) * 2019-12-10 2020-03-31 深圳市丛文安全电子有限公司 Security alarm system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077244A (en) * 2013-01-17 2013-05-01 广东威创视讯科技股份有限公司 Method and device for searching for monitoring videos
CN104918005A (en) * 2015-04-14 2015-09-16 谢冬 Device, system and method for intercepting and sending monitoring record in real-time
WO2017090004A2 (en) * 2015-11-26 2017-06-01 Tessitura Govi S.R.L. Security and alarm system
CN106331609A (en) * 2016-08-23 2017-01-11 山东康威通信技术股份有限公司 Video control method based on alarm triggering
CN107689166A (en) * 2017-10-16 2018-02-13 哈工大机器人集团重庆普耀信息产业发展有限公司 A kind of Flying Area in Airport monitoring management system and management method

Also Published As

Publication number Publication date
CN111629165A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
CN111629165B (en) Alarm video processing method, device, equipment and storage medium
CN110138745B (en) Abnormal host detection method, device, equipment and medium based on data stream sequence
CN107895122B (en) Special sensitive information active defense method, device and system
US20120078864A1 (en) Electronic data integrity protection device and method and data monitoring system
CN114020735A (en) Method, device and equipment for reducing noise of safety alarm log and storage medium
CN110377562B (en) Big data safe storage method based on Hadoop open source platform
CN111386711A (en) Method, device and system for managing electronic fingerprints of electronic files
CN112291538A (en) Video monitoring data storage method and device
CN113365113B (en) Target node identification method and device
CN112003819B (en) Method, device, equipment and computer storage medium for identifying crawler
CN110365642B (en) Method and device for monitoring information operation, computer equipment and storage medium
CN115730104A (en) Live broadcast room processing method, device, equipment and medium
CN112950438A (en) Data processing method and device, computer equipment and storage medium
CN111565377A (en) Safety monitoring method and device applied to Internet of things
CN113038261A (en) Video generation method, device, equipment, system and storage medium
CN113923000B (en) Security processing method and device, electronic equipment and storage medium
CN116070268B (en) Privacy data identification monitoring method, device and equipment
CN113411569B (en) Method and device for detecting static picture
WO2024032574A1 (en) Image processing method and apparatus, and electronic device and storage medium
US11232457B1 (en) Systems and methods for protecting users
CN113568592A (en) Display control method of terminal, terminal and storage medium
CN114998839A (en) Data management method and system based on hierarchical distribution
CN115600258A (en) Data security management method and system of personal storage device
CN117234866A (en) Detection and warning system for sensitive behaviors
CN113139111A (en) Page state detection method, device, equipment and medium

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230725

Address after: 300467 Binhai Tianjin Binhai Zhongxin Ecological City West of Zhongcheng Avenue, South of Zhongbin Avenue Ecological Construction Apartment Building 8, Room 137, Floor 1

Patentee after: TIANJIN ZHONGXIN ZHIGUAN INFORMATION TECHNOLOGY CO.,LTD.

Address before: 300000 Room 137, 1st Floor, Building 8, Ecological Construction Apartment, Binhai Zhongxin Ecological City, Binhai New Area, Tianjin, west of Zhongcheng Avenue and south of Zhongbin Avenue

Patentee before: TIANJIN ZHONGXIN ZHIGUAN INFORMATION TECHNOLOGY CO.,LTD.

Patentee before: Tianjin Meiteng Technology Co.,Ltd.