Video alarm method and system for edge end monitoring equipment, medium and equipment
Patent Information
- Application Number
- CN202411370647.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-24
Smart Images

Figure CN119363930A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a video alarm method, system, medium and device for edge monitoring equipment. Background Art
[0002] The common video surveillance system currently analyzes the surveillance video collected by the camera, marks the alarm information in the video screen, and then pushes the video stream to the playback device to realize the real-time alarm function of the surveillance video. The current mainstream surveillance video equipment usually uses the form of adding marks in the video frame when displaying alarm information to users. However, in edge monitoring devices that are more sensitive to performance, this processing adds additional performance consumption, especially when analyzing multiple videos, the performance consumption is more obvious. In addition, the traditional alarm marking form is relatively simple and fixed, which is difficult to meet the actual application scenarios that require flexible display.
[0003] In view of this, it is necessary to provide a video alarm method, system, medium and device for edge monitoring equipment. Summary of the invention
[0004] The video alarm method, system, medium and device for edge monitoring equipment provided by the present invention effectively solve the problems of high energy consumption and single warning form in existing edge monitoring that are difficult to meet practical applications.
[0005] The technical solution adopted by the present invention is:
[0006] The video alarm method for edge monitoring equipment includes the following steps:
[0007] S1. Receive alarm events generated by upstream surveillance video analysis services;
[0008] S2. Receive the alarm event source and obtain the required configuration information of the alarm event display format;
[0009] S3. According to the display format, the alarm time is processed item by item and display parameters are generated;
[0010] S4, judging whether all display forms that need to be configured have been processed, if not, repeating S3;
[0011] S5. If the processing is completed, the alarm event is updated;
[0012] S6. The server pushes the alarm event message to the client with viewing permission according to the alarm event source device;
[0013] S7, the client receives the alarm event message;
[0014] S8, determining whether the video of the device that is the source of the alarm event is currently being monitored, if the video of the device that is the source of the alarm event is not currently being monitored, then ending the process;
[0015] S9. If the video of the device that is currently monitoring the alarm event source is displayed, the alarm event is displayed on the client.
[0016] Furthermore, the alarm event includes the following attributes: event ID, event source camera device ID, event category, event occurrence time, event information content, and event display parameters. When processing an alarm event, the event information content generated by the upstream monitoring video analysis service is first obtained, and the configuration information is configured according to the specific display format of the alarm event in the display client interface, and the parameters required for event display are generated and added to the event message.
[0017] Furthermore, the display forms of the alarm event include: text annotation, area marking, direction arrow, area flashing, alarm audio, custom picture, video area enlargement, QR code, real-time chart; the attributes that need to be configured for the text annotation include: text position, text color, font, font size, text content; the attributes that need to be configured for the area marking include: shape type, marked position, marked color, drawing parameters required for various shapes, label content; the attributes that need to be configured for the direction arrow include: arrow color, arrow type, arrow starting point, arrow end point, label content; the attributes that need to be configured for the alarm audio include: pre-generated audio type or real-time generated audio The attributes that need to be configured for the custom image include: image display position, image display size, image file address, and label content; the attributes that need to be configured for video area magnification include: the area of the original video that needs to be magnified and displayed, the position of the magnified display box, the size of the magnified display box, and the label content; the attributes that need to be configured for the QR code include: QR code display position, QR code size, and QR code text generation content template; the attributes that need to be configured for the real-time chart include: chart type, chart position, chart size, drawing parameters and data required for various charts, and label content.
[0018] Furthermore, when the display form is text annotation, the processing method is: read the text color, font, and font size from the configuration information, use the location parameters of the event as the display location of the text, and add the text display content, and generate the display parameters after sorting; when the display form is area marking, the processing method is: the location information of the event should exist in the original alarm event, and according to the position, mark color information, and shape type of the mark read in the configuration, the original location information is converted into the drawing parameters required for various shapes, and the label content is added to the message, and the display parameters are generated after sorting; if the display form is a direction arrow, the processing method is: the coordinate information of the starting point and the end point should exist in the original alarm event, combined with the arrow color, arrow type, and label content in the configuration information, and the display parameters are generated after sorting; if the display form is area flashing, the coordinate information of the area polygon vertex of the flashing area should exist in the original alarm event, combined with the area flashing color, area position, and label content in the configuration information, and the display parameters are generated after sorting; if the display form is alarm audio, the processing method is: it should be processed according to the audio type in the configuration information, and when the audio type is pre-generated, the configuration information is read. ; when the audio type is real-time generation, the text content, timbre, speaking speed, intonation and other attributes required for real-time audio generation are read, and the display parameters are generated after sorting; if the display form is a custom image, the processing method is: obtain the image file address and label content from the alarm event message, and read the image display position and image display size in the configuration, and generate the display parameters after sorting; if the display form is video area enlargement, the processing method is: obtain the label content from the alarm event message, combine the area to be enlarged, the position of the enlarged display box, and the size of the enlarged display box in the configuration, and generate the display parameters after sorting; if the display type is a QR code, the processing method is: read the QR code size parameter and the template parameter for the QR code text content generation from the configuration information, generate the QR code text content according to the event content, use the location parameter of the event as the QR code display position, and use the above parameters as the event display parameters, and generate the display parameters after sorting; if the display type is a real-time chart, the processing method is: generate the drawing parameters and data required for various charts according to the chart type, chart position, and chart size in the configuration, and generate the display parameters after sorting.
[0019] Furthermore, the display of the alarm event also includes a customized extended form.
[0020] Furthermore, the display logic of the alarm event includes: real-time monitoring display, pop-up display with events, etc., and has the ability to be flexibly expanded according to actual requirements.
[0021] Furthermore, the client needs to satisfy the user login function, so that the user can log in to the system and obtain the monitoring device permissions that the management end needs to configure.
[0022] Video alarm system for edge monitoring equipment, including:
[0023] The alarm information service module is used to manage alarm devices, alarm event information, user and monitoring device authority binding information as an alarm information server, and configure the display format and display logic of alarm events in the display client interface;
[0024] The monitoring information service module is used as a client to display monitoring videos to users in real time, and to display alarm events to users according to the configured display format and display logic.
[0025] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the video alarm method for edge monitoring equipment are implemented.
[0026] A computer device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein:
[0027] The memory is used to store computer programs;
[0028] The processor is used to execute the steps of the video alarm method for edge monitoring equipment by running the program stored in the memory.
[0029] Beneficial effects of the invention:
[0030] 1. Generate alarm events by analyzing upstream surveillance videos, and then display the alarm events in various forms to realize the video alarm information display management system of edge monitoring equipment, which greatly reduces the performance and power consumption of monitoring equipment, and can meet the actual application scenarios of flexible display through various alarm marking forms.
[0031] 2. The display forms of alarm events include text annotation, area marking, direction arrows, area flashing, alarm audio, custom pictures, video area enlargement, QR code, real-time charts, etc., which can ensure that alarm events can be displayed in different types.
[0032] 3. When alarm events are displayed in different forms, different attributes are configured to ensure that the attributes of the corresponding time are displayed in a timely manner.
[0033] 4. When processing alarm events in different display forms, corresponding processing methods are adopted according to different display forms, so that targeted processing of alarm events in different display forms can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 A flowchart of a video alarm method for an edge monitoring device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0036] like Figure 1 As shown, the present application provides a first embodiment, which is a video alarm method for an edge monitoring device, comprising the following steps:
[0037] S1. Receive alarm events generated by upstream surveillance video analysis services;
[0038] S2. Receive the alarm event source and obtain the required configuration information of the alarm event display format;
[0039] S3. According to the display format, the alarm time is processed item by item and display parameters are generated;
[0040] S4, judging whether all display forms that need to be configured have been processed, if not, repeating S3;
[0041] S5. If the processing is completed, the alarm event is updated;
[0042] S6. The server pushes the alarm event message to the client with viewing permission according to the alarm event source device;
[0043] S7, the client receives the alarm event message;
[0044] S8, determining whether the video of the device that is the source of the alarm event is currently being monitored, if the video of the device that is the source of the alarm event is not currently being monitored, then ending the process;
[0045] S9. If the video of the device that is currently monitoring the alarm event source is displayed, the alarm event is displayed on the client.
[0046] In the above design, the system architecture, programming language, and application scenarios can be selected according to actual needs. It can meet the monitoring alarm event display needs in common application scenarios such as PC and mobile terminals using C / S architecture and B / S architecture, and realize the video alarm information display management system of edge monitoring equipment, which greatly reduces the performance and power consumption of monitoring equipment, and can meet the actual application scenarios of flexible display through Mr. Du's alarm marking form.
[0047] Specifically: the alarm event contains the following attributes: event ID, event source camera device ID, event category, event occurrence time, event information content, event display parameters. When processing an alarm event, first obtain the event information content generated by the upstream monitoring video analysis service, and generate and add the parameters required for event display in the event message according to the required configuration information of the specific display form of the alarm event in the display client interface. The user and monitoring device authority binding information contains the following key attributes: client user ID, user-associated display camera device ID.
[0048] In the above design, the attributes of the alarm event cover the common attributes of the event, which can ensure that the alarm information of the alarm event is as comprehensive as possible.
[0049] Specifically: the display forms of the alarm event include: text annotation, area marking (such as line segments, circles, rectangular boxes, polygons, etc.), direction arrows, area flashing, alarm audio, custom pictures, video area enlargement, QR codes, real-time charts, etc. The attributes that need to be configured for the text annotation include: text position, text color, font, font size, and text content; the attributes that need to be configured for the area mark include: shape type, mark position, mark color, drawing parameters required for various shapes, and label content; the attributes that need to be configured for the direction arrow include: arrow color, arrow type, arrow starting point, arrow end point, and label content; the attributes that need to be configured for the alarm audio include: pre-generated audio type or real-time generated audio type, audio file address or text content required for real-time audio generation, timbre, speaking speed, intonation and other attributes; the attributes that need to be configured for the custom image include: image display position, image display size, image file address, and label content; the attributes that need to be configured for video area enlargement include: the area of the original video that needs to be enlarged and displayed, the position of the enlarged display box, the size of the enlarged display box, and the label content; the attributes that need to be configured for the QR code include: QR code display position, QR code size, and QR code text generation content template; the attributes that need to be configured for the real-time chart include: chart type, chart position, chart size, drawing parameters and data required for various charts, and label content.
[0050] In the above design, the alarm events are displayed in various forms, and different display styles include multiple attributes, which can ensure that the alarm events can be displayed intuitively in different forms.
[0051] Specifically: when the display form is text annotation, the processing method is: read the text color, font, and font size from the configuration information, use the location parameter of the event as the display location of the text, and add the text display content, and generate the display parameters after sorting. When the display form is an area mark, the processing method is: the location information of the event should exist in the original alarm event, according to the location, mark color information, and shape type of the mark read in the configuration, the original location information is converted into the drawing parameters required for various shapes, and the label content is added to the message, and the display parameters are generated after sorting. If the display form is a direction arrow, the processing method is: the coordinate information of the starting point and the end point should exist in the original alarm event, combined with the arrow color, arrow type, and label content in the configuration information, and the display parameters are generated after sorting. If the display form is regional flashing, the coordinate information of the regional polygon vertices of the flashing area should exist in the original alarm event, combined with the regional flashing color, regional position, and label content in the configuration information, and the display parameters are generated after sorting. If the display form is alarm audio, the processing method is: it should be processed according to the audio type in the configuration information. When the audio type is pre-generated, the audio file address in the configuration information is read. When the audio type is real-time generation, the text content, timbre, speech speed, intonation and other attributes required for real-time audio generation are read, and the display parameters are generated after sorting. If the display form is a custom image, the processing method is: obtain the image file address and label content from the alarm event message, and read the image display position and image display size in the configuration, and generate the display parameters after sorting. If the display form is video area magnification, the processing method is: obtain the label content from the alarm event message, combine the area to be magnified, the position of the magnified display box, and the size of the magnified display box in the configuration, and generate the display parameters after sorting. If the display type is a QR code, the processing method is: read the QR code size parameter and the QR code text content generation template parameter from the configuration information, generate the QR code text content according to the event content, use the location parameter of the event as the QR code display position, and use the above parameters as the event display parameters, and generate the display parameters after sorting. If the display type is a real-time chart, the processing method is: generate the drawing parameters and data required for various charts according to the chart type, chart position, and chart size in the configuration, and generate the display parameters after sorting.
[0052] In the above design, different display forms include parameter displays of different attributes, which can ensure that events alarmed in different forms can be intuitively displayed from multiple angles when being displayed.
[0053] Specifically: the display of the alarm event also includes a customized extended form.
[0054] In the above design, the alarm events are displayed in a customized extended form, which further increases the diversity of the alarm event display.
[0055] Specifically: the display logic of the alarm event includes: real-time monitoring display, pop-up display with events, etc., and has the ability to be flexibly expanded according to actual requirements.
[0056] Specifically: the client needs to satisfy the user login function, so that the user can log in to the system to obtain the monitoring device permissions that the management end needs to configure.
[0057] In the above design, obtaining permissions through user login can enhance the security of monitoring.
[0058] The present application provides a second embodiment, which is a video alarm system for edge monitoring equipment, including:
[0059] The alarm information service module is used to manage alarm devices, alarm event information, user and monitoring device authority binding information as an alarm information server, and configure the display format and display logic of alarm events in the display client interface;
[0060] The monitoring information service module is used as a client to display monitoring videos to users in real time, and to display alarm events to users according to the configured display format and display logic.
[0061] The present application provides a third embodiment, which is a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of a video alarm method for an edge monitoring device are implemented.
[0062] In addition, the computer-readable storage medium of this embodiment may adopt any combination of one or more computer-readable storage media, wherein the computer-readable storage medium includes electrical, optical, electromagnetic, infrared or semiconductor systems, devices or components, or any combination thereof.
[0063] The present application also provides a fourth embodiment, which is a computer device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; wherein:
[0064] The memory is used to store computer programs;
[0065] The processor is used to execute the steps of the video alarm method for edge monitoring equipment by running the program stored in the memory.
[0066] As an embodiment of the present invention, the communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc.
[0067] As an implementation mode of the present invention, the communication interface is used for communication between the above-mentioned terminal and other devices.
[0068] As an embodiment of the present invention, the memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0069] As an embodiment of the present invention, the above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0070] To further explain in detail, it should be understood that the above is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A video alarm method for edge monitoring equipment, characterized in that: The steps include: S1. Receive alarm events generated by upstream surveillance video analysis services; S2. Receive the alarm event source and obtain the required configuration information of the alarm event display format; S3. According to the display format, the alarm time is processed item by item and display parameters are generated; S4, judging whether all display forms that need to be configured have been processed, if not, repeating S3; S5. If the processing is completed, the alarm event is updated; S6. The server pushes the alarm event message to the client with viewing permission according to the alarm event source device; S7, the client receives the alarm event message; S8, determining whether the video of the device that is the source of the alarm event is currently being monitored, if the video of the device that is the source of the alarm event is not currently being monitored, then ending the process; S9. If the video of the device that is currently monitoring the alarm event source is displayed, the alarm event is displayed on the client.
2. The video alarm method for edge monitoring equipment according to claim 1, characterized in that: The alarm event includes the following attributes: event ID, event source camera device ID, event category, event occurrence time, event information content, and event display parameters. When processing an alarm event, first obtain the event information content generated by the upstream monitoring video analysis service, and configure the information according to the specific display format of the alarm event in the display client interface, and generate and add the parameters required for event display in the event message.
3. The video alarm method for edge monitoring equipment according to claim 1, characterized in that: The display forms of the alarm event include: text annotation, area marking, direction arrow, area flashing, alarm audio, custom picture, video area enlargement, QR code, real-time chart; the attributes that need to be configured for the text annotation include: text position, text color, font, font size, text content; the attributes that need to be configured for the area marking include: shape type, mark position, mark color, drawing parameters required for various shapes, label content; the attributes that need to be configured for the direction arrow include: arrow color, arrow type, arrow starting point, arrow end point, label content; the attributes that need to be configured for the alarm audio include: pre-generated audio type or real-time generated audio type , audio file address or text content, timbre, speaking speed, intonation and other attributes required for real-time audio generation; the attributes that need to be configured for the custom image include: image display position, image display size, image file address, label content; the attributes that need to be configured for video area enlargement include: the area of the original video that needs to be enlarged and displayed, the position of the enlarged display box, the size of the enlarged display box, and the label content; the attributes that need to be configured for the QR code include: QR code display position, QR code size, and QR code text generation content template; the attributes that need to be configured for the real-time chart include: chart type, chart position, chart size, drawing parameters and data required for various types of charts, and label content.
4. The video alarm method for edge monitoring equipment according to claim 3 is characterized in that: When the display form is text annotation, the processing method is as follows: read the text color, font, and font size from the configuration information, use the location parameter of the event occurrence as the display position of the text, and add the text display content, and generate the display parameters after sorting; When the display form is an area mark, the processing method is as follows: the original alarm event should contain the location information of the event, and according to the location, color information and shape type of the mark read in the configuration, the original location information is converted into the drawing parameters required for various shapes, and label content is added to the message, and the display parameters are generated after sorting; if the display form is a direction arrow, the processing method is as follows: the original alarm event should contain the coordinate information of the starting point and the end point, and the display parameters are generated after sorting in combination with the arrow color, arrow type and label content in the configuration information; If the display format is area flashing, the original alarm event should contain the coordinate information of the area polygon vertices of the flashing area, combined with the area flashing color, area position, and label content in the configuration information, and then generate the display parameters; If the display format is alarm audio, the processing method is: it should be processed according to the audio type in the configuration information. When the audio type is pre-generated, read the audio file address in the configuration information; when the audio type is real-time generation, read the text content, timbre, speaking speed, intonation and other attributes required for real-time audio generation, and generate display parameters after sorting; if the display format is a custom picture, the processing method is: obtain the picture file address and label content from the alarm event message, and read the picture display position and picture display size in the configuration, and generate display parameters after sorting; If the display format is video area enlargement, the processing method is: obtain the label content from the alarm event message, combine the area that needs to be enlarged, the position of the enlarged display frame, and the size of the enlarged display frame in the original video in the configuration, and generate the display parameters after sorting; if the display type is a QR code, the processing method is: read the QR code size parameters and the template parameters of the QR code text content from the configuration information, generate the QR code text content according to the event content, use the location parameters of the event as the QR code display position, and use the above parameters as the event display parameters, and generate the display parameters after sorting; if the display type is a real-time chart, the processing method is: according to the chart type, chart position, and chart size in the configuration, generate the drawing parameters and data required for various charts, and generate the display parameters after sorting.
5. The video alarm method for edge monitoring equipment according to claim 1, characterized in that: The display of the alarm event also includes a customized extended form.
6. The video alarm method for edge monitoring equipment according to claim 1, characterized in that: The display logic of the alarm event includes: real-time monitoring display and event pop-up display.
7. The video alarm method for edge monitoring equipment according to claim 1, characterized in that: The client needs to meet the user login function to enable the user to log in to the system and obtain the monitoring device permissions that the management end needs to configure.
8. A video alarm system for edge monitoring equipment, characterized in that: include, The alarm information service module is used to manage alarm devices, alarm event information, user and monitoring device authority binding information as an alarm information server, and configure the display format and display logic of alarm events in the display client interface; The monitoring information service module is used as a client to display monitoring videos to users in real time, and to display alarm events to users according to the configured display format and display logic.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the video alarm method for an edge monitoring device according to any one of claims 1 to 7 are implemented.
10. A computer device, characterized in that: The method comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: The memory is used to store computer programs; The processor is used to execute the steps of the video alarm method for edge monitoring equipment according to any one of claims 1 to 7 by running the program stored in the memory.