A monitoring picture playing control method, device, equipment and storage medium
Patent Information
- Application Number
- CN202211684859.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2042-12-27
AI Technical Summary
[0003]但目前常用的监控画面播放方法中,控制系统监控画面为了能够实时展示设备的数据变化,会按照预先设定的周期刷新界面,刷新时对整个画面中的每个图元都进行刷新并重新绘制,但这样的方法会消耗大量的系统资源,导致系统运行过程中负荷较高,从而影响到控制系统的性能
[0038]In this application, a new monitoring screen to be displayed is first acquired, and a refresh request for the currently displayed target monitoring screen is triggered. By comparing the differences between the monitoring screen to be displayed and the target monitoring screen, the changed target graphic elements are identified. Target graphic data corresponding to the target graphic elements is extracted from the monitoring screen to be displayed. Then, based on the target graphic data, the corresponding graphic elements are drawn on the target monitoring screen, and the drawn graphic elements replace the original graphic elements corresponding to the target graphic elements in the target monitoring screen to obtain an updated target monitoring screen. The updated target monitoring screen is then displayed to complete the response to the refresh request. In this way, by comparing the differences between the monitoring screen to be displayed and the target monitoring screen to identify the changed target graphic elements and replacing them, the drawing and replacement of all graphic elements in the entire screen is avoided, reducing the consumption of system resources, increasing the system's operating speed, and thus improving system performance.
Smart Images

Figure CN116360721B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of video surveillance technology, and in particular to a method, apparatus, device, and storage medium for controlling the playback of surveillance footage. Background Technology
[0002] In control systems, monitoring screens help operators perceive the operating status of on-site equipment and control its operating parameters in a timely manner. As a human-machine interface for monitoring, multiple monitoring screens are often displayed on a single screen. To maintain data timeliness and accuracy, the current monitoring screen can be refreshed in real time to update the data.
[0003] However, in the commonly used monitoring screen playback methods, the control system monitors the screen to refresh the interface according to a pre-set cycle in order to display the data changes of the equipment in real time. During the refresh, every element in the entire screen is refreshed and redrawn. However, this method consumes a lot of system resources, resulting in a high load during system operation, which affects the performance of the control system. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide a monitoring screen playback control method, apparatus, device, and storage medium, which can avoid drawing and replacing all graphic elements in the entire screen, reduce the consumption of system resources, increase the system operating speed, and thus improve system performance. The specific solution is as follows:
[0005] Firstly, this application provides a method for controlling the playback of surveillance footage, including:
[0006] Acquire new monitoring screens to be displayed and trigger a refresh request for the currently displayed target monitoring screen;
[0007] By comparing the differences between the monitoring screen to be displayed and the target monitoring screen, the target graphic elements that have changed are identified.
[0008] Extract the target image data corresponding to the target image element from the monitoring screen to be displayed;
[0009] Based on the target image data, corresponding image elements are drawn on the target monitoring screen, and the drawn image elements are used to replace the original image elements corresponding to the target image elements in the target monitoring screen to obtain the updated target monitoring screen.
[0010] The updated target monitoring screen is displayed to complete the response to the refresh request.
[0011] Optionally, the monitoring screen playback control method further includes:
[0012] Get the preset screen switching request;
[0013] Determine whether the screen to be opened corresponding to the preset screen switching request meets the preset cached screen conditions;
[0014] If the screen to be opened meets the preset cached screen conditions, then the target screen is selected from the cached screens and the target screen is determined as the screen to be opened to complete the screen switching operation; the cached screen is the screen obtained by caching the opened historical screens in advance.
[0015] Optionally, after determining whether the screen to be opened corresponding to the preset screen switching request meets the preset cached screen conditions, the method further includes:
[0016] If the screen to be opened does not meet the preset cached screen conditions, then the preset screen opening task is used to perform screen opening operations on several areas of the screen to be opened.
[0017] Optionally, determining the target screen as the screen to be opened to complete the screen switching operation includes:
[0018] The target screen is determined as the screen to be opened, and a screen opening operation is performed on the screen to be opened;
[0019] In the background, a screen closing operation is performed on the screen to be closed corresponding to the preset screen switching request to complete the screen switching operation.
[0020] Optionally, the monitoring screen playback control method further includes:
[0021] Request the display of the preset screen;
[0022] The target data quota is determined using a preset data request component based on the preset screen display request;
[0023] According to the target data quota, the screen to be displayed corresponding to the preset screen display request is displayed on the preset display interface.
[0024] Optionally, before performing the screen display operation on the preset display interface for the screen to be displayed corresponding to the preset screen display request according to the target data quota, the method further includes:
[0025] Perform a deserialization operation on the screen to be displayed corresponding to the preset screen display request.
[0026] Optionally, after performing a screen display operation on a preset display interface for the screen to be displayed corresponding to the preset screen display request according to the target data quota, the method further includes:
[0027] When the monitoring system performs a screen-closing operation on the screen to be displayed, the target data quota of the screen to be displayed is determined to a preset fixed value.
[0028] Secondly, this application provides a monitoring screen playback control device, comprising:
[0029] The refresh request trigger module is used to obtain new monitoring screens to be displayed and trigger refresh requests for the currently displayed target monitoring screens.
[0030] The target element determination module is used to determine the target elements that have changed by comparing the differences between the monitoring screen to be displayed and the target monitoring screen;
[0031] The data extraction module is used to extract target image data corresponding to the target image element from the monitoring screen to be displayed;
[0032] The screen update module is used to draw corresponding graphic elements on the target monitoring screen based on the target graphic data, and replace the original graphic elements corresponding to the target graphic elements in the target monitoring screen with the drawn graphic elements to obtain the updated target monitoring screen.
[0033] The screen refresh module is used to display the updated target monitoring screen in order to respond to the refresh request.
[0034] Thirdly, this application provides an electronic device, comprising:
[0035] Memory, used to store computer programs;
[0036] A processor is used to execute the computer program to implement the aforementioned monitoring screen playback control method.
[0037] Fourthly, this application provides a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the aforementioned monitoring screen playback control method.
[0038] In this application, a new monitoring screen to be displayed is first acquired, and a refresh request for the currently displayed target monitoring screen is triggered. By comparing the differences between the monitoring screen to be displayed and the target monitoring screen, the changed target graphic elements are identified. Target graphic data corresponding to the target graphic elements is extracted from the monitoring screen to be displayed. Then, based on the target graphic data, the corresponding graphic elements are drawn on the target monitoring screen, and the drawn graphic elements replace the original graphic elements corresponding to the target graphic elements in the target monitoring screen to obtain an updated target monitoring screen. The updated target monitoring screen is then displayed to complete the response to the refresh request. In this way, by comparing the differences between the monitoring screen to be displayed and the target monitoring screen to identify the changed target graphic elements and replacing them, the drawing and replacement of all graphic elements in the entire screen is avoided, reducing the consumption of system resources, increasing the system's operating speed, and thus improving system performance. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0040] Figure 1 A flowchart of a monitoring screen playback control method provided in this application;
[0041] Figure 2 A flowchart of a monitoring screen switching method provided in this application;
[0042] Figure 3 A flowchart of a monitoring screen display method provided in this application;
[0043] Figure 4 A schematic diagram of a monitoring screen playback control device provided in this application;
[0044] Figure 5 This application provides a structural diagram of an electronic device. Detailed Implementation
[0045] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0046] Current methods for playing surveillance footage consume significant system resources, leading to high system load and impacting control system performance. Therefore, this application discloses a surveillance footage playback control method that avoids drawing and replacing all graphic elements in the entire screen, reducing system resource consumption, increasing system speed, and thus improving system performance.
[0047] See Figure 1 As shown, an embodiment of the present invention discloses a method for controlling the playback of monitoring screens, including:
[0048] Step S11: Obtain a new monitoring screen to be displayed and trigger a refresh request for the currently displayed target monitoring screen.
[0049] In this embodiment, a refresh cycle can be preset. If the preset screen refresh conditions are met, a new monitoring screen to be displayed is acquired, and then a refresh request for the currently displayed target monitoring screen is triggered to perform a screen refresh operation. It is understood that the refresh cycle can be set according to user needs. For example, a refresh cycle of 5 minutes can be preset, and a new monitoring screen to be displayed is acquired at each refresh time.
[0050] Step S12: By comparing the differences between the monitoring screen to be displayed and the target monitoring screen, the target graphic elements that have changed are identified.
[0051] In this embodiment, after obtaining a new monitoring screen to be displayed, the differences between the new monitoring screen to be displayed and the currently displayed target monitoring screen are compared. For example, the differences between the attribute values of the graphic elements at the same position in the monitoring screen to be displayed and the target monitoring screen can be compared to determine the target graphic elements that have changed in the screen, so that the target graphic elements can be replaced in the future.
[0052] Step S13: Extract the target image data corresponding to the target image element from the monitoring screen to be displayed.
[0053] In this embodiment, target image data corresponding to the target image element is extracted from the monitoring screen to be displayed. It is understood that the target image data data can be parameter data used to draw the target image element.
[0054] Step S14: Draw corresponding graphic elements on the target monitoring screen based on the target graphic element data, and replace the original graphic elements corresponding to the target graphic elements in the target monitoring screen with the drawn graphic elements to obtain the updated target monitoring screen.
[0055] In this embodiment, corresponding graphic elements are drawn on the target monitoring screen based on the target graphic data, and the drawn graphic elements are used to replace the original graphic elements in the target monitoring screen that correspond to the target graphic elements, so as to obtain the updated target monitoring screen.
[0056] It should be noted that during the primitive replacement process, a logical operation is first performed to determine whether a primitive needs to be replaced. Then, the primitive to be replaced is replaced. Considering improving screen refresh and rendering speed as well as system operating efficiency, compared to the traditional method of using a single processor to serially execute the logical operation and the primitive replacement operation, this application uses a method that separates the logical operation and the primitive replacement operation. That is, the logical operation is performed in the background. After the logical operation is completed, a preset signal event is triggered. When the preset processor listens to the preset signal event, the preset processor executes the primitive replacement operation. In this way, the situation where the screen refresh efficiency is low due to excessive resource consumption of logical operation when using a single processor is avoided, thus improving the smoothness of screen refresh and operation.
[0057] Step S15: Display the updated target monitoring screen to complete the response to the refresh request.
[0058] In this embodiment, a new monitoring screen to be displayed is first acquired, and a refresh request for the currently displayed target monitoring screen is triggered. By comparing the differences between the monitoring screen to be displayed and the target monitoring screen, the changed target graphic elements are identified. Target graphic data corresponding to the target graphic elements is extracted from the monitoring screen to be displayed. Then, based on the target graphic data, the corresponding graphic elements are drawn on the target monitoring screen, and the drawn graphic elements replace the original graphic elements corresponding to the target graphic elements in the target monitoring screen to obtain an updated target monitoring screen. The updated target monitoring screen is then displayed to complete the response to the refresh request. In this way, by comparing the differences between the monitoring screen to be displayed and the target monitoring screen to identify the changed target graphic elements and replacing them, the drawing and replacement of all graphic elements in the entire screen is avoided, reducing the consumption of system resources, increasing the system's operating speed, and thus improving system performance.
[0059] The above embodiments introduced a method for refreshing the monitoring screen in a monitoring screen playback control method. This embodiment will specifically introduce a method for switching the monitoring screen.
[0060] See Figure 2 As shown in the figure, an embodiment of the present invention discloses a method for switching monitoring screens, including:
[0061] Step S21: Obtain the preset screen switching request.
[0062] Step S22: Determine whether the screen to be opened corresponding to the preset screen switching request meets the preset cached screen conditions.
[0063] In this embodiment, after a preset screen switching request is obtained, the corresponding screen to be opened is determined according to the preset screen switching request, and it is determined whether the screen to be opened meets the preset cached screen conditions. For example, it can be determined whether the screen to be opened matches the pre-cached screen.
[0064] It should be noted that, after determining whether the screen to be opened corresponding to the preset screen switching request meets the preset cached screen conditions, the process may further include: if the screen to be opened does not meet the preset cached screen conditions, then using preset screen opening tasks to perform screen opening operations on several regions of the screen to be opened. Considering improving the execution speed of screen opening operations on the screen to be opened, the storage structure of the screen can be designed in advance, and then preset screen opening tasks can be used to perform screen opening operations on several regions of the screen to be opened in parallel. It can be understood that the number of preset screen opening tasks can be determined based on the number of CPU (Central Processing Unit) cores in the local system. That is, if the local CPU has 4 cores, the screen to be opened can be divided into 4 parts, and the corresponding parts can be opened simultaneously using preset screen opening tasks to open the screen to be opened.
[0065] Step S23: If the screen to be opened meets the preset cached screen conditions, then the target screen is selected from the cached screens and the target screen is determined as the screen to be opened to complete the screen switching operation; the cached screen is the screen obtained by caching the opened historical screens in advance.
[0066] In this embodiment, previously opened historical frames can be cached in advance to obtain cached frames. If the frame to be opened meets the preset cached frame conditions, the target frame is selected from the cached frames and determined as the frame to be opened to complete the frame switching operation. This scheme avoids temporarily opening files from the disk, reducing disk I / O (Input / Output) operations and deserialization operations, and improving disk lifespan. It is understood that, to avoid excessive system memory consumption from caching, which could slow down the execution speed of frame switching operations, the number of cached frames can be preset, and the least recently used page replacement algorithm can be used to release less frequently used pages and store more frequently used pages in memory.
[0067] It should be noted that determining the target screen as the screen to be opened to complete the screen switching operation specifically includes: determining the target screen as the screen to be opened and performing a screen opening operation on the screen to be opened; and performing a screen closing operation on the screen to be closed corresponding to the preset screen switching request in the background to complete the screen switching operation. Considering further improving the execution speed of the screen switching operation, compared to the traditional operation of first closing the screen to be closed and then opening the screen to be opened, this application can first perform a screen opening operation on the screen to be opened, and then perform a screen closing operation on the screen to be closed in the background. This improves the execution speed of the monitoring screen switching operation.
[0068] In this embodiment, a preset screen switching request is first obtained. Then, it is determined whether the screen to be opened corresponding to the preset screen switching request meets the preset cached screen conditions. If the screen to be opened meets the preset cached screen conditions, a target screen is selected from the cached screens and determined as the screen to be opened to complete the screen switching operation. The cached screens are screens obtained by pre-caching previously opened historical screens. In this way, previously opened historical screens can be cached, and the screen to be opened can be determined from the cached screens, avoiding triggering disk I / O operations and deserialization operations every time a screen switching operation is performed, thereby improving the execution speed of the screen switching operation and improving the system's operating efficiency.
[0069] The above embodiments introduced a method for switching monitoring screens. This embodiment will specifically introduce a method for displaying monitoring screens.
[0070] See Figure 3 As shown in the figure, an embodiment of the present invention discloses a method for displaying monitoring screens, including:
[0071] Step S31: Obtain the preset screen display request.
[0072] Step S32: Determine the target data quota based on the preset screen display request using the preset data request component.
[0073] In this embodiment, considering that in commonly used monitoring screen display methods, in order to reduce the load on the hardware acquisition system, a total limit on the number of monitoring interfaces that can be displayed is often preset. Then, based on the number of screens that can be opened simultaneously, the number of monitoring interfaces that can be displayed in a single screen is determined. However, this method is difficult to meet the actual needs of users. Therefore, this embodiment discloses a monitoring screen display method that decouples the monitoring screen display operation from the data request operation. The data request operation is completed by a preset data request component. Based on the unchanged total limit, the target data quota is requested from the preset data request component according to the amount of data required by the screen to be displayed. In this way, through dynamic management, the problem of not being able to allocate data on demand caused by the fixed allocation method in traditional monitoring systems is avoided, thereby improving the user experience.
[0074] Step S33: Based on the target data quota, perform a screen display operation on the preset display interface for the screen to be displayed corresponding to the preset screen display request.
[0075] In this embodiment, it should be noted that before performing the display operation on the preset display interface for the screen to be displayed corresponding to the preset display request according to the target data quota, it may further include: performing a deserialization operation on the screen to be displayed corresponding to the preset display request. Since commonly used monitoring screen display methods often completely deserialize the screen to be displayed first, and then perform the display operation on the screen according to the data request information stored in the screen, this reduces the execution speed of the display operation. Therefore, this embodiment discloses a monitoring screen display method that utilizes a preset data request component to concurrently execute the screen deserialization operation and the data request operation, thereby improving the execution speed of the monitoring screen display.
[0076] It is understood that after performing the screen display operation on the preset display interface for the screen to be displayed corresponding to the preset screen display request according to the target data quota, it may further include: when the screen to be displayed is closed by the monitoring, the target data quota of the screen to be displayed is determined to a preset fixed value. For example, the preset fixed value can be set to 0, so that when the screen to be displayed is closed, the target data quota occupied by the screen to be displayed can be released.
[0077] In this embodiment, a preset screen display request is first obtained. Then, a preset data request component determines a target data quota based on the preset screen display request. According to the target data quota, the screen to be displayed corresponding to the preset screen display request is displayed on a preset display interface. This approach avoids allocating a fixed amount of data to each screen. By using the preset screen display request, the amount of data corresponding to the screen to be displayed can be dynamically allocated, thereby improving the user experience and the effectiveness of the monitoring system.
[0078] See Figure 4 As shown, this application discloses a monitoring screen playback control device, comprising:
[0079] The refresh request triggering module 11 is used to obtain a new monitoring screen to be displayed and trigger a refresh request for the currently displayed target monitoring screen;
[0080] The target element determination module 12 is used to determine the target elements that have changed by comparing the differences between the monitoring screen to be displayed and the target monitoring screen.
[0081] Data extraction module 13 is used to extract target image data corresponding to the target image element from the monitoring screen to be displayed;
[0082] The screen update module 14 is used to draw corresponding graphic elements on the target monitoring screen based on the target graphic data, and replace the original graphic elements corresponding to the target graphic elements in the target monitoring screen with the drawn graphic elements to obtain the updated target monitoring screen.
[0083] The screen refresh module 15 is used to display the updated target monitoring screen to complete the response to the refresh request.
[0084] In this application, a new monitoring screen to be displayed is first acquired, and a refresh request for the currently displayed target monitoring screen is triggered. By comparing the differences between the monitoring screen to be displayed and the target monitoring screen, the changed target graphic elements are identified. Target graphic data corresponding to the target graphic elements is extracted from the monitoring screen to be displayed. Then, based on the target graphic data, the corresponding graphic elements are drawn on the target monitoring screen, and the drawn graphic elements replace the original graphic elements corresponding to the target graphic elements in the target monitoring screen to obtain an updated target monitoring screen. The updated target monitoring screen is then displayed to complete the response to the refresh request. In this way, by comparing the differences between the monitoring screen to be displayed and the target monitoring screen to identify the changed target graphic elements and replacing them, the drawing and replacement of all graphic elements in the entire screen is avoided, reducing the consumption of system resources, increasing the system's operating speed, and thus improving system performance.
[0085] In some specific embodiments, the monitoring screen playback control device may further include:
[0086] The switch request acquisition unit is used to acquire preset screen switch requests;
[0087] The cached screen condition judgment unit is used to determine whether the screen to be opened corresponding to the preset screen switching request meets the preset cached screen condition.
[0088] The screen switching submodule is used to filter out the target screen from the cached screens if the screen to be opened meets the preset cached screen conditions, and determine the target screen as the screen to be opened to complete the screen switching operation; the cached screen is a screen obtained by caching the opened historical screens in advance.
[0089] In some specific embodiments, the monitoring screen playback control device may further include:
[0090] The screen area opening unit is used to perform screen opening operations on several areas of the screen to be opened using a preset screen opening task if the screen to be opened does not meet the preset cached screen conditions.
[0091] In some specific embodiments, the screen switching submodule may specifically include:
[0092] The screen opening operation execution unit is used to determine the target screen as the screen to be opened, and to perform a screen opening operation on the screen to be opened;
[0093] The screen relationship operation execution unit is used to perform a screen closing operation on the screen to be closed corresponding to the preset screen switching request in the background, so as to complete the screen switching operation.
[0094] In some specific embodiments, the monitoring screen playback control device may further include:
[0095] The display request acquisition unit is used to acquire preset screen display requests;
[0096] The data quota determination unit is used to determine the target data quota based on the preset screen display request using a preset data request component;
[0097] The screen display operation execution unit is used to perform screen display operations on the screen to be displayed corresponding to the preset screen display request on the preset display interface according to the target data quota.
[0098] In some specific embodiments, the monitoring screen playback control device may further include:
[0099] The deserialization execution unit is used to perform deserialization operations on the screen to be displayed corresponding to the preset screen display request.
[0100] In some specific embodiments, the monitoring screen playback control device may further include:
[0101] The data quota modification unit is used to determine the target data quota of the screen to be displayed as a preset fixed value when the screen to be displayed is closed by the monitoring.
[0102] Furthermore, embodiments of this application also disclose an electronic device, Figure 5 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of this application.
[0103] Figure 5 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of this application. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the monitoring screen playback control method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0104] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0105] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0106] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the monitoring screen playback control method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.
[0107] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned disclosed monitoring screen playback control method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.
[0108] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0109] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0110] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0111] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0112] The technical solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for controlling the playback of surveillance footage, characterized in that, include: Acquire new monitoring screens to be displayed and trigger a refresh request for the currently displayed target monitoring screen; By comparing the differences between the monitoring screen to be displayed and the target monitoring screen, the target graphic elements that have changed are identified. Extract the target image data corresponding to the target image element from the monitoring screen to be displayed; Based on the target image data, corresponding image elements are drawn on the target monitoring screen, and the drawn image elements are used to replace the original image elements corresponding to the target image elements in the target monitoring screen to obtain the updated target monitoring screen. The updated target monitoring screen is displayed to complete the response to the refresh request; The method further includes: Get the preset screen switching request; Determine whether the screen to be opened corresponding to the preset screen switching request meets the preset cached screen conditions; If the screen to be opened meets the preset cached screen conditions, then the target screen is selected from the cached screens and the target screen is determined as the screen to be opened to complete the screen switching operation; the cached screens are screens obtained by caching previously opened historical screens in advance; The step of determining whether the screen to be opened corresponding to the preset screen switching request meets the preset cached screen conditions further includes: If the screen to be opened does not meet the preset cached screen conditions, then the preset screen opening task is used to perform screen opening operations on several areas of the screen to be opened. The method further includes: Request the display of the preset screen; The target data quota is determined based on the preset screen display request using a preset data request component; According to the target data quota, the screen to be displayed corresponding to the preset screen display request is displayed on the preset display interface.
2. The monitoring screen playback control method according to claim 1, characterized in that, The step of determining the target screen as the screen to be opened in order to complete the screen switching operation includes: The target screen is determined as the screen to be opened, and a screen opening operation is performed on the screen to be opened; In the background, a screen closing operation is performed on the screen to be closed corresponding to the preset screen switching request to complete the screen switching operation.
3. The monitoring screen playback control method according to claim 1, characterized in that, Before performing the screen display operation on the preset display interface for the screen to be displayed corresponding to the preset screen display request according to the target data quota, the method further includes: Perform a deserialization operation on the screen to be displayed corresponding to the preset screen display request.
4. The monitoring screen playback control method according to claim 1, characterized in that, After performing a screen display operation on the preset display interface for the screen to be displayed corresponding to the preset screen display request according to the target data quota, the method further includes: When the monitoring system performs a screen-closing operation on the screen to be displayed, the target data quota of the screen to be displayed is determined to a preset fixed value.
5. A monitoring screen playback control device, characterized in that, include: The refresh request trigger module is used to obtain new monitoring screens to be displayed and trigger refresh requests for the currently displayed target monitoring screens. The target element determination module is used to determine the target elements that have changed by comparing the differences between the monitoring screen to be displayed and the target monitoring screen; The data extraction module is used to extract target image data corresponding to the target image element from the monitoring screen to be displayed; The screen update module is used to draw corresponding graphic elements on the target monitoring screen based on the target graphic data, and replace the original graphic elements corresponding to the target graphic elements in the target monitoring screen with the drawn graphic elements to obtain the updated target monitoring screen. The screen refresh module is used to display the updated target monitoring screen in order to respond to the refresh request; The device further includes: The switch request acquisition unit is used to acquire preset screen switch requests; The cached screen condition judgment unit is used to determine whether the screen to be opened corresponding to the preset screen switching request meets the preset cached screen condition. The screen switching submodule is used to filter out the target screen from the cached screens and determine the target screen as the screen to be opened if the screen to be opened meets the preset cached screen conditions, so as to complete the screen switching operation; the cached screens are screens obtained by caching the opened historical screens in advance; The device further includes: The screen area opening unit is used to perform screen opening operations on several areas of the screen to be opened using a preset screen opening task if the screen to be opened does not meet the preset cached screen conditions. The device further includes: The display request acquisition unit is used to acquire preset screen display requests; The data quota determination unit is used to determine the target data quota based on the preset screen display request using a preset data request component; The screen display operation execution unit is used to perform screen display operations on the screen to be displayed corresponding to the preset screen display request on the preset display interface according to the target data quota.
6. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the monitoring screen playback control method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, Used to store computer programs, which, when executed by a processor, implement the monitoring screen playback control method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Method and system for playing H265 video in browser
CN115426519A
Information recorder, information recording method, and record medium
JP2004187172A