CN112068923B - Interface updating method and device - Google Patents

Interface updating method and device Download PDF

Info

Publication number
CN112068923B
CN112068923B CN202011259910.3A CN202011259910A CN112068923B CN 112068923 B CN112068923 B CN 112068923B CN 202011259910 A CN202011259910 A CN 202011259910A CN 112068923 B CN112068923 B CN 112068923B
Authority
CN
China
Prior art keywords
interface
area
updating
command
video 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.)
Active
Application number
CN202011259910.3A
Other languages
Chinese (zh)
Other versions
CN112068923A (en
Inventor
王洵
王开学
罗伦文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Zhongke Tongda High New Technology Co Ltd
Original Assignee
Wuhan Zhongke Tongda High New 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 Wuhan Zhongke Tongda High New Technology Co Ltd filed Critical Wuhan Zhongke Tongda High New Technology Co Ltd
Priority to CN202011259910.3A priority Critical patent/CN112068923B/en
Publication of CN112068923A publication Critical patent/CN112068923A/en
Application granted granted Critical
Publication of CN112068923B publication Critical patent/CN112068923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The application provides an interface updating method and device, which are applied to an intelligent traffic system comprising a monitoring terminal and a server, wherein after the monitoring terminal receives an interface updating request which is used for updating a video monitoring interface and comprises an updating command and an updating identifier, a video monitoring list corresponding to the updating identifier is obtained from the server based on the updating command in the interface updating request, and the video monitoring list comprises object identifiers of a plurality of control objects; then, updating each object identifier in the video monitoring list according to the updating command to obtain an updated video monitoring list; determining the area size and the area coordinates of each interface area in the video monitoring interface based on the updated video monitoring list; then, calling a plurality of display areas which correspond to the interface areas in the initial display interface and are divided based on the operation heat of the user; and finally, rendering the display area according to the area size and the area coordinates of each interface area to generate a video monitoring interface display. The method can improve the interface updating efficiency.

Description

Interface updating method and device
Technical Field
The application relates to the field of intelligent traffic, in particular to an interface updating method and device.
Background
With the explosion of the internet, visualization applications developed based on QT (which is a cross-platform C + + framework) are ubiquitous, and involve video surveillance clients.
In a traditional video monitoring client, a display interface of the client usually adopts a control combination mode to display controls, but as the controls must be mutually called through interfaces, once any one control in the interface changes, other controls inevitably change, and especially when a new control is added or deleted in the client interface, the original control state needs to be modified in a large quantity to form a new interface due to high control coupling degree and poor expandability, so that the interface updating efficiency is not high.
Therefore, the current interface updating technology has the technical problem of low interface updating efficiency.
Disclosure of Invention
The embodiment of the application provides an interface updating method and device, which are used for solving the technical problem that the current interface updating efficiency is not high.
In a first aspect, an embodiment of the present application provides an interface updating method, which is applied to an intelligent transportation system, where the intelligent transportation system includes a monitoring terminal and a server, the interface updating method is applied to the monitoring terminal, and the interface updating method includes:
receiving an interface updating request for updating a video monitoring interface, wherein the interface updating request comprises an updating command and an updating identifier, and the updating identifier is an updating area identifier and/or an updating control identifier;
based on an update command in the interface update request, acquiring a video monitoring list corresponding to the update identifier from the server, wherein the video monitoring list comprises object identifiers of a plurality of control objects, and the update command is any one of an addition command, a deletion command, a display command, a hiding command and a moving command;
if the update command is an addition command, acquiring and updating each object identifier in the video monitoring list according to the data type of newly added data in the interface update request to obtain an updated video monitoring list;
if the update command is any one of a delete command, a display command, a hide command and a move command, updating each object identifier in the video monitoring list to obtain an updated video monitoring list;
determining the area size and the area coordinates of each interface area in the video monitoring interface based on the updated video monitoring list;
calling an initial display interface, wherein the initial display interface comprises a plurality of display areas divided based on the operation heat of a user, and the display areas correspond to the interface areas one to one;
rendering a display area in the initial display interface according to the area size and the area coordinates of each interface area to generate a video monitoring interface;
and displaying the video monitoring interface.
In a second aspect, an embodiment of the present application provides an interface updating apparatus, which is applied to an intelligent transportation system, where the intelligent transportation system includes a monitoring terminal and a server, the interface updating apparatus is disposed in the monitoring terminal, and the interface updating apparatus includes:
the video monitoring system comprises a request receiving module, a video monitoring module and a control updating module, wherein the request receiving module is used for receiving an interface updating request for updating a video monitoring interface, the interface updating request comprises an updating command and an updating identifier, and the updating identifier is an updating area identifier and/or an updating control identifier;
the list acquisition module is used for acquiring a video monitoring list corresponding to the update identification from the server based on an update command in the interface update request, wherein the video monitoring list comprises object identifications of a plurality of control objects, and the update command is any one of an addition command, a deletion command, a display command, a hiding command and a moving command;
the list updating module is used for acquiring and updating each object identifier in the video monitoring list according to the data type of the newly added data in the interface updating request if the updating command is an adding command, so as to obtain an updated video monitoring list; if the update command is any one of a delete command, a display command, a hide command and a move command, updating each object identifier in the video monitoring list to obtain an updated video monitoring list;
the area analysis module is used for determining the area size and the area coordinates of each interface area in the video monitoring interface based on the updated video monitoring list;
the interface calling module is used for calling an initial display interface, the initial display interface comprises a plurality of display areas divided based on the operation heat of a user, and the display areas correspond to the interface areas one by one;
the interface generation module is used for rendering the display area in the initial display interface according to the area size and the area coordinates of each interface area to generate a video monitoring interface;
and the interface display module is used for displaying the video monitoring interface.
In a third aspect, an embodiment of the present application further provides an electronic device, including a memory and a processor; the memory stores an application program, and the processor is configured to execute the application program in the memory to perform the operations of any one of the interface updating methods.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium for an intelligent transportation system, where the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in the interface updating method.
The embodiment of the application provides an interface updating method, which can be applied to an intelligent traffic system, wherein the intelligent traffic system comprises a monitoring terminal and a server, the interface updating method is applied to the monitoring terminal, the monitoring terminal can receive an interface updating request for updating a video monitoring interface, the interface updating request comprises an updating command and an updating identifier, and the updating identifier is an updating area identifier and/or an updating control identifier; then based on an update command in the interface update request, acquiring a video monitoring list corresponding to the update identifier from the server, wherein the video monitoring list comprises object identifiers of a plurality of control objects; updating each object identifier in the video monitoring list according to the updating command to obtain an updated video monitoring list; determining the area size and the area coordinates of each interface area in the video monitoring interface based on the updated video monitoring list; calling an initial display interface, wherein the initial display interface comprises a plurality of display areas divided based on the operation heat of the user, and the display areas correspond to the interface areas one to one; and finally, rendering the display area in the initial display interface according to the area size and the area coordinates of each interface area, and generating and displaying the video monitoring interface. By adopting the method, the addition or modification of the control can be carried out in the area where the control is located no matter whether the static interface layout or the dynamic interface management and control are adopted, after the control is added or modified, the area only needs to calculate and adjust the relative position of the area and the window of the interface, the interface can be updated without influencing other areas, the whole interface cannot be directly influenced, the interface stability is stronger, the change and adjustment of the complex interface are simpler and more convenient, and the interface updating efficiency is greatly improved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a scene schematic diagram of an interface updating method provided in an embodiment of the present application.
Fig. 2 is a schematic flowchart of an interface updating method according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a tree structure of a control identifier according to an embodiment of the present application.
Fig. 4 is an interface schematic diagram of a video monitoring interface provided in an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an interface updating apparatus according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. 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 application.
In the embodiment of the application, the smart transportation refers to a transportation-oriented service system which fully utilizes modern electronic information technologies such as internet of things, cloud computing, artificial intelligence, automatic control, mobile internet and the like in the transportation field; the intelligent traffic system is a 'high-efficiency, safe, environment-friendly, comfortable and civilized' intelligent traffic and transportation system established by taking a national intelligent traffic system framework as guidance, greatly improves the management level and the operation efficiency of the urban traffic and transportation system, and provides all-round traffic information service and convenient, efficient, quick, economic, safe, humanized and intelligent traffic and transportation service for travelers.
In the embodiments of the present application, the word "for example" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "for example" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the invention. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and processes are not shown in detail to avoid obscuring the description of the invention with unnecessary detail. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein. Furthermore, the terms "first," "second," and the like in the description and claims of embodiments of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order, and do not necessarily represent sessions conducted in chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein.
It should be noted that, in the interface updating method provided in this embodiment of the present application, since the interface updating method is executed in the monitoring terminals, processing objects of each monitoring terminal exist in the form of data or information, such as time, which is substantially time information, it can be understood that, in the following embodiments, if size, number, position, and the like are mentioned, corresponding data exist so as to be processed by the monitoring terminals, and details are not described herein.
It should be noted that the interface updating method provided in the embodiment of the present application mainly relates to a QT framework, where the QT framework is a cross-platform C + + graphical user interface application development framework developed by QT Company, and abstracts controls and forms, provides a large amount of control libraries for combining to form an interface, but lacks an abstraction mode for separating interface implementation codes and control codes. At present, in a conventional interface updating method implemented based on a QT framework, to acquire an interface required up to date, a plurality of controls are stacked and combined in a window in a static mode, and then a management and control logic is written in the window to dynamically change the layout. However, such an interface is not separated from the management and control logic, and a large number of controls on a form are easily coupled with each other, especially when facing a complex interface, the generation, layout, and maintenance of the interface are very difficult, and modifying the interface layout usually requires synchronous adjustment of the control code, the form, and its related sub-controls, which results in high modifying cost. Therefore, the interface updating method provided by the application aims to divide the complex interface into modular partitions to form mutually independent sub-areas, disperse layout elements by using sub-area bearing controls, and finally combine the sub-areas bearing the controls to form a final display interface. Therefore, only the logics related to the controls in the subareas need to be paid attention to respectively when the interface is updated, the problem of mutual influence caused by association among the controls does not need to be solved, the code complexity is reduced, the interface updating difficulty is simplified, and the interface maintainability and expansibility are improved. Meanwhile, the areas bear controls and are mutually independent, so that dynamic updating of the interface is very convenient, the layout can be changed only by adjusting the positions, sizes, styles and other modes of the areas, and the interface can be adjusted conveniently along with the change of user requirements.
The embodiment of the application provides an interface updating method and an interface updating device, the interface updating method can be applied to an intelligent traffic system, the intelligent traffic system comprises a monitoring terminal and a server, and the interface updating method is applied to the monitoring terminal and is respectively described in detail below.
Referring to fig. 1, fig. 1 is a schematic view of a scene of an interface updating method provided in the embodiment of the present application, where the system may include a monitoring terminal 11 and a server 12, and the monitoring terminal 11 and the server 12 may be connected and communicated through an internet formed by various gateways, such as a wide area network and a local area network, which are not described herein again. It is understood that the monitoring terminal 11 refers to a client device registered and authorized by the intelligent transportation system and having an operation requirement on data and devices in the system, and may specifically include a client for a traffic police, a client for a developer, and the like, and the monitoring terminal 11 may be a device including both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing bidirectional communication on a bidirectional communication link. Such a device may include: the cellular or other communication device, which may have a single line display or a multi-line display or may not have a multi-line display, may specifically be one of a desktop terminal or a mobile terminal, such as a mobile phone, a tablet computer, a notebook computer, etc. The server 12 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, cdn (content Delivery network), big data and an artificial intelligence platform, and the application is not limited herein.
The scene diagram of the intelligent traffic system shown in fig. 1 is only an example, and the intelligent traffic system and the scene described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not constitute a limitation to the technical solution provided in the embodiment of the present invention. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 2, in one embodiment, an interface updating method is provided. The embodiment is mainly illustrated by applying the method to the monitoring terminal 11 in fig. 1. Referring to fig. 2, the interface updating method specifically includes steps S201 to S207, and specifically includes the following steps:
s201, receiving an interface updating request for updating a video monitoring interface, wherein the interface updating request comprises an updating command and an updating identifier, and the updating identifier is an updating area identifier and/or an updating control identifier.
Video monitoring is an important component of a safety precaution system, and with the rapid development of computers, networks, image processing and transmission technologies, video monitoring technologies have been developed. The video monitoring interface is an interface for displaying video monitoring data, and the video monitoring data may be video monitoring data acquired by a front-end camera aiming at a specified object (such as an expressway and a common street), and the front-end camera includes, but is not limited to, an embedded high-definition camera, an industrial personal computer, a high-definition camera and the like, and is in network connection with the monitoring terminal 11. The interface update request is a request for requesting the server 12 to feed back the video surveillance list to update the video surveillance interface. The updating command is a command for requesting to add, delete, display, hide or move one or more internal areas or controls of the video monitoring interface; the update identifier may be an identifier of a certain area or a certain control associated with the area/control to be updated, or may be an identifier of the area/control to be updated. A control is a component with a user interface (visualization component), such as a button, a list box, static text in an edit box or some dialog box, etc. The regions involved in the present embodiment will be described in detail below.
Specifically, the video monitoring interface in this embodiment may be regarded as a window, where the window includes one or more container areas, each container area includes one or more interface areas, and the interface areas may be divided into an operation area, a content display area, a status notification area, and the like according to actual service requirements. The operation area can be used for bearing interactive controls such as buttons, input boxes, date selection controls and pull-down controls, the content display area can be used for bearing display controls such as text boxes, labels, video playing boxes and time display controls, and the state notification area can be used for bearing notification controls such as bubble notifications, message notifications and abnormal notifications. Because each interface area is divided into different types of areas according to business requirements, the different types of interface areas can be used for bearing different types of controls (also called as functional controls, which are controls with specified utility), a complete container area can be obtained after the interface areas bearing the different types of controls are combined, one or more container areas can form a window, and finally a video monitoring interface is obtained. Therefore, under the state of the area assembly architecture, the update to the video monitoring interface may actually be an update to a control, or an update to a certain area (a container area or an interface area), or even in other embodiments, an update to a sub area of the interface area, or a parent area of the container area, and this update manner does not affect the uniformity area/control of the updated area/control, and the areas and the controls are not coupled to each other, so that the update effect is better, and the update efficiency is higher.
More specifically, one video monitoring interface may have one or more interface area controllers corresponding thereto, the interface area controllers are disposed in the monitoring terminal 11, and the interface area controllers may be the interface area controllers corresponding to each interface area, or the interface area controllers corresponding to each container area, specifically set according to actual application requirements. In this embodiment, if it is not explicitly stated, the interface area controller that is a container area is taken as an example for explanation, and the video monitoring interface only has one container area, before only one interface area controller of the video monitoring interface receives an interface update request for updating the video monitoring interface, the monitoring terminal 11 first displays an interface update trigger through its interactive interface or display screen, where the interface update trigger is associated with the video monitoring application, and may be set in the video monitoring interface or be displayed after being triggered by a front operation, including but not limited to updating an icon, updating a popup window, and updating a link. After the video monitoring worker triggers the interface updating trigger, the video monitoring application enters a managed state, the interface of the video monitoring application in the managed state can be adjusted by the video monitoring worker, and the adjustment updating information aiming at the video monitoring interface can be detected by the monitoring terminal 11, including but not limited to dragging information, deleting information, hiding information and displaying information of a certain existing area/control or adding information of a certain area/control to be added.
Further, after the monitor terminal 11 detects the adjustment update information for the video monitor interface, the adjustment update information may be parsed, and an interface update request may be generated based on the parsing result, so as to send the interface update request to the interface area controller of the video monitor interface. For example, if the adjustment update information includes the area identifier of only one container area at present, the monitoring terminal 11 may send the generated interface update request to the interface area controller corresponding to the container area according to the area identifier in the adjustment update information. For another example, when the video monitoring interface includes more than one container area, the adjustment update information should include an area identifier of a certain container area (only the case that the interface area controllers and the container areas are associated with each other in a one-to-one correspondence), or an area identifier of a certain interface area (only the case that the interface area controllers and the interface areas are associated with each other in a one-to-one correspondence), the monitoring terminal 11 analyzes the area identifier in the adjustment update information, and sends the generated interface update request to the interface area controller corresponding to the area identifier.
Furthermore, the adjustment update information for the video monitoring interface should further include an update command and an update identifier, and specific use steps of the update command and the update identifier will be described in detail below.
S202, based on an update command in the interface update request, obtaining a video monitoring list corresponding to the update identifier from the server, where the video monitoring list includes object identifiers of multiple control objects, and the update command is any one of an add command, a delete command, a display command, a hide command, and a move command.
The control object may be an interface region, for example, at least one of an operation region, a content display region, a state notification region, and the like, or may be a function control, for example, at least one of an interaction class control, a display class control, and a notification class control.
Specifically, the interface update request is a request including an update identifier, the server 12 prestores a plurality of video monitoring lists, different video monitoring lists are associated with different identifiers (e.g., an area identifier of a container area, an area identifier of an interface area, a control identifier of a function control, etc.), after receiving the interface update request, the interface area controller further obtains the video monitoring list corresponding to the update identifier from the server 12, where the obtained video monitoring list may include the area identifiers of the plurality of interface areas, may also include the control identifiers of the plurality of function controls, or includes identifiers of other areas/sub-controls. The command type analyzing step related to the present embodiment will be described in detail below.
More specifically, the update identifier in the interface update request currently obtained by the interface area controller may be an area identifier/control identifier already existing in a certain video monitoring list, for example, a parent identifier in a certain video monitoring list, or a child identifier in a certain video monitoring list. The parent-child relationship between control identifiers, the parent-child relationship between region identifiers, and the parent-child relationship between region identifiers and control identifiers are explained in detail for a video monitoring list including a plurality of control identifiers, and are not described herein again. After receiving the interface update request including the update identifier, the server 12 may respond to the request, and perform one-by-one matching between the update identifier included in the request and the parent identifiers of the plurality of pre-stored video monitoring lists until a target identifier consistent with the update identifier is matched, that is, the list corresponding to the target identifier may be used as a currently required list, and further sent to the monitoring terminal 11, so that the monitoring terminal 11 generates a video monitoring interface for displaying to a user based on that the video monitoring list includes the object identifiers of each control object.
If the video monitoring list comprises control identifications of a plurality of functional controls, the control identifications of the functional controls in the video monitoring list can be control identifications with parent-child relationship, the parent-child relationship among the functional controls can be marked by designated bit characters forming the control identifications, for example, a control group taking 'real-time video' as a parent functional control, a control group taking 'equipment management' as a parent functional control, and the like.
For example, referring to fig. 3, the control identifier of the "real-time video" is "1 XX", the control identifier of the "real-time video" sub-control "camera a" is "11X", the control identifier of the "sub-control" camera B "is" 12X ", then the first character" 1 "in the" real-time video "control identifier is the character key associated with the secondary control thereof, the second character" 1 "in the" camera a "control identifier of the secondary control is the character key associated with the tertiary control thereof, and so on, the description is omitted. The control identifier of the device management is "2 XX", the control identifier of the device management sub-control newly added function is "21X", the control identifier of the sub-control deleting function is "22X", the explanation of the real-time video can be referred to, and so on, the control identifiers of the control groups can form a tree structure, and the control identifiers recorded with the parent-child relationship can be used for the monitoring terminal 11 to improve the interface updating efficiency. It can be understood that if the number of the controls of a certain level of control is greater than nine and needs to be marked by two digits, the controls can be replaced by Roman characters or capital and lower-case English letters, so that the situation that the selection of the functional controls is conflicted due to repeated control identification is avoided, and the interface updating efficiency is influenced.
In addition, the parent-child relationship of the area identifier may be the parent-child relationship between the container area and the interface area, for example, if one container area is associated with two interface areas, the area identifier of the container area may be 1XX, the area identifiers of the two interface areas may be 11X and 12X, respectively, and so on; the parent-child relationship between the area identifier and the control identifier may be the parent-child relationship between the interface area and the function control, for example, if one interface area is associated with two function controls, the area identifier of the interface area may be 1XX, the function controls of the two interface areas may be 11X and 12X, respectively, and so on, which is not described again.
S203, if the update command is an addition command, acquiring and updating each object identifier in the video monitoring list according to the data type of newly added data in the interface update request to obtain an updated video monitoring list; and if the update command is any one of a delete command, a display command, a hide command and a move command, updating each object identifier in the video monitoring list to obtain an updated video monitoring list.
Specifically, the updating process is performed on each object identifier in the video monitoring list, and the actual conditions are as follows: (1) the updating mark is an updating area mark, and the updating command is an adding command; (2) the update mark is an update area mark, and the update command is any one of a deletion command, a display command, a hiding command and a moving command; (3) the updating mark is an updating control mark, and the updating command is an adding command; (4) the update identifier is an update control identifier, the update command is any one of a delete command, a display command, a hide command, and a move command, and the attributes of the update identifier are different under different conditions, which will be described in detail below.
In an embodiment, when the update identifier is the update area identifier, if the update command is the add command, before performing update processing on the video monitoring list, it is first required to verify a data type of newly added data in the current interface update request, whether a preset requirement of the video monitoring list to be processed is met, and if the preset requirement is met, the update processing may be performed on each object identifier in the video monitoring list. Unlike the data verification premise of the add command, any one of the delete command, the display command, the hide command, and the move command does not need to perform effective verification of the data type, but only needs to send the current update identifier, i.e., the update area identifier, to the server 12, so that the server 12 directly performs update processing on the video monitoring list. It should be noted that, when the update identifier is an update area identifier and the update command is an add command, the video monitoring list to be processed may include area identifiers of multiple interface areas and may also include control identifiers of multiple function controls, depending on whether the update area identifier is an area identifier of a container area or an area identifier of an interface area, that is, if the update area identifier is an area identifier of only one container area in the interface, the corresponding video monitoring list includes area identifiers of multiple interface areas; and if the updated area identifier is the area identifier of a certain interface area in the container area, the corresponding video monitoring list comprises control identifiers of a plurality of functional controls. Therefore, in an actual application scenario, it can be understood that if an interface area is to be newly added in a container area of an interface at present, an area identifier of the container area and data of the newly added interface area may be encapsulated in an interface update request, and the interface area controller adds the data of the newly added interface area to a video monitoring list of the container area. If a function control is to be added in the interface area, the area identifier of the interface area and the data of the newly added function control can be encapsulated in the interface updating request, and the controller of the interface area adds the data of the newly added function control to the video monitoring list of the interface area. The detailed update processing steps related to the present embodiment will be described in detail below.
In an embodiment, the updating identifier is an update area identifier, and if the update command is an add command, the step of obtaining and updating each object identifier in the video monitoring list according to a data type of newly added data in the interface update request to obtain an updated video monitoring list includes: if the update command is an addition command, acquiring the data type of newly added data in the interface update request; determining the updated area identifier as a container area identifier of the new added data, and acquiring a preset effective data type corresponding to the container area identifier; and if the data type is consistent with the effective data type, updating each object identifier in the video monitoring list to obtain an updated video monitoring list.
Specifically, in the above-mentioned (1) case (the update identifier is an update area identifier, and the update command is an add command), the update area identifier in the interface update request substantially points to a container carrying new added data, and whether the container can successfully carry the new added data and is shown in the interface needs to be verified, whether the data type of the new added data is consistent with a preset valid data type corresponding to the container area identifier is also verified, if so, it indicates that the data type of the new added data is consistent with the data type in the video monitoring list corresponding to the container area identifier, and each object identifier in the video monitoring list can be updated to obtain the updated video monitoring list. The data type determination step of the newly added data and the video monitoring list update processing step related in this embodiment will be described in detail below.
In an embodiment, the step of obtaining a data type of newly added data in the interface update request if the update command is an add command includes: if the update command is an addition command, acquiring new addition data in the interface update request; and determining the data type of the newly added data according to the data characteristics of the newly added data.
Specifically, the data type of the newly added data depends on the data characteristics of the newly added data, and the data characteristics may include an area characteristic or a control characteristic, and specifically may further include a parent/child area characteristic or a parent/child control characteristic. Wherein, the parent level and the child level are related to the special characters preset in the previous stage.
In an embodiment, if the data type is consistent with the valid data type, the step of updating each object identifier in the video monitoring list to obtain an updated video monitoring list includes: if the data type is consistent with the effective data type, generating a new adding identifier of the new adding data based on the new adding data in the interface updating request; and adding the new adding mark into the video monitoring list for updating to obtain an updated video monitoring list.
Specifically, if the data type is consistent with the effective data type, the new added data may be added to the video monitoring list to be processed, but the new added data is not directly added, but a corresponding new added identifier is generated based on the new added data, so that the new added identifier is added to the video monitoring list, update processing of each identifier in the video monitoring list is realized, an updated video monitoring list is obtained, and the number of identifiers of the updated video monitoring list is different from that of the video monitoring list before update by at least one.
In an embodiment, if the update command is any one of a delete command, a display command, a hide command, and a move command, the step of performing update processing on each object identifier in the video monitoring list to obtain an updated video monitoring list includes: if the update command is any one of a delete command, a display command, a hide command and a move command, acquiring an area identifier matched with the update area identifier in the video monitoring list as a target area identifier, wherein the video monitoring list comprises area identifiers of a plurality of interface areas; and updating the target area identification in the video monitoring list based on the updating command to obtain an updated video monitoring list.
Specifically, in the above (2) case (where the update identifier is an update area identifier, and the update command is any one of a delete command, a display command, a hide command, and a move command), it is not necessary to verify the validity of the newly added data in the interface update request, and at this time, because the newly added data is not a command for adding data but an update process is performed on existing data, the update area identifier in the interface update request is the target area identifier to be updated, that is, if the update area identifier in the interface update request is the area identifier of only one container area in the interface, and the update command is a delete command, the video monitoring list corresponding to the area can be directly deleted, and the list content is emptied; if the update area identifier in the interface update request is the area identifier of a certain interface area in the container area, and the update command is hidden, the video monitoring list corresponding to the area can be directly hidden, and the interface displays the function control not included in the list.
Specifically, in the above-mentioned (3) case (the update identifier is the update control identifier, and the update command is the add command), since the update command is the add command, before the updated video monitoring list is obtained, it needs to determine whether to update the video monitoring list according to the data type of the newly added data in the interface update request, and the principle is the same as that in the above-mentioned embodiment. In the case (4) (the update identifier is an update control identifier, and the update command is any one of a delete command, a display command, a hide command, and a move command), the update process may be directly performed on each object identifier in the video monitoring list, and the principle is the same as that in the foregoing embodiment. However, it should be noted that the update identifier in the above embodiment is an update area identifier, so that the content in the video monitoring list may be different in different situations, and the update identifier in this embodiment is an update control identifier, which may determine that the video monitoring list before and after the update includes control identifiers of a plurality of function controls.
And S204, determining the area size and the area coordinates of each interface area in the video monitoring interface based on the updated video monitoring list.
Specifically, the original area size of the interface area may be determined by the display area of the initial presentation interface mentioned below, and the original area size may be relative to the size of the video monitoring interface before updating or may be relative to the size of the monitoring terminal 11. The area coordinates may refer to the coordinates of the container area in the video monitoring interface, and may also refer to the coordinates of the interface area in the video monitoring interface. In addition, the coordinates of the control of the function control in the interface area may also be referred to as control presentation coordinates, which refer to fillable position coordinates of the function control, which are position coordinates relative to the video monitoring interface and not display screen coordinates of the monitoring terminal 11. The control display resources refer to material resources required for loading the functional controls, and include but are not limited to colors, sizes, chartlet styles, border styles and the like.
More specifically, in an actual application scenario, resources required for loading the interface regions/function controls can be further determined, that is, a pre-stored resource list can be read based on the identifiers of the interface regions/function controls, and then the various resource identifiers and the identifiers recorded in the resource list are bound, so that the interface regions/function controls at this time have preliminary display capability and can be loaded by the interface region controller and assist in displaying the video monitoring interface.
In one embodiment, this step includes: determining whether a corresponding control object needs to be loaded in the current data state based on the object identifier in the updated video monitoring list; if yes, determining whether a control object in the video monitoring list is an interface area; and when the control object is an interface area, determining the area size and the area coordinates of each interface area in the video monitoring interface based on the area number of the interface area.
Specifically, the current data state may be a user permission state for triggering updating of the video monitoring interface, that is, the usage permission of part of the video monitoring functions has a direct relationship with the user identity, the permission may be classified by the position grade of the user, or the position type of the user, and the present application is not limited specifically. It should be noted that, after the interface area controller of the monitoring terminal 11 updates each object identifier in the video monitoring list to obtain the updated video monitoring list, the interface area controller does not directly update the video monitoring interface based on the updated video monitoring list, but first determines whether the corresponding control object is allowed to be loaded in the current data state, that is, the user can subsequently operate the corresponding interface area/function control, if so, when the control object is an interface area, the area size and the area coordinates of each interface area in the video monitoring interface are determined based on the area number of the interface area, that is, the container area size of the video monitoring interface is limited, if the number of the controls of each interface area is equal, the area size of each interface area can be equally divided according to the area size, if the number of the controls of each interface area is not equal, the size of the area which is divided equally according to the number of the areas can be further adjusted according to the proportion of the number of the controls. The area coordinates can be sequentially distributed according to the preset arrangement sequence of the interface areas, or can be fixedly selected according to the setting of user requirements.
In one embodiment, the method further comprises: and when the control object is a function control, determining the area size and the area coordinates of the corresponding interface area in the video monitoring interface based on the control number of the function control.
Specifically, when the control object is a function control, the area size and the area coordinates of each interface area in the video monitoring interface may be determined according to the number of the controls of the function control, and then the area size is divided based on different size coefficients, and the determination manner of the area coordinates may refer to the previous embodiment.
S205, calling an initial display interface, wherein the initial display interface comprises a plurality of display areas divided based on the operation heat of the user, and the display areas correspond to the interface areas one to one.
Specifically, the display area of the initial presentation interface is divided based on the operation heat of the user, and the step of acquiring the display area may include: acquiring triggered historical trigger data of each unit area in a test interface within a preset time length, wherein the test interface is a test interface displayed on a screen of a monitoring terminal; and dividing a display interface corresponding to the test interface into at least two display areas with different operation heat degrees according to the historical trigger data. Therefore, the display areas divided based on the operation heat of the user can be obtained, and the initial display interface can be obtained by the display area combination without filling any function control.
More specifically, the test interface may be a blank interface for developing a video monitoring application, or may be a test interface in which the same unit operation area is uniformly distributed, where the unit area is a smallest area that can be operated in the test interface.
The user operation heat degree related to the embodiment of the application is determined by historical trigger data of an area in a preset time length. The preset time period refers to a time period for collecting the historical trigger data, for example, 30 minutes, 2 hours, and the like. It can be understood that the preset time duration in this embodiment may be a time duration accumulated by taking the current computer time as a start time, or a time duration limited by a preset start-stop time. The operation heat level refers to a degree to which the display region is operated, and the operation heat levels of different display regions may be calculated by the number of times of trigger operated per unit time or by the ratio of the number of times of trigger, for example, 20% or 80%. The area referred to herein may be a display area associated with the initial presentation interface referred to below.
And S206, rendering the display area in the initial display interface according to the area size and the area coordinates of each interface area to generate a video monitoring interface.
In particular, rendering is the process of generation from a model, which is a description of a three-dimensional object in a well-defined language or data structure, including information about geometry, viewpoint, texture, etc., to an image.
More specifically, the process of generating the video monitoring interface is actually a process of rendering each display area and then combining the display areas to form the video monitoring interface. Aiming at the rendering of the display area, the area size and the area coordinates of the interface area are actually based, and the interface area needs to be loaded with the control function control correspondingly, so that the updating of the video monitoring interface needs to load the function control to be displayed and complete layout rendering based on the updated video monitoring list of each interface area to obtain the rendered interface area, and then all the interface areas are combined to render the container area, and finally the video monitoring interface is generated. The video monitoring interface updating step according to this embodiment may be actually regarded as a step of generating a new video monitoring interface, which will be described below.
In one embodiment, this step includes: determining a first target function control to be displayed in a target interface area, wherein the target interface area is an interface area which is preset with a control identification associated with a parent function control in each interface area; according to the first target function control, determining a second target function control to be displayed in other interface areas except the target interface area; when a plurality of second target function controls to be displayed in the other interface area are included, sequencing each second target function control according to the parent-child relationship and the operation demand degree of each second target function control; rendering a display area in the initial display interface according to a second target function control to be displayed after sequencing in the other interface area, the control display coordinates and control display resources of the second target function control, and a first target function control to be displayed in the target interface area, the control display coordinates and control display resources of the first target function control; and generating the video monitoring interface based on the initial display interface rendered in the display area.
Specifically, before generating the video monitoring interface, the monitoring terminal 11 needs to determine a target interface area, where the target interface area is an interface area in which control identifiers associated with parent function controls are preset in all interface areas, that is, an interface area configured with control identifiers of root nodes-primary controls in the above-mentioned video monitoring list. As shown in fig. 4, the interface areas required for generating the video monitoring interface are respectively: the method comprises the following steps of firstly, displaying an interface area of a first-level control to be displayed, secondly, displaying a second-level control to be displayed, thirdly and fourthly. The interface area (i) is a target interface area in all the interface areas, after the monitoring terminal 11 determines the target interface area, a first target function control in the target interface area (i) is further determined, and then a default trigger control in the first target function control is determined, where the default trigger control may be preset as the first target function control from left to right in the target interface area (i), or may also be preset as the first target function control at any designated position from left to right in the target interface area (i), and the default trigger control determines a second target function control that needs to be displayed in other interface areas.
Because the functional controls to be loaded and displayed in the target interface region are fixed and the other interface regions need to determine the second target functional controls to be loaded and displayed respectively according to the first target functional control, after the first target functional control in the target interface region is determined, the control identification relationship of the functional controls associated with the first target functional control and the other interface regions respectively can be analyzed, the preset sub-controls belonging to the other interface regions can be determined and used as the second target functional controls to be displayed in the other interface regions, after the monitoring terminal 11 determines the functional controls to be displayed in the interface regions, the management entity of each interface region can be instructed to respectively render the corresponding interface regions according to the preset determined control display coordinates and control display resources, and finally the rendered interface regions can refer to fig. 4, the first target function control in the current determined target interface region I is a real-time video, so the function controls displayed in other interface regions I, III and IV are all sub-controls of the real-time video, the position of each function control in the interface region is determined by a control display coordinate, and the display style of each function control is determined by a control display resource.
Specifically, it has been described above that the control identifier of each function control may be a control identifier having a parent-child relationship, and the parent-child relationship of each function control may be determined by analyzing each control identifier. The operation requirement degree of the function control is determined by historical use frequency data of each function control, the historical use frequency data refers to the frequency number of the function control used in a preset time length, for example, the use times in the past 24 hours are 5, the operation requirement degree refers to the degree of the function control needing to be operated, the operation requirement degrees of different function controls can be calculated according to the operated triggering times in unit time, and can also be calculated according to the triggering times ratio, such as 20% and 80%.
It should be noted that, if a plurality of second target function controls to be displayed in other interface regions are included, the second target function controls need to be sorted first according to the parent-child relationship and the operation demand degree of each second target function control, and then drawing and rendering are performed based on the sorted second target function controls. The processing mode for sequencing each second target function control may be: if the functional controls to be displayed in the corresponding interface region are the same-level controls, such as the secondary controls "camera a" and "camera B" to be displayed in the region of fig. 4, the functional controls can be directly arranged in an ascending order or a descending order according to the operation requirement degree of each functional control; if the functional controls to be displayed in the corresponding interface area are non-peer controls, such as the second-level controls "camera a", "camera B", "new function", "delete function", and the third-level controls "camera a-1", "camera B-1", and "new function name" to be displayed in the area of fig. 4, which may be merged, first, a group arrangement process is performed based on the parent-child relationship of each functional control to be displayed, that is, "camera a", "camera B", "camera a-1", and "camera B-1" are divided into a group, and the group has two subgroups, the arrangement order of which is "camera a", "camera a-1", and "camera B", "camera B-1", and at this time, the operation requirement degree, such as the average operation requirement degree or the total operation requirement degree, of the functional controls in the two subgroups needs to be determined, if the average operation demand degree is selected, when the average operation demand degree of the function control group 1 (the camera A and the camera A-1) is larger than the average operation demand degree of the function control group 2 (the camera B and the camera B-1), arranging the function control group 1 in the area II before the function control group 2 for display, wherein the total arrangement sequence is as follows: "camera A", "camera A-1", "camera B" and "camera B-1". The camera A-1 and the camera B-1 are respectively used as child controls of the camera A and the camera B, and the rendering effect in the area II can be distinguished from a parent control of the camera A and the camera B.
In one embodiment, the step of determining, according to the first target function control, a second target function control to be displayed in an interface region other than the target interface region includes: sequencing each first target function control according to the operation demand degree of the at least two first target function controls; and determining second target function controls to be displayed in other interface areas except the target interface area based on the sorted first target function controls.
Specifically, the above embodiment describes a case where there is only one first target function control, and if there are multiple first target function controls in the first target interface region, which first target function control of the multiple first target function controls needs to be further analyzed, which is a basis for determining the function control to be presented in the other interface regions. In the above embodiment, it has been described that the default trigger control in the first target function control determines the function controls that need to be displayed in other interface regions, and the default trigger control may be preset as the first target function control from left to right in the target interface region (i), or may also be preset as the first target function control at any designated position from left to right in the target interface region (i). Therefore, if the current default trigger control is set as a first target function control of any designated position in the target interface region i from left to right, the plurality of first target function controls need to be sorted first, the sorting bases can be arranged in an ascending order or a descending order according to the operation requirement degree of each first target function control, and the actual application requirements are specifically set, after the sorted first target function controls are obtained, the default trigger control in the target interface region i can be determined according to the preset designated position, and then a second target function control which needs to be displayed in other interface regions is determined.
In one embodiment, the step of determining, based on the sorted first target functionality controls, a second target functionality control to be presented in an interface region other than the target interface region includes: and determining target function controls corresponding to other interface areas except the target interface area as the second target function control to be displayed based on the sorted first target function control, wherein the target function controls are function controls having a parent-child relationship with the first target function control.
Specifically, the technical idea of the step of determining the second target function control to be displayed in the interface area other than the target interface area according to the present embodiment has been described in the foregoing embodiments, and is not described herein again.
And S207, displaying the video monitoring interface.
Specifically, after the interface area controller of the monitoring terminal 11 obtains the video monitoring interface based on the scheme recorded in the above steps, the video monitoring interface can be displayed through the display screen.
The embodiment provides an interface updating method, which is characterized in that an interface updating request including an updating command and an updating identifier for updating a video monitoring interface is received, so that a video monitoring list corresponding to the updating identifier is obtained and updated to realize adjustment and updating of the video monitoring interface, the updating operation does not affect other areas, the whole interface is not directly affected, the interface stability is higher, the change and adjustment of a complex interface are simpler and more convenient, and the interface updating efficiency is greatly improved.
On the basis of the method described in the foregoing embodiment, the present embodiment will be further described from the perspective of the interface updating apparatus 500, please refer to fig. 5, and fig. 5 specifically describes the interface updating apparatus 500 provided in the present embodiment, which may include:
a request receiving module 510, configured to receive an interface update request for updating a video monitoring interface, where the interface update request includes an update command and an update identifier, and the update identifier is an update area identifier and/or an update control identifier;
a list obtaining module 520, configured to obtain, from the server, a video monitoring list corresponding to the update identifier based on an update command in the interface update request, where the video monitoring list includes object identifiers of multiple control objects, and the update command is any one of an add command, a delete command, a display command, a hide command, and a move command;
a list updating module 530, configured to, if the update command is an add command, obtain and update each object identifier in the video monitoring list according to a data type of new data added in the interface update request, to obtain an updated video monitoring list; if the update command is any one of a delete command, a display command, a hide command and a move command, updating each object identifier in the video monitoring list to obtain an updated video monitoring list;
the area analysis module 540 is configured to determine an area size and an area coordinate of each interface area in the video monitoring interface based on the updated video monitoring list;
the interface calling module 550 is configured to call an initial display interface, where the initial display interface includes a plurality of display areas divided based on the user operation heat, and the display areas correspond to the interface areas one to one;
the interface generating module 560 is configured to render the display area in the initial display interface according to the area size and the area coordinates of each interface area, so as to generate a video monitoring interface;
and the interface display module 570 is used for displaying the video monitoring interface.
In an embodiment, the update identifier is an update area identifier, and the list update module 530 is further configured to, if the update command is an add command, obtain a data type of data newly added in the interface update request; determining the updated area identifier as a container area identifier of the new added data, and acquiring a preset effective data type corresponding to the container area identifier; and if the data type is consistent with the effective data type, updating each object identifier in the video monitoring list to obtain an updated video monitoring list.
In an embodiment, the list updating module 530 is further configured to, if the update command is an add command, obtain new add data in the interface update request; and determining the data type of the newly added data according to the data characteristics of the newly added data.
In one embodiment, the list updating module 530 is further configured to generate a new adding identifier of the new added data based on the new added data in the interface updating request if the data type is consistent with the valid data type; and adding the new adding mark into the video monitoring list for updating to obtain an updated video monitoring list.
In an embodiment, the list updating module 530 is further configured to, if the update command is any one of a delete command, a display command, a hide command, and a move command, obtain, as a target area identifier, an area identifier in the video monitoring list, where the area identifier matches the update area identifier, and the video monitoring list includes area identifiers of a plurality of interface areas; and updating the target area identification in the video monitoring list based on the updating command to obtain an updated video monitoring list.
In an embodiment, the area analysis module 540 is further configured to determine whether the corresponding control object needs to be loaded in the current data state based on the object identifier in the updated video surveillance list; if yes, determining whether a control object in the video monitoring list is an interface area; and when the control object is an interface area, determining the area size and the area coordinates of each interface area in the video monitoring interface based on the area number of the interface area.
In an embodiment, when the control object is a function control, the area analysis module 540 is further configured to determine, based on the number of controls of the function control, an area size and area coordinates of a corresponding interface area in the video monitoring interface.
According to the scheme, the interface updating request including the updating command and the updating identification for updating the video monitoring interface is received, so that the video monitoring list corresponding to the updating identification is obtained and updated to realize the adjustment and updating of the video monitoring interface, the updating operation cannot affect other areas, the whole interface cannot be directly affected, the interface stability is stronger, the change and adjustment of the complex interface are simpler and more convenient, and the interface updating efficiency is greatly improved.
For the specific definition of the interface updating device, reference may be made to the above definition of the interface updating method, which is not described herein again. The various modules in the above-described interface update apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Correspondingly, an embodiment of the present application further provides an electronic device, where the electronic device may be a terminal, and an internal structure diagram of the electronic device may be as shown in fig. 6. The electronic device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the electronic device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an interface update method. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
In one embodiment, an electronic device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving an interface updating request for updating a video monitoring interface, wherein the interface updating request comprises an updating command and an updating identifier, and the updating identifier is an updating area identifier and/or an updating control identifier;
based on an update command in the interface update request, acquiring a video monitoring list corresponding to the update identifier from the server, wherein the video monitoring list comprises object identifiers of a plurality of control objects, and the update command is any one of an addition command, a deletion command, a display command, a hiding command and a moving command;
if the update command is an addition command, acquiring and updating each object identifier in the video monitoring list according to the data type of newly added data in the interface update request to obtain an updated video monitoring list;
if the update command is any one of a delete command, a display command, a hide command and a move command, updating each object identifier in the video monitoring list to obtain an updated video monitoring list;
determining the area size and the area coordinates of each interface area in the video monitoring interface based on the updated video monitoring list;
calling an initial display interface, wherein the initial display interface comprises a plurality of display areas divided based on the operation heat of a user, and the display areas correspond to the interface areas one to one;
rendering a display area in the initial display interface according to the area size and the area coordinates of each interface area to generate a video monitoring interface;
and displaying the video monitoring interface.
In one embodiment, the update identifier is an update area identifier, and the processor executes the computer program to further perform the following steps:
if the update command is an addition command, acquiring the data type of newly added data in the interface update request; determining the updated area identifier as a container area identifier of the new added data, and acquiring a preset effective data type corresponding to the container area identifier; and if the data type is consistent with the effective data type, updating each object identifier in the video monitoring list to obtain an updated video monitoring list.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the update command is an addition command, acquiring new addition data in the interface update request; and determining the data type of the newly added data according to the data characteristics of the newly added data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the data type is consistent with the effective data type, generating a new adding identifier of the new adding data based on the new adding data in the interface updating request; and adding the new adding mark into the video monitoring list for updating to obtain an updated video monitoring list.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the update command is any one of a delete command, a display command, a hide command and a move command, acquiring an area identifier matched with the update area identifier in the video monitoring list as a target area identifier, wherein the video monitoring list comprises area identifiers of a plurality of interface areas; and updating the target area identification in the video monitoring list based on the updating command to obtain an updated video monitoring list.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining whether a corresponding control object needs to be loaded in the current data state based on the object identifier in the updated video monitoring list; if yes, determining whether a control object in the video monitoring list is an interface area; and when the control object is an interface area, determining the area size and the area coordinates of each interface area in the video monitoring interface based on the area number of the interface area.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and when the control object is a function control, determining the area size and the area coordinates of the corresponding interface area in the video monitoring interface based on the control number of the function control.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving an interface updating request for updating a video monitoring interface, wherein the interface updating request comprises an updating command and an updating identifier, and the updating identifier is an updating area identifier and/or an updating control identifier;
based on an update command in the interface update request, acquiring a video monitoring list corresponding to the update identifier from the server, wherein the video monitoring list comprises object identifiers of a plurality of control objects, and the update command is any one of an addition command, a deletion command, a display command, a hiding command and a moving command;
if the update command is an addition command, acquiring and updating each object identifier in the video monitoring list according to the data type of newly added data in the interface update request to obtain an updated video monitoring list;
if the update command is any one of a delete command, a display command, a hide command and a move command, updating each object identifier in the video monitoring list to obtain an updated video monitoring list;
determining the area size and the area coordinates of each interface area in the video monitoring interface based on the updated video monitoring list;
calling an initial display interface, wherein the initial display interface comprises a plurality of display areas divided based on the operation heat of a user, and the display areas correspond to the interface areas one to one;
rendering a display area in the initial display interface according to the area size and the area coordinates of each interface area to generate a video monitoring interface;
and displaying the video monitoring interface.
In an embodiment, the update identification is an update area identification, the computer program when executed by the processor further performing the steps of:
if the update command is an addition command, acquiring the data type of newly added data in the interface update request; determining the updated area identifier as a container area identifier of the new added data, and acquiring a preset effective data type corresponding to the container area identifier; and if the data type is consistent with the effective data type, updating each object identifier in the video monitoring list to obtain an updated video monitoring list.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the update command is an addition command, acquiring new addition data in the interface update request; and determining the data type of the newly added data according to the data characteristics of the newly added data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the data type is consistent with the effective data type, generating a new adding identifier of the new adding data based on the new adding data in the interface updating request; and adding the new adding mark into the video monitoring list for updating to obtain an updated video monitoring list.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the update command is any one of a delete command, a display command, a hide command and a move command, acquiring an area identifier matched with the update area identifier in the video monitoring list as a target area identifier, wherein the video monitoring list comprises area identifiers of a plurality of interface areas; and updating the target area identification in the video monitoring list based on the updating command to obtain an updated video monitoring list.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining whether a corresponding control object needs to be loaded in the current data state based on the object identifier in the updated video monitoring list; if yes, determining whether a control object in the video monitoring list is an interface area; and when the control object is an interface area, determining the area size and the area coordinates of each interface area in the video monitoring interface based on the area number of the interface area.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and when the control object is a function control, determining the area size and the area coordinates of the corresponding interface area in the video monitoring interface based on the control number of the function control.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An interface updating method is applied to an intelligent traffic system, the intelligent traffic system comprises a monitoring terminal and a server, the interface updating method is applied to the monitoring terminal, and the interface updating method comprises the following steps:
receiving an interface updating request for updating a video monitoring interface, wherein the interface updating request comprises an updating command and an updating identifier, and the updating identifier is an updating area identifier and/or an updating control identifier;
based on an update command in the interface update request, acquiring a video monitoring list corresponding to the update identifier from the server, wherein the video monitoring list comprises object identifiers of a plurality of control objects, and the update command is any one of an addition command, a deletion command, a display command, a hiding command and a moving command;
if the update command is an addition command, acquiring and updating each object identifier in the video monitoring list according to the data type of newly added data in the interface update request to obtain an updated video monitoring list;
if the update command is any one of a delete command, a display command, a hide command and a move command, updating each object identifier in the video monitoring list to obtain an updated video monitoring list;
determining the area size and the area coordinates of each interface area in the video monitoring interface based on the updated video monitoring list;
calling an initial display interface, wherein the initial display interface comprises a plurality of display areas divided based on the operation heat of a user, and the display areas correspond to the interface areas one to one;
rendering a display area in the initial display interface according to the area size and the area coordinates of each interface area to generate a video monitoring interface;
and displaying the video monitoring interface.
2. The interface updating method according to claim 1, wherein the update identifier is an update area identifier, and the step of obtaining and updating each object identifier in the video monitoring list according to a data type of newly added data in the interface update request if the update command is an add command to obtain an updated video monitoring list comprises:
if the update command is an addition command, acquiring the data type of newly added data in the interface update request;
determining the updated area identifier as a container area identifier of the new added data, and acquiring a preset effective data type corresponding to the container area identifier;
and if the data type is consistent with the effective data type, updating each object identifier in the video monitoring list to obtain an updated video monitoring list.
3. The interface updating method according to claim 2, wherein the step of obtaining the data type of the newly added data in the interface updating request if the updating command is an add command comprises:
if the update command is an addition command, acquiring new addition data in the interface update request;
and determining the data type of the newly added data according to the data characteristics of the newly added data.
4. The interface updating method according to claim 2, wherein the step of updating each object identifier in the video surveillance list to obtain an updated video surveillance list if the data type is consistent with the valid data type includes:
if the data type is consistent with the effective data type, generating a new adding identifier of the new adding data based on the new adding data in the interface updating request;
and adding the new adding mark into the video monitoring list for updating to obtain an updated video monitoring list.
5. The interface updating method according to claim 1, wherein the step of updating each object identifier in the video monitoring list to obtain an updated video monitoring list if the update command is any one of a delete command, a display command, a hide command, and a move command includes:
if the update command is any one of a delete command, a display command, a hide command and a move command, acquiring an area identifier matched with the update area identifier in the video monitoring list as a target area identifier, wherein the video monitoring list comprises area identifiers of a plurality of interface areas;
and updating the target area identification in the video monitoring list based on the updating command to obtain an updated video monitoring list.
6. The interface update method of claim 1, wherein the step of determining the area size and area coordinates of each interface area in the video surveillance interface based on the updated video surveillance list comprises:
determining whether a corresponding control object needs to be loaded in the current data state based on the object identifier in the updated video monitoring list;
if yes, determining whether a control object in the video monitoring list is an interface area;
and when the control object is an interface area, determining the area size and the area coordinates of each interface area in the video monitoring interface based on the area number of the interface area.
7. The interface updating method of claim 6, wherein the method further comprises:
and when the control object is a function control, determining the area size and the area coordinates of the corresponding interface area in the video monitoring interface based on the control number of the function control.
8. An interface updating device is applied to an intelligent traffic system, the intelligent traffic system comprises a monitoring terminal and a server, the interface updating device is arranged in the monitoring terminal, and the interface updating device comprises:
the video monitoring system comprises a request receiving module, a video monitoring module and a control updating module, wherein the request receiving module is used for receiving an interface updating request for updating a video monitoring interface, the interface updating request comprises an updating command and an updating identifier, and the updating identifier is an updating area identifier and/or an updating control identifier;
the list acquisition module is used for acquiring a video monitoring list corresponding to the update identification from the server based on an update command in the interface update request, wherein the video monitoring list comprises object identifications of a plurality of control objects, and the update command is any one of an addition command, a deletion command, a display command, a hiding command and a moving command;
the list updating module is used for acquiring and updating each object identifier in the video monitoring list according to the data type of the newly added data in the interface updating request if the updating command is an adding command, so as to obtain an updated video monitoring list; if the update command is any one of a delete command, a display command, a hide command and a move command, updating each object identifier in the video monitoring list to obtain an updated video monitoring list;
the area analysis module is used for determining the area size and the area coordinates of each interface area in the video monitoring interface based on the updated video monitoring list;
the interface calling module is used for calling an initial display interface, the initial display interface comprises a plurality of display areas divided based on the operation heat of a user, and the display areas correspond to the interface areas one by one;
the interface generation module is used for rendering the display area in the initial display interface according to the area size and the area coordinates of each interface area to generate a video monitoring interface;
and the interface display module is used for displaying the video monitoring interface.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the interface update method of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor for performing the steps of the interface update method according to any one of claims 1 to 7.
CN202011259910.3A 2020-11-12 2020-11-12 Interface updating method and device Active CN112068923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011259910.3A CN112068923B (en) 2020-11-12 2020-11-12 Interface updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011259910.3A CN112068923B (en) 2020-11-12 2020-11-12 Interface updating method and device

Publications (2)

Publication Number Publication Date
CN112068923A CN112068923A (en) 2020-12-11
CN112068923B true CN112068923B (en) 2021-01-29

Family

ID=73655015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011259910.3A Active CN112068923B (en) 2020-11-12 2020-11-12 Interface updating method and device

Country Status (1)

Country Link
CN (1) CN112068923B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867869A (en) * 2021-09-29 2021-12-31 上海哔哩哔哩科技有限公司 Interactive data display method and device
CN114942740B (en) * 2022-07-12 2022-10-21 江苏润和软件股份有限公司 Transformer substation auxiliary equipment online real-time monitoring method and system based on artificial intelligence
CN116149520B (en) * 2023-04-23 2023-07-21 深圳市微克科技有限公司 Intelligent processing method, system and medium for intelligent watch interactive interface

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120005587A1 (en) * 2009-03-24 2012-01-05 Robert P Martin Performing Remoting Operations For Different Regions Of A Display Surface At Different Rates
CN103414950B (en) * 2013-08-16 2016-09-14 天脉聚源(北京)传媒科技有限公司 A kind of method for showing interface, device, Set Top Box and server
CN104679498A (en) * 2013-12-02 2015-06-03 艾默生网络能源有限公司 Configuration monitoring interface generation method and apparatus
CN106293320A (en) * 2015-06-12 2017-01-04 施耐德电器工业公司 Human interface devices and operational approach thereof
US9767564B2 (en) * 2015-08-14 2017-09-19 International Business Machines Corporation Monitoring of object impressions and viewing patterns
CN107517233A (en) * 2016-06-15 2017-12-26 西安艾润物联网技术服务有限责任公司 Parking farm monitoring system and its implementation method
CN110456738B (en) * 2018-05-07 2021-08-27 华中科技大学 Monitoring system and monitoring method thereof
CN111796823A (en) * 2020-06-24 2020-10-20 北京三快在线科技有限公司 Method and device for updating page and displaying page and page maintenance system
CN111752661B (en) * 2020-06-24 2022-09-02 杭州海康威视数字技术股份有限公司 Interface display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112068923A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN112068923B (en) Interface updating method and device
WO2018108059A1 (en) Method and device for processing template data, requesting for template data and presenting template data
CN112019820B (en) Interface generation method and device
CN111814089B (en) Page rendering method and device, rendering server and storage medium
CN110597943A (en) Interest point processing method and device based on artificial intelligence and electronic equipment
WO2015055067A1 (en) Method and apparatus for pushing messages
CN107450903B (en) Information processing method and device
CN111767554B (en) Screen sharing method and device, storage medium and electronic equipment
CN113268226A (en) Page data generation method and device, storage medium and equipment
CN113256345B (en) Self-defining method and device of advertisement putting strategy and computer equipment
CN114741667A (en) Document display method and device and computer readable storage medium
CN113010255A (en) Interaction method and device based on binding session group and computer equipment
CN113407284A (en) Navigation interface generation method and device, storage medium and electronic equipment
KR20240054365A (en) Method and system for providing multi profile
CN109582401B (en) Promotion picture generation method and device, storage medium and computer equipment
CN110324722B (en) Method, device, equipment and storage medium for acquiring data in live broadcast room
CN113971191A (en) Data import method and device and computer readable storage medium
CN112162668A (en) Interface updating method and monitoring terminal
CN115373831A (en) Data processing method, device and computer readable storage medium
CN108881344B (en) Service processing method and device, storage equipment and processing server
CN115604000B (en) Override detection method, device, equipment and storage medium
CN107168978B (en) Message display method and device
CN110648081A (en) Business modeling method and device for computing system and computer system
CN112433821B (en) Method and device for building business model, electronic equipment and medium
CN115002498B (en) Decorative information processing method, device, server 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
GR01 Patent grant
GR01 Patent grant