Table processing method and apparatus, and computer program product

By automatically identifying and converting the scanned table contents, the problem of cumbersome table processing operations in the prior art is solved, and fast and simplified table conversion and processing function switching is achieved.

CN119443065APending Publication Date: 2025-02-14GUANGZHOU KINGSOFT MOBILE TECH +3
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411425440.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, the user needs to manually perform further processing after scanning the item, which is complicated and redundant.

Method used

Provide a table processing method, by displaying the first page, responding to the trigger operation of the table conversion function, identifying objects including table contents, and automatically converting them to achieve rapid table conversion and simplification of operations.

Benefits of technology

It realizes the automatic scanning and conversion function when triggering the table conversion function, without the need for user to manually find the entrance, simplifying the operation process, and switching different table processing functions on the first page.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119443065A_ABST
    Figure CN119443065A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a table processing method and device and a computer program product. The table processing method comprises the steps that in response to a trigger operation on a table conversion function, a first page is displayed, and the first page displays a first control corresponding to a table type and at least one sub-control associated with the first control; in response to a trigger operation on a scanning function, identifying a first object including table content on the first page based on a first sub-control corresponding to the table conversion function; and converting the first object to obtain a first table. According to the method and the device, a user does not need to search for an entrance to execute a corresponding function, table conversion can be quickly performed, switching of different table processing functions can be realized on the first page, the user does not need to return to a main page to re-enter, and the operation process is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to but is not limited to the field of information technology, and in particular to a table processing method, device and computer program product. Background Art

[0002] As the functions of electronic devices become more and more abundant, more and more electronic devices have scanning functions, so as to scan different objects in various usage scenarios and obtain corresponding scanning results. For example, documents, books, etc. can be scanned.

[0003] In the related art, after completing the scanning of the object, the user needs to manually further process the scanning result, and the operation process is complicated and redundant. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a table processing method, device and computer program product to achieve rapid table conversion and simplify the operation process.

[0005] In a first aspect of an embodiment of the present disclosure, a table processing method is provided, the method comprising:

[0006] In response to a triggering operation on a table conversion function, a first page is displayed, wherein the first page displays a first control corresponding to a table type and at least one sub-control associated with the first control;

[0007] In response to a triggering operation on a scanning function, identifying a first object including table content on the first page based on a first sub-control corresponding to the table conversion function;

[0008] The first object is converted to obtain a first table.

[0009] According to a second aspect of the present disclosure, there is provided a table processing device, including:

[0010] A first display module is configured to display a first page in response to a triggering operation on a table conversion function, wherein the first page displays a first control corresponding to a table type and at least one sub-control associated with the first control;

[0011] an identification module, configured to identify, in response to a triggering operation on a scanning function, a first object including table content on the first page based on a first sub-control corresponding to the table conversion function;

[0012] The conversion module is configured to convert the first object to obtain a first table.

[0013] According to a third aspect of the present disclosure, an electronic device is provided, including:

[0014] processor;

[0015] a memory for storing processor-executable instructions;

[0016] The processor executes the computer program or instructions to implement the steps of any one of the methods in the first aspect above.

[0017] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, wherein the storage medium stores a computer program or instructions. When the computer program or instructions in the storage medium are executed by a processor, the steps of the method described in any one of the first aspects are implemented.

[0018] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program or instructions, which, when executed by a processor, implement the steps of any one of the methods described in the first aspect.

[0019] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0020] The technical solution provided by the embodiments of the present disclosure can enter the first page when the table conversion function is triggered, and display the first control (first-level control) corresponding to the table type and the sub-control (secondary control) associated with the first control on the first page, and after executing the scanning function to identify the first object, automatically convert the first object to obtain the first table.

[0021] On the one hand, when the table conversion function is triggered, the scanning function and the table conversion function can be automatically executed, and the table conversion can be quickly performed without the user having to find the entry to execute the corresponding function; on the other hand, by providing at least one sub-control and configuring the corresponding table processing function for each sub-control, different table processing functions can be switched on the first page without returning to the main page to re-enter, thereby simplifying the operation process.

[0022] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0024] Figure 1 It is a flowchart of a table processing method according to an exemplary embodiment.

[0025] Figure 2is a schematic diagram of a navigation page according to an exemplary embodiment.

[0026] Figure 3A is a page schematic diagram of a first page according to an exemplary embodiment Figure 1 .

[0027] Figure 3B is a page schematic diagram of a first page according to an exemplary embodiment Figure 2 .

[0028] Figure 3C Schematic diagram 3 of the first page is shown according to an exemplary embodiment.

[0029] Figure 3D is a page schematic diagram of a first page according to an exemplary embodiment Figure 4 .

[0030] Figure 4 is a page schematic diagram of a second page according to an exemplary embodiment.

[0031] Figure 5A is a schematic diagram of a third page according to an exemplary embodiment. Figure 1 .

[0032] Figure 5B is a schematic diagram of a third page according to an exemplary embodiment. Figure 2 .

[0033] Figure 5C Schematic diagram 3 of the third page is shown according to an exemplary embodiment.

[0034] Figure 5D is a schematic diagram of a third page according to an exemplary embodiment. Figure 4 .

[0035] Figure 5E Schematic diagram 5 of the third page is shown according to an exemplary embodiment.

[0036] Figure 6 is a schematic diagram of a third page according to an exemplary embodiment. Figure 6 .

[0037] Fig. 7A FIG. 7 is a page schematic diagram of a third page according to an exemplary embodiment.

[0038] Figure 7B The figure is a schematic diagram of a file management interface according to an exemplary embodiment.

[0039] Figure 7C It is a schematic diagram showing a generated second table according to an exemplary embodiment.

[0040] Figure 8 Schematic diagram 5 of the first page is shown according to an exemplary embodiment.

[0041] Fig. 9 The figure is a schematic diagram of the structure of a table processing device according to an exemplary embodiment.

[0042] Fig.10 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0043] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the embodiments of the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present disclosure as detailed in the appended claims.

[0044] Figure 1 The following is a flow chart of a table processing method according to an exemplary embodiment. Figure 1 .like Figure 1 As shown, the method mainly includes the following steps:

[0045] In step 101, in response to a triggering operation on a table conversion function, a first page is displayed, wherein the first page displays a first control corresponding to a table type and at least one sub-control associated with the first control;

[0046] In step 102, in response to a triggering operation of a scanning function, a first object including table content is identified on a first page based on a first sub-control corresponding to a table conversion function;

[0047] In step 103, the first object is converted to obtain a first table.

[0048] It should be noted that the table processing method proposed in the present disclosure can be applied to electronic devices or servers. Here, electronic devices may include: terminal devices, such as mobile terminals or fixed terminals. Among them, mobile terminals may include: mobile phones, tablet computers, laptop computers, etc. Fixed terminals may include: desktop computers, smart TVs, etc. As a type of computer, a server can provide computing or application services for other clients (such as computers, terminal devices such as smart phones, and even large devices such as train systems) in the network.

[0049] Taking a printer with a scanning function as an example, generally when the printer performs the scanning function, the file is placed on the scanning clamp of the printer so that the file is in a space available for scanning. After the printer completes the scan, the scanned file in image format can be seen on the computer connected to the printer.

[0050] The table processing method in the embodiment of the present disclosure may be configured in a table processing device, and the table processing device may be set in a server, or may also be set in an electronic device, which is not limited in the embodiment of the present disclosure.

[0051] It should be noted that the execution subject of the embodiment of the present disclosure may be, for example, a central processing unit (CPU) in a server or electronic device in terms of hardware, or may be, for example, a related background service in a server or electronic device in terms of software, without limitation.

[0052] In an embodiment of the present disclosure, in response to a triggering operation on a table conversion function, a first page may be displayed on a display interface of an electronic device, and a first control corresponding to a table type and at least one sub-control associated with the first control may be displayed on the first page, wherein each sub-control has a corresponding table processing function. In some embodiments, the table processing functions corresponding to different sub-controls may be different. Exemplarily, the first sub-control corresponds to a table conversion function, the second sub-control corresponds to a table entry function, the third sub-control corresponds to a table scanning function, and the like. The table processing function may be understood as a function for processing table contents, as long as it is a function associated with a table, for example, it may also be a function for editing table contents, etc., which are not listed here one by one.

[0053] It should be noted that the first control corresponding to the table type can be understood as a primary control (main control) corresponding to each table processing function. By triggering the first control, at least one sub-control associated with the first control can be displayed, thereby realizing different table processing functions. In other embodiments, while displaying the first control corresponding to the table type on the first page, controls corresponding to the certificate type, controls corresponding to the test paper type, controls corresponding to the bill type, etc. can also be displayed to realize the processing of different types of files through controls corresponding to different file types.

[0054] In some embodiments, after entering the first page, the first sub-control corresponding to the table conversion function can be controlled to be in a selected state, and a scanning function can be performed on the first page based on the first sub-control. By automatically controlling the first sub-control corresponding to the table conversion function to be in a selected state, and then performing the scanning function when the first sub-control is in the selected state, the user does not need to find an entry to perform the corresponding function, so that the table conversion can be quickly performed.

[0055] In other embodiments, the first sub-control may be controlled to be in a selected state based on the operation acting on the first sub-control, and then the scanning function is performed on the first page based on the first sub-control. By manually controlling the first sub-control to be in a selected state, and then performing the scanning function when the first sub-control is in a selected state, free switching between the sub-controls can be achieved, thereby improving the flexibility of table conversion.

[0056] In some embodiments, the table conversion function can be triggered based on a preset navigation page to display the first page. The navigation page may include controls for various functions, such as controls for table conversion and scan functions. Through the controls on the navigation page, different pages can be accessed to implement different functions. Figure 2 As shown, the navigation page can display a "transfer form" control 201, a "scan test paper" control 202, a "scan ID" control 203, a "scan receipt" control 204, and the like.

[0057] In other embodiments, each table processing function may be integrated into an application, and then a trigger operation for the table conversion function may be performed based on the application. Exemplarily, the trigger operation for the table conversion function may be a startup operation for the application. Exemplarily, after the application is started, the first page may be displayed.

[0058] In an embodiment of the present disclosure, when the scanning function is triggered, the object recognized by the image acquisition module can be displayed on the first page. The scanning function indicates the ability to convert paper documents, pictures or other items into digital formats, which can be a function possessed by the electronic device itself or a function possessed by an application installed on the electronic device. The first object may include: objects that can be recognized by the image acquisition module based on the electronic device, objects that can be recognized and processed by the image processing technology based on the electronic device, objects imported based on the electronic device, etc. Exemplarily, the first object may include at least one of the following: books, documents, certificates, express delivery slips, bills, physical objects, emails, test papers, and images.

[0059] Taking the first object as a file as an example, when the electronic device is a mobile terminal, the first object can be identified by the image acquisition module. Exemplarily, the mobile terminal identifies the first object by the image acquisition module on the first page. When the electronic device is a server, the server can receive one or more first objects from the mobile terminal.

[0060] Taking the first object being a physical object as an example, the electronic device can identify the first object through the image acquisition module.

[0061] In some embodiments, the first page has at least one of the following functions: image acquisition function; image preview function; image import function. The image acquisition function can be used to acquire an image of the first object, the image preview function can be used to preview the image of the first object, and the image import function can be used to import the image of the first object. The first page can be an image acquisition page, which can be dedicated to image acquisition of the image acquisition module. Exemplarily, the first page can be called a camera page or a photo page.

[0062] In some embodiments, the first object may include: an object currently identified by the image acquisition module, or an object currently acquired by the image acquisition module after a shooting operation is detected. In other embodiments, the first object may also be an object imported from other devices, or an object downloaded from a network. After the first object having table content is identified, the first object may be converted to obtain a first table.

[0063] When the table conversion function is triggered, the present invention can enter the first page, and display the first control (first-level control) corresponding to the table type and the sub-control (secondary control) associated with the first control on the first page, and after executing the scanning function to identify the first object, automatically convert the first object to obtain the first table.

[0064] On the one hand, when the table conversion function is triggered, the scanning function and the table conversion function can be automatically executed without the user having to find the entry to execute the corresponding function, thereby realizing rapid table conversion; on the other hand, by providing at least one sub-control and configuring the corresponding table processing function for each sub-control, it is possible to switch between different table processing functions on the first page without returning to the main page to re-enter, thereby simplifying the operation process.

[0065] In some embodiments, converting the first object to obtain the first table includes:

[0066] Generate a first image of the first object according to the table content, and display the first image and the second control on the second page;

[0067] In response to a trigger operation on the second control, a table conversion function is performed on the first image to obtain a first table;

[0068] The similarity between the table structure of the first table and the table structure of the table content in the first image is less than a preset threshold, and the first table includes the table content.

[0069] Here, after the first object is identified, a first image of the first object can be generated based on the table content included in the first object. Exemplarily, at least one (one or more) first images can be generated based on the table content included in the first object, and the first image and the second control are displayed on the second page. When a trigger operation for the second control is detected, a table conversion function is performed on at least one first image to obtain a first table including table content, and the similarity between the table structure of the first table and the table structure of the table content in the first image is less than a preset threshold. Exemplarily, after obtaining the first object, the electronic device can generate the first image from the first object by screenshot or content extraction.

[0070] It should be noted that the first table is a table file, and illustratively, the first table can be an Excel file. The table content in the first image can be: the content in the first image with a table style. Taking the first object as a paper-based table file as an example, the paper-based table file can be scanned to obtain the first image, so that the first image has table content. In this case, the table content can be understood as the table imaging in the image.

[0071] Among them, the table structure can indicate the layout style of the cells in the table and / or the layout style of the content information. Exemplarily, the table structure can indicate the layout style of each cell in the table, the arrangement of the cells in the table, the association relationship of the content information in each cell, etc. In some embodiments, if the first object includes content in a table style, after the first object is identified, a first image can be generated based on the table content in the first object, and the first image can be converted to obtain a first table. Taking the example that the table content included in the first object is in Excel style, cells can be generated based on the line distribution in the table content, and based on the distribution of the content information in the first image, the content information in the first image can be filled into the corresponding cells respectively to obtain a first table.

[0072] Exemplarily, new cells can be generated on an existing table page based on the line distribution in the table content, and the content information in the first image can be filled into the corresponding cells; or, a new table page can be created based on the line distribution in the table content, and the content information in the first image can be filled into the corresponding cells.

[0073] In some embodiments, the similarity between the table structure of the first table and the table structure of the table content in the first image is less than a preset threshold, including: the similarity between the layout style of the cells in the table content in the first image and the layout style of the cells in the first table is less than a first threshold, and / or the similarity between the layout style of the content information in the table content in the first image and the layout style of the content information in the first table is less than a second threshold.

[0074] In some embodiments, before generating the first table, the table structure of the table content in the first image can be acquired first. For example, the table structure of the table content can be determined based on the layout style of the cells in the table content and / or the layout style of the content information, and then the table structure of the first table can be determined based on the table structure of the table content, and then the first table can be generated.

[0075] In some embodiments, a first target style can be obtained based on the layout style of cells in the table content, and / or a second target style can be obtained based on the layout style of content information in the table content, and the table structure of the first table can be determined based on the first target style and / or the second target style. The similarity between the first target style and the layout style of cells in the table content is less than a first threshold, and the similarity between the second target style and the layout style of content information in the table content is less than a second threshold. The first threshold and the second threshold can be set as needed, for example, they can be empirical values ​​or determined based on historical data.

[0076] Exemplarily, the first target style is the same as the layout style of the cells in the table content, and the second target style is the same as the layout style of the content information in the table content. Exemplarily, they can be proportionally the same or completely the same. Among them, similar cell layout styles can be understood as similar shapes and distributions of cells, and similar content information layout styles can be understood as similar shapes and format semantics of content information. Identical cell layout styles can be understood as identical shapes and distributions of cells, and identical content information layout styles can be understood as identical shapes and format semantics of content information.

[0077] In some embodiments, after the first object is identified, a second image of the first object can be obtained, wherein the content of the second image is the same as the content included in the first object. That is, the second image includes not only table content but also non-table content of the first object. Exemplarily, when the first object is a table, the first image and the second image can be the same, and when the first object includes not only a table, the first image and the second image can be different. In this case, the second image includes table content and non-table content (content outside the table), and the first image has table content.

[0078] For example, after obtaining the second image, if the first image includes both table content and non-table content, the second image may be cropped to obtain the first image. In some embodiments, after the second image is cropped, the cropped image may be rotated, perspective-changed, or filtered to remove unnecessary noise or background to obtain a clear first image.

[0079] In some embodiments, content recognition may be performed on the second image to determine contour information of the table content, and the second image may be cropped based on the contour information to obtain the first image.

[0080] In some embodiments, both the first page and the second page can be application interfaces of applications, where the applications may include: a camera application, a file application, or an application integrated with a spreadsheet processing function, for example, applications such as Excel.

[0081] In some embodiments, the number of first images is related to the number of table contents included in the first object. For example, the first images and the table contents correspond one to one. Exemplarily, if the first object includes two parts of table contents, two first images may be generated.

[0082] In some embodiments, the first image may be an image obtained by recognizing the table content in the first object after the image acquisition module performs a scanning function. For example, when the electronic device is a mobile terminal, the table content in the first object may be recognized by the image acquisition module to obtain one or more first images.

[0083] In some embodiments, after the first object is identified, a second image of the first object may be obtained, wherein the content of the second image is the same as the content included in the first object. That is, the second image includes not only table content but also non-table content of the first object. Exemplarily, when the first object is a table, the first image and the second image may be the same, and when the first object is not a table, the first image and the second image may be different.

[0084] In some embodiments, the first image is acquired in at least one of the following ways:

[0085] Identify the first object based on the image acquisition module to obtain at least one first image;

[0086] Recognize the imported first object to obtain at least one first image;

[0087] A first object downloaded from the network is identified to obtain at least one first image.

[0088] like Figure 3A and Figure 3B As shown, the first object can be identified based on the image acquisition module to obtain at least one first image. Figure 3A The "shoot single photo" control 301a is in a selected state, in a single photo mode, and the first object can be identified to obtain a first image; Figure 3BIn the "Take Multiple Photos" control 301b, in the selected state, in the multiple-photos mode, multiple first objects can be identified to obtain multiple first images, or one first object can be identified to obtain multiple first images. In some embodiments, when entering the first page (camera page) for the first time, a beginner's guide for converting pictures to tables can also be displayed on the first page. For example, the scanning process in the single-photos mode and the multiple-photos mode can be displayed in the form of dynamic images.

[0089] In some embodiments, if a first image is obtained by identifying a first object, the single-image mode may be assumed to be currently in use. If multiple first images are obtained by identifying multiple first objects, or multiple first images are obtained by identifying a first object, the multiple-image mode may be assumed to be currently in use. In the multiple-image mode, a specified number of first images may be continuously acquired. For example, 10, 20, 30, or 40 first images may be continuously acquired in the multiple-image mode.

[0090] In some embodiments, in the multiple-sheet mode, one first image corresponds to one table page of the first table; or, in the multiple-sheet mode, multiple first images correspond to the same table page of the first table.

[0091] In some embodiments, an import control may be displayed on the first page, and the import control may be used to import the object to be scanned. The number of import controls may be one or more. For example, multiple import controls may be set according to the application involved in the object to be imported, wherein each import control corresponds to a different application. For example, the application may be the source application of the first object. In this case, the first object may be directly obtained from the object directory of the associated application based on the import control associated with the application. The objects to be scanned may include: objects that can be identified by the image acquisition module of the electronic device, and objects that can be identified and processed by the image processing technology of the electronic device.

[0092] In some embodiments, the first object may be a file. For example, the first object may be a PDF file, a web page file, a text file, a presentation file, or an image file. The number of pages of the file may be one page or multiple pages. Figure 3C It is a schematic diagram of importing files, where an import control 301c and an import control 302c for importing files are displayed at the bottom of the first page.

[0093] In other embodiments, the object to be scanned may be a picture. For example, the object to be scanned may be imported from a system album of an electronic device or an application album of an image application through an import control. The number of pictures may be one or more. Figure 3D It is a schematic diagram of importing pictures, where an import control 301d and an import control 302d for importing pictures are displayed at the bottom of the first page.

[0094] The above are examples of several ways to obtain the object to be scanned, and the specific implementation is not limited to the above examples.

[0095] In some embodiments, after acquiring the object to be scanned, the electronic device can call image recognition technology and / or an artificial intelligence model (AI) model to identify the object to be scanned, and determine whether the object to be scanned includes table content, that is, determine whether the object to be scanned includes content imaging that needs to be written into a table file. Exemplarily, it is determined whether there is a table in the object to be scanned by image recognition technology. If there is table content in the object to be scanned, the object to be scanned can be determined as the first object. Since there is table content in the first object, the content in the table needs to be written into the table file. Exemplarily, the table file may include an excel file, a ksheet file, or a db file, etc.

[0096] In some embodiments, the mobile terminal or the server may recognize the text of the object to be scanned by optical character recognition (OCR), and determine whether the object to be scanned includes table content by keyword matching.

[0097] In some examples, the image of the object to be scanned is input into an artificial intelligence model (e.g., a deep learning model), and the artificial intelligence model outputs a result of whether the object to be scanned includes table content. Exemplarily, the deep learning model may include but is not limited to various neural networks, such as convolutional neural networks (CNN) and recurrent neural networks (RNN).

[0098] In some embodiments, a page for identification can be displayed on the electronic device, and a control for triggering the scanning function can be displayed on the page. When a trigger operation acting on the control is detected, the scanning function is performed on the object to be scanned, that is, the page for identification can be entered based on the first sub-control corresponding to the table conversion function. In other embodiments, the electronic device can also automatically start the identification of the object to be scanned without user triggering, in which case the display of the page will be skipped, that is, the second page can be directly entered through the first sub-control.

[0099] Exemplarily, after the first object is identified, the second page for converting the first object is entered, which may also be referred to as an image processing page. Figure 4As shown, a second control 401 and a first image 402 including table content are displayed on the second page, and the second control is identified by "Start Conversion". When a trigger operation acting on the second control is detected, the second control responds to the trigger operation, performs a table conversion function on the first image, and obtains a first table, wherein the similarity between the table structure of the first table and the table structure of the table content in the first image is less than a preset threshold, and the first table includes table content.

[0100] In some embodiments, a first table can be obtained according to a first object; or, a first table can be obtained according to multiple first objects. Obtaining a first table according to a first object may include: converting the table content in the first image into an electronic version of the first table. Obtaining a first table according to multiple first objects may include: writing the table contents of different first objects into different table pages (pages) of a first table, and the similarity between the table structure of the table content in each table page and the table structure of the table content in the corresponding first object is less than a preset threshold, wherein a table page may correspond to a first object; or writing the table contents of different first objects into the same table page of a first table, and the similarity between the table structure of the table content of each part in the same table page and the table structure of the table content in the corresponding first object is less than a preset threshold, wherein each part of the table content in the same table page corresponds to a first object.

[0101] In the case of multiple first images, the number of first objects can be displayed below the second page. For example, "1 / 1" indicates 1 first object, "1 / 3" indicates 3 first objects, and "1 / 12" indicates 12 first objects.

[0102] In some embodiments, after the first table is obtained, the first table may be displayed.

[0103] In some embodiments, the table content may include: an image of a standard form and / or an image of a non-form form. For example, the table content may include, but is not limited to, an image of an invoice, an image of a medical bill, an image of a receipt, an image of a passport, an image of a student ID card, etc. For example, there is table content in the first object, and the table content has a corresponding table structure.

[0104] In some embodiments, when the electronic device recognizes the first object, it can determine the location of the table content in the first object according to the table positioning method, thereby realizing the recognition of the table content and the table structure. Using this method to realize the recognition of the table content has low requirements on the recognition ability of the electronic device and does not require additional recognition operations, which can reduce the delay in generating the first table.

[0105] In other embodiments, when the electronic device generates the first table, the electronic device may identify all the contents in the first object based on recognition technologies such as ORC, and then write the table contents into the first table. In this way, the recognition of the table contents can be corrected based on the correlation between the contents outside the table and the table contents, thereby improving the recognition accuracy.

[0106] The similarity between the table structure of the first table and the table structure of the table content in the first object is less than a preset threshold, which may include but is not limited to at least one of the following:

[0107] The number and composition of cells in the first table are the same as the number and composition of cells in the table content of the first object;

[0108] The title and item title of the table contents in the first table are the same as the title and item title of the table contents in the first object.

[0109] In some embodiments, converting the first object to obtain the first table may be converting the table content of the first object into an editable electronic version of the table file, which is equivalent to replicating the table content in the first object.

[0110] In some embodiments, the method further comprises:

[0111] Detecting whether there is a quadrilateral bounding box in the first object;

[0112] If a quadrilateral border exists in the first object, it is determined that the first object includes table content.

[0113] In some embodiments, detecting whether a quadrilateral frame exists in the first object may include: preprocessing the first object so that the preprocessed first object is more convenient for detecting the quadrilateral frame, so as to improve the detection accuracy of the quadrilateral frame.

[0114] In some embodiments, the pre-processing may include, but is not limited to: processing the first object through one or more of cropping, rotation, perspective transformation, and filter functions.

[0115] In some embodiments, after the quadrilateral border is detected, the positions of the four vertices of the quadrilateral border may be acquired, and the area where the table content is located may be determined based on the four vertices.

[0116] In some embodiments, one or more quadrilaterals in the first object can be detected, and the cells and / or the distribution positions between the cells contained in the first table can be determined based on the detected quadrilaterals. The content located in the quadrilateral is detected, for example, text detection and / or image detection. When text is detected, the corresponding text is written in the cell. When an image is detected, the image is inserted into the corresponding cell. For example, the image can be inserted into the cell by screenshot or cutout, so as to obtain the first table.

[0117] In some embodiments, converting the first object to obtain the first table includes:

[0118] In a case where content information having at least two styles is identified from the table content, determining a target style based on the at least two styles;

[0119] Converting content information having a non-target style into a target style to obtain converted content information;

[0120] Based on the content information having the target style and the converted content information, a first table having the same table structure and table content is obtained.

[0121] In order to make the generated first table more standardized, the present disclosure can determine a target style based on at least two styles when identifying content information of at least two styles, convert content information with non-target style into target style, and maintain the content information with target style unchanged.

[0122] In the case where the content information is text information, the style of the text information in each cell will be different due to different filling methods. Exemplarily, the table content is identified as including handwritten fonts and standard fonts through image recognition functions and / or AI models. At this time, the standard font can be determined as the target style, and the handwritten font text information is converted into standard font text information, and the standard font text information is maintained unchanged. Then, the text information converted to the standard font and the unchanged text information are filled into the corresponding cells to obtain the first table. In some embodiments, the style of the content information may also include: the form of the content information. Exemplarily, the font of the text, the style of the picture, the color of the content, etc.

[0123] In some embodiments, determining the target style based on at least two styles may include: determining the distribution information of the content information using each style in the table content, and determining the target style from at least two styles based on the distribution information. For example, the style of the content information with a large distribution may be determined as the target style; for another example, the style of the content information distributed in the title position may be determined as the target style, etc. In other embodiments, the target style may also be determined from at least two styles as needed. For example, each style may be compared with a preset style, and the style identical to the preset style may be determined as the target style, etc.

[0124] like Figure 4 As shown in the figure, the table content that has not been converted contains text content in the standard style and text content in the handwriting style, such as Figure 5A As shown, after the table content is converted, a first table 501a with all text content in a standard format can be obtained.

[0125] In the disclosed embodiment, after obtaining the first image of the first object, the first image and the second control can be displayed on the second page, and the table conversion function can be performed based on the second control to obtain the first table including the table content, thereby realizing the replication of the table content in the first object. Not only is the operation simple, but the table content can be edited in the first table, thereby improving the operability of the first object. In addition, in the case of content information with multiple styles, the style of the content information can be unified into the target style, thereby making the content style in the first table uniform.

[0126] In some embodiments, the method further comprises:

[0127] The first table is displayed in the first area of ​​the third page, and the reference image obtained based on the first image is displayed in the second area of ​​the third page.

[0128] It should be noted that the third page may also be called a table preview page, which is used to display the generated first table, such as Figure 5A As shown, a preview effect of the generated first table 501a can be achieved on the third page. Here, the third page includes a first area 502a and a second area 503a. The first area 502a can be a table display area. The second area 503a can be a comparison area. In the embodiment of the present disclosure, the first table can be displayed in the first area 502a, and a reference image 504a obtained based on the first image can be displayed in the second area 503a. Among them, the reference image 504a can include: the first image or a thumbnail of the first image. Figure 5A The reference image 504a shown is a thumbnail of the first image. Here, the reference image and the first image are in a one-to-one correspondence. Figure 5B The reference image 501b shown is a first image.

[0129] In some embodiments, when the reference image is a thumbnail, if a trigger operation for the reference image is detected, the display of the thumbnail may be switched to the display of the first image corresponding to the thumbnail. Figure 5A Switch to display 504a in Figure 5B 501b of the.

[0130] In some embodiments, the reference image and the first table may be displayed side by side on the third page. For example, the first image and the first table may be displayed side by side on the third page, or a thumbnail of the first image and the first table may be displayed side by side on the third page. The side-by-side display may include: top-to-bottom side-by-side display or left-to-right side-by-side display.

[0131] When the third page is the application interface of the application of the first table, the camera application can call the application of the first table through the application programming interface (API) and open the table page of the application for editing the first table. In short, the third page allows editing or correction of the first table. Exemplarily, based on the input operation collected by the input component such as the keyboard, mouse, touch panel or microphone, the cells, table format and table content of the first table are edited.

[0132] In the embodiment of the present disclosure, by respectively displaying the first image and the first table in different areas of the third page, it is possible for the user to check the content of the first table and accurately determine whether there is any content in the generated first table that is inconsistent with the first image, or determine whether there is any content to be corrected in the first table based on the first image.

[0133] In some embodiments, the method further comprises:

[0134] In response to a first operation on the first table, performing an adjustment on the first table corresponding to the first operation, and displaying the adjusted first table in the first area; and / or,

[0135] In response to a second operation on the reference image, an adjustment corresponding to the second operation is performed on the reference image, and the adjusted reference image is displayed in the second area.

[0136] It should be noted that the third page allows editing or correction of the first table. If a recognition error occurs in the first table obtained by converting the first image, the accuracy of the first table can be improved through editing and / or correction operations on the third page. For example, in the case where the letter "O" in the first image is recognized as the number "0", or the letter "I" and the number "1" are confused, editing and correction can be achieved through the third page.

[0137] In the embodiment of the present disclosure, based on the first operation on the first table, the first table can be adjusted corresponding to the first operation, and the adjusted first table can be displayed in the first area. The first operation can include but is not limited to at least one of the following: cell editing operation; table content editing operation; table content correction operation.

[0138] The cell editing operation may include but is not limited to: adding cells, deleting cells, adjusting the position of cells, and setting the format of cells. The table content editing operation may include: inputting, deleting, rewriting, etc. of table content; and the table format editing operation. The table content correction operation may include: automatic correction and / or manual correction of the table content, for example, starting the automatic correction of the text to correct at least one of the grammar, spelling errors, and writing errors of the text.

[0139] In other embodiments, after generating the first table, the electronic device may also automatically start a correction function, for example, performing at least one automatic correction according to the error collection library and / or the recognized context. Exemplarily, when performing automatic correction, if it is detected that there is content to be corrected, a prompt message may be displayed to prompt that the content filled into the first file is A and whether A needs to be rewritten to B, and based on the operation acting on the prompt message, determine whether the content finally written into the first table is A or B.

[0140] In the embodiment of the present disclosure, based on the second operation on the reference image, the reference image can be adjusted corresponding to the second operation, and the adjusted reference image can be displayed in the second area. The second operation can include but is not limited to at least one of the following: a zoom-in operation; a zoom-out operation; a sliding operation.

[0141] Exemplarily, in the case where the third page displays a reference image, if a second operation indicating zooming in is detected, the reference image can be zoomed in, that is, the thumbnail of the first image or the first image can be zoomed in. Thus, in the case where the third page displays a thumbnail, the thumbnail of the first image or the first image can be zoomed in through the second operation.

[0142] In some other embodiments, when an enlarged image of a reference image is displayed, if a second operation indicating zooming out is detected, the reference image may be restored to its original size.

[0143] like Figure 5C As shown, when the current display size of the reference image does not meet the viewing requirements, the reference image 501c can be scaled. The scaling operation can be as follows: Figure 5C The operation of spreading out two fingers or bringing two fingers together is shown here as an example of the operation, and the specific implementation is not limited to this example.

[0144] It should be noted that the first operation and the second operation may be operations initiated at different times, and the adjustment objects of the first operation and the second operation are also different, and the execution of the first operation and the second operation are independent of each other. Exemplarily, if the first operation is detected first, the first table may be adjusted first, and after the first table is adjusted, if the second operation is detected, the reference image may be adjusted, that is, in the process of one table conversion, both the first operation and the second operation are executed. Exemplarily, if the first operation is detected first, the first table may be adjusted first, and after the first table is adjusted, if the second operation is not detected, the reference image may not be adjusted. The above is an exemplary description of the first operation and the second operation, which are not listed here one by one.

[0145] In the present disclosure, when a reference image is displayed on the third page, the reference image is adjusted through the second operation, which facilitates the verification of content details in the first image and the first table. When the first table needs to be adjusted, it can be achieved based on the first operation, which can improve the accuracy of the first table finally obtained.

[0146] In some embodiments, when there are at least two first images, displaying a first table in a first area of ​​a third page, and displaying a reference image obtained based on the first image in a second area of ​​the third page, includes:

[0147] determining a thumbnail of the first image as a reference image;

[0148] Arrange and display the reference images in the second area based on the generation time and / or generation order of the first images;

[0149] A first table is displayed in the first area, and a reference image corresponding to the first table in the second area is controlled to be in a selected state.

[0150] In the embodiment of the present disclosure, when there are at least two first images, the first tables corresponding to the first images can be converted respectively. In order to achieve the synchronous display of the reference images corresponding to the first tables, the thumbnails of the first images can be determined as reference images, and the reference images can be arranged and displayed in the second area based on the generation time and / or generation order of the first images. The generation time can indicate the specific time point when the first image is actually generated; the generation order can indicate the relative or absolute order in which the first images are created.

[0151] For example, the arrangement order of the reference images may correspond to the generation time of the first image, that is, the reference images corresponding to the first images with earlier generation time are arranged in front, and the reference images corresponding to the first images with later generation time are arranged in the back, etc. For another example, the arrangement order of the reference images may be the same as the generation order of the first images. This is an example of the arrangement of the reference images, and the specific implementation is not limited to this example.

[0152] like Figure 5D As shown, at least two reference images are arranged in the form of thumbnails and displayed in the second area of ​​the third page, a first table 501d is displayed in the first area, and the reference image 502d corresponding to the first table 501d in the second area is controlled to be in a selected state. When the first table displayed in the first area of ​​the third page is switched, the reference image is also switched, so that the thumbnail and the first table correspond to the same table content, which is convenient for comparison and correction. Among them, being in a selected state can also indicate that the reference image is in a highlighted state, as long as it can be easily identified.

[0153] In some other embodiments, when there are at least two first images, a reference image corresponding to the first table currently displayed in the first area may also be displayed in the second area of ​​the third page. Figure 5E As shown, the second area of ​​the third page displays the reference image 502e corresponding to the first table 501e in the first area, and the “2 / 12” displayed at the bottom of the third page indicates that the second of the 12 first tables is currently displayed.

[0154] In the embodiment of the present disclosure, when there are multiple first images, a thumbnail of the first image can be determined as a reference image, and based on the generation time and / or generation order of the first image, the reference images are arranged and displayed in the second area, and when the first table is displayed in the first area, the reference images corresponding to the first table in the second area are controlled to be in a selected state. By arranging and displaying all reference images in the second area, it is convenient for users to preview, and when the first table is displayed in the first area, the reference images corresponding to the first table are controlled to be in a selected state, which can facilitate rapid positioning of the corresponding reference image, thereby achieving accurate contrast calibration.

[0155] In some embodiments, when the first image is one, the method further comprises:

[0156] Displaying at least two third controls on the third page; wherein each third control corresponds to a different table generation method;

[0157] Converting the first object to obtain a first table includes:

[0158] When the third control corresponding to the table conversion function is in a selected state, a first table is generated based on a table generation method corresponding to the table conversion function.

[0159] It should be noted that each third control corresponds to a different table generation method, and the table generation method corresponds to the table processing function. Different table processing functions correspond to different table generation methods, and the table content and / or table structure of the obtained first table will also be different. Exemplarily, the table conversion function has a corresponding table generation method and a corresponding third control; the table entry function has a corresponding table generation method and a corresponding third control.

[0160] In some embodiments, the third control may be identified, such as Figure 5B and Figure 6 As shown, the identifier of the third control corresponding to the table conversion function may be "convert original image to table", and the identifier of the third control corresponding to the table entry function may be "single-line table entry". Figure 5B The third control corresponding to the table conversion function, that is, the third control marked as "convert original image to table", is selected. Figure 6 The third control corresponding to the table entry function, that is, the third control marked as "single-line entry table", is selected. Figure 6 The table structure of the first table 601 generated by the selected third control is the same as that of the first table 601 generated by the selected third control. Figure 5B The table structure of the first table 502b generated by the selected third control is different.

[0161] In the embodiment of the present disclosure, at least two third controls are set to correspond to each table processing function respectively. In this way, different table generation methods can be switched on the third page through each third control, and different first tables can be generated based on the same table content, thereby achieving flexibility in table processing.

[0162] In some embodiments, the method further comprises:

[0163] When the third control corresponding to the form entry function is in a selected state, generating a second form based on the form generation method corresponding to the form entry function;

[0164] The second table has a different table structure from the first table, and the second table displays table contents by classification through at least one item title.

[0165] It should be noted that the table entry function may also be referred to as a table recording function or a quick table recording function. The second table has a different table structure from the first table, and the second table displays the table contents by classification through at least one item title. In some embodiments, the second table may be a summary table or a statistical table. In this case, the item titles of the second table are arranged in the table header.

[0166] Exemplarily, the second table can be a merged table, for example, table contents with the same table structure in different first objects are respectively merged into different table pages of the second table for archiving. The second table has a table header, and the second table can include one or more item titles. An item title in the second table can represent an attribute of the second table. In this case, multiple table contents of a first object or the contents of the table contents in multiple first objects can be integrated to obtain the second table.

[0167] In some embodiments, for the two types of the second table, controls marked as "multi-line table" and "single-line table" may be included. For example, if the control is "multi-line table", the contents of multiple first images may be entered into a table page in a second table. For another example, if the control is "single-line table", the contents of multiple first images may be entered into different table pages of the second table.

[0168] For example, if a table content is located in multiple first images, the table content in the multiple first images can be entered into a second table through the table entry function. At this time, the table structure of the second table can be less than a preset threshold in similarity with the table structure of the table content in the first image.

[0169] In another exemplary embodiment, different first images have table contents with the same table structure or different table structures, but these table contents have content information that needs to be entered into the second table. In this case, the content information can be entered into the second table through the table entry function. In this case, the table structure of the second table can be different from the table structure of the table content in any of the first images, or the table structure of the second table can have a similarity with the table structure of the table content in some of the first images that is less than a preset threshold.

[0170] In the embodiment of the present disclosure, when the third control corresponding to the table conversion function is in a selected state, the first table can be generated based on the table generation method corresponding to the table conversion function, and when the third control corresponding to the table entry function is in a selected state, the first table can be generated based on the table generation method corresponding to the table entry function. By displaying the third controls corresponding to different table generation methods on the third page, it is possible to switch to different table generation methods through each third control, flexibly adjust the table content and / or table structure of the generated first table, and meet different user needs without rescanning the first object, which can simplify the operation.

[0171] In some embodiments, while the second table is displayed on the third page, one or more reference images related to the second table are displayed. The reference image may be a thumbnail of the first image or the first image. If multiple reference images are displayed on the third page, the multiple reference images can be switched. By displaying the reference images on the third page, it is convenient for the user to check the content in the first image and the content in the second table.

[0172] In some embodiments, there are multiple ways to generate the second table, and two ways are provided below:

[0173] Method 1: When executing the table entry function, the first keyword extracted from the at least one first image is written into the column where the first item title matching the first keyword is located in the second table.

[0174] In this way, one or more keywords (i.e., first keywords) are extracted from the first image, and the first keywords are written into the column where the first item title is matched through keyword matching. After the first keyword is written into the column where the first item title is located, the first keyword is used as the value of a certain element of the first item title.

[0175] In some embodiments, the first keyword and the first project title can be determined by precise matching or fuzzy matching. For example, when precise matching is adopted, regular matching and other methods can be adopted to write the first keyword into the column where the first project title with the same meaning is located. When fuzzy matching is adopted, the first keyword can be written into the column where the first project title with the same meaning and / or similar meaning is located, thereby improving the matching ability and scope.

[0176] When the second table is generated using method 1, the conversion from the first image to the second table can be realized directly. If the contents of multiple first images are written to the same table page of the second table, when the first image of the second page is switched, the table page of the second table will not be switched. If multiple first images are written to different table pages of the second table, when the first image of the second page is switched, the table page of the second table will also be switched.

[0177] In some embodiments, when entering a table of multiple first images, if the similarity of the table structure of the table contents in the multiple first images is less than a preset threshold, then after first determining the correspondence between the cells of the table contents in the first image and the first item titles of the second table, in order to improve the efficiency of generating subsequent second tables, the first keywords in the subsequent first images will be quickly filled into the second table based on the correspondence.

[0178] In some embodiments, after completing the writing of an element row of the second table based on the corresponding relationship, a match check is performed between the value in the element row and the item title. If a match exception is detected, the filling of the element row is adjusted based on the match between the first keyword and the first item title.

[0179] In other embodiments, in order to ensure the input accuracy of the second table, a match is performed between the first keyword and the first item title for each first image, and the second table is generated by the matching method.

[0180] Method 2: When executing the form entry function, displaying the first form according to the first image;

[0181] The second table is displayed based on the first table.

[0182] Since the types of the second table are different, there are two ways to generate the second table according to the first table.

[0183] If the second table is a statistical table or a summary table, that is, the second table includes one item title corresponding to one table column, it is assumed that the first table may include one or more second item titles. The second item title in the first table may be located in the table header or table. Multiple second item titles may be located in the same row or different rows in the first table, and / or, multiple second item titles may be located in the same column or different columns in the first table.

[0184] The second table is generated by the second method, firstly, the first table is generated and displayed according to the first image, and the method for generating the first table can refer to any of the above embodiments. After the first table is generated, the values ​​of the second item titles in the first table are written into the columns where the first item titles in the second table are located.

[0185] If the second table is a merged table, one first table can be transferred to one table page of the second table. In this case, if there are M first tables, the second table can have M table pages.

[0186] In some embodiments, when matching the first item title and the second item title, an exact matching method or a fuzzy matching method may be used.

[0187] When the second table is generated by the second method, the electronic device first executes the table conversion function, and then executes the table entry function based on the execution result of the table conversion function.

[0188] In some embodiments, the second table and / or the first table may also be displayed on the third page.

[0189] In the disclosed embodiment, not only the first table but also the second table can be generated on the third page. By generating different tables based on the same table content, not only the user's operation steps can be reduced, but also the time spent on repeated scanning can be reduced, thereby improving the efficiency of table processing.

[0190] In some embodiments, the third page includes a fourth control; and the method further includes:

[0191] In response to a triggering operation on the fourth control, at least one fifth control is displayed on the third page based on the number of the first table; wherein the fifth control has a corresponding table export mode;

[0192] In response to the triggering operation on the fifth control, the first table is exported according to the table exporting method corresponding to the fifth control.

[0193] It should be noted that the number of first tables here is the required number of first tables. For example, when the required number is one, one first table can be derived; when the required number is N, N first tables can be derived, where N is a positive integer greater than 1. In the embodiment of the present disclosure, after obtaining the first table, the first table can be exported to local storage and / or the first table can be exported to cloud storage.

[0194] In some embodiments, the fourth control is a control for triggering an export function, and if a trigger operation for the fourth control is detected, it is determined that the first table needs to be exported. In some embodiments, the fourth control can be identified, for example, the fourth control can be identified by "export table", indicating that the first table can be exported through the fourth control.

[0195] The present disclosure can display at least one fifth control on the third page based on the number of the first table, wherein the fifth control has a corresponding table export method. Different numbers correspond to different table export methods, and the table content, table structure and / or table number of the obtained first table will also be different.

[0196] like Fig. 7AAs shown, each fifth control can be identified separately. For example, the fifth control 701a can be identified by "single worksheet", indicating that the first table of the first type can be exported through the fifth control; the fifth control 702a can be identified by "multiple worksheets", indicating that the first table of the second type can be exported through the fifth control. The first table of the first type includes at least one item title, and one item title corresponds to a column of the first table; the first table of the second type includes multiple table pages.

[0197] After detecting the trigger operation for the fifth control, the file management interface may be displayed, such as Figure 7B As shown, a file management interface 701b may be displayed, in which a table file or a folder where a table file is located may be found. Figure 7C The diagram shows a generated second table 701c, which contains student information recorded based on image scanning.

[0198] In the embodiment of the present disclosure, when a trigger operation is detected for the fourth control for exporting the first table, at least one fifth control can be displayed on the third page based on the number of first tables, and each fifth control corresponds to a different table export method, which can facilitate the user to select the desired table export method, so that the exported first table better meets the needs.

[0199] In some embodiments, the method further comprises:

[0200] In a case where the first subcontrol is switched from being in a selected state to being in a selected state, identifying a second object including table content on the first page based on the second subcontrol;

[0201] Execute the table processing function corresponding to the second subcontrol on the second object to obtain the execution result of the second object;

[0202] The second sub-control is different from the first sub-control, and the table processing function corresponding to the second sub-control is different from the table conversion function.

[0203] It should be noted that the second sub-control is different from the first sub-control, and the table processing function corresponding to the second sub-control is different from the table conversion function. Exemplarily, the second sub-control may correspond to a table entry function or a table scanning function, etc. Among them, the second object may be different from the first object, or the second object may be the first object.

[0204] Taking the table entry function corresponding to the second sub-control as an example, when switching from the first sub-control to the second sub-control, the second object including the table content is identified on the first page based on the second sub-control, and the table entry function is performed on the second object. Figure 3A and Figure 3BAs shown, the first sub-control may be a "picture to table" control; the second sub-control may be a "speed recording table" control or a "scan table" control.

[0205] In the embodiment of the present disclosure, when switching from the first sub-control being in a selected state to the second sub-control being in a selected state, the table processing function corresponding to the second sub-control can be directly executed. In this way, switching between different table processing functions can be achieved on the first page without returning to the main page and re-entering, thereby simplifying the operation process.

[0206] In some embodiments, the method further comprises:

[0207] In response to not identifying an object including table content based on the scanning function, displaying prompt information and a sixth control on the first page;

[0208] In response to a triggering operation on the sixth control, a second image generated based on the first object is displayed on the fourth page; wherein the content in the second image is the same as the content included in the first object;

[0209] In response to a triggering operation on the second image, the second image is processed.

[0210] It should be noted that if the object including the table content is not identified based on the scanning function, a prompt message may be displayed on the first page. The prompt message is used to prompt that the table content is not detected; or the first prompt message is used to prompt whether to continue to execute the table conversion function if the table content is not detected. Figure 8 As shown, the prompt message may be "No table is detected in the current area".

[0211] The sixth control is used to execute the function of generating or displaying the second image based on the first object. After detecting the triggering operation of the sixth control, the second image of the first object can be obtained and displayed, wherein the content of the second image is the same as the content included in the first object. That is, the second image includes not only table content, but also non-table content in the first object. Exemplarily, when the first object is a table, the first image and the second image can be the same, and when the first object is not a table, the first image and the second image can be different.

[0212] In some embodiments, the sixth control may be identified, such as Figure 8 As shown, the sixth control 801 can be identified based on the "next step".

[0213] In the embodiment of the present disclosure, after obtaining the second image, the second image can be processed based on the triggering operation on the second image. For example, the second image can be cropped, rotated, or processed by perspective change, filter function, etc., to remove unnecessary noise or background, etc. to obtain a clear picture. Exemplarily, the image processing page can be entered, and the second image can be displayed on the image processing page. If a cropping operation on the second image is detected, the second image is cropped, and the second image after the cropping process is identified.

[0214] In the embodiments of the present disclosure, on the one hand, when the table content is not recognized, a prompt message can be output to prompt the user; on the other hand, a second image can be generated and processed, which can achieve refinement of image processing and improve the intelligence and convenience of table processing.

[0215] Fig. 9 FIG. 1 is a block diagram of a table processing device according to an exemplary embodiment. Fig. 9 As shown, the device 900 mainly includes:

[0216] The first display module 901 is configured to display a first page in response to a triggering operation on a table conversion function, wherein the first page displays a first control corresponding to the table type and at least one sub-control associated with the first control;

[0217] The identification module 902 is configured to identify a first object including table content on the first page based on a first sub-control corresponding to the table conversion function in response to a triggering operation on the scanning function;

[0218] The conversion module 903 is configured to convert the first object to obtain a first table.

[0219] In some embodiments, the conversion module 903 is configured to:

[0220] Generate a first image of the first object according to the table content, and display the first image and the second control on the second page;

[0221] In response to a trigger operation on the second control, a table conversion function is performed on the first image to obtain a first table;

[0222] The similarity between the table structure of the first table and the table structure of the table content in the first image is less than a preset threshold, and the first table includes the table content.

[0223] In some embodiments, the apparatus 900 further includes:

[0224] The second display module is configured to display the first table in the first area of ​​the third page, and to display the reference image obtained based on the first image in the second area of ​​the third page.

[0225] In some embodiments, the apparatus 900 further includes:

[0226] A third display module is configured to, in response to a first operation on the first table, perform an adjustment on the first table corresponding to the first operation, and display the adjusted first table in the first area; and / or,

[0227] The fourth display module is configured to, in response to a second operation on the reference image, perform an adjustment on the reference image corresponding to the second operation, and display the adjusted reference image in the second area.

[0228] In some embodiments, when there are at least two first images, the second display module is configured as follows:

[0229] determining a thumbnail of the first image as a reference image;

[0230] Arrange and display the reference images in the second area based on the generation time and / or generation order of the first images;

[0231] A first table is displayed in the first area, and a reference image corresponding to the first table in the second area is controlled to be in a selected state.

[0232] In some embodiments, when the first image is one, the device 900 further includes:

[0233] A fifth display module is configured to display at least two third controls on the third page; wherein each third control corresponds to a different table generation method;

[0234] The conversion module 903 is configured to:

[0235] When the third control corresponding to the table conversion function is in a selected state, a first table is generated based on a table generation method corresponding to the table conversion function.

[0236] In some embodiments, the apparatus 900 further includes:

[0237] A generating module, configured to generate a second table based on a table generating method corresponding to the table entry function when a third control corresponding to the table entry function is in a selected state;

[0238] The second table has a different table structure from the first table, and the second table displays table contents by classification through at least one item title.

[0239] In some embodiments, the third page includes a fourth control; the device 900 further includes:

[0240] a sixth display module, configured to display at least one fifth control on the third page based on the number of the first table in response to a triggering operation on the fourth control; wherein the fifth control has a corresponding table export mode;

[0241] The export module is configured to export the first table in accordance with the table export method corresponding to the fifth control in response to a trigger operation on the fifth control.

[0242] In some embodiments, the conversion module 903 is configured to:

[0243] In a case where content information having at least two styles is identified from the table content, determining a target style based on the at least two styles;

[0244] Converting content information having a non-target style into a target style to obtain converted content information;

[0245] Based on the content information having the target style and the converted content information, a first table having the same table structure and table content is obtained.

[0246] In some embodiments, the apparatus 900 further includes:

[0247] A second identification module is configured to identify a second object including table content on the first page based on the second sub-control when the first sub-control is switched from being in a selected state to being in a selected state;

[0248] an execution module, configured to execute a table processing function corresponding to the second sub-control on the second object, and obtain an execution result of the second object;

[0249] The second sub-control is different from the first sub-control, and the table processing function corresponding to the second sub-control is different from the table conversion function.

[0250] In some embodiments, the apparatus 900 further includes:

[0251] a seventh display module, configured to display a prompt message and a sixth control on the first page in response to failure to identify an object including table content based on the scanning function;

[0252] an eighth display module, configured to display, in response to a triggering operation on the sixth control, a second image generated based on the first object on the fourth page; wherein the content in the second image is the same as the content included in the first object;

[0253] The processing module is configured to process the second image in response to a triggering operation on the second image.

[0254] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0255] Based on the same inventive concept, an embodiment of the present disclosure provides an electronic device, which may be a computer or a terminal in one or more of the above embodiments. Fig.10 FIG. 1 is a schematic diagram showing the structure of an electronic device according to an exemplary embodiment. Fig.10 As shown, the electronic device 1000 adopts general computer hardware and includes a processor 1001 , a memory 1002 , a bus 1003 , an input device 1004 , and an output device 1005 .

[0256] In some possible implementations, the memory 1002 may include computer storage media in the form of volatile and / or non-volatile memory, such as read-only memory and / or random access memory. The memory 1002 may store an operating system, application programs, other program modules, executable code, program data, user data, etc.

[0257] Input device 1004 can be used to input commands and information to the electronic device, such as a keyboard or a pointing device, such as a mouse, trackball, touchpad, microphone, joystick, game pad, satellite TV antenna, scanner or similar device. Input device 1004 can be connected to processor 1001 via bus 1003.

[0258] The output device 1005 can be used for the electronic device 1000 to output information. In addition to the monitor, the output device 1005 can also be other peripheral output devices, such as a speaker and / or a printing device. The output device 1005 can also be connected to the processor 1001 through the bus 1003.

[0259] The electronic device 1000 may be connected to a network, such as a local area network (LAN), via the antenna 1006. In a networked environment, executable instructions may be stored in a remote storage device, rather than being limited to local storage.

[0260] When the processor 1001 in the electronic device 1000 executes the executable code or application stored in the memory 1002, the electronic device 1000 can implement the table processing method in the above embodiment. The specific execution process refers to the above embodiment and will not be repeated here.

[0261] The memory 1002 may store information for implementing Fig. 9 The executable instructions of the functions of the first display module 901, the identification module 902 and the conversion module 903. Fig. 9The functions / implementation processes of the first display module 901, the identification module 902 and the conversion module 903 can be realized by Fig.10 The processor 1001 in the embodiment calls the executable instructions stored in the memory 1002 to implement the above-mentioned implementation process and functions.

[0262] Based on the same inventive concept, the embodiment of the present disclosure further provides a storage medium in which instructions are stored. When the instructions are executed on a computer, the table processing method in one or more of the above embodiments is executed.

[0263] Based on the same inventive concept, the embodiments of the present disclosure further provide a computer program or a computer program product. When the computer program product is executed on a computer, the computer implements the table processing method in one or more of the above embodiments.

[0264] Those skilled in the art will readily appreciate other implementations of the disclosed embodiments after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosed embodiments, which follow the general principles of the disclosed embodiments and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the disclosed embodiments are indicated by the following claims.

[0265] It should be understood that the embodiments of the present disclosure are not limited to the precise structures described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the embodiments of the present disclosure is limited only by the appended claims.

Claims

1. A table processing method, characterized in that: The method comprises: In response to a triggering operation on a table conversion function, a first page is displayed, wherein the first page displays a first control corresponding to a table type and at least one sub-control associated with the first control; In response to a triggering operation on a scanning function, identifying a first object including table content on the first page based on a first sub-control corresponding to the table conversion function; The first object is converted to obtain a first table.

2. The method according to claim 1, characterized in that The converting the first object to obtain a first table includes: Generate a first image of the first object according to the table content, and display the first image and the second control on the second page; In response to a triggering operation on the second control, executing the table conversion function on the first image to obtain the first table; The similarity between the table structure of the first table and the table structure of the table content in the first image is less than a preset threshold, and the first table includes the table content.

3. The method according to claim 2, characterized in that The method further comprises: The first table is displayed in a first area of ​​a third page, and a reference image obtained based on the first image is displayed in a second area of ​​the third page.

4. The method according to claim 3, characterized in that The method further comprises: In response to a first operation on the first table, performing an adjustment on the first table corresponding to the first operation, and displaying the adjusted first table in the first area; and / or, In response to a second operation on the reference image, an adjustment corresponding to the second operation is performed on the reference image, and the adjusted reference image is displayed in the second area.

5. The method according to claim 3, characterized in that: In the case that there are at least two first images, displaying the first table in a first area of ​​a third page, and displaying a reference image obtained based on the first image in a second area of ​​the third page, comprises: determining a thumbnail of the first image as the reference image; Arranging and displaying the reference images in the second area based on the generation time and / or generation order of the first images; The first table is displayed in the first area, and a reference image corresponding to the first table in the second area is controlled to be in a selected state.

6. The method according to claim 3, characterized in that: In the case where the first image is one, the method further includes: Displaying at least two third controls on the third page; wherein each of the third controls corresponds to a different table generation method; The converting the first object to obtain a first table includes: When a third control corresponding to the table conversion function is in a selected state, the first table is generated based on a table generation method corresponding to the table conversion function.

7. The method according to claim 6, characterized in that The method further comprises: When a third control corresponding to the form entry function is in a selected state, generating a second form based on a form generation method corresponding to the form entry function; The second table has a different table structure from the first table, and the second table displays the table contents by classification through at least one item title.

8. The method according to claim 3, characterized in that The third page includes a fourth control; and the method further includes: In response to a triggering operation on the fourth control, displaying at least one fifth control on the third page based on the number of the first tables; wherein the fifth control has a corresponding table export mode; In response to a triggering operation on the fifth control, the first table is exported according to a table exporting method corresponding to the fifth control.

9. The method according to any one of claims 1 to 8, characterized in that: The converting the first object to obtain a first table includes: In the case where content information having at least two styles is identified from the table content, determining a target style based on the at least two styles; Converting the content information having a non-target style into the target style to obtain converted content information; Based on the content information having the target style and the converted content information, the first table having the same table structure as the table content is obtained.

10. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: In a case where the first subcontrol is switched from being in a selected state to being in a selected state, identifying a second object including table content on the first page based on the second subcontrol; Execute a table processing function corresponding to the second subcontrol on the second object to obtain an execution result of the second object; The second sub-control is different from the first sub-control, and the table processing function corresponding to the second sub-control is different from the table conversion function.

11. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: In response to not identifying an object including table content based on the scanning function, displaying prompt information and a sixth control on the first page; In response to a triggering operation on the sixth control, a second image generated based on the first object is displayed on a fourth page; wherein the content in the second image is the same as the content included in the first object; In response to a triggering operation on the second image, the second image is processed.

12. A table processing device, characterized in that: The device comprises: A first display module is configured to display a first page in response to a triggering operation on a table conversion function, wherein the first page displays a first control corresponding to a table type and at least one sub-control associated with the first control; A first identification module is configured to identify a first object including table content on the first page based on a first sub-control corresponding to the table conversion function in response to a triggering operation on a scanning function; The conversion module is configured to convert the first object to obtain a first table.

13. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the image processing method according to any one of claims 1 to 10 is implemented.

Citation Information

Cited By

  • Method and device for converting irregular table structure into JSON file

    CN120449828A