CN112765946A - Chart display method and device and electronic equipment - Google Patents

Chart display method and device and electronic equipment Download PDF

Info

Publication number
CN112765946A
CN112765946A CN202011620842.9A CN202011620842A CN112765946A CN 112765946 A CN112765946 A CN 112765946A CN 202011620842 A CN202011620842 A CN 202011620842A CN 112765946 A CN112765946 A CN 112765946A
Authority
CN
China
Prior art keywords
target
chart
information
input
identifier
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
CN202011620842.9A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011620842.9A priority Critical patent/CN112765946A/en
Publication of CN112765946A publication Critical patent/CN112765946A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/183Tabulation, i.e. one-dimensional positioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/14Image acquisition
    • G06V30/148Segmentation of character regions
    • G06V30/153Segmentation of character regions using recognition of characters or words
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/414Extracting the geometrical structure, e.g. layout tree; Block segmentation, e.g. bounding boxes for graphics or text

Abstract

The application discloses a chart display method and device and electronic equipment, belongs to the technical field of communication, and can solve the problem that the display effect of the electronic equipment on a table in a picture is single. The method comprises the following steps: acquiring first table information of a target table in a first picture, wherein the first table information comprises first information and second information of the target table, the first information is used for indicating a numerical value corresponding to at least one first target item in a header of the target table, and the second information is used for indicating content corresponding to at least one second target item in the header of the target table; and displaying a target chart corresponding to the target table according to the first table information. The embodiment of the application is applied to the process of outputting the visual chart based on the table in the picture.

Description

Chart display method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a chart display method and device and electronic equipment.
Background
At present, a document identification technology is a relatively common technology, and an electronic device can process a shot picture to extract document content from the picture and perform optimization processing to obtain a document of an electronic file. For example, when the diagram content is included in the taken picture, the electronic device may recognize the table in the diagram to extract the table content therein, and convert the table content into the electronic document table for saving.
However, in the above method, the table content finally saved by the electronic device is in the form of an electronic document table, that is, the electronic device displays the table in the picture in a fixed manner (i.e., the original display manner of the table), and therefore, the display effect of the electronic device on the table in the picture is single.
Disclosure of Invention
The embodiment of the application aims to provide a chart display method and device and electronic equipment, and the problem that the display effect of the electronic equipment on a table in a picture is single can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a graph display method, where the graph display method includes: acquiring first table information of a target table in a first picture, wherein the first table information comprises first information and second information of the target table, the first information is used for indicating a numerical value corresponding to at least one first target item in a header of the target table, and the second information is used for indicating content corresponding to at least one second target item in the header of the target table; and displaying a target chart corresponding to the target table according to the first table information.
In a second aspect, an embodiment of the present application provides a graph display apparatus, including: the device comprises an acquisition module and a display module. The obtaining module is configured to obtain first table information of a target table in a first picture, where the first table information includes first information and second information of the target table, the first information is used to indicate a numerical value corresponding to at least one first target item in a header of the target table, and the second information is used to indicate content corresponding to at least one second target item in the header of the target table. And the display module is used for displaying the target chart corresponding to the target table according to the first table information acquired by the acquisition module.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the electronic device may obtain first table information of the target table in the first picture, where the first table information includes first information (indicating a numerical value corresponding to at least one first target item in a header of the target table) and second information (indicating content corresponding to at least one second target item in the header of the target table) of the target table, and display a target chart corresponding to the target table according to the first table information. The electronic equipment can acquire the table information of the target table from the first picture, and then generate and acquire the target chart corresponding to the target table, namely the visual type chart according to the table information, namely the numerical values corresponding to some items and the contents corresponding to some items in the header of the target table, so that the table in the picture is displayed in a visual type chart mode instead of the original display mode of the table, and therefore the display effect of the electronic equipment on the table in the picture is improved.
Drawings
FIG. 1 is a schematic diagram of a graph display method provided by an embodiment of the present application;
fig. 2A is one of schematic diagrams of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 2B is a second schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 3 is a third schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 4 is a fourth schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a graph display apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The chart display method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
In the embodiment of the application, the electronic equipment can perform image recognition on the shot picture so as to recognize the table in the shot picture, so that the table is quickly converted into the visual chart. Specifically, after the user triggers the electronic device to take a picture, the electronic device may extract dimension information (i.e., second information described in the following embodiment) and index information (i.e., first information described in the following embodiment) of a table cell in the taken picture, and then the electronic device may generate contents in a visual chart type (e.g., in the form of a column chart, a broken line chart, a pie chart, or the like) from contents in a table form in the taken picture according to the extracted dimension information and index information, without the need for the user to configure an electronic file table into a visual chart by using other tools, thereby simplifying the operation of the user, satisfying the requirement of the user on the visual chart, and improving the display effect of the electronic device on the table in the picture.
It should be noted that the index information in the embodiment of the present application is used to indicate a numerical value (for example, sales) in the table, that is, a numerical value corresponding to information of each dimension (for example, salesman, sales city, etc.), and when the table is converted into a visual chart, the index information can reflect an evaluation condition of an event (for example, sales event) corresponding to the table.
The chart display method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
An embodiment of the present application provides a graph display method, and fig. 1 shows a flowchart of the graph display method provided in the embodiment of the present application, where the method may be applied to an electronic device. As shown in fig. 1, a graph display method provided in an embodiment of the present application may include steps 201 and 202 described below.
Step 201, the electronic device acquires first form information of a target form in a first picture.
In an embodiment of the present application, the first table information includes first information and second information of the target table, where the first information is used to indicate a numerical value corresponding to at least one first target item in a header of the target table, and the second information is used to indicate content corresponding to at least one second target item in the header of the target table.
In this embodiment, the header of the target table includes at least one first entry and at least one second entry; the at least one first target item is a partial item or a whole item of the at least one first item, and the at least one second target item is a partial item or a whole item of the at least one second item.
It should be noted that, a value corresponding to a first target item may be understood as a value (for example, a value of sales) of a row/column of the table where the first target item is located, and may characterize an evaluation condition of an event (for example, a sales event) corresponding to the table; the content corresponding to a second target item may be understood as the content of the row/column (e.g., name of salesman, name of city of sale) where the second target item is located, and may characterize the item/dimension represented by the second target item.
In the embodiment of the present application, the first picture includes a target table (content displayed in a table form); after the electronic device obtains the first picture, image preprocessing may be performed on the first picture to identify the target form from the first picture, and then the electronic device may perform segmentation processing on the target form to obtain first form information.
Optionally, in this embodiment of the application, the first picture may be obtained by shooting the electronic device through a camera at present; or, the first picture may be a history picture acquired by the electronic device from an album application; alternatively, the first picture may be obtained by downloading through an application (e.g., a browser application) by the electronic device. The specific method can be determined according to actual use requirements, and the embodiment of the application is not limited.
Optionally, in this embodiment of the present application, before the step 201, the graph display method provided in this embodiment of the present application further includes the following step 301, and the step 201 may be specifically realized by the following step 201 a.
Step 301, the electronic device performs segmentation processing on the target table to obtain character information in each cell of the target table.
Step 201a, the electronic device determines the header of the target table from all the cells according to the character information in each cell, and determines the numerical value and the content corresponding to the header of the target table.
Optionally, in this embodiment of the application, for each cell of the target table, the electronic device may perform image binarization by using a maximum between-class variance method to segment all characters in the cell of the target table, and then the electronic device may recognize and extract each character in the cell of the target table by Optical Character Recognition (OCR) to obtain data of the entire table (i.e., a numerical value and content corresponding to a header of the target table).
And, the electronic device may extract each header item/header field (i.e., at least one first item and at least one second item) of the header in the table according to the characters in the cells, and determine that each header item is an index item (first item) or a dimension item (second item) according to whether the value in the table corresponding to the header item is a numeric value.
Note that the index value is in a numerical format. If the value corresponding to a certain header item (i.e. the value in the table corresponding to the header item) is a numerical value, it can be determined that the header item is an index item; if the table data corresponding to a certain table entry (i.e. the table data in the table corresponding to the table entry) is a non-numerical value, it can be determined that the table entry is a dimension entry.
Illustratively, as shown in table 1, it shows each index item and each dimension item corresponding to the header in the target table.
TABLE 1
Numbering Date Shop City Salesperson Sales amount
01 2020/06/10 C store City a Staff 1 5000
02 2020/06/10 C store City a Staff 2 8000
03 2020/06/10 D store City a Staff 3 11000
04 2020/06/11 D store City a Staff 3 6500
05 2020/06/11 Shop B City b Staff 4 9000
06 2020/06/20 Shop B City b Staff 4 20000
07 2020/06/25 Store A City b Staff 5 16000
08 2020/06/26 Store A City b Staff 5 10000
In table 1, the headers of the target table are numbers, dates, stores, cities, sellers, and sales amounts, where the table data corresponding to the headers are numbers, dates, stores, cities, and sellers are non-numerical values, and then the headers are determined as dimension entries, i.e., at least one second entry, and the values corresponding to the headers are numerical values, and then the headers are determined as index entries, i.e., at least one first entry.
Step 202, the electronic device displays a target chart corresponding to the target table according to the first table information.
In an embodiment of the present application, the target chart is a visualization chart, that is, the target chart may be a visualization type chart, and the visualization type may include at least one of the following: a histogram type, a line graph type, a pie graph type, a sang Ji graph type, a radar chart type, etc.
Optionally, in this embodiment of the application, the electronic device may generate and display a target chart corresponding to the target table by using a default visualization type according to the first table information.
Optionally, in this embodiment of the application, before the step 202, the graph display method provided in this embodiment of the application further includes the following step 401 and step 402, and the step 202 may be specifically realized by the following step 202 a.
Step 401, the electronic device displays K first identifiers and L second identifiers corresponding to the target table according to the first information and the second information.
In this embodiment of the application, the K first identifiers are used to indicate K first target items, and each of the K first identifiers is used to indicate one first target item of the K first target items, respectively. The L second identifiers are used to indicate L second target items, each of the L second identifiers is used to indicate one of the L second target items, and L and K are positive integers.
It should be noted that the K first target items are partial items or all items in at least one first target item, and the L second target items are partial items or all items in at least one second target item. Alternatively, a first identifier may be a name or icon of a first target item, and a second identifier may be a name or icon of a second target item.
Step 402, the electronic device receives a first input.
In an embodiment of the present application, the first input is an input of a target identifier by a user, where the target identifier includes at least one of: at least one first identifier in the K first identifiers and at least one second identifier in the L second identifiers; the at least one first indicator is for indicating at least one first target item and the at least one second indicator is for indicating at least one second target item.
It is understood that the user may select some items from the at least one first item and/or the at least one second item by performing a first input on at least one first identifier of the K first identifiers and/or at least one second identifier of the L second identifiers, so that the electronic device generates the target chart according to values and contents corresponding to the some items.
It should be noted that, in one mode, in a case that the first input is input by a user to at least one first identifier of the K first identifiers, the table information used by the electronic device to generate the target graph includes a numerical value corresponding to at least one first target item indicated by the at least one first identifier and contents corresponding to L second target items indicated by the L second identifiers, that is, the target item indicated by the target identifier includes the at least one first target item and the L second target items.
In another mode, when the first input is input by the user to at least one of the L second identifiers, the table information used by the electronic device to generate the target graph includes content corresponding to at least one second target item indicated by the at least one second identifier and numerical values corresponding to K first target items indicated by the K first identifiers, that is, the target items indicated by the target identifiers include the K first target items and the at least one second target item.
In another mode, in a case that the first input is input by a user to at least one first identifier of the K first identifiers and at least one second identifier of the L second identifiers, the table information used by the electronic device to generate the target graph includes a numerical value corresponding to at least one first target item indicated by the at least one first identifier and a content corresponding to at least one second target item indicated by the at least one second identifier, that is, the target item indicated by the target identifier includes the at least one first target item and the at least one second target item.
Optionally, in this embodiment of the application, the electronic device may further display an editing control, so that the user performs an editing operation (for example, a selection operation, a deletion operation, a movement operation, and the like) on the K first identifiers and the L second identifiers.
Optionally, in this embodiment of the application, if the user needs to select some fields to generate the target chart, the user may first input the editing control, so that the K first identifiers and the L second identifiers are in a state to be edited, and thus the user may select and input some first identifiers of the K first identifiers and/or some second identifiers of the L second identifiers, so as to select some items to generate the target chart.
Optionally, in this embodiment of the application, if some field data values of non-index types are in a numerical format, and the electronic device determines the fields as index items, the user may input the editing control, so that the K first identifiers and the L second identifiers are in a state to be edited, and thus the user may perform movement input on some first identifiers of the K first identifiers, so as to modify the index items corresponding to the first identifiers into dimension items, and implement error correction processing on the index items.
The electronic device is taken as a mobile phone for illustration. With reference to table 1, as shown in fig. 2A, after the mobile phone acquires the first form information of the target form, K first identifiers (sales amount), L second identifiers (number, date, store, city, salesman), editing controls, and the like corresponding to the target form may be displayed; as shown in fig. 2B, after the user inputs the editing control, the cell phone may control the K first identifiers and the L second identifiers to be in a state to be edited, so that the user may select some identifiers from the identifiers, so that the cell phone may generate the target chart based on the dimension items and the index items indicated by the identifiers. It can be understood that if the user inputs the cancel control, the electronic device determines that the dimension item and the index item selected by the user are not effective, that is, the electronic device may generate the target chart based on all the dimension items and the index items.
Optionally, in this embodiment of the application, after the user inputs the editing control, the K first identifiers and the L second identifiers are in a state to be edited (i.e., enter a dimension and index editing state), the electronic device may default that all identifiers are in a selected state (e.g., all identifiers are displayed in a highlighted manner), and the user may click some identifiers to deselect the identifiers, so that the electronic device may generate the target chart based on the dimension items and the index items indicated by the selected (i.e., non-deselected) identifiers.
Step 202a, the electronic device displays a target chart corresponding to the target table based on the information of the target item indicated by the target identification in response to the first input.
It should be noted that, for a method for obtaining the target graph based on the information of the target item indicated by the target identifier, refer to the description in step 402 of the foregoing embodiment, which is not described herein again.
Optionally, in this embodiment of the application, the electronic device may generate and display the target chart in a default chart type (for example, a histogram type), so as to present dimension information and index information corresponding to the target table to a user.
Optionally, in this embodiment of the present application, before the step 202, the graph display method provided in this embodiment of the present application further includes the following step 501 and step 502, and the step 202 may be specifically realized by the following step 202 b.
Step 501, the electronic device displays at least one type identifier.
In this embodiment of the application, each of the at least one type identifier is used to indicate a chart type.
In this embodiment, before generating the target chart, the electronic device may display at least one type identifier for a user to select a chart type, so that the electronic device may generate the target chart of the chart type based on the chart type selected by the user.
For example, as shown in fig. 3, after the first form information of the target form is acquired, the mobile phone may display at least one type identifier (e.g., a bar graph, a line graph, a pie graph, etc.), so that a user may select and input one type identifier of the at least one type identifier, so that the mobile phone may generate the target form of the form type indicated by the type identifier.
Step 502, the electronic device receives a second input.
In an embodiment of the application, the second input is input by a user to a first type identifier of the at least one type identifier, where the first type identifier is used to indicate a first chart type.
Step 202b, the electronic device responds to the second input, and displays a target chart of the first chart type and corresponding to the target table according to the first table information.
Optionally, in this embodiment of the application, the electronic device may display the target chart of the first chart type under the condition that the at least one type identifier is displayed. Specifically, the electronic device may display at least one type identifier in a first preset area of the screen, and display a target chart of the first chart type in a second preset area.
For example, in conjunction with fig. 3, as shown in fig. 4, after the user makes a selection input for one of the at least one type identifier (e.g., a histogram), the mobile phone may generate and display a target chart of a histogram type while displaying the at least one type identifier.
Optionally, in this embodiment of the present application, after the step 202b, the chart display method provided in this embodiment of the present application further includes the following step 601 and step 602.
Step 601, the electronic device receives a third input.
In an embodiment of the application, the third input is an input of a second type identifier in the at least one type identifier by a user, where the second type identifier is used to indicate a second chart type.
In an embodiment of the application, the third input is used to trigger the electronic device to display a target graph of the second graph type.
Step 602, in response to the third input, the electronic device updates the displayed target chart of the first chart type and corresponding to the target table to a chart of the second chart type and corresponding to the target table.
In this embodiment of the application, the electronic device may generate a chart of the second chart type based on the acquired first table information and the second chart type of the target table, so as to switch the displayed target chart of the first chart type to a chart of the second chart type. It is understood that the chart of the second chart type and the target chart of the first chart type are different only in the type of the displayed chart, and the index information and the dimension information corresponding to the two charts are the same.
In the embodiment of the application, the forms included in the pictures are extracted from the shot pictures and provided for the user to select the entry of the dimension field, so that the electronic equipment can generate the chart with different dimensions and indexes according to the requirements of the user, and the diversity of the chart contents is increased; moreover, the user can select different chart types, so that the electronic equipment can generate different types of charts, and the diversity of the chart types is increased.
The embodiment of the application provides a chart display method, and an electronic device may acquire first table information of a target table in a first picture, where the first table information includes first information (indicating a numerical value corresponding to at least one first target item in a header of the target table) and second information (indicating content corresponding to at least one second target item in the header of the target table) of the target table, and display a target chart corresponding to the target table according to the first table information. The electronic equipment can acquire the table information of the target table from the first picture, and then generate and acquire the target chart corresponding to the target table, namely the visual type chart according to the table information, namely the numerical values corresponding to some items and the contents corresponding to some items in the header of the target table, so that the table in the picture is displayed in a visual type chart mode instead of the original display mode of the table, and therefore the display effect of the electronic equipment on the table in the picture is improved.
In addition, according to the scheme, the electronic file table does not need to be configured into the visual chart by the user through other tools, so that the operation of the user is simplified, and the efficiency of obtaining the visual chart by the electronic equipment is improved.
In the graph display method provided in the embodiment of the present application, the execution main body may be a graph display device, or a control module for executing the graph display method in the graph display device. In the embodiment of the present application, a diagram display apparatus executing a diagram display method is taken as an example, and the diagram display apparatus provided in the embodiment of the present application is described.
Fig. 5 shows a schematic diagram of a possible structure of the graph display device referred to in the embodiments of the present application. As shown in fig. 5, the graph display apparatus 50 may include: an acquisition module 51 and a display module 52.
The obtaining module 51 is configured to obtain first table information of a target table in a first picture, where the first table information includes first information and second information of the target table, the first information is used to indicate a numerical value corresponding to at least one first target item in a header of the target table, and the second information is used to indicate content corresponding to at least one second target item in the header of the target table. The display module 52 is configured to display a target chart corresponding to the target table according to the first table information acquired by the acquisition module 51.
In a possible implementation manner, the graph display apparatus 50 provided in the embodiment of the present application further includes: and a processing module. Before the obtaining module 51 obtains the first table information of the target table in the first picture, the processing module is configured to perform segmentation processing on the target table to obtain character information in each cell of the target table. The obtaining module 51 is specifically configured to determine the header of the target table from all the cells according to the character information in each cell, and determine the numerical value and the content corresponding to the header of the target table.
In a possible implementation manner, the display module 52 is further configured to, before displaying the target graph corresponding to the target table according to the first table information, display, according to the first information and the second information, K first identifiers and L second identifiers corresponding to the target table, where the K first identifiers are used to indicate K first target items, each first identifier is used to indicate one first target item of the K first target items, the L second identifiers are used to indicate L second target items, each second identifier is used to indicate one second target item of the L second target items, and L and K are both positive integers. The graph display apparatus 50 according to the embodiment of the present application further includes: and a receiving module. The receiving module is used for receiving a first input, wherein the first input is an input of a target identifier, and the target identifier comprises at least one of the following items: at least one first identifier in the K first identifiers and at least one second identifier in the L second identifiers; the at least one first indicator is for indicating at least one first target item and the at least one second indicator is for indicating at least one second target item. The display module 52 is specifically configured to, in response to the first input received by the receiving module, display the target chart corresponding to the target table based on the information of the target item indicated by the target identifier.
In a possible implementation manner, the display module is further configured to display at least one type identifier before displaying the target chart corresponding to the target table according to the first table information, where each type identifier is used to indicate a chart type. The graph display apparatus 50 according to the embodiment of the present application further includes: and a receiving module. The receiving module is configured to receive a second input, where the second input is an input to a first type identifier in the at least one type identifier, and the first type identifier is used to indicate a first chart type. The display module 52 is specifically configured to display the target chart of the first chart type and corresponding to the target table according to the first table information in response to the second input received by the receiving module.
In a possible implementation manner, the receiving module is further configured to receive a third input from the user after the display module 52 displays the target chart of the first chart type and corresponding to the target table, where the third input is an input from the user to a second type identifier of the at least one type identifier, and the second type identifier is used to indicate the second chart type. The graph display apparatus 50 according to the embodiment of the present application further includes: and updating the module. The updating module is used for responding to the third input received by the receiving module, and updating the target chart of the first chart type and corresponding to the target table into the chart of the second chart type and corresponding to the target table.
The embodiment of the application provides a chart display device, because electronic equipment can directly acquire the table information of a target table from a first picture, and then generate and obtain a target chart corresponding to the target table, namely a visual type chart, according to the table information, namely numerical values corresponding to certain items in a header of the target table and contents corresponding to certain items, so as to display the table in the picture in a visual type chart mode instead of displaying the table in the picture in an original display mode of the table, the display effect of the electronic equipment on the table in the picture is improved.
The graph display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The graph display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The graph display device provided in the embodiment of the present application can implement each process implemented by the method embodiments, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
Optionally, as shown in fig. 6, an electronic device 90 is further provided in the embodiment of the present application, and includes a processor 91, a memory 92, and a program or an instruction stored in the memory 92 and capable of being executed on the processor 91, where the program or the instruction is executed by the processor 91 to implement each process of the foregoing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 110 is configured to obtain first table information of a target table in a first picture, where the first table information includes first information and second information of the target table, the first information is used to indicate a numerical value corresponding to at least one first target item in a header of the target table, and the second information is used to indicate content corresponding to at least one second target item in the header of the target table.
And a display unit 106 for displaying a target chart corresponding to the target table according to the first table information.
The embodiment of the application provides an electronic device, which can directly acquire form information of a target form from a first picture, and then generate and acquire a target chart, namely a visual type chart, corresponding to the target form according to the form information, namely numerical values corresponding to certain items in a header of the target form and contents corresponding to the certain items, so as to display the form in the picture in a visual type chart mode instead of displaying the form in the picture in an original display mode of the form, thereby improving the display effect of the electronic device on the form in the picture.
Optionally, in this embodiment of the application, the processor 110 is further configured to, before acquiring the first table information of the target table in the first picture, perform segmentation processing on the target table to acquire character information in each cell of the target table. The processor 110 is specifically configured to determine a header of the target table from all the cells according to the character information in each cell, and determine a numerical value and content corresponding to the header of the target table.
Optionally, in this embodiment of the application, the display unit 106 is further configured to, before displaying the target graph corresponding to the target table according to the first table information, display, according to the first information and the second information, K first identifiers and L second identifiers corresponding to the target table, where the K first identifiers are used to indicate K first target items, each first identifier is used to indicate one first target item of the K first target items, the L second identifiers are used to indicate L second target items, each second identifier is used to indicate one second target item of the L second target items, and L and K are both positive integers. A user input unit 107 for receiving a first input, the first input being an input to a target identity, the target identity comprising at least one of: at least one first identifier in the K first identifiers and at least one second identifier in the L second identifiers; the at least one first indicator is for indicating at least one first target item and the at least one second indicator is for indicating at least one second target item. The display unit 106 is specifically configured to, in response to the first input, display a target graph corresponding to the target table based on the information of the target item indicated by the target identifier.
In a possible implementation manner, the display unit 106 is further configured to display at least one type identifier before displaying the target chart corresponding to the target table according to the first table information, where each type identifier is respectively used to indicate one chart type. The user input unit 107 is further configured to receive a second input, where the second input is an input of a first type identifier of the at least one type identifier, and the first type identifier is used to indicate the first chart type. The display unit 106 is specifically configured to display, in response to the second input, a target chart of the first chart type and corresponding to the target table according to the first table information.
In a possible implementation manner, the user input unit 107 is further configured to receive a third input from the user after the display unit 106 displays the target chart of the first chart type and corresponding to the target table, where the third input is an input from the user to a second type identifier of the at least one type identifier, and the second type identifier is used for indicating a second chart type. The processor 110 is further configured to update the target chart of the first chart type and corresponding to the target table to a chart of the second chart type and corresponding to the target table in response to a third input.
The electronic device provided by the embodiment of the application can realize each process realized by the method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A method of displaying a chart, the method comprising:
acquiring first table information of a target table in a first picture, wherein the first table information comprises first information and second information of the target table, the first information is used for indicating a numerical value corresponding to at least one first target item in a header of the target table, and the second information is used for indicating content corresponding to at least one second target item in the header of the target table;
and displaying a target chart corresponding to the target table according to the first table information.
2. The method of claim 1, wherein before obtaining the first table information of the target table in the first picture, the method further comprises:
carrying out segmentation processing on the target table to obtain character information in each cell of the target table;
the acquiring first table information of a target table in a first picture includes:
and determining the header of the target table from all the cells according to the character information in each cell, and determining the numerical value and the content corresponding to the header of the target table.
3. The method according to claim 1 or 2, wherein before displaying the target chart corresponding to the target table according to the first table information, the method further comprises:
displaying K first identifications and L second identifications corresponding to the target table according to the first information and the second information, wherein the K first identifications are used for indicating K first target items, each first identification is used for indicating one first target item in the K first target items, the L second identifications are used for indicating L second target items, each second identification is used for indicating one second target item in the L second target items, and both L and K are positive integers;
receiving a first input, the first input being an input to a target identification, the target identification comprising at least one of: at least one first identifier in the K first identifiers and at least one second identifier in the L second identifiers; the at least one first identifier is used for indicating the at least one first target item, and the at least one second identifier is used for indicating the at least one second target item;
the displaying a target chart corresponding to the target table according to the first table information includes:
in response to the first input, displaying a target chart corresponding to the target table based on information of a target item indicated by the target identification.
4. The method of claim 1, wherein before displaying a target graph corresponding to the target table according to the first table information, the method further comprises:
displaying at least one type identifier, wherein each type identifier is respectively used for indicating a chart type;
receiving a second input, wherein the second input is an input of a first type identifier in the at least one type identifier, and the first type identifier is used for indicating a first chart type;
the displaying a target chart corresponding to the target table according to the first table information includes:
in response to the second input, displaying the target chart of the first chart type and corresponding to the target table according to the first table information.
5. The method of claim 4, wherein after displaying the target chart of the first chart type and corresponding to the target table, the method further comprises:
receiving a third input, wherein the third input is an input of a second type identifier in the at least one type identifier, and the second type identifier is used for indicating a second chart type;
in response to the third input, updating the displayed target chart of the first chart type and corresponding to the target table to a chart of the second chart type and corresponding to the target table.
6. A chart display apparatus, characterized by comprising: the device comprises an acquisition module and a display module;
the obtaining module is configured to obtain first table information of a target table in a first picture, where the first table information includes first information and second information of the target table, the first information is used to indicate a numerical value corresponding to at least one first target item in a header of the target table, and the second information is used to indicate content corresponding to at least one second target item in the header of the target table;
the display module is used for displaying a target chart corresponding to the target table according to the first table information acquired by the acquisition module.
7. The apparatus of claim 6, wherein the chart display apparatus further comprises: a processing module;
the processing module is used for performing segmentation processing on the target table to acquire character information in each cell of the target table before the acquisition module acquires the first table information of the target table in the first picture;
the obtaining module is specifically configured to determine, according to the character information in each cell, a header of the target table from all the cells, and determine a numerical value and content corresponding to the header of the target table.
8. The apparatus according to claim 6 or 7, wherein the display module is further configured to, before displaying a target graph corresponding to the target table according to the first table information, display, according to the first information and the second information, K first identifiers and L second identifiers corresponding to the target table, where the K first identifiers are used to indicate K first target items, each first identifier is used to indicate one first target item of the K first target items, the L second identifiers are used to indicate L second target items, each second identifier is used to indicate one second target item of the L second target items, and L and K are both positive integers;
the graph display device further includes: a receiving module;
the receiving module is configured to receive a first input, where the first input is an input to a target identifier, and the target identifier includes at least one of: at least one first identifier in the K first identifiers and at least one second identifier in the L second identifiers; the at least one first identifier is used for indicating the at least one first target item, and the at least one second identifier is used for indicating the at least one second target item;
the display module is specifically configured to display, in response to the first input received by the receiving module, a target graph corresponding to the target table based on the information of the target item indicated by the target identifier.
9. The apparatus of claim 6, wherein the display module is further configured to display at least one type identifier before displaying the target chart corresponding to the target table according to the first table information, each type identifier being respectively used to indicate a chart type;
the graph display device further includes: a receiving module;
the receiving module is configured to receive a second input, where the second input is an input to a first type identifier of the at least one type identifier, and the first type identifier is used to indicate a first chart type;
the display module is specifically configured to display, in response to the second input received by the receiving module, the target chart of the first chart type and corresponding to the target table according to the first table information.
10. The apparatus of claim 9, wherein the receiving module is further configured to receive a third input after the display module displays the target chart of the first chart type, the third input being an input to a second type identifier of the at least one type identifier, the second type identifier being used to indicate a second chart type;
the graph display device further includes: an update module;
the updating module is used for responding to the third input received by the receiving module, and updating the target chart which is displayed in the first chart type and corresponds to the target table to a chart which is displayed in the second chart type and corresponds to the target table.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the chart display method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the chart display method according to any one of claims 1 to 5.
CN202011620842.9A 2020-12-31 2020-12-31 Chart display method and device and electronic equipment Pending CN112765946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011620842.9A CN112765946A (en) 2020-12-31 2020-12-31 Chart display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011620842.9A CN112765946A (en) 2020-12-31 2020-12-31 Chart display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112765946A true CN112765946A (en) 2021-05-07

Family

ID=75698346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011620842.9A Pending CN112765946A (en) 2020-12-31 2020-12-31 Chart display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112765946A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268686A (en) * 2021-05-25 2021-08-17 山东卓创资讯股份有限公司 Processing method for multiple browsing modes of form in information at APP (application) end

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062261A (en) * 2019-11-25 2020-04-24 维沃移动通信(杭州)有限公司 Image processing method and device
CN111274781A (en) * 2020-01-21 2020-06-12 北京三快在线科技有限公司 Table display method and device, storage medium and electronic equipment
CN111625166A (en) * 2020-05-21 2020-09-04 维沃移动通信有限公司 Picture display method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062261A (en) * 2019-11-25 2020-04-24 维沃移动通信(杭州)有限公司 Image processing method and device
CN111274781A (en) * 2020-01-21 2020-06-12 北京三快在线科技有限公司 Table display method and device, storage medium and electronic equipment
CN111625166A (en) * 2020-05-21 2020-09-04 维沃移动通信有限公司 Picture display method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113268686A (en) * 2021-05-25 2021-08-17 山东卓创资讯股份有限公司 Processing method for multiple browsing modes of form in information at APP (application) end
CN113268686B (en) * 2021-05-25 2022-08-26 山东卓创资讯股份有限公司 Processing method for multiple browsing modes of form in information at APP (application) end

Similar Documents

Publication Publication Date Title
CN112269798B (en) Information display method and device and electronic equipment
CN112099684A (en) Search display method and device and electronic equipment
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN112698775B (en) Image display method and device and electronic equipment
CN112765946A (en) Chart display method and device and electronic equipment
CN112269504A (en) Information display method and device and electronic equipment
CN112783594A (en) Message display method and device and electronic equipment
CN112596643A (en) Application icon management method and device
CN113868269A (en) Screenshot method and device, electronic equipment and readable storage medium
CN111796736B (en) Application sharing method and device and electronic equipment
CN114115622A (en) Display control method, display control device, electronic device, and medium
CN114491218A (en) Information updating method, information updating device, electronic device, and medium
CN113867864A (en) Information display method and device, electronic equipment and readable storage medium
CN113885743A (en) Text content selection method and device
CN113010072A (en) Searching method and device, electronic equipment and readable storage medium
CN113239212A (en) Information processing method and device and electronic equipment
CN112307273A (en) Information query method and device and electronic equipment
CN112286613A (en) Interface display method and interface display device
CN112084151A (en) File processing method and device and electronic equipment
CN112286615A (en) Information display method and device of application program
CN113162840B (en) Display method, display device, electronic apparatus, and readable storage medium
CN112183149B (en) Graphic code processing method and device
CN111523288B (en) Display method and device for aerial view of PDF document
CN113515211A (en) Information display method, device, equipment and medium
CN112732464A (en) Pasting method and device and electronic equipment

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