CN111192191B - Display method, device and readable storage medium - Google Patents

Display method, device and readable storage medium Download PDF

Info

Publication number
CN111192191B
CN111192191B CN201911417540.9A CN201911417540A CN111192191B CN 111192191 B CN111192191 B CN 111192191B CN 201911417540 A CN201911417540 A CN 201911417540A CN 111192191 B CN111192191 B CN 111192191B
Authority
CN
China
Prior art keywords
target object
display
display style
style
target
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
CN201911417540.9A
Other languages
Chinese (zh)
Other versions
CN111192191A (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.)
Longxin Zhongke Xi'an Technology Co ltd
Original Assignee
Longxin Zhongke Xi'an 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 Longxin Zhongke Xi'an Technology Co ltd filed Critical Longxin Zhongke Xi'an Technology Co ltd
Priority to CN201911417540.9A priority Critical patent/CN111192191B/en
Publication of CN111192191A publication Critical patent/CN111192191A/en
Application granted granted Critical
Publication of CN111192191B publication Critical patent/CN111192191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a display method, a display device and a readable storage medium, wherein the display method comprises the following steps: acquiring a network data packet of position information and attribute information corresponding to a target object of a target area, if the target object is determined to appear for the first time, determining and configuring a display style of the target object according to a pre-established display style set, then calling a rendering engine, generating a first rendering instruction according to the display style of the target object, wherein the first rendering instruction is used for indicating a display card to render according to the display style of the target object. When the target state is displayed, the corresponding display style is configured according to the requirement in the pre-created display style set for the target object which appears for the first time, and the displayed target object is subjected to differential processing according to the network data packet, so that only the variable data is updated, and the resource consumption of the GPU and the CPU in the target state display process is reduced.

Description

Display method, device and readable storage medium
Technical Field
The present invention relates to the field of visualization technologies, and in particular, to a display method, a display device, and a readable storage medium.
Background
With the development of visualization technology, people can observe the states of a large number of target objects through a display interface, for example, the states of the target objects in a target area are displayed on a display in the form of instant drawing icons. Since the visualization technology makes the observed object more intuitive and visual, the visualization technology is widely used in various technical fields, such as: application of a visualization technology in a geographic information system, visual display of a motion trail of a dynamic target object and the like. With the continuous development of visualization technology, the demand for displaying the target state is also increasing.
In the prior art, when the state of each target object in the target area needs to be displayed, a display style corresponding to each target object needs to be created in a simulation mode, and then rendering is performed according to the display style of each target object, so that the state of the target object is displayed in the display interface.
When a large number of target objects exist in the target area, the display patterns corresponding to the target objects are required to be simulated and created, and the display patterns corresponding to the target objects are updated, so that the workload of the work is large, the time consumption is long, the resource consumption of a Central Processing Unit (CPU) and a Graphics Processing Unit (GPU) is large, and the processing efficiency is low.
Disclosure of Invention
The invention provides a display method, a display device and a readable storage medium, which are used for reducing the resource consumption of a CPU (Central processing Unit) and a GPU (graphics processing Unit) and improving the display processing efficiency of target objects when the number of the target objects is large in the visual display process.
In a first aspect, the present invention provides a display method, the method comprising:
acquiring a network data packet, wherein the network data packet comprises position information and attribute information corresponding to one or more target objects in a target area;
According to the network data packet, if the target object is determined to appear for the first time, determining and configuring a display style of the target object according to a pre-created display style set, wherein the display style comprises each graphic element corresponding to the target object and display positions corresponding to the graphic elements in a display interface respectively, attribute values of the graphic elements corresponding to the target object are determined according to attribute information of the target object, and display positions corresponding to the graphic elements in the display interface are determined according to position information of the target object;
and calling a rendering engine, generating a first rendering instruction according to the display style of the target object, wherein the first rendering instruction is used for indicating a display card to render according to the display style of the target object, and displaying the state of the target object in a display interface.
Optionally, the matching is performed according to the identity identifier corresponding to the target object and the index corresponding to each display style in the pre-created display style set, and the successfully matched display style is determined as the display style of the target object;
and configuring the display positions of the primitives corresponding to the display patterns in a display interface according to the position information of the target object.
Optionally, the method further comprises:
and if the target object is determined not to appear for the first time, performing differential processing according to the position information and the attribute information corresponding to the target object so as to update the display style of the target object stored in the display card.
Optionally, the performing differential processing according to the position information and the attribute information corresponding to the target object to update the display style of the target object includes:
updating the display style corresponding to the target object according to the position information and the attribute information corresponding to the target object;
and calling a rendering engine, and generating a second rendering instruction according to the updated display style corresponding to the target object stored in the display card, wherein the second rendering instruction is used for indicating the display card to render according to the updated display style corresponding to the target object so as to update the state of the target object in the display interface.
Optionally, each primitive corresponding to the display style includes: any one or combination of icons, signage, leads, history points.
Optionally, the method further comprises:
acquiring a display style updating instruction, and updating the display style of a target object according to the display style updating instruction, wherein the display style updating instruction is used for indicating to update the display style corresponding to the target object.
Optionally, the display style update instruction is configured to instruct to update at least one of: attribute values of icons of the target objects, signage attribute values of the target objects and the attribute value of the guide line corresponding to the target object, the text color in the display style, the size and the number of the history points.
In a second aspect, an embodiment of the present invention provides a display apparatus, including:
the acquisition module is used for acquiring a network data packet, wherein the network data packet comprises position information and attribute information corresponding to a target object;
the first processing module is used for determining and configuring a display style of the target object according to a preset display style set if the target object is determined to appear for the first time according to the network data packet, wherein the display style comprises each graphic element corresponding to the target object and display positions corresponding to the graphic elements in a display interface, attribute values of the graphic elements corresponding to the target object are determined according to attribute information of the target object, and display positions corresponding to the graphic elements in the display interface are determined according to position information of the target object;
The second processing module is used for calling a rendering engine, generating a first rendering instruction according to the display style of the target object, and the first rendering instruction is used for indicating a display card to render according to the display style of the target object and displaying the state of the target object in a display interface.
In a third aspect, an embodiment of the present invention provides a display device, including: memory, processor, and computer program instructions;
the memory stores the computer program instructions;
the processor executes the computer program instructions to perform the display method of any of the first aspects.
In a fourth aspect, an embodiment of the present invention provides a storage medium, including: a program;
the program, when executed by a processor, is configured to perform the display method according to any one of the first aspects.
In a fifth aspect, embodiments of the present invention further provide a program product comprising a computer program stored in a readable storage medium, the computer program being readable from the readable storage medium by at least one processor of the display apparatus, the at least one processor executing the computer program causing the display apparatus to perform the display method according to any one of the first aspects.
The embodiment of the invention provides a display method, a device and a readable storage medium, wherein a network data packet comprising position information and attribute information corresponding to a target object of a target area is obtained, if the target object is determined to appear for the first time according to the network data packet, a display style of the target object is determined and configured according to a display style set created in advance, the display style comprises each graphic element corresponding to the target object and display positions corresponding to the graphic elements in a display interface respectively, the attribute value of each graphic element corresponding to the target object is determined according to the attribute information of the target object, and the display positions corresponding to the graphic elements are determined according to the position information of the target object; and then, calling a rendering engine, and generating a first rendering instruction according to the display style of the target object, wherein the first rendering instruction is used for indicating the display card to render according to the display style of the target object. According to the method provided by the embodiment of the invention, aiming at the target object which appears for the first time, the corresponding display style is configured according to the requirement in the pre-created display style set, the displayed target object is subjected to differential processing according to the network data packet, and only the variable data corresponding to the displayed target object is updated, so that the resource consumption of the GPU and the CPU in the display process of the target object is reduced, and the processing efficiency of the display aiming at the target object is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to the drawings without inventive effort to a person skilled in the art.
FIG. 1 is a schematic of a display interface;
fig. 2 is a schematic view of an application scenario of the display method provided by the present invention;
FIG. 3 is a frame diagram of a display system provided by the present invention;
FIG. 4 is a flowchart of a display method according to a first embodiment of the present invention;
FIG. 5 is a flowchart of a second embodiment of a display method according to the present invention;
fig. 6 is a schematic structural diagram of a display device according to a first embodiment of the present invention;
fig. 7 is a schematic structural diagram of a second embodiment of a display device according to the present invention;
fig. 8 is a schematic structural diagram of a display device according to a third embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Terms related to the embodiment of the present invention will be explained in detail, and may be understood with reference to fig. 1:
the primitives: also referred to as a graphic primitive, is a scene object primitive, which is a graphic entity that forms an object or other complex, e.g., a dot, line, surface, pattern, are primitives.
Icon: is a computer graphic having a meaning explicitly referred to. In the embodiment of the invention, the icon corresponds to an image and is used for representing the target object. Illustratively, as shown in FIG. 1
Figure BDA0002351573890000052
I.e., an "icon" of the target object.
Label(s): the sign board with the sign can be provided with contents such as characters, patterns and the like, and can play a role in indication. Illustratively, in FIG. 1
Figure BDA0002351573890000051
The upper region including text content is the target pairLike "signage". In some cases, a border may be provided for the sign, and the color of the border, the width of the border line, etc. may be set as desired.
Finger lead wire: to connect the icon and the label, the association relationship of the icon and the label is indicated.
Fig. 2 is a schematic diagram of an application scenario of the display method provided by the present invention. Fig. 3 is a schematic structural diagram of a display system according to the present invention.
In the scenario shown in fig. 2, a network device 200, a display system 201, and at least one target object 203 are included.
The network device 200 is configured to receive and buffer data sent by at least one target object 203 in the target area, and send the obtained data to the display system 201; the display system 201 is configured to update a display style of each target object in the display interface according to the data packet sent by the network device 200. Wherein the target area is the area to be monitored.
The display system 201 may include: a data producer 21, a data caching device 22, and a visualizer 23; specifically, the data producer 21 can receive the data of the target object 203 transmitted by the network device 200, and then the data caching device 22 caches the data obtained by the data producer 21 from the network device 200, and the visualizer 23 obtains the data corresponding to the target object from the data caching device 22, and sets and updates the display style of the target object according to the data.
If the data producer 21 communicates with the network device 200 and the data caching device 22 frequently, the performance of the display system 201 is reduced, and therefore, the data producer 21 generally packages the data of the target objects 203 with a preset number, which may be configured by a user or predefined, and sends the packaged data to the data caching device 22.
Referring to fig. 3, the display system 201 includes a data producer 21, a data caching device 22, and a visualizer 23, and in some cases, the data caching device 22 may include a trace data caching device 220 and a history point data caching device 221, and the visualizer 23 may include a trace visualizer 230 and a history point visualizer 231.
The track data caching device is used for caching track data of a target object, wherein the track data of the target object can comprise history points corresponding to a plurality of different times and position information of the target object at the current moment in a preset time period; the history point data caching device is used for caching history point data of the target object, wherein the history point data is position information of the target object at a history moment.
The track visualizer updates the track of each target object according to the track data in the track data caching device; when the track visualizer updates the track of each target object, the display position of the icon of the target object on the display interface can be set according to the position of the target object at the current moment, and the display position of the label of the target object on the display interface can be set according to the relative position relation between the icon of the target object and the label; the history point visualizer updates the history points of the respective target objects according to the history point data of the respective target objects in the history point data caching device.
Specifically, the data producer 21 acquires trajectory data and history point data of at least one target object 203 in the target area from the network device 200, the data producer 21 distributes the acquired data, the data producer 21 specifically sends the trajectory data to the trajectory data caching device 220, and the history point data to the history point data caching device 221; the track visualizer 230 acquires track data of the target object from the track data caching device 220, and sets and updates a track display style corresponding to the target object according to the track data of the target object; the history point visualizer 231 acquires the history point data of the target object from the history point data caching device 221, and sets and updates the history point display style corresponding to the target object according to the history point data of the target object.
In the prior art, when a large number of target objects exist in a display system, a visualizer needs to set and update display modes of all the target objects, so that the workload is large, the time consumption is long, the resource consumption of a Central Processing Unit (CPU) and a Graphics Processing Unit (GPU) is large, and the processing efficiency is low.
Aiming at the problems in the prior art, the embodiment of the invention provides a display method, which improves the processing efficiency of a display device and reduces the resource consumption of a CPU and a GPU. The display method provided by the invention is described in detail below through several specific embodiments.
Fig. 4 is a flowchart of a display method according to a first embodiment of the present invention. The execution body of the display method provided by the embodiment of the invention can be the display device provided by the embodiment of the invention, and the display device can be realized by any software and/or hardware mode, wherein the display device can be integrated in a display system or can be independently arranged.
The display device may be, for example, a smart phone, a portable electronic device, a computer, a server, or the like, or may be part of the above device. In this embodiment, a display device is taken as an example of an execution body.
As shown in fig. 4, the method of the present embodiment includes:
s401, acquiring a network data packet.
The network data packet may include information such as location information and attribute information corresponding to one or more target objects in the target area. The network data packet may include location information and attribute information corresponding to one target object in the target area, or may include location information and attribute information corresponding to a plurality of target objects in the target area.
Illustratively, the location information corresponding to the target object may be latitude and longitude information, where the location information may be acquired by a location module (or may also be referred to as a location sensor) of the target object, for example, the location module may be a Global Positioning System (GPS) module, or may be another module capable of acquiring the location information of the target object, which is not limited in this embodiment of the present invention. The display device can determine the display position of each graphic element in the display mode of the target object in the display interface according to the position information corresponding to the target object.
For example, the attribute information corresponding to the target object may be an object category attribute, an emphasis attribute, and the like. The object category attribute is used for indicating a category to which the target object belongs; the key attribute is used for indicating the importance degree of the target object, in practical application, the object class and the importance level of the target object can be preset for all the target objects in the display system, and when the target object sends data to the network device, the information of the object class and/or the importance level (key attribute) of the target object is also sent to the network device. In this scheme, the attribute information of the target object may be used to determine the kind of primitives included in its display style, the number of primitives, and the attribute value of the primitives.
In one possible implementation manner, the target object in the target area sends its own position information, attribute information, other state information and other data to the network device, the network device can process and cache the received data, and the display device can acquire the position information, attribute information and other state information corresponding to one or more target objects in the target area from the network device.
By way of example, other status information of the target object referred to herein may include speed information, pose information, whether a fault has occurred, and the like of the target object. Of course, other state information of the target object in the embodiment of the present invention is not limited to the foregoing example, and may also include other state information.
S402, judging whether the target object appears for the first time according to the network data packet.
For each target object included in the network data packet, the display device determines whether the target object appears for the first time, if it is determined that the target object appears for the first time, S403 is executed, and if it is determined that the target object does not appear for the first time, S403' is executed.
In one possible implementation manner, the attribute information corresponding to the target object includes an identity identifier corresponding to the target object, the display device matches the identity identifier corresponding to the target object with the displayed identity identifier of the target object, if the matching is unsuccessful, the target object is determined to appear for the first time, and a corresponding display style is created for the target object appearing for the first time, that is, S403 is executed; if the matching is successful, determining that the target object and the displayed target object which is successfully matched are the same object, and updating the state of the target object in the display interface according to the data in the network data packet without re-creating a corresponding display style for the target object, namely executing S403'.
The identity corresponding to the target object may be an identity ID of the target object, or a device number, or may also be other identities of the target object, which is not limited in the embodiment of the present invention, and in the embodiment of the present invention, the identity only needs to be capable of uniquely identifying the target object.
S403, determining and configuring the display style of the target object.
Wherein, each graphic primitive corresponding to the display style comprises: any one or combination of icons, signage, leads, history points. The specific meaning of the icon, the label and the guide wire is referred to in the above detailed description, and will not be repeated here.
In the embodiment of the invention, the attribute information of the target object can indicate the identity of the target object. For example, when the attribute information of the target object includes an object category attribute, the object category to which the target object belongs may be determined according to the object category attribute, and in practical application, different types of target objects may correspond to different display styles, so that the display style of the target object may be determined according to the object category of the target object. For example, when the attribute information of the target object further includes a key attribute, the importance degree of the target object may be determined according to the key attribute, and in practical application, the display styles corresponding to the target objects with the same object category but different importance degrees may have differences, so that the display style of the target object is determined according to the object category attribute and the key attribute of the target object.
One possible implementation manner may first match, according to attribute information of a target object, an index corresponding to each display style in a pre-created display style set, and determine a successfully matched display style as a display style of the target object.
The pre-created display style set can be created according to the types, the number and the attribute information of the target objects of the target area when the display system is initialized; specifically, when creating a display style set, each primitive in the primitive set is used to combine, thereby defining different display styles. Wherein the primitive set may include the same number of initial primitives as the number of target objects, the initial primitives may include any one or a combination of icons, labels, points, lines, etc., and each initial primitive may correspond to an initial default value; then, setting one or more indexes for each target object of the target area, wherein the indexes can be attribute information of the target object; thereafter, a display style may be configured for the target object from among the pre-created set of display styles based on an index of the target object (e.g., attribute information of the target object) and an index of each display style in the pre-created set of display styles.
In some cases, the pre-created display style set may further include a default display style, and if some target objects with unknown attribute information appear in the display system, the default display style may be configured to the target objects with unknown attribute information.
In the pre-created display style set, target objects with different attributes, the pre-created display styles have a certain difference, and each display style corresponds to one or more indexes, for example, the indexes can be attribute information of the target objects. The display styles of the target objects of different attributes are different, and the display styles of the target objects of the same attribute are the same. And if the display style is not matched with the display style for the target object according to the pre-created display style set, setting the display style of the target object as a default display style.
The display style of the target object determined in the above manner may include only an icon, or may include an icon and a sign, or may further include an icon, a sign, and a finger line, or may further include an icon, a history point, and the like, as examples. For example, in the display system shown in fig. 3, the track display style of the target object includes: icons, signs, and leads; the history point display style of the target object includes: icons, signs, and history points, wherein the number of history points may be user-entered or predefined. It should be noted that, the types and the number of the primitives included in the display styles corresponding to the target objects with different attributes may be set according to the actual requirements, which is not limited in the embodiment of the present invention.
And then, according to the position information of the target object, configuring the display positions of the primitives corresponding to the display style. Specifically:
mapping longitude and latitude information of the target object to a display interface, determining display positions of one or more primitives of a display style of the target object in the display interface, and then determining display positions of other primitives of the display style in the display interface according to relative position relations between the other primitives of the display style and the one or more primitives with determined display positions.
In the display system shown in fig. 3, for example, the track display style includes an icon, a label and a guide line, then the longitude and latitude information of the target object is mapped to the display interface, the display position of the icon in the display style of the target object in the display interface is determined, and then the display positions of the label and the guide line in the display style of the target object in the display interface are determined according to the relative position relationship between the icon and the label in the display style and the relative position relationship between the icon and the guide line.
In the display system shown in fig. 3, for example, the history point display style includes an icon, a label and a history point, then the latitude and longitude information of the target object is mapped to the display interface, the display position of the icon in the display style of the target object in the display interface is determined, and then the display positions of the label and the history point in the display style of the target object in the display interface are determined according to the relative position relationship between the icon and the label in the display style and the relative position relationship between the icon and the history point.
In this step, by creating the display style of the target object with rated capacity in advance, when a new target object appears, one of the display styles set created in advance is allocated to the new target object, so that the display style of the target object appearing for the first time is prevented from being configured in a dynamic manner, and if a large number of target objects appearing for the first time exist, the processing efficiency of the display style configured for the large number of target objects can be effectively improved.
S403', performing differential processing according to the position information and the attribute information corresponding to the target object so as to update the display style of the target object.
In one possible implementation manner, updating the display style corresponding to the target object in the memory of the display device according to the location information and the attribute information corresponding to the target object specifically includes updating the attribute values of one or more primitives of the display style of the target object in the memory of the display device.
Illustratively, according to the position information and the attribute information corresponding to the target object, the display position of each primitive corresponding to the display style of the target object in the display interface is updated, and the text content in the label in the display style of the target object is updated.
The updating the display position of each primitive corresponding to the display style of the target object in the display interface comprises the following steps: if the position of the target object is determined to be changed, according to the position information of the target object in the network data packet, the display position of the icon in the display pattern of the target object in the memory in the display interface is updated, and according to the relative position relation between the icon in the display pattern and other graphic elements, the display position of other graphic elements in the display pattern of the target object in the memory in the display interface is updated.
The updating the text to be displayed in the label in the display style of the target object in the memory comprises the following steps: the signage of the display style of the target object may be divided into a plurality of regions, such as a static region and a dynamic region, wherein an attribute item in the static region (i.e., text content in the static region) may not be updated, and text content in the dynamic region may be updated according to the network data according to a preset period. And if the attribute values corresponding to the one or more attribute items in the dynamic region of the label of the display style of the target object are determined to change, updating the attribute values corresponding to the one or more attribute items in the label of the display style of the target object in the display card. Wherein, the attribute items in the label of the display style of the target object, the attribute values of which are unchanged, are not updated.
S404, calling a rendering engine, and generating a rendering instruction according to the display style of the target object.
Wherein the step comprises rendering for the first appearing target object and rendering for the displayed target object. Specifically:
and for the target object which appears for the first time, after determining and configuring the display style of the target object, calling a rendering engine, copying the data of the display style of the target object in the memory of the display device into the display memory of the display card, generating a first rendering instruction, and indicating the display card to render the target object which appears for the first time according to the first rendering instruction so as to display the state of the target object in the display interface.
And updating the display pattern of the displayed target object in the memory of the display device, calling a rendering engine, copying the data of the display pattern of the target object in the memory of the display device into the video memory of the display card, generating a second rendering instruction, and indicating the display card to render the displayed target object according to the second rendering instruction so as to display the latest state of the displayed target object in the display interface.
In this embodiment, a network data packet including location information and attribute information corresponding to a target object in a target area is obtained, if it is determined that the target object appears for the first time, a display style of the target object is determined and configured according to the network data packet, where the display style includes each primitive corresponding to the target object and display positions corresponding to the primitives in a display interface, attribute values of the primitives corresponding to the target object are determined according to the attribute information of the target object, the display positions corresponding to the primitives are determined according to the location information of the target object, and then a rendering engine is invoked to generate a first rendering instruction according to the display style of the target object, where the first rendering instruction is used to instruct a graphics card to render according to the display style of the target object. According to the method provided by the embodiment, aiming at the target object which appears for the first time, the display style is configured according to the display style set which is created in advance and the display style is configured according to the requirement; and aiming at the displayed target object, carrying out differential processing according to the network data packet, and only updating variable data corresponding to the displayed target object, thereby reducing the resource consumption of the GPU and the CPU in the display process and improving the processing efficiency of the display device.
Fig. 5 is a flowchart of a second embodiment of a display method according to an embodiment of the present invention. As shown in fig. 5, the method of this embodiment further includes, after S404, on the basis of the embodiment shown in fig. 4:
s405, acquiring a display style update instruction.
The display style updating instruction is used for indicating a display style corresponding to the updating target object. I.e. attribute values for indicating one or more primitives in the display style corresponding to one or more target objects in the update target region. For example, the display style update instruction may be a display style for indicating to update a target object of a certain object class, or may be a display style for indicating to update a target object of a certain emphasis degree.
If each primitive corresponding to the display style includes: the display style update instructions are used for indicating to update at least one of the following when any one or combination of icons, signs, guide wires and history points is used: the method comprises the steps of enabling an icon of a target object to have an attribute value, enabling a label of the target object to have an attribute value, enabling a guide line corresponding to the target object to have an attribute value, enabling text colors in a display style to have a size and number of history points.
One possible implementation manner is to firstly determine a target object needing to be updated in display style, and then obtain a display style update instruction of the target object needing to be updated in display style, where the display style update instruction may be input manually by a user or may be input by voice of the user, and the input mode of the display style update instruction is not limited in the embodiment of the present invention; the display style update instruction is used for indicating at least one of an attribute value of an icon of the target object, a label attribute value of the target object, an attribute value of a guide line corresponding to the target object, a text color in a display style, a size and a number of history points.
In another possible implementation manner, firstly, a display style corresponding to a display style update instruction is configured according to the display style update instruction, then, a target object adopting the display style corresponding to the display style update instruction is determined, and then, the display style of the determined target object in the display interface is updated to the display style corresponding to the display style update instruction.
The display style updating instruction may be used to update one or more primitives in the display style of all target objects in the display system, or may also be used to update one or more primitives in the display style of a certain type of target object in the display system. That is, the display style update instruction herein may be used for global update as well as local update.
For example, when the display style of the target object needs to be updated, the display device may provide a display style configuration interface for a user to operate, and the user may configure and update the display style of the target object by operating different keys on the display style configuration interface.
S406, updating the display style of the target object according to the display style updating instruction.
Specifically, according to the display style updating instruction and the updated display style of the target object, a corresponding rendering instruction is generated, and the display card is instructed to render according to the corresponding rendering instruction, so that the latest state of the target object is displayed in the display interface.
In this embodiment, if the display style of the target object needs to be updated, the user can simply and conveniently perform the simple operation on the display style configuration interface.
In the above embodiment of the present invention, the display device is only used for managing and configuring the display style of the target object in the target area in the display system, and is not responsible for managing and configuring the external attribute data of the display style, so that the development of the display system is more flexible and free.
Fig. 6 is a schematic structural diagram of a display device according to a first embodiment of the present invention. Referring to fig. 6, a display device 600 provided in this embodiment includes: an acquisition module 601 and a processing module 602.
The acquiring module 601 is configured to acquire a network data packet, where the network data packet includes location information and attribute information corresponding to a target object.
The processing module 602 is configured to determine and configure, according to the network data packet, a display style of the target object according to a pre-created display style set if the target object is determined to appear for the first time, where the display style includes each primitive corresponding to the target object and a display position corresponding to each primitive in a display interface, an attribute value of each primitive corresponding to the target object is determined according to attribute information of the target object, and a display position corresponding to each primitive in the display interface is determined according to position information of the target object;
The processing module 602 is further configured to invoke a rendering engine, generate a first rendering instruction according to the display style of the target object, and instruct a graphics card to render according to the display style of the target object, and display the state of the target object in a display interface.
In some possible designs, the processing module 602 is specifically configured to match, according to attribute information corresponding to the target object and indexes corresponding to each display style in a pre-created display style set, and determine a display style that is successfully matched as a display style of the target object; and configuring the display positions of the primitives corresponding to the display patterns in a display interface according to the position information of the target object.
In some possible designs, the processing module 602 is further configured to perform differential processing according to the location information and the attribute information corresponding to the target object to update the display style of the target object if it is determined that the target object does not appear for the first time.
In some possible designs, the processing module 602 is specifically configured to update a display style corresponding to the target object according to the location information and the attribute information corresponding to the target object; and invoking a rendering engine, and generating a second rendering instruction according to the updated display style corresponding to the target object, wherein the second rendering instruction is used for indicating the display card to render according to the updated display style corresponding to the target object so as to update the state of the target object in a display interface.
In some possible designs, displaying each primitive corresponding to a style includes: any one or combination of icons, signage, leads, history points.
In some possible designs, the obtaining module 601 is further configured to obtain a display style update instruction, and the processing module 602 is further configured to update a display style of a target object according to the display style update instruction, where the display style update instruction is used to instruct to update a display style corresponding to the target object.
In some possible designs, the display style update instructions are to instruct updating of at least one of: attribute values of icons of the target objects, signage attribute values of the target objects and the attribute value of the guide line corresponding to the target object, the text color in the display style, the size and the number of the history points.
The display device provided in this embodiment may be used to implement the technical scheme of any of the method embodiments in fig. 4 to 5, and its implementation principle and technical effects are similar, and are not repeated here.
Fig. 7 is a schematic structural diagram of a second embodiment of a display device according to an embodiment of the present invention. Referring to fig. 7, a display device 700 provided in this embodiment includes: memory 701, processor 702, and computer program instructions.
The memory 701 may be a separate physical unit and may be connected to the processor 702 via a bus 703. The memory 701 and the processor 702 may be integrated, implemented by hardware, or the like.
The memory 701 is used to store program instructions that are invoked by the processor 702 to perform the operations of any of the method embodiments of fig. 4-5 above.
Alternatively, when some or all of the methods of the above embodiments are implemented in software, the display device 700 may include only the processor 702. The memory 701 for storing a program is located outside the display device 700, and the processor 702 is connected to the memory through a circuit/wire for reading and executing the program stored in the memory.
The processor 702 may be a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP) or a combination of CPU and NP.
The processor 702 may further comprise a hardware chip. The hardware chip may be an Application-specific integrated circuit (ASIC), a programmable logic device (Programmable Logic Device, PLD), or a combination thereof. The PLD may be a complex programmable logic device (Complex Programmable Logic Device, CPLD), a Field programmable gate array (Field-Programmable Gate Array, FPGA), general array logic (Generic Array Logic, GAL), or any combination thereof.
The Memory 701 may include a Volatile Memory (RAM), such as a Random-Access Memory (RAM); the Memory may also include a Non-volatile Memory (Non-volatile Memory), such as a Flash Memory (Flash Memory), a Hard Disk (HDD) or a Solid State Drive (SSD); the memory may also comprise a combination of the above types of memories.
Fig. 8 is a block diagram of a display device 800, which may be, for example, a computer, a tablet device, a personal digital assistant, etc., according to an example embodiment.
The display device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 8080, an input/output (I/O) interface 8012, a sensor component 8014, and a communication component 8016.
The processing component 802 generally controls overall operation of the display device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the display device 800. Examples of such data include instructions for any application or method operating on the display device 800, contact data, phonebook data, messages, pictures, video, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the display device 800. The power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the display device 800.
The multimedia component 808 includes a screen between the display device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the display device 800 is in an operation mode, such as a photographing mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 8080 is configured to output and/or input audio signals. For example, the audio component 8080 includes a Microphone (MIC) configured to receive external audio signals when the display apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 8016. In some embodiments, the audio component 8080 further comprises a speaker for outputting audio signals.
The I/O interface 8012 provides an interface between the processing assembly 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 8014 includes one or more sensors for providing status assessment of various aspects of the display device 800. For example, the sensor assembly 8014 may detect the on/off state of the display device 800, the relative positioning of the assemblies, such as the display and keypad of the display device 800, the sensor assembly 8014 may also detect the change in position of the display device 800 or a component of the display device 800, the presence or absence of a user's contact with the display device 800, the orientation or acceleration/deceleration of the display device 800, and a change in temperature of the display device 800. The sensor assembly 8014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 8014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 8014 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 8016 is configured to facilitate wired or wireless communication between the display apparatus 800 and other devices. The display device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G or 4G, or a combination thereof. In one exemplary embodiment, the communication component 8016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 8016 may further include a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the display apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as a memory 804 including instructions that are executable by the processor 8020 of the display device 800 to perform the method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A computer readable storage medium, which when executed by a processor of a display device, causes the display device to perform the operations of any of the method embodiments described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A display method, comprising:
acquiring a network data packet, wherein the network data packet comprises position information and attribute information corresponding to one or more target objects in a target area;
According to the network data packet, if the target object is determined to appear for the first time, determining and configuring a display style of the target object according to a pre-established display style set; the display style comprises each graphic element corresponding to a target object and display positions of each graphic element in a display interface, wherein the attribute value of each graphic element corresponding to the target object is determined according to the attribute information of the target object, and the display position of each graphic element in the display interface is determined according to the position information of the target object;
invoking a rendering engine, generating a first rendering instruction according to the display style of the target object, wherein the first rendering instruction is used for indicating a display card to render according to the display style of the target object and displaying the state of the target object in a display interface;
and if the target object is determined not to appear for the first time, carrying out differential processing according to the position information and the attribute information corresponding to the target object so as to update the display style of the target object.
2. The method of claim 1, wherein the determining and configuring the display style of the target object from the pre-created set of display styles comprises:
Matching the attribute information corresponding to the target object with indexes respectively corresponding to all display styles in a pre-created display style set, and determining the display style successfully matched as the display style of the target object;
and configuring the display positions of the primitives corresponding to the display patterns in a display interface according to the position information of the target object.
3. The method according to claim 1, wherein the performing differential processing according to the position information and the attribute information corresponding to the target object to update the display style of the target object includes:
updating the display style corresponding to the target object according to the position information and the attribute information corresponding to the target object;
and calling a rendering engine, and generating a second rendering instruction according to the updated display style corresponding to the target object, wherein the second rendering instruction is used for indicating the display card to render according to the updated display style corresponding to the target object so as to update the state of the target object in a display interface.
4. A method according to any one of claims 1 to 3, wherein each primitive corresponding to the display style comprises: any one or combination of icons, signage, leads, history points.
5. A method according to any one of claims 1 to 3, further comprising:
acquiring a display style updating instruction, and updating the display style of a target object according to the display style updating instruction, wherein the display style updating instruction is used for indicating to update the display style corresponding to the target object.
6. The method of claim 5, wherein the display style update instruction is to instruct updating at least one of: attribute values of icons of the target objects, signage attribute values of the target objects and the attribute value of the guide line corresponding to the target object, the text color in the display style, the size and the number of the history points.
7. A display device, comprising:
the acquisition module is used for acquiring a network data packet, wherein the network data packet comprises position information and attribute information corresponding to a target object;
the processing module is used for determining and configuring a display style of the target object according to a preset display style set if the target object is determined to appear for the first time according to the network data packet, wherein the display style comprises each graphic element corresponding to the target object and display positions corresponding to the graphic elements in a display interface, attribute values of the graphic elements corresponding to the target object are determined according to attribute information of the target object, and display positions corresponding to the graphic elements in the display interface are determined according to position information of the target object;
The processing module is further used for calling a rendering engine, generating a first rendering instruction according to the display style of the target object, wherein the first rendering instruction is used for indicating a display card to render according to the display style of the target object and displaying the state of the target object in a display interface;
and the processing module is further used for carrying out differential processing according to the position information and the attribute information corresponding to the target object if the target object is determined not to appear for the first time, so as to update the display style of the target object.
8. A display device, comprising: memory, processor, and computer program instructions;
the memory stores the computer program instructions;
the processor executes the computer program instructions to perform the display method of any one of claims 1 to 6.
9. A readable storage medium, comprising: a program;
the program, when executed by a processor, to perform the display method according to any one of claims 1 to 6.
CN201911417540.9A 2019-12-31 2019-12-31 Display method, device and readable storage medium Active CN111192191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911417540.9A CN111192191B (en) 2019-12-31 2019-12-31 Display method, device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911417540.9A CN111192191B (en) 2019-12-31 2019-12-31 Display method, device and readable storage medium

Publications (2)

Publication Number Publication Date
CN111192191A CN111192191A (en) 2020-05-22
CN111192191B true CN111192191B (en) 2023-06-13

Family

ID=70710545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911417540.9A Active CN111192191B (en) 2019-12-31 2019-12-31 Display method, device and readable storage medium

Country Status (1)

Country Link
CN (1) CN111192191B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489897B (en) * 2022-01-21 2023-08-08 北京字跳网络技术有限公司 Object processing method, device, terminal equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7627814B1 (en) * 2004-01-14 2009-12-01 Microsoft Corporation Hierarchical bit stream markup compilation and rendering
CN109828818A (en) * 2019-01-29 2019-05-31 广联达科技股份有限公司 A kind of pel pattern transform method based on browser end display engine

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10109039B1 (en) * 2017-04-24 2018-10-23 Intel Corporation Display engine surface blending and adaptive texel to pixel ratio sample rate system, apparatus and method
CN108509172A (en) * 2018-04-13 2018-09-07 平安普惠企业管理有限公司 Data transmission method, device, system and the computer storage media of simultaneous display

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7627814B1 (en) * 2004-01-14 2009-12-01 Microsoft Corporation Hierarchical bit stream markup compilation and rendering
CN109828818A (en) * 2019-01-29 2019-05-31 广联达科技股份有限公司 A kind of pel pattern transform method based on browser end display engine

Also Published As

Publication number Publication date
CN111192191A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN108776568B (en) Webpage display method, device, terminal and storage medium
EP3454192B1 (en) Method and device for displaying page
CN111597008A (en) Popup management method, popup management device, terminal and storage medium
US20210216263A1 (en) Data processing method and electronic terminal
CN109948581B (en) Image-text rendering method, device, equipment and readable storage medium
WO2022063165A1 (en) Function execution method and apparatus
CN110795007B (en) Method and device for acquiring screenshot information
CN112420217A (en) Message pushing method, device, equipment and storage medium
CN110209445B (en) Information reminding method, device, terminal and storage medium
CN111192191B (en) Display method, device and readable storage medium
CN109995804B (en) Target resource information display method, information providing method and device
CN111046265B (en) Card data display method, device, equipment and storage medium
CN112416199A (en) Control method and device and electronic equipment
CN110149408B (en) Service data display method and device, terminal and server
CN112416486A (en) Information guiding method, device, terminal and storage medium
CN111275607A (en) Interface display method and device, computer equipment and storage medium
EP4351117A1 (en) Information display method and apparatus, and electronic device
CN113051485B (en) Group searching method, device, terminal and storage medium
CN113051015B (en) Page rendering method and device, electronic equipment and storage medium
CN113467663B (en) Interface configuration method, device, computer equipment and medium
CN114329292A (en) Resource information configuration method and device, electronic equipment and storage medium
CN114238859A (en) Data processing system, method, electronic device, and storage medium
CN111125095B (en) Method, device, electronic equipment and medium for adding data prefix
CN113204724A (en) Method and device for creating interactive information, electronic equipment and storage medium
CN116071377A (en) Map labeling method and device and map labeling device

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