CN114553944A - Early warning message pushing method and system - Google Patents

Early warning message pushing method and system Download PDF

Info

Publication number
CN114553944A
CN114553944A CN202111648286.0A CN202111648286A CN114553944A CN 114553944 A CN114553944 A CN 114553944A CN 202111648286 A CN202111648286 A CN 202111648286A CN 114553944 A CN114553944 A CN 114553944A
Authority
CN
China
Prior art keywords
early warning
target
warning message
message
monitoring
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
Application number
CN202111648286.0A
Other languages
Chinese (zh)
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.)
ISSA Technology Co Ltd
Original Assignee
ISSA 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 ISSA Technology Co Ltd filed Critical ISSA Technology Co Ltd
Priority to CN202111648286.0A priority Critical patent/CN114553944A/en
Publication of CN114553944A publication Critical patent/CN114553944A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
    • G08B25/01Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium
    • G08B25/10Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium using wireless transmission systems

Abstract

The invention provides a method and a system for pushing an early warning message, which are applied to an alarm desk; the method comprises the following steps: caching target early warning information; the target early warning information comprises early warning character information and early warning vehicle information; generating a target early warning message when the target monitoring equipment acquires a monitoring message associated with the target early warning information; and pushing a target early warning message to the target client based on the WebSocket connection. The invention alleviates the technical problem of message push delay in the prior art.

Description

Early warning message pushing method and system
Technical Field
The invention relates to the technical field of web application development, in particular to a method and a system for pushing an early warning message.
Background
Message pushing is more and more widely applied in the software industry, such as background message pushing and the like, but there is a time delay requirement in the aspect of real-time message pushing, for example, for message pushing of an alarm station, pushing needs to be performed at the first time when an early warning message is generated. Traditional background message pushing based on the HTTP protocol needs a client to actively request a server, even if a long link is used, the connection is easy to be affected by external factors, so that disconnection is not stable, pushing delay can be generated, and the message cannot be received by a user in time.
Disclosure of Invention
In view of this, the present invention provides an early warning message pushing method and system, so as to alleviate the technical problem of message pushing delay in the prior art.
In a first aspect, an embodiment of the present invention provides an early warning message pushing method, which is applied to an alarm desk; the method comprises the following steps: caching target early warning information; the target early warning information comprises early warning character information and early warning vehicle information; generating a target early warning message when the target monitoring equipment acquires a monitoring message associated with the target early warning information; and pushing the target early warning message to a target client based on the WebSocket connection.
Further, before pushing the target early warning message to a target client based on a WebSocket connection, the method further includes: and establishing WebSocket connection between the alarm platform and the target client.
Further, the method further comprises: and storing the target early warning message asynchronous record to a storage unit of the alarm station.
Further, when the target monitoring device acquires the monitoring message associated with the target early warning information, generating a target early warning message, including: acquiring a real-time monitoring video frame of the target monitoring equipment; performing feature extraction on the real-time monitoring video frame to obtain monitoring features; judging whether the similarity between the monitoring feature and the target feature is greater than a preset similarity threshold value or not; the target features are features obtained by extracting the features of the target early warning information; and if so, generating the target early warning message.
In a second aspect, an embodiment of the present invention further provides an early warning message pushing system, which is applied to an alarm desk; the method comprises the following steps: the device comprises a cache module, a generation module and a push module; the cache module is used for caching target early warning information; the target early warning information comprises early warning character information and early warning vehicle information; the generation module is used for generating a target early warning message when the target monitoring equipment acquires the monitoring message associated with the target early warning message; and the pushing module is used for pushing the target early warning message to a target client based on WebSocket connection.
Further, still include: and the establishing module is used for establishing WebSocket connection between the alarm station and the target client.
Further, still include: and the storage module is used for asynchronously recording and storing the target early warning message to a storage unit of the warning station.
Further, the generating module is further configured to: acquiring a real-time monitoring video frame of the target monitoring equipment; performing feature extraction on the real-time monitoring video frame to obtain monitoring features; judging whether the similarity between the monitoring feature and the target feature is greater than a preset similarity threshold value or not; the target features are features obtained by extracting the features of the target early warning information; and if so, generating the target early warning message.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect when executing the computer program.
In a fourth aspect, the present invention further provides a computer-readable medium having non-volatile program code executable by a processor, where the program code causes the processor to execute the method according to the first aspect.
The invention provides a method and a system for pushing an early warning message, which are applied to an alarm desk; the method provided by the invention has the advantages that the message pushing is used as the highest priority when the real-time message is processed, the message pushing timeliness is greatly improved by utilizing the stability and timeliness of the WebSocket connection, and the technical problem of message pushing delay in the prior art is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an early warning message pushing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an early warning message pushing system according to an embodiment of the present invention;
fig. 3 is a schematic diagram of another warning message pushing system according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
fig. 1 is a flowchart of an early warning message pushing method according to an embodiment of the present invention, where the method is applied to an alarm station. As shown in fig. 1, the method specifically includes the following steps:
step S102, caching target early warning information; the target early warning information comprises early warning character information and early warning vehicle information.
And step S104, generating the target early warning message when the target monitoring equipment acquires the monitoring message associated with the target early warning information.
Optionally, the target monitoring device comprises a front-end camera.
And step S106, pushing a target early warning message to the target client based on the WebSocket connection.
In the embodiment of the invention, the target client is a client in communication connection with the alarm station.
The invention provides an early warning message pushing method, which is characterized in that a target monitoring device is used for acquiring a monitoring message associated with target early warning information, generating a target early warning message and pushing the target early warning message to a target client based on WebSocket connection.
Optionally, before step S102, the method provided in the embodiment of the present invention further includes the following steps: and establishing WebSocket connection between the alarm station and the target client.
Optionally, after step S106, the method provided in the embodiment of the present invention further includes the following steps: and storing the target early warning message asynchronous record to a storage unit of the warning station.
In the embodiment of the invention, the target early warning message is not stored in the pushing process of the target early warning message, if the target early warning message needs to be stored, asynchronous storage and recording operation can be added in the message pushing process, specifically, the storage process after the target early warning message is pushed is asynchronous with the pushing process, and the next message is pushed without waiting for the completion of the storage, so that the message can be pushed and the push record can be stored on the premise of hardly influencing the push delay, thereby facilitating the subsequent management and query, simultaneously, the resource utilization can be improved by performing part of tasks in an asynchronous mode, and the waste of server resources is reduced.
Optionally, in the embodiment of the present invention, the process of asynchronously recording and storing the target early warning message is an optional process, and whether to store the target early warning message may be selected according to an actual application scenario, so that the storage process is more flexible.
Optionally, step S104 further includes the following specific steps:
step S1041, acquiring a real-time monitoring video frame of the target monitoring device;
step S1042, extracting the characteristics of the real-time monitoring video frame to obtain monitoring characteristics;
step S1043, judging whether the similarity between the monitoring feature and the target feature is larger than a preset similarity threshold value; the target characteristic is obtained by extracting the characteristic of the target early warning information;
if so, generating a target early warning message.
The method for pushing the early warning message provided by the embodiment of the invention comprises the steps of caching a person or a vehicle to be monitored in an alarm station, carrying out real-time characteristic analysis on the snapshot of a front-end camera by a program after caching, judging that the vehicle or the person is the same person or the same vehicle when the snapshot vehicle or the person characteristic and the characteristic in the cache reach a preset similarity threshold, directly entering an early warning link at the moment, generating the real-time early warning message in the alarm station and pushing the message to a target client, and simultaneously storing the early warning message for the subsequent inquiry of the alarm history.
In the method provided by the embodiment of the invention, the early warning priority of personnel or vehicles is highest, so that the message pushing of the early warning information is carried out in real time, and an asynchronous storage task is started to store the warning history after the pushing is finished every time the warning information is generated, so that the real-time property and low delay of the message pushing are ensured, and a storage function is also attached.
The second embodiment:
fig. 2 is a schematic diagram of an early warning message pushing system provided in an embodiment of the present invention, which is applied to an alarm desk. As shown in fig. 2, the system includes: the device comprises a caching module 10, a generating module 20 and a pushing module 30.
Specifically, the cache module 10 is configured to cache the target early warning information; the target early warning information comprises early warning character information and early warning vehicle information.
The generating module 20 is configured to generate the target early warning message when the target monitoring device acquires the monitoring message associated with the target early warning message.
Optionally, the generating module 20 is further configured to:
acquiring a real-time monitoring video frame of target monitoring equipment;
performing feature extraction on the real-time monitoring video frame to obtain monitoring features;
judging whether the similarity between the monitoring feature and the target feature is greater than a preset similarity threshold value or not; the target characteristic is obtained by extracting the characteristic of the target early warning information;
if so, generating a target early warning message.
And the pushing module 30 is configured to push the target early warning message to the target client based on the WebSocket connection.
The invention provides an early warning message pushing system, which is characterized in that a target monitoring device is used for acquiring a monitoring message associated with target early warning information, generating a target early warning message and pushing the target early warning message to a target client based on WebSocket connection.
Optionally, fig. 3 is a schematic diagram of another warning message pushing system provided in an embodiment of the present invention. As shown in fig. 3, the system further includes: a building module 40 and a storage module 50.
Specifically, the establishing module 40 is configured to establish a WebSocket connection between the alert station and the target client.
And the storage module 50 is used for storing the target early warning message asynchronous record to a storage unit of the alarm station.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the method in the first embodiment are implemented.
The embodiment of the invention also provides a computer readable medium with a non-volatile program code executable by a processor, wherein the program code causes the processor to execute the method in the first embodiment.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for pushing early warning messages is characterized by being applied to an alarm desk; the method comprises the following steps:
caching target early warning information; the target early warning information comprises early warning character information and early warning vehicle information;
when target monitoring equipment acquires a monitoring message associated with the target early warning information, generating a target early warning message;
and pushing the target early warning message to a target client based on the WebSocket connection.
2. The method of claim 1, wherein before pushing the target early warning message to a target client based on a WebSocket connection, the method further comprises: and establishing WebSocket connection between the alarm platform and the target client.
3. The method of claim 1, further comprising:
and storing the target early warning message asynchronous record to a storage unit of the alarm station.
4. The method according to claim 1, wherein generating a target early warning message when a target monitoring device acquires a monitoring message associated with the target early warning information comprises:
acquiring a real-time monitoring video frame of the target monitoring equipment;
performing feature extraction on the real-time monitoring video frame to obtain monitoring features;
judging whether the similarity between the monitoring feature and the target feature is larger than a preset similarity threshold value or not; the target features are features obtained by extracting the features of the target early warning information;
and if so, generating the target early warning message.
5. An early warning message pushing system is characterized by being applied to an alarm desk; the method comprises the following steps: the device comprises a cache module, a generation module and a push module; wherein the content of the first and second substances,
the cache module is used for caching target early warning information; the target early warning information comprises early warning character information and early warning vehicle information;
the generation module is used for generating a target early warning message when the target monitoring equipment acquires the monitoring message associated with the target early warning message;
and the pushing module is used for pushing the target early warning message to a target client based on WebSocket connection.
6. The system of claim 5, further comprising: and the establishing module is used for establishing WebSocket connection between the alarm station and the target client.
7. The system of claim 5, further comprising: and the storage module is used for asynchronously recording and storing the target early warning message to a storage unit of the warning station.
8. The system of claim 5, wherein the generation module is further configured to:
acquiring a real-time monitoring video frame of the target monitoring equipment;
performing feature extraction on the real-time monitoring video frame to obtain monitoring features;
judging whether the similarity between the monitoring feature and the target feature is greater than a preset similarity threshold value or not; the target features are features obtained by extracting the features of the target early warning information;
and if so, generating the target early warning message.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method of any of the preceding claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable medium having non-volatile program code executable by a processor, wherein the program code causes the processor to perform the method of any of claims 1-4.
CN202111648286.0A 2021-12-30 2021-12-30 Early warning message pushing method and system Pending CN114553944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111648286.0A CN114553944A (en) 2021-12-30 2021-12-30 Early warning message pushing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111648286.0A CN114553944A (en) 2021-12-30 2021-12-30 Early warning message pushing method and system

Publications (1)

Publication Number Publication Date
CN114553944A true CN114553944A (en) 2022-05-27

Family

ID=81670013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111648286.0A Pending CN114553944A (en) 2021-12-30 2021-12-30 Early warning message pushing method and system

Country Status (1)

Country Link
CN (1) CN114553944A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115294741A (en) * 2022-10-10 2022-11-04 深圳曼顿科技有限公司 Alarm message pushing method and device, terminal equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523177A (en) * 2011-12-19 2012-06-27 北京新媒传信科技有限公司 Method and system for realization of message push service
CN103259683A (en) * 2013-05-16 2013-08-21 烽火通信科技股份有限公司 Web network management system second level cache pushing method based on HTML5
CN104519059A (en) * 2014-12-16 2015-04-15 北京中交兴路车联网科技有限公司 Vehicular real-time alarm processing system and method
WO2015103773A1 (en) * 2014-01-10 2015-07-16 华为技术有限公司 Message pushing method and apparatus
CN106100914A (en) * 2016-08-25 2016-11-09 上海斐讯数据通信技术有限公司 The method for pushing of a kind of cloud AC warning information and system
CN111510325A (en) * 2020-04-07 2020-08-07 广州中石科技有限公司 Alarm information pushing method, server, client and system
CN112583638A (en) * 2020-11-25 2021-03-30 新浪网技术(中国)有限公司 Websocket-based voice alarm method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102523177A (en) * 2011-12-19 2012-06-27 北京新媒传信科技有限公司 Method and system for realization of message push service
CN103259683A (en) * 2013-05-16 2013-08-21 烽火通信科技股份有限公司 Web network management system second level cache pushing method based on HTML5
WO2015103773A1 (en) * 2014-01-10 2015-07-16 华为技术有限公司 Message pushing method and apparatus
CN104519059A (en) * 2014-12-16 2015-04-15 北京中交兴路车联网科技有限公司 Vehicular real-time alarm processing system and method
CN106100914A (en) * 2016-08-25 2016-11-09 上海斐讯数据通信技术有限公司 The method for pushing of a kind of cloud AC warning information and system
CN111510325A (en) * 2020-04-07 2020-08-07 广州中石科技有限公司 Alarm information pushing method, server, client and system
CN112583638A (en) * 2020-11-25 2021-03-30 新浪网技术(中国)有限公司 Websocket-based voice alarm method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李先懿;郭正光;: "基于Websocket的车联网报警推送系统", 计算机系统应用, no. 03 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115294741A (en) * 2022-10-10 2022-11-04 深圳曼顿科技有限公司 Alarm message pushing method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110300050B (en) Message pushing method and device, computer equipment and storage medium
CN109547511B (en) WEB message real-time pushing method, server, client and system
CN111752799A (en) Service link tracking method, device, equipment and storage medium
CN104219316A (en) Method and device for processing call request in distributed system
CN107766509B (en) Method and device for static backup of webpage
CN111400378A (en) Real-time log display method and device based on ElasticSearch, computer equipment and medium
CN109067860B (en) Mobile terminal message processing method and related device
CN113347269A (en) Data updating method of industrial system, electronic equipment and storage medium
CN113468025A (en) Data warning method, system, device and storage medium
CN111104257A (en) Anti-timeout method, device, equipment and medium for backup log data
CN115329170A (en) Webpage crawling method, device, equipment and storage medium
CN114553944A (en) Early warning message pushing method and system
CN110650164B (en) File uploading method and device, terminal and computer storage medium
CN106550021B (en) Push method and device for push message
CN112565238A (en) Method for popping privacy policy, client and computer-readable storage medium
CN111930542A (en) Data acquisition method and device, electronic equipment and computer readable storage medium
CN116561179A (en) Data query method, device, equipment and program product
CN116450176A (en) Version updating method and device, electronic equipment and storage medium
CN107547502B (en) Information monitoring system, method and device, electronic equipment and storage medium
CN113256360B (en) Invoice processing control method, device, equipment and storage medium based on Ukey cabinet
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
CN114006936B (en) System operation information real-time acquisition method, server and client
CN113114698B (en) Network data request method, system, device, equipment and storage medium
CN115277834B (en) Task data processing method, device and server
CN111368512B (en) Service data conversion method, device, equipment and storage 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