A file information visualization method, device, equipment and medium
By identifying the relationship between image components and data in the target file, a visual component framework is generated and displayed, which solves the problem of insufficient information display in static images and achieves a more efficient information display effect.
Patent Information
- Application Number
- CN202111271638.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2026-01-27
- Estimated Expiration
- 2041-10-29
AI Technical Summary
In existing technologies, static images do not provide sufficient information display and cannot efficiently convey information.
By identifying the relationship between image components and data in the target file, a visualization component framework is selected, and a visualization component is generated for display.
It enables the transformation of static image information display into a visual format, improving the effectiveness and efficiency of information display.
Smart Images

Figure CN113987242B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device and medium for visualizing document information. Background Technology
[0002] In existing technologies, files may contain static images, which can display certain information, but the display scenarios or effects of static images are still not rich enough.
[0003] Therefore, a more effective and efficient information display solution is needed. Summary of the Invention
[0004] This specification provides a method, apparatus, device, and medium for visualizing document information, in order to solve the technical problem of how to display information more effectively and efficiently.
[0005] To address the aforementioned technical problems, the embodiments in this specification provide the following technical solutions:
[0006] This specification provides an embodiment of a method for visualizing document information, including:
[0007] Obtain the target file, identify the target image in the target file, and identify the target data in the target file corresponding to the target image;
[0008] Identify the components contained in the target image and determine the correspondence between each component and the target data; select a visualization component framework corresponding to the components contained in the target image and determine the correspondence between each visualization component framework and the target data;
[0009] Visualization components are generated based on the respective visualization component frameworks and corresponding target data, and then the visualization components are displayed.
[0010] Optionally, determining the correspondence between each component and the target data includes:
[0011] The order of each component is determined, and the correspondence between the component and the target data is determined based on the order of the components.
[0012] Optionally, determining the order of the components includes:
[0013] The order of the components is determined based on their positions in the target image;
[0014] And / or,
[0015] The order of the components is determined according to their types.
[0016] Optionally, determining the correspondence between the components and the target data based on the order of the components includes:
[0017] Determine the order of the groups of data contained in the target data;
[0018] Based on the sorting of each component and the sorting of each group of data, the correspondence between each component and each group of data contained in the target data is determined.
[0019] Optionally, determining the correspondence between each of the visualization component frameworks and the target data includes:
[0020] For any of the visualization component frameworks, the target data corresponding to the visualization component framework is the target data corresponding to the component of the visualization component framework.
[0021] Optionally, generating visualization components based on each of the visualization component frameworks and the corresponding target data includes:
[0022] For any of the visualization component frameworks, associate the visualization component framework with the corresponding target data to generate the visualization component corresponding to the visualization component framework.
[0023] Optionally, the method further includes:
[0024] Determine the component parameters of each component contained in the target image;
[0025] The visualization components are generated based on the respective visualization component frameworks and the corresponding target data, including:
[0026] For any of the visualization component frameworks, associate the visualization component framework with the corresponding target data; and render the visualization component framework according to the component parameters of the component corresponding to the visualization component framework to generate the visualization component corresponding to the visualization component framework.
[0027] This specification provides a document information visualization device, including:
[0028] The acquisition module is used to acquire a target file, identify a target image in the target file, and identify target data in the target file corresponding to the target image.
[0029] An analysis module is used to identify the components contained in the target image, determine the correspondence between each component and the target data, select a visualization component framework corresponding to the components contained in the target image, and determine the correspondence between each visualization component framework and the target data.
[0030] The generation module is used to generate visualization components based on each visualization component framework and the corresponding target data, and to display the visualization components.
[0031] This specification provides an embodiment of a document information visualization device, including:
[0032] At least one processor;
[0033] as well as,
[0034] A memory that is communicatively connected to the at least one processor;
[0035] in,
[0036] The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the above-described file information visualization method.
[0037] This specification provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the above-described file information visualization method.
[0038] The above-described at least one technical solution adopted in the embodiments of this specification can achieve the following beneficial effects:
[0039] The above technical solution can automatically generate visualization components based on images, thereby transforming information display from image-based to visualization-based, improving the effectiveness and efficiency of information display. Attached Figure Description
[0040] To more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the drawings used in the description of the embodiments of this specification or the prior art will be briefly introduced below. Obviously, the drawings described below are only some of the drawings that may be involved in the embodiments described in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 This is a schematic diagram of the execution subject of the file information visualization method in the first embodiment of this specification.
[0042] Figure 2 This is a flowchart illustrating the document information visualization method in the first embodiment of this specification.
[0043] Figure 3 This is a schematic diagram of the document information visualization device in the second embodiment of this specification. Detailed Implementation
[0044] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions of the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described in this specification are merely some embodiments of this application, and not all embodiments. Based on the embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.
[0045] In existing technologies, people can embed images in documents to display various kinds of information. Among these, static images or two-dimensional images are commonly used and are relatively easier for people to access or obtain, resulting in high frequency of use in documents. However, static images or two-dimensional images suffer from the problem of insufficient information display capabilities.
[0046] The first embodiment of this specification (hereinafter referred to as "Embodiment 1") provides a method for visualizing file information. The executing entity of Embodiment 1 can be a terminal (including but not limited to mobile phones, computers, tablets, and televisions), a server, an operating system, an application, a file information visualization platform, or a file information visualization system, etc. That is, the executing entity can be diverse, and can be set, used, or changed as needed. Alternatively, a third-party application can assist the executing entity in executing Embodiment 1. For example... Figure 1 As shown, the file information visualization method in Embodiment 1 can be executed by the server, and a corresponding application can be installed on the terminal (held by the user). Data can be transmitted between the terminal or the application and the server. Data can be collected, input, or output, or page or information processing can be performed (to the user) through the terminal or the application, thereby assisting the server in executing the file information visualization method in Embodiment 1.
[0047] like Figure 2 As shown, the document information visualization method provided in Embodiment 1 includes:
[0048] S101: (Executing entity) Obtains the target file, identifies the target image in the target file, and identifies the target data in the target file corresponding to the target image;
[0049] The executing entity in Embodiment 1 can acquire a target file, identify the target image contained within the target file, and identify the target data corresponding to the target image in the target file. The executing entity can acquire the file in various ways. For example, the file can be manually transferred to the executing entity in Embodiment 1 via an operating terminal or application; the executing entity in Embodiment 1 can display a settings page through which the user can upload the file; or the executing entity can manually retrieve the file from a terminal or application. Embodiment 1 does not limit how the executing entity acquires the file. The executing entity in Embodiment 1 can use the file acquired through the above methods as the target file.
[0050] The target file can be in a format readable by the execution entity of Embodiment 1, such as a document format (including but not limited to doc, Excel, PDF, and PPT documents), or the execution entity of Embodiment 1 can convert the format of the target file in order to read the target file. Embodiment 1 does not limit the format or form of the target file.
[0051] Of course, the target file can also be determined by a subject other than the executing subject of Embodiment 1, and the executing subject of Embodiment 1 obtains the target file from the other subject.
[0052] The executing entity in Example 1 can identify images contained in the target file. Specifically, the executing entity can use existing image recognition technology to identify the images contained in the target file, which can be referred to as target images.
[0053] In Example 1, the target image contains one or more components (the components contained in the target image are hereinafter referred to as "image components"), such as chart components.
[0054] The executing entity in Embodiment 1 can identify data in the target file and use the identified data as target data. Specifically, the executing entity in Embodiment 1 can use data in a specific format identified from the target file as target data. Specifically, the executing entity in Embodiment 1 can identify the target data using existing character recognition technology. The target data can be in the form of numbers, text, etc. Embodiment 1 does not limit the format of the target data.
[0055] In Example 1, the executing entity uses the target data contained in the identified target file as the target data corresponding to the target image. Specifically, the target data corresponding to the target image is the data displayed by the image components in the target image.
[0056] For example, if the target image contains chart components (including bar charts, pie charts, or other charts) to display certain data, then the data displayed by the chart components belongs to the target data corresponding to the target image. For instance, if the target image contains bar charts and pie charts to display sales revenue and product percentage data, then the sales revenue and product percentage data belong to the target data corresponding to the target image. Of course, the target image can also contain other types of image components; the data displayed by these other types of image components also belongs to the target data corresponding to the target image.
[0057] The target image and target data can exist independently in the target file. For example, the target data can exist independently in the target file in tabular form (outside of the target image). The target data can also exist within the target image, allowing the execution entity in Example 1 to identify the target data from the target image. For instance, if the target image contains a bar chart component displaying 12 months of revenue data using 12 long bars, then by identifying the length of each long bar, the top of each long bar is mapped onto the vertical axis of the bar chart. The value of the mapped point of each long bar's top on the vertical axis of the bar chart represents the 12 months of revenue data and is used as the target data. The target data identified from the target image is the target data corresponding to the target image.
[0058] S103: (Executing entity) Identifies the components contained in the target image, determines the correspondence between each component and the target data; selects a visualization component framework corresponding to the components contained in the target image, and determines the correspondence between each visualization component framework and the target data;
[0059] As described above, a target image may contain one or more image components, and the execution entity in Embodiment 1 can identify each image component contained in the target image. Specifically, the execution entity in Embodiment 1 can identify each image component contained in the target image using image recognition technology.
[0060] After identifying the various image components contained in the target image, the execution entity in Embodiment 1 can determine the component parameters of each image component contained in the target image. These component parameters include, but are not limited to, one or more of the following: component type (i.e., component name, such as a bar chart component), component color, component position, and component size.
[0061] Since the target file contains target data corresponding to the target image, and the target image contains image components, the execution entity of Embodiment 1 can determine the correspondence between each image component contained in the target image and the target data in the target file.
[0062] In Embodiment 1, determining the correspondence between each image component contained in the target image and the target data may include: determining the order of each component contained in the target image, and determining the correspondence between each image component contained in the target image and the target data based on the order of the image components contained in the target image. Determining the correspondence between each image component contained in the target image and the target data based on the order of the image components contained in the target image may include: determining the order of multiple sets of data contained in the target data; and determining the correspondence between each image component contained in the target image and each set of data contained in the target data based on the order of the image components contained in the target image and the order of the multiple sets of data.
[0063] The executing entity in Embodiment 1 can preset rules to determine the order of the image components contained in the target image. These preset rules can be component type rules or position rules. Component type rules determine the order of the image components in the target image based on their type, while position rules determine the order based on their position within the target image; for example, components positioned higher are ordered first. Of course, the preset rules can be other types of rules.
[0064] In Example 1, the target data may contain one or more sets of data. For example, the target data may be sales data from January to December, with each month's sales data constituting one set of data, thus the target data may contain 12 sets of data.
[0065] The executing entity in Implementation Example 1 can determine the order of each group of data contained in the target data. For example, if the target data is divided into multiple paragraphs, and each paragraph corresponds to a group of data, then the data corresponding to the first paragraph is ordered first; or if the target data is divided into multiple rows, and each row corresponds to a group of data, then the data corresponding to the first row is ordered first.
[0066] Once the order of the image components in the target image and the order of the data sets in the target data are determined, the correspondence between the image components in the target image and the data sets in the target data can be established. For example, the first image component in the ranking corresponds to the first data set in the ranking, the second component corresponds to the second data set in the ranking, and so on, with the last component corresponding to the last data set in the ranking.
[0067] The execution entity in Example 1 can pre-store resource data for visualization configuration or visualization display. This resource data includes various types of visualization component frameworks, including but not limited to visualization chart component frameworks, visualization shape component frameworks (e.g., SVG format shape components), 3D model component frameworks, visualization line component frameworks, or marker points (markers are used to display certain preset information or data in preset formats, such as videos, charts, and images). The visualization component framework itself can have visualization effects but is not associated with or corresponds to specific data. Based on the visualization component framework, corresponding visualization components can be formed. For example, a visualization bar chart component framework can only include coordinate axes as the framework but has visualization effects, such as a 3D effect.
[0068] After identifying the various image components contained in the target image, the execution entity in Embodiment 1 can determine the visualization component framework corresponding to each image component contained in the target image. Specifically, the execution entity in Embodiment 1 can pre-define the correspondence between image components and visualization component frameworks, and select the visualization component framework corresponding to each image component contained in the target image from pre-stored resource data based on this correspondence. For example, if the image component is a bar chart component, it can correspond to a visualization bar chart component framework; similarly, if the image component is a pie chart component, it can correspond to a visualization pie chart component framework.
[0069] After determining the visualization component frameworks corresponding to the "image components contained in the target image," the execution entity in Embodiment 1 can determine the correspondence between each visualization component framework and the aforementioned target data. Determining the correspondence between each visualization component framework and the target data can include: for any visualization component framework, the target data corresponding to that visualization component framework is the target data corresponding to the image component of that visualization component framework. In other words, for any visualization component framework, the target data corresponding to the image component of that visualization component framework is the same as the target data corresponding to that visualization component framework; or, the data set corresponding to the image component of that visualization component framework is the same as the data set corresponding to that visualization component framework.
[0070] It should be noted that "determining the correspondence between each image component in the target image and the target data" and "determining the visualization component framework corresponding to each image component in the target image" are not in any absolute order.
[0071] S105: (Executing entity) Generates visualization components based on each visualization component framework and the corresponding target data, and displays the visualization components.
[0072] After determining the visualization component framework corresponding to each image component contained in the target image, and the correspondence between each visualization component framework and the target data, the execution entity of Embodiment 1 can generate visualization components based on each visualization component framework and the corresponding target data. The generation of visualization components based on each visualization component framework and the corresponding target data can include the method described in 1.1 or 1.2 (Embodiment 1 is not limited to the method described in 1.1 or 1.2):
[0073] 1.1 For any visualization component framework, associate the visualization component framework with its corresponding target data to generate the visualization component corresponding to the visualization component framework.
[0074] For any given visualization component framework, it has a basic shape but is not yet associated with or corresponds to data. After associating the visualization component framework with its corresponding target data, a corresponding visualization component is generated to visualize the target data. For example, a visualization component framework might be a line chart framework with basic coordinate axis shapes. If the target data for this visualization component framework is sales data from January to December, then the framework is associated with the corresponding sales data from January to December. Based on this framework, specific coordinate values are generated on the coordinate axes, and specific lines are formed, resulting in a concrete visualized line chart with coordinate values and lines. The generated visualized line chart is the visualization component corresponding to this visualization component framework, used to display the target data, i.e., the sales data from January to December.
[0075] 1.2 For any visualization component framework, associate the visualization component framework with the corresponding target data; according to the component parameters of the component corresponding to the visualization component framework, render the visualization component framework to generate the visualization component corresponding to the visualization component framework.
[0076] "For any given visualization component framework, associate the visualization component framework with the corresponding target data," as described in section 1.1. As mentioned above, the component parameters of each image component contained in the target image can be determined. Therefore, for any given visualization component framework, the visualization component framework can be rendered based on the component parameters of the corresponding image components. After associating the visualization component framework with the corresponding target data and rendering the visualization component framework according to the component parameters of the corresponding components, a visualization component corresponding to the visualization component framework is generated to visualize the target data corresponding to the visualization component framework. Furthermore, the visualization component corresponding to the visualization component framework conforms to the component parameters of the corresponding components.
[0077] For example, a visualization component framework might be a line chart framework with a basic coordinate axis shape. If the target data for this visualization component framework is sales data from January to December, then, on the one hand, the visualization component framework is associated with the corresponding sales data from January to December, forming specific coordinate values on the coordinate axis and creating a specific line chart. On the other hand, assuming the component parameters of the image component corresponding to this visualization component framework include component color, component position, and component size, the visualization component framework is rendered based on these parameters. After the target data association and component parameter rendering, the generated line chart is the visualization component corresponding to this visualization component framework, used to display the target data, i.e., the sales data from January to December. Furthermore, the visualization component corresponding to this visualization component framework conforms to the component color and component size included in the component parameters of the image component corresponding to this visualization component framework. When the visualization component corresponding to this visualization component framework is displayed, its position on the display page conforms to the component position included in the component parameters of the image component corresponding to this visualization component framework.
[0078] Specifically, in Embodiment 1, the executing entity can determine the order of each visualization component based on the order of the image components contained in the target image. Generally, the order of the image components contained in the target image is the same as the order of the corresponding visualization component frames, and the order of the visualization components corresponding to each visualization component frame is the same as the order of the visualization component frames. In this way, each visualization component can be dynamically displayed sequentially according to its order.
[0079] Because the visualization component framework has visualization effects, the visualization components corresponding to the visualization component framework can retain the visualization effects of the visualization component framework; or, after rendering the visualization framework using component parameters, the visualization effects of the visualization components corresponding to the visualization component framework may be different from the visualization effects of the visualization component framework, for example, the colors may change.
[0080] After generating the visual components corresponding to each visual component framework, each visual component can be displayed through the execution entity of Example 1 or the page of another device. Specifically, the generated visual components can be saved as a project, and the execution entity of Example 1 or the other device can retrieve the project to display each visual component.
[0081] Since the target data corresponding to each visualization component framework is the target data corresponding to the target image, and the data associated with each visualization component framework is the target data corresponding to each visualization component framework, the data displayed by each visualization component is the target data corresponding to the target image. In other words, each visualization component can display the target data that the target image is meant to show through visualization.
[0082] In Example 1, for target files containing images (especially images with chart components), the target images and target data in the target file can be automatically identified, and visualization components can be generated and displayed. The visualization components can display the target data to be shown by the target image through visualization effects in a visualization scenario, thereby automatically converting the information display through "target files containing images" into information display through visualization components in a visualization form, improving the information display effect and efficiency.
[0083] In Example 1, image components and component parameters can be automatically identified from the target image, and the component parameters can be applied to the visualization component framework. The visualization component framework is then rendered to form a visualization component. That is, the component parameters corresponding to the image component can be used as the component parameters of the visualization component, thus eliminating the need for users to manually configure the parameters of the visualization component, improving the efficiency of information display, and avoiding the time-consuming, laborious, and error-prone situation of manual configuration.
[0084] like Figure 3 As shown, the second embodiment of this specification provides a document information visualization device corresponding to the method described in Embodiment 1, comprising:
[0085] The acquisition module 202 is used to acquire a target file, identify a target image in the target file, and identify target data in the target file corresponding to the target image.
[0086] Analysis module 204 is used to identify the components contained in the target image, determine the correspondence between each component and the target data, select a visualization component framework corresponding to the components contained in the target image, and determine the correspondence between each visualization component framework and the target data.
[0087] The generation module 206 is used to generate visualization components based on each visualization component framework and the corresponding target data, and to display the visualization components.
[0088] Optionally, determining the correspondence between each component and the target data includes:
[0089] The order of each component is determined, and the correspondence between the component and the target data is determined based on the order of the components.
[0090] Optionally, determining the order of the components includes:
[0091] The order of the components is determined based on their positions in the target image;
[0092] And / or,
[0093] The order of the components is determined according to their types.
[0094] Optionally, determining the correspondence between the components and the target data based on the order of the components includes:
[0095] Determine the order of the groups of data contained in the target data;
[0096] Based on the sorting of each component and the sorting of each group of data, the correspondence between each component and each group of data contained in the target data is determined.
[0097] Optionally, determining the correspondence between each of the visualization component frameworks and the target data includes:
[0098] For any of the visualization component frameworks, the target data corresponding to the visualization component framework is the target data corresponding to the component of the visualization component framework.
[0099] Optionally, generating visualization components based on each of the visualization component frameworks and the corresponding target data includes:
[0100] For any of the visualization component frameworks, associate the visualization component framework with the corresponding target data to generate the visualization component corresponding to the visualization component framework.
[0101] Optionally, the analysis module 204 is further configured to determine the component parameters of each component contained in the target image;
[0102] Optionally, generating visualization components based on each of the visualization component frameworks and the corresponding target data includes:
[0103] For any of the visualization component frameworks, associate the visualization component framework with the corresponding target data; and render the visualization component framework according to the component parameters of the component corresponding to the visualization component framework to generate the visualization component corresponding to the visualization component framework.
[0104] The third embodiment of this specification provides a document information visualization device, including:
[0105] At least one processor;
[0106] as well as,
[0107] A memory that is communicatively connected to the at least one processor;
[0108] in,
[0109] The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the method described in Embodiment 1.
[0110] The fourth embodiment of this specification provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the method described in the first embodiment.
[0111] The above embodiments can be used in combination, and modules with the same name in different embodiments or within the same embodiment can be the same or different modules.
[0112] The foregoing has described specific embodiments of this specification; other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims may be performed in a different order than those shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily have to follow the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0113] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, devices, and non-volatile computer-readable storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0114] The apparatus, device, non-volatile computer-readable storage medium and method provided in the embodiments of this specification are corresponding. Therefore, the apparatus, device and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding apparatus, device and non-volatile computer storage medium will not be repeated here.
[0115] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (e.g., a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program a digital system themselves to "integrate" it onto a PLD, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.
[0116] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, ASICs, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0117] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0118] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware.
[0119] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the embodiments of this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0120] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can 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 a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0121] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0122] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0123] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0124] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0125] Computer-readable media include both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0126] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0127] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0128] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.
[0129] The above description is merely an embodiment of this specification and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of this application should be included within the scope of the claims of this application.
Claims
1. A method for visualizing document information, comprising: Obtain a target file, identify the target image in the target file, and identify the target data corresponding to the target image in the target file, wherein the target image and the target data exist independently in the target file; Identify the components contained in the target image, determine the order of the components according to their types, and determine the correspondence between each component and the target data independent of the target image according to the order of the components. Select a visualization component framework corresponding to the components contained in the target image, and take the target data corresponding to the component of any visualization component framework as the target data corresponding to that visualization component framework; Visualization components are generated based on the visualization component framework and the corresponding target data, and the visualization components are displayed to visualize the target data independent of the target image.
2. The method of claim 1, further comprising, before determining the correspondence between each component and the target data based on the order of the components: The order of the components is determined based on their positions in the target image.
3. The method as described in claim 1, wherein determining the correspondence between the components and the target data based on the order of the components includes: Determine the order of the groups of data contained in the target data; Based on the sorting of each component and the sorting of each group of data, the correspondence between each component and each group of data contained in the target data is determined.
4. The method as described in claim 1, wherein generating visualization components based on each visualization component framework and the corresponding target data comprises: For any of the visualization component frameworks, associate the visualization component framework with the corresponding target data to generate the visualization component corresponding to the visualization component framework.
5. The method of claim 1, further comprising: Determine the component parameters of each component contained in the target image; The visualization components are generated based on the respective visualization component frameworks and the corresponding target data, including: For any of the visualization component frameworks, associate the visualization component framework with the corresponding target data; Based on the component parameters of the component corresponding to the visualization component framework, the visualization component framework is rendered to generate the visualization component corresponding to the visualization component framework.
6. A document information visualization device, comprising: The acquisition module is used to acquire a target file, identify a target image in the target file, and identify target data corresponding to the target image in the target file, wherein the target image and the target data exist independently in the target file. The analysis module is used to identify the components contained in the target image, determine the order of the components according to their types, determine the correspondence between each component and the target data independent of the target image according to the order of the components, select a visualization component framework corresponding to the components contained in the target image, and take the target data corresponding to the component of any visualization component framework as the target data corresponding to that visualization component framework. The generation module is used to generate visualization components based on each visualization component framework and the corresponding target data, and to display the visualization components to visualize the target data independent of the target image.
7. The apparatus of claim 6, wherein the analysis module is further configured to: The order of the components is determined based on their positions in the target image.
8. The apparatus of claim 6, wherein the analysis module is further configured to: Determine the order of the groups of data contained in the target data; Based on the sorting of each component and the sorting of each group of data, the correspondence between each component and each group of data contained in the target data is determined.
9. The apparatus of claim 6, wherein the generating module is further configured to: For any of the visualization component frameworks, associate the visualization component framework with the corresponding target data to generate the visualization component corresponding to the visualization component framework.
10. The apparatus of claim 6, wherein the analysis module is further configured to: Determine the component parameters of each component contained in the target image; The generation module is also used for: For any of the visualization component frameworks, associate the visualization component framework with the corresponding target data; and render the visualization component framework according to the component parameters of the component corresponding to the visualization component framework to generate the visualization component corresponding to the visualization component framework.
11. A document information visualization device, comprising: At least one processor; as well as, A memory that is communicatively connected to the at least one processor; in, The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the document information visualization method according to any one of claims 1 to 5.
12. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the file information visualization method according to any one of claims 1 to 5.
Citation Information
Patent Citations
File information extraction method and electronic equipment
CN112906774A
Power grid data visualization method, device, equipment and medium
CN113127580A