CN114417002A - Image display method and device and storage medium - Google Patents

Image display method and device and storage medium Download PDF

Info

Publication number
CN114417002A
CN114417002A CN202011176907.5A CN202011176907A CN114417002A CN 114417002 A CN114417002 A CN 114417002A CN 202011176907 A CN202011176907 A CN 202011176907A CN 114417002 A CN114417002 A CN 114417002A
Authority
CN
China
Prior art keywords
node
layer
keyword
child
nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011176907.5A
Other languages
Chinese (zh)
Inventor
蔡敦波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software 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 China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011176907.5A priority Critical patent/CN114417002A/en
Publication of CN114417002A publication Critical patent/CN114417002A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/36Creation of semantic tools, e.g. ontology or thesauri
    • G06F16/367Ontology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results

Abstract

The embodiment of the invention discloses an image display method and device and a storage medium, wherein the image display method comprises the following steps: under the condition that a character to be searched is received, at least one keyword node corresponding to the character to be searched and at least one layer of sub-nodes corresponding to each keyword node in the at least one keyword node are searched in the knowledge graph; the at least one layer of child nodes stores images related to the keywords, and the at least one layer of child nodes is used for displaying the images; and respectively displaying at least one keyword node in a first direction of the display interface, and hierarchically displaying at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface by taking each keyword node as a reference, wherein the first direction is a direction perpendicular to the second direction, so that the calculated amount of the image display device when the nodes are displayed is reduced.

Description

Image display method and device and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an image display method and apparatus, and a storage medium.
Background
With the development of the big data era, the application of the knowledge graph is more and more extensive. By utilizing the knowledge graph, the information in the big data can be more effectively displayed through data mining, information processing, knowledge measurement and graph drawing so as to intuitively display the information in the big data.
In the prior art, when a user drags a knowledge graph and tries to change the existing layout of the knowledge graph, an image display device needs to determine the position of each node in the knowledge graph again, however, the number of nodes in the knowledge graph is large, and when the image display device determines the position of the Nth node, the positions of the first N-1 nodes need to be considered, so that the calculation amount of the image display device in displaying the nodes is increased.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention desirably provide an image display method and apparatus, and a storage medium, which reduce the amount of computation when the image display apparatus displays nodes.
The technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an image display method, where the image display method includes:
under the condition that a character to be searched is received, at least one keyword node corresponding to the character to be searched and at least one layer of sub-nodes corresponding to each keyword node in the at least one keyword node are searched in a knowledge graph; the at least one layer of child nodes stores images related to keywords, and the at least one layer of child nodes is used for displaying the images;
and respectively displaying the at least one keyword node in a first direction of a display interface, and hierarchically displaying at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface by taking each keyword node as a reference, wherein the first direction is a direction perpendicular to the second direction.
In a second aspect, an embodiment of the present invention provides an image display apparatus, including:
the searching module is used for searching at least one keyword node corresponding to the character to be searched and at least one layer of sub-nodes corresponding to each keyword node in the at least one keyword node in a knowledge graph under the condition that the character to be searched is received; the at least one layer of child nodes stores images related to keywords, and the at least one layer of child nodes is used for displaying the images;
the display module is used for respectively displaying the at least one keyword node in a first direction of a display interface, and hierarchically displaying at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface by taking each keyword node as a reference, wherein the first direction is a direction perpendicular to the second direction.
In a third aspect, an embodiment of the present invention provides an image display apparatus, including:
the image display device comprises a memory, a processor and a communication bus, wherein the memory is communicated with the processor through the communication bus, the memory stores an image display program executable by the processor, and when the image display program is executed, the processor executes the image display method.
In a fourth aspect, an embodiment of the present invention provides a storage medium, having a computer program stored thereon, for use in an image display apparatus, wherein the computer program is used for implementing an image display method when executed by a processor.
The embodiment of the invention provides an image display method, an image display device and a storage medium, wherein the image display method comprises the following steps: under the condition that a character to be searched is received, at least one keyword node corresponding to the character to be searched and at least one layer of sub-nodes corresponding to each keyword node in the at least one keyword node are searched in the knowledge graph; the at least one layer of child nodes stores images related to the keywords, and the at least one layer of child nodes is used for displaying the images; and respectively displaying at least one keyword node in a first direction of the display interface, and hierarchically displaying at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface by taking each keyword node as a reference, wherein the first direction is a direction perpendicular to the second direction. By using the image display method, when the image display device finds at least one keyword node and at least one layer of sub-nodes in the knowledge graph according to the keywords, the image display device displays at least one keyword node in the first direction respectively, and hierarchically displays at least one layer of sub-nodes corresponding to each keyword node in the second direction of the display interface by taking each keyword node as a reference, so that the image display device does not need to consider the positions of the first N-1 nodes when determining the position of the Nth node, and the calculation amount of the image display device in displaying the nodes in the display interface is reduced.
Drawings
FIG. 1 is a first illustrative knowledge graph provided in accordance with an embodiment of the present invention;
FIG. 2 is a second illustrative knowledge graph provided in accordance with an embodiment of the present invention;
FIG. 3 is a flowchart of an image display method according to an embodiment of the present invention;
FIG. 4 is a third illustrative knowledge graph provided in accordance with an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating positions of a search key and a search box in an exemplary display interface according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating display positions of at least one keyword node and at least one layer of child nodes according to an exemplary embodiment of the present invention;
fig. 7 is a schematic diagram of a display position of a node in a display interface when a touch operation on a "lie four" child node in at least one layer of child nodes is received according to an exemplary embodiment of the present invention;
fig. 8 is a schematic diagram illustrating a display position of a node in a display interface when a touch operation on a browse backspace key is received according to an exemplary embodiment of the present invention;
fig. 9 is a schematic diagram illustrating a display position of a node in a display interface when a touch operation on a drag cursor is received according to an exemplary embodiment of the present invention;
FIG. 10 is a first schematic diagram illustrating an exemplary embodiment of an image display apparatus;
fig. 11 is a schematic structural diagram of an image display device according to an embodiment of the present invention.
Detailed Description
The technical solution in 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.
The knowledge graph is a graph formed by nodes and edges, and the nodes and the edges can be provided with characters to represent knowledge. "nodes" generally represent concepts and entities, and "edges" are generally used to represent relationship and attribute knowledge. An example of visualization of a small-scale knowledge graph is shown in fig. 1, and visualization of a large-scale knowledge graph is shown in fig. 2, where in fig. 2, circles represent vertices and lines represent edges.
The visualization of the knowledge graph aims to browse knowledge in the knowledge graph in an intuitive mode, find wrong knowledge and deduce entity relation and cause-effect relation. The main form of knowledge graph visualization is to display knowledge in the shape of a graph, and in terms of calculation cost, the solution of the reasonable layout calculation problem of nodes generally consumes larger calculation cost for a large-scale knowledge graph. When a user drags the knowledge-graph, trying to change the existing layout of the graph, the calculation amount caused by the re-layout calculation is huge. In terms of interaction convenience, the existing schemes for large-scale knowledge graph visualization mainly include the following:
and (3) a scheme based on sub-graph segmentation visualization: segmenting a complete large-scale knowledge graph into a plurality of sub-graphs; and respectively displaying a plurality of sub-graphs to realize browsing and interaction of the whole knowledge graph.
Visualization scheme based on multi-display stitching: in order to increase the display area of the display equipment, a plurality of displays are spliced, different parts of the knowledge graph are projected onto different displays, display and user interaction is achieved, and due to the fact that the positions of the first N-1 nodes need to be considered when the position of the Nth node is determined, the calculation amount during displaying of the knowledge graph each time is increased.
Visualization scheme based on attention mechanism: presume the user's attention; the attention-focused knowledge graph part is optimally displayed, specifically, the attention-focused knowledge graph part is displayed after being locally enlarged, and knowledge which is out of the attention range is processed in a hiding, fading, reducing and other processing modes.
The scheme based on sub-graph segmentation visualization and the visualization scheme based on multi-display splicing still adopt a mode of completely displaying all knowledge graphs, and essentially realize more convenient user browsing by increasing the display space. However, since the increase of the display space is limited, the scale increase of the knowledge map cannot be satisfied.
Visualization scheme based on attention mechanism: reducing the computational load displayed by the portion of the hidden knowledge graph that is not of interest; however, when a user needs to unfold a hidden partial atlas, a significant amount of layout display computation will still be incurred.
The problems in the prior art can be solved by the method in the first embodiment.
Example one
An embodiment of the present invention provides an image display method, and fig. 3 is a first flowchart of the image display method provided in the embodiment of the present invention, and as shown in fig. 3, the image display method may include:
s101, under the condition that a character to be searched is received, at least one keyword node corresponding to the character to be searched and at least one layer of sub-nodes corresponding to each keyword node in the at least one keyword node are searched in a knowledge graph; at least one layer of child nodes stores images associated with the keywords, and at least one layer of child nodes is used for displaying the images.
The image display method provided by the embodiment of the invention is applied to a scene that an image display device displays at least one keyword node and at least one layer of sub-nodes in a knowledge graph.
In the embodiment of the present application, the image display device may be implemented in various forms. For example, the image display device described in the present application may include devices such as a mobile phone, a watch, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and devices such as a Digital TV, a desktop computer, and the like.
In the embodiment of the present application, for example, a knowledge graph as shown in fig. 4 is set in the image display device, and when a "member" word is searched in the search box and the search key is touched, the image display device searches the knowledge graph for a keyword node related to the "member" word, so as to obtain two keyword nodes: the player and the remote actor are mobilized, and the corresponding next-layer child nodes are Zhang III and Li IV under the condition that the keyword is the player; and under the condition that the key words are actors, the corresponding next-layer child nodes are Wangwei and Zhao six.
It should be noted that one knowledge map may be stored in the image display device, and a plurality of knowledge maps may also be stored in the image display device, and the specific knowledge map may be determined according to actual situations.
In the embodiment of the application, when a knowledge graph is stored in the image display device, the image display device can directly search at least one keyword node corresponding to the character to be searched and at least one layer of sub-nodes corresponding to each keyword node in the at least one keyword node in the knowledge graph under the condition that the image display device receives the character to be searched; when a plurality of knowledge graphs are stored in the image display device, the image display device can directly search at least one keyword node corresponding to a character to be searched and at least one layer of sub-nodes corresponding to each keyword node in the at least one keyword node in the plurality of knowledge graphs respectively; the image display device may also search at least one keyword node corresponding to the character to be searched, and at least one layer of sub-nodes corresponding to each keyword node in the at least one keyword node only in one knowledge graph, which may be determined specifically according to an actual situation, and the embodiment of the present application does not limit this.
In the embodiment of the application, the number of the at least one keyword node is the same as the number of the at least one layer of child nodes.
Illustratively, the number of the at least one keyword node is three, and the at least one layer of child nodes corresponding to each keyword node includes: at least one layer of sub-nodes corresponding to the first keyword node, at least one layer of sub-nodes corresponding to the second keyword node and at least one layer of sub-nodes corresponding to the third keyword node, namely, three sub-nodes exist.
In the embodiment of the application, a search box is arranged in a display interface of the image display device, and the search box is used for receiving characters to be searched input by a user.
It should be noted that the characters to be searched may be literal characters, also may be numeric characters, and also may be english characters or other characters, which may be determined specifically according to actual situations, and this is not limited in this embodiment of the present application.
In this embodiment of the application, a search key is further disposed in the display interface, and as shown in fig. 5, after a user inputs a character to be searched in a search box, when the image display device receives a touch operation on the search key, the image display device may acquire the character to be searched from the search box.
In this embodiment of the present application, the search box may be disposed at the upper left of the display interface, may also be disposed at the upper right of the display interface, and may also be disposed in other areas in the display interface, which may be specifically determined according to an actual situation, and this is not limited in this embodiment of the present application.
In the embodiment of the present application, the search key may be disposed on the right side of the search box, the search key may also be disposed below the search box, and the search key may also be disposed in other areas in the display interface, which may be determined specifically according to the actual situation, and the embodiment of the present application does not limit this.
In this embodiment of the present application, each keyword node in the at least one keyword node corresponds to at least one layer of sub-nodes, and the corresponding relationship may be a preset corresponding relationship, a corresponding relationship configured for the image display device, or a corresponding relationship adjusted by the image display device according to a user instruction, and may specifically be determined according to an actual situation, which is not limited in this embodiment of the present application.
In this embodiment of the present application, the image display apparatus includes a sequence table of a current layer node, where the sequence table is used to store a root node of each tree of a current forest, and the sequence table may be a curNodes list.
It should be noted that the at least one node information may be number information of the at least one keyword node.
In this embodiment of the application, the image display apparatus includes a sequence list of next-layer nodes, where the sequence list may be a NextNodes list, and when the image display apparatus finds at least one layer of sub-nodes corresponding to each keyword node in at least one keyword node in the knowledge graph, the image display apparatus stores at least one layer of sub-node information of at least one layer of sub-nodes in the NextNodes list.
S102, respectively displaying at least one keyword node in a first direction of a display interface, and hierarchically displaying at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface by taking each keyword node as a reference, wherein the first direction is a direction perpendicular to the second direction.
In the embodiment of the application, when the image display device finds at least one keyword node corresponding to a character to be searched and at least one layer of sub-nodes corresponding to each keyword node in the at least one keyword node in the knowledge graph, the image display device can respectively display the at least one keyword node in a first direction of a display interface, and hierarchically display the at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface by taking each keyword node as a reference.
In this embodiment of the application, the first direction may be a horizontal direction on the display interface or a vertical direction on the display interface, which may be determined specifically according to an actual situation, and this is not limited in this embodiment of the application.
In this embodiment of the application, the second direction may be a horizontal direction on the display interface or a vertical direction on the display interface, which may be determined specifically according to an actual situation, and this is not limited in this embodiment of the application.
In this embodiment of the application, the process of the image display device respectively displaying at least one keyword node in a first direction of a display interface, and hierarchically displaying at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface with each keyword node as a reference specifically includes: determining a first display position on a display interface, and displaying any keyword node in at least one keyword node at the first display position; when the image display device determines a first display position and displays any keyword node in at least one keyword node at the first display position, the image display device displays one keyword node from the first display position along a first direction at intervals of a first direction distance until the at least one keyword node is displayed; when the image display device starts from the first display position, one keyword node is displayed along the first direction at intervals of the first direction until at least one keyword node is displayed, and then the image display device displays a layer of sub-nodes along the second direction at intervals of the second direction with each keyword node as a reference until at least one layer of sub-nodes is displayed.
In the embodiment of the present application, a keyword node corresponds to at least one layer of child nodes, where a layer of child nodes is a part of child nodes in at least one layer of child nodes.
Illustratively, the number of the at least one keyword node is 2, and the number of the at least one layer of sub-nodes is 2, then after the image display device displays the first keyword node, the image display device displays the first layer of sub-nodes along the second direction at intervals of the first direction, and then displays the second layer of sub-nodes along the second direction at intervals of the first direction, with reference to the position of the first keyword node; after the image display device displays the second keyword node, the image display device displays a first layer of sub-nodes corresponding to the second keyword node along a second direction at intervals of the first direction by taking the position of the second keyword node as a reference, and then displays a second layer of sub-nodes corresponding to the second keyword node along the second direction at intervals of the first direction.
It should be noted that the first direction distance is a direction distance between any two keyword nodes in the at least one keyword node.
It should be noted that the first direction distance and the second direction distance may be measured in units of pixels.
In this embodiment of the present application, a value of the first direction distance may be the same as a value of the second direction distance, and a value of the first direction distance may be different from a value of the second direction distance, which may be determined specifically according to an actual situation, and this embodiment of the present application does not limit this.
For example, the first direction distance may be 90 pixels, and the second direction distance may be 50 pixels.
In this embodiment of the application, the first display position may be a position where the pixel point is 0, may also be a display position at an upper left corner in the display interface, and may also be a display position at another position in the display interface, which may be specifically determined according to an actual situation, and this is not limited in this embodiment of the application.
In this embodiment of the present application, the number of the at least one layer of child nodes may be one layer, two layers, or multiple layers, which may be determined specifically according to an actual situation, and this is not limited in this embodiment of the present application.
For example, the number of the at least one layer of sub-nodes may be one, as shown in fig. 6, after the image display device determines the first display position on the display interface, the image display device displays any keyword node of the at least one keyword node at the first display position, that is, displays the "player" node, and after the image display device displays the "player" node at the first display position, the image display device displays one keyword node at intervals of the first direction from the first display position until the at least one keyword node is displayed, wherein the first direction may be a direction vertically downward from the first display position, and the image display device displays the "player" node at a distance of the first direction from the first display position. After the image display device displays at least one keyword node, the image display device displays a layer of sub-nodes along the second direction at intervals of the second direction by taking each keyword node as a reference until at least one layer of sub-nodes is displayed. For a layer of sub-nodes corresponding to the 'sportsman' node, the image display device displays the layer of sub-nodes corresponding to the 'sportsman' node at intervals of a second distance along a second direction by taking the 'sportsman' node as a reference, wherein the second direction can be the direction that each keyword node position is horizontally and vertically right, then the image display device displays the layer of sub-nodes corresponding to the 'sportsman' node at the position which is away from the first display position and is positioned at the second direction, namely, displays the 'zhangsan' node and the 'liquan' node. For a layer of sub-nodes corresponding to the 'actor' node, the image display device displays the layer of sub-nodes corresponding to the 'actor' node at intervals of a second distance along a second direction by taking the 'actor' node as a reference, namely, the image display device displays the layer of sub-nodes corresponding to the 'actor' node at a distance from the first display position in the second direction, namely, displays the 'wang five' node and the 'zhao six' node.
It should be noted that the node "zhangsan" and the node "liquan" may be displayed in the same horizontal position, or may be displayed in the same vertical position, which may be determined according to actual situations, and this is not limited in this embodiment of the application.
It should be noted that the "wangwu" node and the "zhao six" node may be displayed in the same horizontal position, and may also be displayed in the same vertical position, which may be determined according to actual situations, and this is not limited in this embodiment of the present application.
In the embodiment of the application, the image display device respectively displays at least one keyword node in a first direction of a display interface, and hierarchically displays at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface by taking each keyword node as a reference, and the image display device searches a first sub-node corresponding to a second keyword node in a knowledge graph under the condition that the image display device receives touch operation on the second keyword node in the at least one keyword node; after the image display device searches for the first sub-node corresponding to the second keyword node in the knowledge graph, the image display device displays the second keyword node and the first sub-node in a hierarchy mode on the display interface.
It should be noted that the first child node is a next-layer child node corresponding to the second keyword node.
In this embodiment, when the image display apparatus receives a touch operation on a second keyword node of the at least one keyword node, the image display apparatus deletes at least one node information of the at least one keyword node stored in the curNodes list, and stores a first node information corresponding to any keyword node in the curNodes list.
In the embodiment of the application, the image display device respectively displays at least one keyword node in a first direction of a display interface, and after hierarchically displaying at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface by taking each keyword node as a reference, the image display device searches a next layer of sub-nodes of any sub-node in at least one layer of sub-nodes in a knowledge graph under the condition that the image display device receives a touch operation on any sub-node in at least one layer of sub-nodes; after the image display device finds the next-layer child node of any child node in the at least one layer of child nodes in the knowledge graph, the image display device displays any child node in the at least one layer of child nodes and the next-layer child node of any child node in the at least one layer of child nodes on the display interface.
In this embodiment, when the image display apparatus receives a touch operation on any one of the at least one layer of child nodes, the image display apparatus deletes at least one piece of node information of at least one keyword node stored in the curNodes list, and stores any one of the at least one layer of child nodes corresponding to any one of the at least one layer of child nodes into the curNodes list.
For example, as shown in fig. 7, when the image display apparatus receives a touch operation on a "lie four" child node in at least one layer of child nodes, the image display apparatus deletes at least one node information of at least one keyword node stored in the curNodes list, and stores child node information corresponding to the "lie four" child node into the curNodes list, and the image display apparatus searches for a next layer child node of the "lie four" child node in the knowledge graph: zhang three node and Wenchuan earthquake node, then image display device just shows "Lisi" child node, Zhang three node and Wenchuan earthquake node on the display interface.
In an embodiment of the present application, a method for displaying any child node in at least one layer of child nodes and a first next layer of child nodes on a display interface by an image display apparatus includes: the image display device displays any child node in at least one layer of child nodes and the next layer of child nodes of any child node in at least one layer of child nodes in a hierarchy mode on a child interface of a display interface; or the image display device empties the display interface, and hierarchically displays any child node in the at least one layer of child nodes and the next layer of child nodes of any child node in the at least one layer of child nodes on the display interface after emptying.
It should be noted that the sub-interface may be a partial display interface in the display interface, and the image display apparatus may display any sub-node in the at least one layer of sub-nodes and a next layer of sub-node of any sub-node in the at least one layer of sub-nodes in the partial display interface in a hierarchical manner; the sub-interface may also be a pop-up box, and the image display apparatus may display any one of the at least one layer of sub-nodes and a next layer of sub-nodes of any one of the at least one layer of sub-nodes in a hierarchical manner in the pop-up box; the sub-interface may also be a next display interface of the current display interface, and the image display device may display any sub-node in the at least one layer of sub-nodes and a next layer of sub-node of any sub-node in the at least one layer of sub-nodes in a hierarchical manner in the next display interface, which may be determined specifically according to an actual situation, and is not limited in this embodiment of the present application.
In the embodiment of the application, the display interface comprises a browse backspace key. After the image display device displays the second keyword node and the first sub-node in a hierarchy mode on the display interface, under the condition that the image display device receives touch operation on the browsing backspace key, the image display device determines the second keyword node according to the touch operation; after the image display device determines the second keyword node, the image display device searches a first upper layer node and a lower layer sub-node of the first upper layer node corresponding to the second keyword node in the knowledge graph; after the image display device searches for the first upper layer node and the lower layer child node of the first upper layer node corresponding to the second keyword node in the knowledge graph, the image display device displays the first upper layer node and the lower layer child node of the first upper layer node in the display interface.
It should be noted that the second keyword node is a keyword node for determining the previous touch by the image display device according to the touch operation.
In the embodiment of the application, after the image display device displays the any child node and a child node on a next layer of the any child node on the display interface in a hierarchical manner, the image display device determines any child node in at least one layer of child nodes according to the touch operation when receiving the touch operation on the browsing backspace key; after the image display device determines any child node in the at least one layer of child nodes, the image display device searches a second upper-layer node and a next-layer child node of the second upper-layer node corresponding to any child node in the at least one layer of child nodes in the knowledge graph; after the image display device searches for a second upper-layer node and a next-layer child node of the second upper-layer node corresponding to any child node in the at least one layer of child nodes in the knowledge graph, the image display device displays the second upper-layer node and the next-layer child node of the second upper-layer node in a display interface.
It should be noted that, when any child node in at least one layer of child nodes is the image display device, the child node of the previous touch is determined according to the touch operation.
It should be noted that, the image display apparatus may use any child node in at least one layer of child nodes or the second keyword node as a target node, and after the image display apparatus searches for a previous layer node corresponding to the target node in the knowledge graph (the previous layer node includes the first previous layer node or the second previous layer node), the image display apparatus deletes target node information in the curNodes list (the second keyword node information or any child node information in at least one layer of child nodes), and stores the previous layer node information corresponding to the previous layer node in the curNodes list.
In an embodiment of the present application, the display interface includes a drag cursor. The image display device respectively displays at least one keyword node in a first direction of a display interface, and specifically, after hierarchically displaying at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface by taking each keyword node as a reference: after the image display device displays the previous layer node and the next layer child node of the previous layer node, or after the image display node hierarchically displays any child node in at least one layer of child nodes and the next layer child node of any child node in at least one layer of child nodes on a display interface, or after the image display node hierarchically displays a second keyword node and a first child node on the display interface, or after the image display device displays at least one layer of child nodes at intervals along a second direction by taking each keyword node as a reference until at least one layer of child nodes are displayed, if the image display device receives a touch operation on a dragging cursor, the image display device can determine the current display content in the display interface, the moving direction of the dragging cursor and the moving distance of the dragging cursor; determining target display content according to the moving direction, the moving distance and the current display content; and displaying the target display content on the display interface.
For example, as shown in fig. 8, when the target node is any one of the at least one layer of sub-nodes, in a case where the image display apparatus receives a touch operation on the browse backspace key, the image display apparatus searches the knowledge graph for a previous layer node corresponding to the "lie four" node, that is, the "player" node, searches the knowledge graph for next layer sub-nodes of the "player" node as the "lie four" node and the "zhang three" node, and then the image display apparatus displays the "player" node, the "lie four" node and the "zhang three" node on the display interface.
In the embodiment of the application, when the image display device receives the touch operation on the dragging cursor, the image display device determines the current display content in the display interface, the moving direction of the dragging cursor and the moving distance of the dragging cursor; after the image display device determines the current display content, the moving direction of the dragging cursor and the moving distance of the dragging cursor in the display interface, the image display device determines the target display content according to the moving direction, the moving distance and the current display content; and after the image display device determines the target display content according to the moving direction, the moving distance and the current display content, the image display device displays the target display content on the display interface.
It should be noted that the moving direction is a direction parallel to or perpendicular to the first direction, specifically, the moving direction may be a horizontal direction on the display interface, may also be a vertical direction on the display interface, and may also be another direction on the display interface, which may be specifically determined according to an actual situation, and this is not limited in this embodiment of the application.
In the embodiment of the present application, in the case that the moving direction is a horizontal direction in the display interface, the moving direction may include a leftward direction and a rightward direction; in the case where the moving direction is a vertical direction in the display interface, the moving direction may include an upward direction and a downward direction.
For example, when the content displayed in the display interface of the image display device may be the content as shown in fig. 6, that is, the display interface includes a "player" node and an "actor" node, and the next-layer child nodes corresponding to the "player" node are a "zhangsan" node and a "lie-quan" node; the next-layer child nodes corresponding to the actor node are the wang five node and the zhao six node, when the image display device receives the touch operation on the dragging cursor, the image display device determines the moving direction and the moving distance of the dragging cursor, if the moving direction is upward movement and the moving distance is 90 pixel points, the image display device moves the display content in the display interface upward by 90 pixel points, so that the target display content shown in fig. 9 is obtained, and the target display content is the actor node, the wang five node and the zhao six node.
It can be understood that when the image display device finds at least one keyword node and at least one layer of sub-nodes in the knowledge graph according to the keywords, the image display device displays at least one keyword node in the first direction respectively, and hierarchically displays at least one layer of sub-nodes corresponding to each keyword node in the second direction of the display interface by taking each keyword node as a reference, so that when the image display device determines the position of the nth node, the position of the first N-1 nodes does not need to be considered, the calculation amount of the image display device when displaying the nodes in the display interface is reduced, and the speed of the image display device when displaying the nodes in the display interface is improved.
Example two
Based on the same inventive concept as the embodiment, the embodiment of the invention provides an image display device 1 corresponding to an image display method; fig. 10 is a schematic diagram illustrating a composition structure of an image display device according to an embodiment of the present invention, where the image display device 1 may include:
the determining module 11 is a searching module, and is configured to search, in a knowledge graph, at least one keyword node corresponding to a character to be searched and at least one layer of sub-nodes corresponding to each keyword node in the at least one keyword node, when the character to be searched is received; the at least one layer of child nodes stores images related to keywords, and the at least one layer of child nodes is used for displaying the images;
the display module 12 is configured to display the at least one keyword node in a first direction of a display interface, and hierarchically display at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface with each keyword node as a reference, where the first direction is a direction perpendicular to the second direction.
In some embodiments of the present invention, the determining module 11 is specifically configured to determine a first display position on the display interface;
the display module 12 is specifically configured to display any keyword node of the at least one keyword node at the first display position; starting from the first display position, displaying a keyword node along the first direction at intervals of a first direction distance until the at least one keyword node is displayed; and displaying a layer of sub-nodes along the second direction at intervals of the second direction by taking each keyword node as a reference until the at least one layer of sub-nodes is displayed.
In some embodiments of the invention, the apparatus further comprises a lookup module;
the searching module is used for searching a first sub-node corresponding to a second keyword node in the knowledge graph under the condition that touch operation on the second keyword node in the at least one keyword node is received;
the display module 12 is configured to display the second keyword node and the first child node hierarchically on the display interface.
In some embodiments of the present invention, the searching module is configured to search, in the case that a touch operation on any one of the at least one layer of child nodes is received, a next layer of child nodes of any one of the at least one layer of child nodes in the knowledge graph;
the display module 12 is configured to display any child node in the at least one layer of child nodes and a next layer of child nodes of any child node in the at least one layer of child nodes hierarchically on the display interface.
In some embodiments of the present invention, the display module 12 is further configured to display, in a sub-interface of the display interface, any child node in the at least one layer of child nodes and a next-layer child node of any child node in the at least one layer of child nodes hierarchically; or emptying the display interface, and hierarchically displaying any child node in the at least one layer of child nodes and the next layer of child nodes of any child node in the at least one layer of child nodes on the emptied display interface.
In some embodiments of the present invention, the determining module 11 is configured to determine the second keyword node according to a touch operation when the touch operation on the browsing backspace key is received;
the searching module is used for searching a first upper-layer node and a lower-layer sub-node of the first upper-layer node corresponding to the second keyword node in the knowledge graph, wherein the lower-layer sub-node of the first upper-layer node comprises the second keyword node;
the display module 12 is configured to display the first previous-layer node and the next-layer child node of the first previous-layer node in the display interface.
In some embodiments of the present invention, the determining module 11 is configured to determine, when a touch operation on the browsing backspace key is received, any one of the at least one layer of child nodes according to the touch operation;
the searching module is configured to search, in the knowledge graph, a second previous-layer node and a next-layer child node of the second previous-layer node, where the second previous-layer node and the next-layer child node correspond to any child node in the at least one layer of child nodes, and the next-layer child node of the second previous-layer node includes any child node in the at least one layer of child nodes;
the display module 12 is configured to display the second previous-layer node and the next-layer child node of the second previous-layer node in the display interface.
In some embodiments of the present invention, the display interface includes a dragging cursor, and in a case where the dragging cursor is touched, the determining module 11 is further configured to determine current display content in the display interface, a moving direction of the dragging cursor, and a moving distance of the dragging cursor; determining target display content according to the moving direction, the moving distance and the current display content;
the translation module is used for displaying the target display content on the display interface.
In practical applications, the determining module 11 and the display module 12 may be implemented by a processor 13 on the image display device 1, specifically implemented by a Central Processing Unit (CPU), an MPU (Microprocessor Unit), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like; the above data storage may be realized by the memory 14 on the image display apparatus 1.
An embodiment of the present invention further provides an image display apparatus 1, and as shown in fig. 11, the image display apparatus 1 includes: a processor 13, a memory 14 and a communication bus 15, wherein the memory 14 communicates with the processor 13 via the communication bus 15, and the memory 14 stores a program executable by the processor 13, and when the program is executed, the image display method according to the first embodiment is executed by the processor 13.
In practical applications, the Memory 14 may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor 13.
An embodiment of the present invention provides a storage medium, on which a program is stored, which when executed by the processor 13 implements the image display method according to the first embodiment.
It can be understood that when the image display device finds at least one keyword node and at least one layer of sub-nodes in the knowledge graph according to the keywords, the image display device displays at least one keyword node in the first direction respectively, and hierarchically displays at least one layer of sub-nodes corresponding to each keyword node in the second direction of the display interface by taking each keyword node as a reference, so that when the image display device determines the position of the nth node, the position of the first N-1 nodes does not need to be considered, the calculation amount of the image display device when displaying the nodes in the display interface is reduced, and the speed of the image display device when displaying the nodes in the display interface is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (11)

1. An image display method, comprising:
under the condition that a character to be searched is received, at least one keyword node corresponding to the character to be searched and at least one layer of sub-nodes corresponding to each keyword node in the at least one keyword node are searched in a knowledge graph; the at least one layer of child nodes stores images related to keywords, and the at least one layer of child nodes is used for displaying the images;
and respectively displaying the at least one keyword node in a first direction of a display interface, and hierarchically displaying at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface by taking each keyword node as a reference, wherein the first direction is a direction perpendicular to the second direction.
2. The method according to claim 1, wherein the displaying the at least one keyword node in a first direction of a display interface respectively, and hierarchically displaying at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface with reference to each keyword node comprises:
determining a first display position on the display interface, and displaying any keyword node in the at least one keyword node at the first display position;
starting from the first display position, displaying a keyword node along the first direction at intervals of a first direction distance until the at least one keyword node is displayed;
and displaying a layer of sub-nodes along the second direction at intervals of the second direction by taking each keyword node as a reference until the at least one layer of sub-nodes is displayed.
3. The method according to claim 1, wherein after the at least one keyword node is respectively displayed in a first direction of the display interface and at least one layer of sub-nodes corresponding to each keyword node is hierarchically displayed in a second direction of the display interface by taking each keyword node as a reference, the method further comprises;
under the condition that touch operation on a second keyword node in the at least one keyword node is received, searching a first sub-node corresponding to the second keyword node in the knowledge graph;
and hierarchically displaying the second keyword node and the first child node on the display interface.
4. The method according to claim 1, wherein after the at least one keyword node is respectively displayed in a first direction of the display interface and at least one layer of sub-nodes corresponding to each keyword node is hierarchically displayed in a second direction of the display interface with respect to each keyword node, the method further comprises:
under the condition that touch operation on any child node in the at least one layer of child nodes is received, searching a next layer of child nodes of any child node in the at least one layer of child nodes in the knowledge graph;
and hierarchically displaying any child node in the at least one layer of child nodes and a next layer child node of any child node in the at least one layer of child nodes on the display interface.
5. The method of claim 4, wherein said displaying any child node of the at least one level of child nodes and a next level of child node of any child node of the at least one level of child nodes hierarchically on the display interface comprises:
hierarchically displaying any child node in the at least one layer of child nodes and a next layer of child nodes of any child node in the at least one layer of child nodes on a child interface of a display interface;
or emptying the display interface, and hierarchically displaying any child node in the at least one layer of child nodes and the next layer of child nodes of any child node in the at least one layer of child nodes on the emptied display interface.
6. The method of claim 3, wherein the display interface comprises a browse backspace button, and wherein after hierarchically displaying the second keyword node and the first child node on the display interface, the method further comprises:
under the condition that touch operation on the browsing backspacing key is received, determining the second keyword node according to the touch operation;
searching a first upper-layer node and a lower-layer sub-node of the first upper-layer node corresponding to the second keyword node in the knowledge graph, wherein the lower-layer sub-node of the first upper-layer node comprises the second keyword node;
and displaying the first upper layer node and the next layer child node of the first upper layer node in the display interface.
7. The method of claim 4, wherein after hierarchically displaying any of the at least one layer of child nodes and a next layer of child nodes of any of the at least one layer of child nodes on the display interface, the method further comprises:
under the condition that touch operation on the browsing backspacing key is received, determining any child node in the at least one layer of child nodes according to the touch operation;
searching a second upper-layer node and a second upper-layer sub-node corresponding to any sub-node in the at least one layer of sub-nodes in the knowledge graph, wherein the second upper-layer sub-node comprises any sub-node in the at least one layer of sub-nodes;
and displaying the second upper-layer node and the next-layer child node of the second upper-layer node in the display interface.
8. The method of any one of claims 1-7, wherein the display interface includes a drag cursor that, if touched, triggers:
determining current display content in the display interface, a moving direction of the dragging cursor and a moving distance of the dragging cursor;
determining target display content according to the moving direction, the moving distance and the current display content;
and displaying the target display content on the display interface.
9. An image display apparatus, characterized in that the apparatus comprises:
the searching module is used for searching at least one keyword node corresponding to the character to be searched and at least one layer of sub-nodes corresponding to each keyword node in the at least one keyword node in a knowledge graph under the condition that the character to be searched is received; the at least one layer of child nodes stores images related to keywords, and the at least one layer of child nodes is used for displaying the images;
the display module is used for respectively displaying the at least one keyword node in a first direction of a display interface, and hierarchically displaying at least one layer of sub-nodes corresponding to each keyword node in a second direction of the display interface by taking each keyword node as a reference, wherein the first direction is a direction perpendicular to the second direction.
10. An image display apparatus, characterized in that the apparatus comprises:
a memory, a processor, and a communication bus, the memory in communication with the processor through the communication bus, the memory storing a program of image display executable by the processor, the program of image display when executed performing the method of any one of claims 1 to 8 through the processor.
11. A storage medium having stored thereon a computer program for use in an image display apparatus, characterized in that the computer program, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
CN202011176907.5A 2020-10-28 2020-10-28 Image display method and device and storage medium Pending CN114417002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011176907.5A CN114417002A (en) 2020-10-28 2020-10-28 Image display method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011176907.5A CN114417002A (en) 2020-10-28 2020-10-28 Image display method and device and storage medium

Publications (1)

Publication Number Publication Date
CN114417002A true CN114417002A (en) 2022-04-29

Family

ID=81260591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011176907.5A Pending CN114417002A (en) 2020-10-28 2020-10-28 Image display method and device and storage medium

Country Status (1)

Country Link
CN (1) CN114417002A (en)

Similar Documents

Publication Publication Date Title
US9552129B2 (en) Interactive visual representation of points of interest data
AU2010300971B2 (en) Dynamic image presentation
CN102365635B (en) Interface navigation tools
US20160004738A1 (en) Systems and methods of generating a navigable, editable media map
US9305330B2 (en) Providing images with zoomspots
US20130232148A1 (en) Content mapping
US20120110453A1 (en) Display of Image Search Results
US20180181807A1 (en) Conversion of static images into interactive maps
CN104620240A (en) Gesture-based search queries
KR20140031281A (en) Map-based methods of visualizing relational databases
US20140188890A1 (en) Organizing media items based on metadata similarities
US20150193446A1 (en) Point(s) of interest exposure through visual interface
US9940014B2 (en) Context visual organizer for multi-screen display
US9405446B1 (en) Efficient and interactive presentation of item images
US9619519B1 (en) Determining user interest from non-explicit cues
CN102650998A (en) Design patent display system and method
Khanwalkar et al. Exploration of large image corpuses in virtual reality
US20220269380A1 (en) Method and system for structuring, displaying, and navigating information
US11340761B2 (en) Systems and methods for indicating organizational relationships between objects
Kitamura et al. Tourist spot recommendation applying generic object recognition with travel photos
US8725744B2 (en) Method, apparatus and computer program product for visually grouping relationships from databases
CN111428430A (en) Circuit device information acquisition method, device, equipment and medium in circuit design
CN114417002A (en) Image display method and device and storage medium
CN115794980A (en) Data display method, equipment, device and medium
US11521018B1 (en) Relevant text identification based on image feature selection

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