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

Chart display method and device and electronic equipment Download PDF

Info

Publication number
CN112765946B
CN112765946B CN202011620842.9A CN202011620842A CN112765946B CN 112765946 B CN112765946 B CN 112765946B CN 202011620842 A CN202011620842 A CN 202011620842A CN 112765946 B CN112765946 B CN 112765946B
Authority
CN
China
Prior art keywords
target
chart
information
identifier
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011620842.9A
Other languages
Chinese (zh)
Other versions
CN112765946A (en
Inventor
喻静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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/CN112765946B/en
Publication of CN112765946A publication Critical patent/CN112765946A/en
Application granted granted Critical
Publication of CN112765946B publication Critical patent/CN112765946B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 [1D] positioning
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种图表显示方法、装置及电子设备,属于通信技术领域,能够解决电子设备对图片中的表格的显示效果单一的问题。该方法包括:获取第一图片中的目标表格的第一表格信息,该第一表格信息包括目标表格的第一信息和第二信息,该第一信息用于指示目标表格的表头中的至少一个第一目标项对应的数值,该第二信息用于指示目标表格的表头中的至少一个第二目标项对应的内容;根据第一表格信息,显示与目标表格对应的目标图表。本申请实施例应用于基于图片中的表格输出可视化图表的过程中。

The present application discloses a method, device and electronic device for displaying a chart, which belongs to the field of communication technology and can solve the problem that the electronic device has a single display effect on a table in a picture. The method includes: obtaining first table information of a target table in a first picture, 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 the header of the target table, and the second information is used to indicate the content corresponding to at least one second target item in the header of the target table; according to the first table information, displaying a target chart corresponding to the target table. The embodiment of the present application is applied to the process of outputting a visual chart based on a table in a 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 shot picture includes chart content, the electronic device may identify a table in the chart to extract the table content therein, and convert the table content into a spreadsheet for saving.
However, in the above method, the table contents finally stored by the electronic device are in the form of electronic file table, that is, the electronic device displays the table in the picture in a fixed manner (that is, the original display manner of the table), so that 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, which can solve the problem that the display effect of the electronic equipment on a table in a picture is single.
In order to solve the technical problems, the application is realized as follows:
In a first aspect, an embodiment of the present application provides a graph display method, including: 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 table head of the target table, and the second information is used for indicating content corresponding to at least one second target item in the table head 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: an acquisition module and a display module. 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 table head of the target table, and the second information is used for indicating content corresponding to at least one second target item in the table head of the target table. And 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.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform 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 where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, the electronic device may acquire first table information of the target table in the first picture, where the first table information includes first information (indicating a value corresponding to at least one first target item in a header of the target table) and second information (indicating a 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. Because the electronic equipment can acquire the table information of the target table from the first picture, and then generate the target table corresponding to the target table, namely the table of the visual type, according to the table information, namely the numerical value corresponding to some items in the table head of the target table and the content corresponding to some items, so that the table in the picture is displayed in the visual type table mode, and the table in the picture is not displayed in the original table display mode, the display effect of the electronic equipment on the table in the picture is improved.
Drawings
FIG. 1 is a schematic diagram of a method for displaying a graph according to an embodiment of the present application;
fig. 2A is an example schematic diagram of an interface of a mobile phone according to an embodiment of the present application;
FIG. 2B is a diagram illustrating a second example of an interface of a mobile phone according to an embodiment of the present application;
FIG. 3 is a third exemplary diagram of an interface of a mobile phone according to an embodiment of the present application;
FIG. 4 is a diagram illustrating 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 schematic diagram display device according to an embodiment of the present application;
Fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
Fig. 7 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The chart display method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
In the embodiment of the application, the electronic equipment can perform image recognition on the shot picture to recognize the form in the shot picture, so that the form is quickly converted into the visual chart. Specifically, after the user triggers the electronic device to take the picture, the electronic device may extract dimension information (i.e., second information described in the following embodiments) and index information (i.e., first information described in the following embodiments) of the table cells in the taken picture, and then the electronic device may generate content of a type of a visual chart (for example, in a form of a bar chart, a line chart, a pie chart, or the like) of the table form in the taken picture according to the extracted dimension information and index information, without the user configuring the electronic file table into the visual chart through other tools, so that the operation of the user is simplified, the requirement of the user on the visual chart is met, and the display effect of the electronic device on the table in the picture is improved.
It should be noted that, in the embodiment of the present application, the index information is used to indicate the numerical value (for example, sales amount) in the table, that is, the numerical value corresponding to the information of each dimension (for example, sales person, sales city, etc.), and when the table is converted into the visual chart, the index information can reflect the evaluation condition of the event (for example, sales event) corresponding to the table.
The chart display method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The embodiment of the application provides a chart display method, and fig. 1 shows a flowchart of the chart display method provided by the embodiment of the application, and the method can be applied to electronic equipment. As shown in fig. 1, the graph display method provided by the embodiment of the present application may include the following steps 201 and 202.
Step 201, the electronic device obtains first table information of a target table in a first picture.
In the 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 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 the embodiment of the present application, 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 part or all of the at least one first item, and the at least one second target item is a part or all of the at least one second item.
It should be noted that, the value corresponding to one first target item may be understood as a value (for example, a sales value) of a row/column where the one first target item is located in the table, and may represent an evaluation condition of an event (for example, a sales event) corresponding to the table; the content corresponding to one second target item may be understood as the content of the row/column (e.g., name of sales person, name of sales city) to which the one second target item is located, and may characterize the item/dimension represented by the one second target item.
In the embodiment of the present application, the first picture includes a target table (content displayed in a table format); after the electronic device obtains the first picture, image preprocessing can be performed on the first picture to identify a target table from the first picture, and then the electronic device can perform segmentation processing on the target table to obtain first table information.
Optionally, in the embodiment of the present application, the first picture may be obtained by shooting the electronic device through a camera currently; or the first picture can be a history picture obtained by the electronic device from the album application program; or the first picture may be downloaded by the electronic device through an application program (e.g., a browser application program). The specific requirements can be determined according to actual use, and the embodiment of the application is not limited.
Optionally, in the embodiment of the present application, before the step 201, the method for displaying a chart provided in the embodiment of the present application further includes the following step 301, and the step 201 may be specifically implemented by the following step 201 a.
Step 301, the electronic device performs a segmentation process 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 value and the content corresponding to the header of the target table.
Optionally, in the embodiment of the present application, for each cell of the target table, the electronic device may perform image binarization by using a maximum inter-class variance method to segment all characters in the cell of the target table, and then the electronic device may identify each character in the cell of the extracted target table by optical character recognition (optical character recognition, OCR) to obtain data of the whole table (i.e. a value and a 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 whether the header item is an index item (first item) or a dimension item (second item) according to whether the value in the table corresponding to each header item is a numerical value.
The values of the indicators are in 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, the header item can be judged to be an index item; if the table data corresponding to a certain header item (i.e., the table data in the table corresponding to the header item) is a non-numeric value, the header item may be determined to be a dimension item.
Illustratively, as shown in Table 1, each index item and each dimension item corresponding to a header in the target table are shown.
TABLE 1
Numbering device Date of day Store City Sales clerk 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 shop City a Staff 3 11000
04 2020/06/11 D shop City a Staff 3 6500
05 2020/06/11 Store B City b Staff 4 9000
06 2020/06/20 Store 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 header of the target table is the number, the date, the store, the city, the sales person and the sales amount, wherein the header items are the number, the date, the store, the city and the sales person, and the table data corresponding to the table data are non-numerical values, and the header items are determined to be dimension items, namely at least one second item, and the header items are the sales amount corresponding values are determined to be numerical values, and the header items are determined to be index items, namely at least one first item.
Step 202, the electronic device displays a target chart corresponding to the target table according to the first table information.
In the embodiment of the present application, the target chart is a visual chart, that is, the target chart may be a visual chart, and the visual chart may include at least one of the following: bar graph type, line graph type, pie graph type, sang Jitu type, radar graph type, etc.
Optionally, in the embodiment of the present application, the electronic device may generate and display, according to the first table information, a target chart corresponding to the target table by using the default visualization type.
Optionally, in the embodiment of the present application, before the step 202, the method for displaying a chart provided in the embodiment of the present application further includes the following step 401 and step 402, and the step 202 may be specifically implemented 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 the embodiment of the present 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 of the K first target items. The L second identifiers are used for indicating L second target items, each second identifier in the L second identifiers is used for indicating one second target item in the L second target items, and L and K are positive integers.
It should be noted that the K first target items are some or all of at least one first target item, and the L second target items are some or all of 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 the 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 the following: at least one first identifier of the K first identifiers and at least one second identifier of the L second identifiers; the at least one first identifier is used to indicate at least one first target item and the at least one second identifier is used to indicate 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 making a first input to 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 the numerical value and the content corresponding to the some items.
In one manner, when the first input is input by the user to at least one first identifier of the K first identifiers, table information used when the electronic device generates the target chart includes a 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 manner, when the first input is input by the user to at least one second identifier of the L second identifiers, the table information used when the electronic device generates the target chart includes content corresponding to at least one second target item indicated by the at least one second identifier and values corresponding to K first target items indicated by the K first identifiers, that is, the target item indicated by the target identifier includes the K first target items and the at least one second target item.
In still another manner, in the case that the first input is input by the user on at least one first identifier of the K first identifiers and at least one second identifier of the L second identifiers, table information used when the electronic device generates the target chart includes a value corresponding to at least one first target item indicated by the at least one first identifier and 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 the embodiment of the present application, the electronic device may further display an edit control for performing an editing operation (such as a selection operation, a deletion operation, a movement operation, etc.) on the K first identifiers and the L second identifiers by the user.
Optionally, in the embodiment of the present application, if the user needs to select some fields to generate the target chart, the user may input the editing control first, so that the K first identifiers and the L second identifiers are in a state to be edited, so that the user may perform selection input on some first identifiers of the K first identifiers and/or some second identifiers of the L second identifiers to select some items to generate the target chart.
Optionally, in the embodiment of the present application, if some field data values of non-index types are in a numerical format, and the electronic device determines these fields as index items, the user may input the editing control so that K first identifiers and L second identifiers are in a state to be edited, so that the user may perform mobile input on some first identifiers in the K first identifiers to modify the index items corresponding to the first identifiers into dimension items, so as to implement error correction processing on the index items.
An electronic device is exemplified as a mobile phone. Referring to table 1, as shown in fig. 2A, after obtaining the first table information of the target table, the mobile phone may display K first identifiers (sales amount), L second identifiers (number, date, store, city, salesman) and editing controls corresponding to the target table; as shown in fig. 2B, after the user inputs the editing control, the mobile phone may control K first identifiers and 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 mobile phone may generate the target chart based on the dimension items and the index items indicated by the identifiers. It will be appreciated that if the user enters the cancel control, the electronic device determines that the dimension item and the index item selected by the user are not valid, i.e., the electronic device may generate the target chart based on all of the dimension items and the index item.
Optionally, in the embodiment of the present 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), and the electronic device may default all the identifiers to be in a selected state (e.g. display all the identifiers in a highlighting manner), so that the user may click on some identifiers to deselect the identifiers, so that the electronic device may generate the target chart based on the dimension items and index items indicated by the selected (i.e. unselected) identifiers.
In step 202a, the electronic device responds to the first input, and displays a target chart corresponding to the target table based on information of the target item indicated by the target identifier.
It should be noted that, for the method for obtaining the target chart according to the information of the target item indicated by the target identifier in the electronic device, refer to the description in step 402 of the foregoing embodiment, which is not repeated herein.
Optionally, in the embodiment of the present application, the electronic device may generate and display the target chart with a default chart type (for example, a histogram type) so as to display the dimension information and the index information corresponding to the target table to the user.
Optionally, in the embodiment of the present application, before the step 202, the method for displaying a chart provided in the embodiment of the present application further includes the following step 501 and step 502, and the step 202 may be specifically implemented by the following step 202 b.
Step 501, the electronic device displays at least one type identifier.
In the embodiment of the present application, each type identifier in the at least one type identifier is used to indicate a chart type.
In the embodiment of the application, before generating the target chart, the electronic device can display at least one type identifier for a user to select one chart type, so that the electronic device can 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 mobile phone acquires the first table information of the target table, at least one type identifier (such as a bar chart, a line chart, a pie chart, etc.) may be displayed, so that a user may make a selection input on one type identifier of the at least one type identifier, so that the mobile phone may generate a target chart of a chart type indicated by the type identifier.
Step 502, the electronic device receives a second input.
In the embodiment of the present application, the second input is an input of a first type identifier in at least one type identifier by a user, 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 the embodiment of the present application, the electronic device may display the target chart of the first chart type under the condition that at least one type identifier is displayed. Specifically, the electronic device may display at least one type identifier in a first preset area in the screen, and display a target chart of the first chart type in a second preset area.
Illustratively, in connection with FIG. 3, as shown in FIG. 4, after a user has entered a selection of one of the at least one type identifier (e.g., a bar graph), the handset may generate and display a target chart of the bar graph type with the at least one type identifier displayed.
Optionally, in the embodiment of the present application, after the step 202b, the method for displaying a chart provided in the embodiment of the present application further includes the following steps 601 and 602.
Step 601, the electronic device receives a third input.
In the embodiment of the present application, the third input is an input of a second type identifier from at least one type identifier by a user, where the second type identifier is used to indicate a second chart type.
In the embodiment of the present application, the third input is used to trigger the electronic device to display the target chart of the second chart type.
In step 602, the electronic device updates, in response to the third input, the displayed target chart of the first chart type and corresponding to the target table to the chart of the second chart type and corresponding to the target table.
In the embodiment of the application, the electronic device can generate the chart of the second chart type based on the first table information and the second chart type of the acquired target table so as to switch the displayed target chart of the first chart type into the chart of the second chart type. It will be appreciated that the charts of the second chart type and the target charts of the first chart type are different only in the displayed chart type, and the index information and the dimension information corresponding to the two charts are the same.
According to the embodiment of the application, the table included in the picture is extracted from the shot picture 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 chart contents is increased; and, the user can select different chart types to make the electronic equipment generate different types of charts, thereby increasing the diversity of chart types.
The embodiment of the application provides a chart display method, electronic equipment can acquire first table information of a target table in a first picture, wherein the first table information comprises first information (a numerical value corresponding to at least one first target item in a table head of the target table) and second information (a content corresponding to at least one second target item in the table head of the target table) of the target table, and a target chart corresponding to the target table is displayed according to the first table information. Because the electronic equipment can acquire the table information of the target table from the first picture, and then generate the target table corresponding to the target table, namely the table of the visual type, according to the table information, namely the numerical value corresponding to some items in the table head of the target table and the content corresponding to some items, so that the table in the picture is displayed in the visual type table mode, and the table in the picture is not displayed in the original table display mode, the display effect of the electronic equipment on the table in the picture is improved.
In addition, in the scheme, the electronic file table is not required to be configured into the visual chart by a user through other tools, so that the operation of the user is simplified, and the efficiency of the electronic equipment for obtaining the visual chart is improved.
It should be noted that, in the graph display method provided by the embodiment of the present application, the execution subject may be a graph display device, or a control module in the graph display device for executing the graph display method. In the embodiment of the application, a graph display device is taken as an example to execute a graph display method.
Fig. 5 shows a schematic diagram of one possible configuration of a graphic display device involved in an embodiment 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 the 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 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 one possible implementation manner, the graph display apparatus 50 provided in the embodiment of the present application further includes: and a processing module. The processing module is configured to perform a segmentation process on the target table before the obtaining module 51 obtains the first table information of the target table in the first picture, so as to obtain character information in each cell of the target table. The above-mentioned 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 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 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 positive integers, before displaying the target chart corresponding to the target table according to the first table information. The graph display apparatus 50 provided in 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 input of a target identifier, and the target identifier comprises at least one of the following: at least one first identifier of the K first identifiers and at least one second identifier of the L second identifiers; the at least one first identifier is used to indicate at least one first target item and the at least one second identifier is used to indicate at least one second target item. The display module 52 is specifically configured to display, in response to the first input received by the receiving module, a 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, according to the first table information, the target chart corresponding to the target table, where each type identifier is used to indicate a chart type. The graph display apparatus 50 provided in the embodiment of the present application further includes: and a receiving module. The receiving module is used for receiving a second input, wherein the second input is input of a first type identifier in the at least one type identifier, and the first type identifier is used for indicating the first chart type. The display module 52 is specifically configured to display, according to the first table information, a target table of the first table type and corresponding to the target table in response to the second input received by the receiving module.
In a possible implementation manner, the receiving module is further configured to, after the display module 52 displays the target chart of the first chart type and corresponding to the target table, receive a third input of the user, where the third input is input by the user of 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 provided in 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 which is of the first chart type and corresponds to the target table into the chart which is of the second chart type and corresponds to the target table.
The embodiment of the application provides a chart display device, which can directly acquire the table information of a target table from a first picture, and then generate a target chart corresponding to the target table, namely a chart of a visual type, according to the table information, namely the numerical value corresponding to some items in the table head of the target table and the content corresponding to some items, so as to realize the display of the table in the picture in the visual type chart mode, rather than the original display mode of the table, thereby improving the display effect of the electronic device on the table in the picture.
The schematic display device in the embodiment of the application can be a device, and also can be a component, an integrated circuit or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The graph display apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The chart display device provided by the embodiment of the application can realize each process realized by the embodiment of the method and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
Optionally, as shown in fig. 6, the embodiment of the present application further provides an electronic device 90, including a processor 91, a memory 92, and a program or an instruction stored in the memory 92 and capable of running on the processor 91, where the program or the instruction implements each process of the embodiment of the method when executed by the processor 91, and the process can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
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: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via 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 shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 110 is configured to obtain first table information of a target table in the 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 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 electronic equipment, which can directly acquire the table information of the target table from the first picture, and then generate the target table corresponding to the target table, namely the table of the visual type, according to the table information, namely the numerical value corresponding to some items in the table head of the target table and the content corresponding to some items, so as to realize the display of the table in the picture in the visual type table mode, rather than the original display mode of the table, thereby improving the display effect of the electronic equipment on the table in the picture.
Optionally, in the embodiment of the present application, the processor 110 is further configured to perform a segmentation process on the target table before acquiring the first table information of the target table in the first picture, so as to acquire character information in each cell of the target table. The processor 110 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 value and the content corresponding to the header of the target table.
Optionally, in the embodiment of the present application, before displaying the target chart corresponding to the target table according to the first table information, the display unit 106 is further configured to display, according to the first information and the second information, K first identifiers corresponding to the target table and L second identifiers, 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, each L second identifier is 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 positive integers. A user input unit 107 for receiving a first input, the first input being an input of a target identity, the target identity comprising at least one of: at least one first identifier of the K first identifiers and at least one second identifier of the L second identifiers; the at least one first identifier is used to indicate at least one first target item and the at least one second identifier is used to indicate at least one second target item. The display unit 106 is specifically configured to display, in response to the first input, a target chart corresponding to the target table based on information of the target item indicated by the target identification.
In a possible implementation manner, the display unit 106 is further configured to display at least one type identifier, where each type identifier is used to indicate a chart type, before displaying the target chart corresponding to the target table according to the first table information. The user input unit 107 is further configured to receive a second input, the second input being an input of a first type identifier of the at least one type identifier, the first type identifier being used to indicate the first chart type. The display unit 106 is specifically configured to display, according to the first table information, a target chart of the first chart type and corresponding to the target table in response to the second input.
In a possible implementation, the user input unit 107 is further configured to receive, after the display unit 106 displays the target chart of the first chart type and corresponding to the target table, a third input of the user, where the third input is an input of 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 processor 110 is further configured to update the target chart of the first chart type and corresponding to the target table to the chart of the second chart type and corresponding to the target table in response to the third input.
The electronic device provided by the embodiment of the application can realize each process realized by the embodiment of the method and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g. 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, a joystick, and so forth, which are not described in detail herein. 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 that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that 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 application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a 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 (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the method, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A graph display method, characterized in that the method comprises:
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 table head of the target table, and the second information is used for indicating content corresponding to at least one second target item in the table head of the target table;
Displaying a target chart corresponding to the target table according to the first table information;
before the target chart corresponding to the target table is displayed according to the first table information, the method further comprises:
Displaying K first identifiers and L second identifiers corresponding to the target table according to the first information and the second information, wherein the K first identifiers are used for indicating K first target items, each first identifier is used for indicating one first target item in the K first target items respectively, the L second identifiers are used for indicating L second target items, each second identifier is used for indicating one second target item in the L second target items respectively, and L and K are positive integers;
Receiving a first input, the first input being an input of a target identity, the target identity comprising at least one of: at least one first identifier of the K first identifiers and at least one second identifier of 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;
and displaying a target chart corresponding to the target table according to the first table information, wherein the target chart comprises the following components:
and responding to the first input, and displaying a target chart corresponding to the target table based on the information of the target item indicated by the target identification.
2. The method of claim 1, wherein prior to the obtaining the first table information of the target table in the first picture, the method further comprises:
performing segmentation processing on the target table to obtain character information in each cell of the target table;
the obtaining the first table information of the target table in the 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 corresponding numerical value and content of the header of the target table.
3. The method of claim 1, wherein before displaying a target chart 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 used for indicating a chart type;
Receiving a second input, wherein the second input is 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;
and displaying a target chart corresponding to the target table according to the first table information, wherein the target chart comprises the following components:
and 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.
4. A method according to claim 3, wherein after said 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 input for a second type identifier in the at least one type identifier, and the second type identifier is used for indicating a second chart type;
And in response to the third input, updating the target chart of the first chart type and corresponding to the target table to the chart of the second chart type and corresponding to the target table.
5. A graph display apparatus, characterized in that the graph display apparatus includes: an acquisition module and a display module;
The acquisition module is configured to acquire 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 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;
The display module is further configured to display, before displaying a target chart corresponding to the target table according to the first table information, K first identifiers and L second identifiers corresponding to the target table according to the first information and the second information, 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 positive integers;
the graph display apparatus 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 the following: at least one first identifier of the K first identifiers and at least one second identifier of 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 chart corresponding to the target table based on information of a target item indicated by the target identifier.
6. The apparatus of claim 5, wherein the graphic display apparatus further comprises: a processing module;
the processing module is used for dividing the target table before the acquisition module acquires the first table information of the target table in the first picture so as to acquire character information in each cell of the target table;
The acquisition module is specifically configured to determine, from all the cells, a header of the target table according to the character information in each cell, and determine a value and content corresponding to the header of the target table.
7. The apparatus of claim 5, wherein the display module is further configured to display at least one type identifier, each type identifier being used to indicate a chart type, respectively, before displaying a target chart corresponding to the target table according to the first table information;
the graph display apparatus further includes: a receiving module;
The receiving module is used for receiving a second input, wherein the second input is 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 display module is specifically configured to display, according to the first table information, the target chart of the first chart type and corresponding to the target table in response to the second input received by the receiving module.
8. The apparatus of claim 7, 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 of identification of the at least one type of identification, the second type of identification being used to indicate a second chart type;
the graph display apparatus further includes: updating a module;
The updating module is configured to update the target chart of the first chart type and corresponding to the target table to the chart of the second chart type and corresponding to the target table in response to the third input received by the receiving module.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the diagrammatical display method as claimed in any one of claims 1 to 4.
10. A readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implements the steps of the graph display method according to any one of claims 1 to 4.
CN202011620842.9A 2020-12-31 2020-12-31 Chart display method and device and electronic equipment Active CN112765946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011620842.9A CN112765946B (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 CN112765946B (en) 2020-12-31 2020-12-31 Chart display method and device and electronic equipment

Publications (2)

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

Family

ID=75698346

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN112765946B (en)

Families Citing this family (1)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197114A (en) * 2018-01-19 2018-06-22 腾讯科技(深圳)有限公司 Detection method, device, storage medium and the electronic device of list data
CN109543162A (en) * 2018-10-17 2019-03-29 金蝶软件(中国)有限公司 More diagrammatic representation method, apparatus, computer equipment and the storage medium of data
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 维沃移动通信有限公司 Image display method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5558995B2 (en) * 2010-09-30 2014-07-23 富士フイルム株式会社 Color value acquisition method, image processing method, color value acquisition device, image processing device, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108197114A (en) * 2018-01-19 2018-06-22 腾讯科技(深圳)有限公司 Detection method, device, storage medium and the electronic device of list data
CN109543162A (en) * 2018-10-17 2019-03-29 金蝶软件(中国)有限公司 More diagrammatic representation method, apparatus, computer equipment and the storage medium of data
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 维沃移动通信有限公司 Image display method and device

Also Published As

Publication number Publication date
CN112765946A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN112269504B (en) Information display method and device and electronic equipment
CN113194024B (en) Information display method and device and electronic equipment
CN113868269A (en) Screenshot method and device, electronic equipment and readable storage medium
CN111813284A (en) Application program interaction method and device
WO2021254251A1 (en) Input display method and apparatus, and electronic device
CN114063845A (en) Display method, display device and electronic equipment
CN112269522A (en) Image processing method, image processing device, electronic equipment and readable storage medium
CN112698775A (en) Image display method and device and electronic equipment
CN112698762B (en) Icon display method and device and electronic equipment
CN114115622A (en) Display control method, display control device, electronic device, and medium
CN112765946B (en) Chart display method and device and electronic equipment
CN114491218B (en) Information updating methods, information updating devices, electronic devices and media
CN111796736B (en) Application sharing method and device and electronic equipment
WO2022237877A1 (en) Information processing method and apparatus, and electronic device
CN112287850A (en) Article information identification method and device, electronic equipment and readable storage medium
CN117519884A (en) Application notes methods, devices, electronic equipment and storage media
CN113885743B (en) Text content selection method and device
CN115993892A (en) Information input method, device and electronic equipment
CN111796733B (en) Image display method, image display device and electronic equipment
CN115203575A (en) Activity page recommendation method, device, equipment and storage medium
CN113794943A (en) Video cover setting method and device, electronic equipment and storage medium
CN112183149A (en) Graphic code processing method and device
CN113867864A (en) Information display method and device, electronic equipment and readable storage medium
CN112732464B (en) Pasting method, device and electronic equipment
CN113010072A (en) Searching method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant