Table extraction method, electronic device and medium

Through the form selection interface of electronic devices and server identification technology, electronic forms are directly extracted from paper documents, which solves the problem of low efficiency of form extraction in the existing technology and realizes a fast and simplified form conversion process.

WO2024216932A1PCT designated stage expired Publication Date: 2024-10-24HONOR DEVICE CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/130397
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-21
Filing Date
2023-11-08
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

In the existing technology, users need to manually create and adjust tables and enter content to convert tables in paper files into electronic forms, resulting in low efficiency in table extraction.

Method used

Provides a table extraction method. By displaying the table frame selection interface, the user can use an electronic device to capture the table in the target object, use the pre-selected frame to frame the table area, and click the extraction control to generate an electronic version of the table. It supports the simultaneous extraction of multiple tables. The server Perform form recognition and feedback results to generate accurate electronic versions of forms.

Benefits of technology

There is no need for users to manually create and adjust tables, which significantly improves the efficiency of table extraction, simplifies the operation process, and can quickly complete table conversion, making it suitable for time-sensitive scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000018_0000
    Figure 00000018_0000
  • Figure 00000019_0000
    Figure 00000019_0000
  • Figure 00000020_0000
    Figure 00000020_0000
Patent Text Reader

Abstract

The present application relates to the technical field of computers. Disclosed are a table extraction method, an electronic device and a medium. The method comprises: displaying a table box selection interface, wherein the table box selection interface comprises an extraction control, a table image and a plurality of pre-selection boxes, and the plurality of pre-selection boxes are used for box selection of a plurality of table areas in the table image; in response to a selection operation for the plurality of pre-selection boxes, highlighting a selected pre-selection box on the table box selection interface; and in response to a click operation for the extraction control, acquiring an electronic table according to a table area selected by the selected pre-selection box. The method improves the extraction efficiency of a table.
Need to check novelty before this filing date? Find Prior Art

Description

Table extraction method, electronic device and medium

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on April 21, 2023, with application number 202310442919.5 and invention name “A table extraction method, electronic device and medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of computer technology, and in particular to a table extraction method, electronic equipment, and medium. Background Art

[0003] With the development of computer technology, the functions of electronic devices are becoming more and more complete. Take mobile phones as an example. Mobile phones can not only make voice calls, but also install various applications to achieve office functions.

[0004] Currently, mobile phones can install spreadsheet applications, which allow users to create various spreadsheets on their phones. When a user needs to extract a spreadsheet from a paper document into an electronic form, the user needs to first create the spreadsheet on the phone and then fill in the data in the spreadsheet to complete the spreadsheet extraction.

[0005] However, the above table extraction method is relatively cumbersome, which reduces the efficiency of table extraction.

[0006] Summary of the Invention

[0007] The present application provides a table extraction method, electronic device, and medium, which can improve the efficiency of table extraction.

[0008] To achieve the above objectives, this application adopts the following technical solutions:

[0009] In a first aspect, the present application provides a table extraction method, which can be applied to electronic devices. The method includes displaying a table selection interface, which includes an extraction control, a table image and multiple pre-selection boxes, and the multiple pre-selection boxes are used to select multiple table areas in the table image; in response to the selection operation of the multiple pre-selection boxes, the selected pre-selection boxes are highlighted in the table selection interface; in response to the click operation of the extraction control, the electronic version of the table is obtained according to the table area selected by the selected pre-selection box.

[0010] In this method, the user only needs to use an electronic device to frame the target object. For example, take a picture of a table in the target object to obtain a table image including the table. Then, click the extraction control in the selection interface, and the electronic device will generate an electronic version of the table corresponding to the table image. It can be seen that this method does not require the user to manually create a table, adjust the table, and enter the table content, thereby improving the efficiency of table extraction. In addition, this method also supports the simultaneous extraction of multiple tables in the target object, further improving efficiency.

[0011] In some possible implementations, an electronic version of a table is obtained based on the table area framed by the selected pre-selected box. This can be done by sending a table image and / or a framed image corresponding to the table area framed by the selected pre-selected box to a server; the server performs recognition based on the table image and / or the framed image to obtain a table recognition result, which includes the number of rows and columns of the table, the content in the table, and the position of each content in the table; the server receives the table recognition result fed back by the table image and / or the framed image, and obtains an electronic version of the table based on the table recognition result. Furthermore, the server can also identify the aspect ratio of each grid in the table, and then carry the aspect ratio of each grid in the table recognition result and send it to the electronic device. The electronic device displays a preview table with a consistent aspect ratio to improve the user experience.

[0012] In some possible implementations, an electronic version of a form is obtained based on the form recognition result. The comparison preview interface may be displayed based on the form recognition result, and the comparison preview interface includes an export control, multiple framed images, and multiple preview forms corresponding to the multiple framed images; in response to a click operation on the export control, an electronic version of the form corresponding to the multiple preview forms is obtained.

[0013] In some possible implementations, the method further includes: adjusting at least one preview table in response to an editing operation on at least one preview table among multiple preview tables; obtaining electronic versions of the tables corresponding to the multiple preview tables in response to a click operation on an export control, which may be obtaining the electronic version of the table corresponding to the adjusted preview table and / or the electronic version of the table corresponding to the unadjusted preview table in response to a click operation on the export control.

[0014] In some possible implementations, the method further includes: in response to a click operation on the framed image, displaying a first magnification display interface, where the magnification display interface includes a magnified image of the framed image.

[0015] In some possible implementations, the method further includes: in response to a click operation on the preview table, displaying a second magnification display interface, where the second magnification display interface includes an enlarged version of the preview table.

[0016] In some possible implementations, the second magnified display interface also includes a format control, and the method further includes: in response to a click operation on the format control, obtaining an electronic version of the form corresponding to the multiple preview forms, the format of the electronic version of the form being a preset format corresponding to the format control.

[0017] In some possible implementations, the method further includes: displaying a framing interface, the framing interface including a preview image and a framing control; and displaying a table selection interface, including: displaying the framing interface in response to a click operation on the framing control.

[0018] In a second aspect, the present application provides a table extraction method, the method comprising:

[0019] Display the table selection interface, which includes an extraction control, a table image, and a pre-selection box. The pre-selection box is used to select the table area in the table image.

[0020] In response to a click operation on the extraction control, an electronic version of the form is obtained according to the form area selected by the pre-selection box.

[0021] In a third aspect, the present application provides an electronic device, comprising: a camera, a processor, and a memory;

[0022] The camera collects images;

[0023] One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the electronic device executes the method as described in any one of the first aspect or the second aspect.

[0024] In a fourth aspect, a computer storage medium includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method as described in any one of the first aspect or the second aspect.

[0025] In a fifth aspect, the present application provides a computer program product comprising instructions; when the instructions are executed by an electronic device, the electronic device executes the method of any one of the first or second aspects above.

[0026] The technical solution of this application has the following beneficial effects:

[0027] The present application provides a table extraction method, which includes displaying a table selection interface, the table selection interface including an extraction control, a table image and multiple pre-selection boxes, the multiple pre-selection boxes are used to select multiple table areas in the table image, in response to the selection operation of the multiple pre-selection boxes, the selected pre-selection boxes are highlighted in the table selection interface, and in response to the click operation of the extraction control, the electronic version of the table is obtained according to the table area selected by the selected pre-selection box. In this method, the user only needs to use an electronic device to frame the target object, for example, to shoot the table in the target object, obtain a table image including the table, and then click the extraction control in the selection interface, and the electronic device can generate the electronic version of the table corresponding to the table image. It can be seen that this method does not require the user to manually create a table, adjust the table, and enter the table content, thereby improving the efficiency of table extraction.

[0028] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be realized in any single embodiment. On the contrary, it is understood that the description of a feature or beneficial effect means that a specific technical feature, technical solution or beneficial effect is included in at least one embodiment. Therefore, the description of a technical feature, technical solution or beneficial effect in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in the present embodiment can also be combined in any appropriate manner. Those skilled in the art will understand that the embodiment can be implemented without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in specific embodiments that do not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0030] FIG2 is a schematic diagram of a software structure of an electronic device provided in an embodiment of the present application;

[0031] FIG3 is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0032] FIG4 is a schematic diagram of a framing interface provided in an embodiment of the present application;

[0033] FIG5 is a schematic diagram of a table selection interface provided in an embodiment of the present application;

[0034] FIG6 is a flow chart of a table extraction method provided in an embodiment of the present application;

[0035] FIG7 is a schematic diagram of an embodiment of the present application providing a method for entering a table extraction function;

[0036] FIG8 is a schematic diagram of another method of entering the table extraction function provided in an embodiment of the present application;

[0037] FIG9 is a schematic diagram of another method of entering the table extraction function provided in an embodiment of the present application;

[0038] FIG10 is a schematic diagram of another method of entering the table extraction function provided in an embodiment of the present application;

[0039] FIG11 is a schematic diagram of a table selection interface provided in an embodiment of the present application;

[0040] FIG12 is a schematic diagram of an enlarged display provided in an embodiment of the present application;

[0041] FIG13 is a schematic diagram of a table export provided in an embodiment of the present application;

[0042] FIG14 is a flowchart of another table extraction method provided in an embodiment of the present application;

[0043] FIG15 is a schematic diagram of a multi-table frame selection provided in an embodiment of the present application;

[0044] FIG16 is a schematic diagram of an enlarged display provided in an embodiment of the present application;

[0045] FIG17 is a flowchart of another table extraction method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0047] To make the description of the following embodiments clear and concise, a brief introduction to the related technologies is first given:

[0048] An application is a computer program written for a specific user purpose. Applications can be categorized into different types based on their purpose, such as office, entertainment, e-commerce, finance, social networking, or gaming. Each type can include different applications. For example, entertainment applications may include short videos, long videos, news, novels, and audiobooks; office applications may include spreadsheet applications and document applications.

[0049] In some scenarios, users need to convert a table in a paper document to an electronic device. After the user converts the table in the paper document into an electronic form, the user can edit the electronic form on the electronic device. Editing can refer to editing the size of the table or editing the content of the table.

[0050] The process of users converting a table in a paper document to an electronic device can also be called table extraction. During the table extraction process, the user needs to first create an electronic form on the electronic device and set the size of the electronic form (number of rows and columns, row width, column width, etc.) to be consistent with the size of the table in the paper document, and then enter the content of the table in the paper document into the electronic form to obtain an editable electronic form.

[0051] It can be seen that in the above table extraction process, the user's operation is relatively cumbersome, thereby reducing the efficiency of the electronic device in performing table extraction.

[0052] In view of this, an embodiment of the present application provides a table extraction method, which can be applied to an electronic device. The method includes presenting a framing interface, the framing interface including a framing control. In response to a click operation on the framing control, a target object is framed to obtain a table image including a table, wherein the target object can be a paper document (such as a paper book, a paper picture, etc.) or other non-electronic document, such as the ground, a polymer (such as plastic), etc. The electronic device can then display a table selection interface, the table selection interface including a table image, a pre-selection box, and an extraction control. The pre-selection box is used to select a table area in the table image; in response to a click operation on the extraction control, an electronic version of the table corresponding to the table image is obtained.

[0053] In this method, the user simply uses an electronic device to frame the target object. For example, they can capture a table within the target object to obtain an image of the table. Then, they can click an extraction control in the selection interface, and the electronic device will generate an electronic version of the table corresponding to the table image. This method eliminates the need for users to manually create, adjust, or enter table content, thereby improving table extraction efficiency.

[0054] In some embodiments, the electronic device may be a mobile phone, tablet computer, desktop computer, laptop computer, notebook computer, ultra-mobile personal computer (UMPC), handheld computer, netbook computer, personal digital assistant (PDA), wearable electronic device, smart watch, etc. This application does not impose any special restrictions on the specific form of the above electronic devices. In this embodiment, the structure of the electronic device may be as shown in Figure 1, which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0055] As shown in FIG. 1 , the electronic device may include a processor 110 , an internal memory 121 , a camera 193 , and a display screen 194 .

[0056] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0057] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated into one or more processors. For example, in the present application, the processor may display a table selection interface, wherein the table selection interface includes an extraction control, a table image, and multiple pre-selection boxes, wherein the multiple pre-selection boxes are used to select multiple table areas in the table image; in response to the selection operation of the multiple pre-selection boxes, the selected pre-selection boxes are highlighted in the table selection interface; in response to the click operation on the extraction control, the electronic version of the table is obtained according to the table area selected by the selected pre-selection box.

[0058] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals based on instruction operation codes and timing signals to complete the control of instruction fetching and execution.

[0059] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0060] The electronic device implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0061] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-OLED, or a quantum dot light-emitting diode (QLED). In some embodiments, the electronic device can include one or N display screens 194, where N is a positive integer greater than one.

[0062] A series of graphical user interfaces (GUIs) can be displayed on the display screen 194 of the electronic device. These GUIs are the main screen of the electronic device. Generally speaking, the size of the display screen 194 of the electronic device is fixed, and only a limited number of controls can be displayed on the display screen 194 of the electronic device. A control is a GUI element, which is a software component included in an application. It controls all data processed by the application and the interactive operations on this data. Users can interact with the control through direct manipulation to read or edit relevant information of the application. Generally speaking, controls can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.

[0063] The electronic device can realize the shooting function through the ISP, camera 193, video codec, GPU, display 194 and application processor.

[0064] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.

[0065] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0066] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency, the DSP performs a Fourier transform on the frequency energy.

[0067] Video codecs are used to compress or decompress digital video. Electronic devices may support one or more video codecs. This allows them to play or record videos in a variety of encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.

[0068] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. For example, in this embodiment, the processor 110 can display a table selection interface by executing the instructions stored in the internal memory 121. The table selection interface includes an extraction control, a table image and multiple pre-selection boxes, and the multiple pre-selection boxes are used to select multiple table areas in the table image; in response to the selection operation of the multiple pre-selection boxes, the selected pre-selection boxes are highlighted in the table selection interface; in response to the click operation on the extraction control, the electronic version of the table is obtained according to the table area selected by the selected pre-selection box.

[0069] Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0070] Furthermore, operating systems run on the above components, such as the iOS operating system developed by Apple, the Android open-source operating system developed by Google, and the Windows operating system developed by Microsoft. Application programs can be installed and run on these operating systems.

[0071] The operating system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device.

[0072] As shown in FIG2 , this figure is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application.

[0073] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: application layer, framework layer, algorithm engine layer, system library layer, and kernel layer, from top to bottom.

[0074] The application layer can include a series of applications, such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, spreadsheet, scanning, etc. The application layer can also include table extraction activity.

[0075] The framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The framework layer includes predefined functions. The framework layer may include a window manager, content provider, view system, telephony manager, resource manager, notification manager, and so on.

[0076] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0077] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0078] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0079] The phone manager is used to provide communication functions for electronic devices, such as call status management (including answering, hanging up, etc.).

[0080] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, etc.

[0081] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0082] The algorithm engine layer includes a document edge detection module, a single table region detection module, and a multiple table region detection module. The document edge detection module detects the document edge of the target object, the single table region detection module detects the region of a single table within the target object, and the multiple table region detection module detects the regions of multiple tables within the target object simultaneously.

[0083] System libraries can include multiple functional modules, such as surface managers, media libraries, 3D graphics processing libraries (such as OpenGL ES), 2D graphics engines (such as SGL), and Android runtimes.

[0084] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0085] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0086] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0087] A 2D graphics engine is a drawing engine for 2D drawings.

[0088] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0089] It should be noted that although the embodiments of the present application are described using the Android system as an example, its basic principles are also applicable to electronic devices based on operating systems such as iOS and Windows.

[0090] In order to make the technical solution of this application clearer and easier to understand, the application scenarios of the table extraction method provided by this application are introduced below.

[0091] As shown in FIG3 , this figure is a schematic diagram of an application scenario provided in an embodiment of the present application.

[0092] In this scenario, the user can hold the electronic device 301 and use the electronic device 301 to extract the table in the target object 302. In some examples, the user can activate the table extraction function of the electronic device 301. After the electronic device 301 activates the table extraction function, the electronic device can display a framing interface. As shown in Figure 4, this figure is a schematic diagram of a framing interface provided in an embodiment of the present application. The framing interface includes a preview image 401, a framing control 402, and an album control 403. Among them, the preview image 401 can be an image captured by the camera of the electronic device 301 for the user to preview; the framing control 402 is used to determine the video frame, that is, which frame of the image is subsequently processed. The user can click on the framing control 402, and the electronic device responds to the user's click operation to frame the target object 302 and obtain a table image including a table.

[0093] It should be noted that the target object shown in the figure as a book is only an exemplary introduction. In some embodiments, the target object may also be a paper with a table, a wall, a high molecular polymer, etc.

[0094] After the user clicks the framing control 402, the electronic device may display a table selection interface. As shown in FIG5 , this figure is a schematic diagram of a table selection interface provided in an embodiment of the present application. The table selection interface includes a table image 501, a pre-selection box 502, and an extraction control 503. The table image 501 may be an image of a target object including a table; the pre-selection box 502 is used to select a table area within the table image. The pre-selection box 502 can support manual adjustment by the user to change its size and shape; and the extraction control 503 is used to perform table extraction to generate an electronic version of the table.

[0095] In the above scenario, the technical solution provided by the embodiments of this application eliminates the need for users to manually create, adjust, or enter table content, simplifying user operations and improving table extraction efficiency. Furthermore, this technical solution can complete table extraction in a short period of time, saving time and being applicable even in time-sensitive scenarios.

[0096] To make the technical solution of this application clearer and easier to understand, the table extraction method provided by the embodiment of this application is introduced below in conjunction with the accompanying drawings. As shown in Figure 6, this figure is a flow chart of a table extraction method provided by the embodiment of this application. The method includes:

[0097] S601: The electronic device starts a table extraction function.

[0098] Electronic devices can start the table extraction function in a variety of ways, which are introduced below.

[0099] The first one:

[0100] As shown in FIG7 , this figure is a schematic diagram of entering a table extraction function provided in an embodiment of the present application.

[0101] The user can activate the form extraction function from the electronic device's control center. In some embodiments, the user can trigger a swipe from the top of the electronic device's screen to the bottom. In response, the electronic device displays a control center interface 710. This control center interface includes Wi-Fi settings, music controls, volume controls, screen brightness controls, location controls, and smart scanning 711. Smart scanning 711 includes multiple scanning functions, such as code scanning, document scanning, card scanning, and form extraction.

[0102] Among them, the top and bottom of the screen are relative concepts. The figure only takes the electronic device in portrait mode as an example. When the electronic device is in landscape mode, the top and bottom of the screen of the electronic device will change.

[0103] The user can click on Smart Scan 711. In response to this click, the electronic device displays a scanning interface 720, which includes a form extraction option 721, a code scan option 722, a document scan option 723, and a card scan option 724. The electronic device may default to the function corresponding to the code scan option 722 or to functions corresponding to other options. In some examples, the electronic device may determine which option to enter based on the frequency of use of each function, such as the option corresponding to the previous access to Smart Scan or the option set by the user.

[0104] For example, the electronic device defaults to the scan code option 722. Then, the user can trigger a right swipe operation on the screen, and the electronic device responds to the right swipe operation and switches from the current scan code option 722 to the table extraction option 721. In other examples, the user can click on the table extraction option 721, and the electronic device can respond to the click operation on the table extraction option 721 and switch to the table extraction option 721. After switching to the table extraction option 721, the electronic device can display the viewfinder interface 730. The second method:

[0105] As shown in FIG8 , this figure is a schematic diagram of another method of entering the table extraction function provided in an embodiment of the present application.

[0106] The user can click on the note application 811 on the desktop interface 810. In response to the click on the note application 811, the electronic device can launch the note application and enter the note application interface 820. The note application interface 820 includes an image control 821. The user can click on the image control 821. In response to the click on the image control 821, the electronic device displays multiple options, such as a photo taking option, a document scanning option, a card scanning option, a selection from the gallery option, and a table extraction option 831. The user can click on the table extraction option 831 to launch the table extraction function, and the electronic device then displays the viewfinder interface 840.

[0107] The third type:

[0108] As shown in FIG9 , this figure is a schematic diagram of another method of entering the table extraction function provided in an embodiment of the present application.

[0109] The user can click on a table application 911 on the desktop interface 910. The electronic device can, in response to the click on the table application 911, start the table application and enter the table application interface 920. The table application interface 920 includes a one-key extraction control 921. The user can click on the one-key extraction control 921. The electronic device can, in response to the click on the one-key extraction control 921, start the extraction function and then display the viewfinder interface 930.

[0110] The fourth type:

[0111] As shown in FIG10 , this figure is a schematic diagram of another method of entering the table extraction function provided in an embodiment of the present application.

[0112] The user can first take a photo of the target object through the electronic device to obtain an image of the target object, or obtain the image of the target object from the Internet or other electronic devices, and the image of the target object can be saved in the electronic device. The user can enter the gallery interface 1020 by clicking the gallery application 1011 on the desktop interface 1010. The gallery interface 1020 includes an image 1021 of the target object. In some examples, the user can long-press the image 1021 of the target object. In response to the user's long-press operation on the image 1021 of the target object, the electronic device can display multiple options, such as a photo option, a document scan option, a card scan option, a select from gallery option, a table extraction option 1031, etc. The user can click the table extraction option 1031 to activate the table extraction function, and the electronic device then displays the viewfinder interface 1040.

[0113] It should be noted that the above-mentioned framing interface 730 , framing interface 840 , framing interface 930 and framing interface 1040 are similar to the framing interface shown in FIG. 4 , and are not described in detail here.

[0114] The above is merely an exemplary introduction to the method of starting the table extraction function of the electronic device in the embodiment of the present application. Those skilled in the art may choose other methods to start the table extraction function based on actual needs.

[0115] S602: The electronic device displays a framing interface.

[0116] Taking Figure 4 as an example, the viewfinder interface may include a preview image 401, a viewfinder control 402, and an album control 403. Preview image 401 may be an image captured by the electronic device's camera, and viewfinder control 402 is used to determine the video frame, that is, to determine which frame of the image is subsequently processed. The user can click on album control 403, and the electronic device, in response to the click on album control 403, displays a gallery interface, such as the aforementioned gallery interface 1020. The user can select an image of the target object from the gallery interface, thereby eliminating the need for the user to use viewfinder control 402 to determine the video frame.

[0117] S603: The electronic device performs framing in response to a click operation on the framing control.

[0118] The user can click on the framing control 402 of the framing interface, and the electronic device can perform framing in response to the click operation on the framing control 402. Furthermore, the electronic device can save the image of the target object obtained by framing locally, or send the image of the target object to a server, for example, a cloud server, so that the server can process the image of the target object.

[0119] S604, the electronic device displays a table selection interface.

[0120] Taking FIG. 5 as an example, the table selection interface includes a table image 501 , a pre-selection box 502 , and an extraction control 503 .

[0121] In some examples, the electronic device can detect the table image using a table area detection algorithm to obtain an area detection result. Based on the area detection result, the electronic device can determine the table area in the table image and display a pre-selection box around the edge of the table area. The pre-selection box can include four anchor points, and the user can adjust the position and size of the pre-selection box using the anchor points.

[0122] In other examples, the electronic device can send a table image to a server, the server detects the table area in the table image, and sends the area detection result of the table area (for example, the positions of 4 anchor points) to the electronic device. The electronic device can display a pre-selection box based on the area detection result.

[0123] S605: The electronic device adjusts the pre-selection box in response to the adjustment operation on the pre-selection box.

[0124] As shown in FIG11 , this figure is a schematic diagram of a table selection interface provided by an embodiment of the present application. After a user clicks a framing control, the electronic device may display a table selection interface 1110 or a table selection interface 1120 by default. Table selection interface 1110 includes a select all control 1111 and a rotation control 1112, and table selection interface 1120 includes an automatic selection interface 1121 and a rotation control 1122. The user may click the select all control 1111 of table selection interface 1110. In response to the click on the select all control 1111, the electronic device displays table selection interface 1120. A pre-selection box selects the entire area of ​​the table image. The user may then click the automatic selection control 1121 of table selection interface 1120. In response to the click on the automatic selection control 1121, the electronic device displays table selection interface 1110. The pre-selection box selects the table area in the table image based on a table area detection algorithm or detection result. In some examples, the user can also manually adjust the position and size of the pre-selected box.

[0125] S606: The electronic device displays a comparison preview interface in response to a click operation on the extraction control.

[0126] As shown in Figure 12, this figure is a schematic diagram of an enlarged display provided in an embodiment of the present application, wherein the comparison preview interface 1210 includes an export control 1211, a framed image 1212, and a preview table 1213 corresponding to the framed image 1212.

[0127] In some embodiments, the electronic device can send the framed image and / or the table image to the server, and the server performs table recognition on the framed image and / or the table image to obtain a table recognition result, wherein the table recognition result may include the number of rows and columns of the table, the content in the table, and the position of each content in the table. The server can send the table recognition result to the electronic device, and the electronic device displays the preview table 1213 based on the table recognition result. Furthermore, the server can identify the aspect ratio of each grid in the table image and send the aspect ratio to the electronic device, and then the electronic device can display the preview table 1213 based on the table recognition result and the aspect ratio of each grid. In this way, the aspect ratio of the grid in the preview table 1213 is similar to or consistent with the aspect ratio of the grid in the framed image 1212, which facilitates the user to compare and improves the user experience.

[0128] In other embodiments, if the electronic device has sufficient computing power, the electronic device may also perform table recognition on the framed image and / or the table image to obtain a table recognition result, and then display the preview table 1213. Furthermore, the electronic device may identify the aspect ratio of each grid in the table image and display the preview table 1213 based on the table recognition result and the aspect ratio of each grid.

[0129] S607: The electronic device enlarges and displays the framed image in response to the click operation on the framed image.

[0130] Continuing with FIG12 , the user can click on the framed image 1212. In response to the click operation on the framed image 1212, the electronic device displays a zoom display interface 1220. The zoom display interface 1220 includes an zoomed image 1221 corresponding to the framed image. That is, the user can zoom in on the pre-framed image, thereby facilitating the user to determine whether the pre-selected frame needs to be adjusted.

[0131] S608: The electronic device enlarges and displays the electronic form in response to a click operation on the electronic form.

[0132] Continuing with Figure 12, the user can also click on the preview table 1213. In response to the click operation on the preview table 1213, the electronic device displays an enlarged display interface 1230. The enlarged display interface 1230 includes an enlarged version of the preview table 1213 and also includes format controls, such as a first format control 1232 and a second format control 1233. Different format controls correspond to different preset formats. In the enlarged display interface 1230, the user can preview the enlarged version of the preview table to determine whether the table extraction is accurate. Among them, the enlarged display interface for displaying the enlarged image of the framed image can be the first enlarged display interface, and the enlarged display interface for displaying the enlarged version of the preview table can be the second enlarged display interface.

[0133] Furthermore, in the comparison preview interface 1210, the preview table 1213 supports editing. Similarly, the enlarged image 1231 corresponding to the preview table in the enlarged display interface 1230 can also support editing, thereby facilitating the user to further modify or adjust the preview table and improve the accuracy of the generated electronic form.

[0134] It should be noted that the magnified display interface 1230 may also include only one export control, for example, only the first format control. Those skilled in the art may design the number of export controls based on actual needs.

[0135] S609: In response to a click operation on the first format control, the electronic device exports the preview table into an electronic version of the table in the first format.

[0136] The user can click on the first format control 1232. In response to the click on the first format control 1232, the electronic device exports the preview table to an electronic version of the table in the first format. The identifier of the first format control 1232 can be "Export to Excel" or other text or icons, and the first format can be Excel format or other formats. The identifier and format of the control can be designed based on actual needs.

[0137] As shown in FIG13 , this figure is a schematic diagram of a table export provided in an embodiment of the present application.

[0138] After the user clicks the first format control 1232, the electronic device displays a table application interface 1310 in response to the click operation on the first format control 1232. After the user clicks the first format control, the electronic device can launch the table application and embed the preview table into the worksheet displayed by the table application. Table application interface 1310 includes an electronic form 1311 and a save control 1312. The user can edit the electronic form 1311 or click the save control 1312 to trigger the electronic device to save the electronic form. In response to the click operation on the save control 1312, the electronic device displays a save interface 1320. The save interface 1320 includes a confirm save control 1321. The user can set the save path of the electronic form on the save interface and then click the confirm save control 1321. In response to the click operation on the confirm save control 1321, the electronic device saves the electronic form to the user-selected save path and displays a save path interface 1330. The save path interface 1330 includes the electronic form file 1331.

[0139] S610: In response to a click operation on a second format control, the electronic device exports the preview table into an electronic version of the table in the second format.

[0140] The user can also click the second format control 1233. In response to the click operation of the second format control 1232, the electronic device exports the preview table as an electronic version of the second number. The label of the second format control 1233 can be "Export to Notes" or other text or icons. The second format can be a note format or other formats. The label and format of the control can be designed based on actual needs.

[0141] Continuing to refer to Figure 13, after the user clicks on the second format control 1233, the electronic device displays the note application interface 1340 in response to the click-through operation on the second format control 1233. After the user clicks on the second format control, the electronic device can start the note application and embed the preview table into the interface displayed by the note application. The note application interface 1340 includes an electronic version of the form 1341 and a file 1342 in the first format corresponding to the electronic version of the form. The user can edit the electronic version of the form 1341 in the note application interface 1340, or click on the file 1342 in the first format. The electronic device starts the form application in response to the click operation on the file 1342 in the first format. The electronic device can display the above-mentioned form application interface 1310 and edit it in the form application interface 1310.

[0142] It should be noted that the electronic device may not display the comparison preview interface 1210 and the magnified display page 1220 described above. Instead, after the user clicks the extraction control 503 in the table selection interface shown in FIG5 , the electronic device directly displays the magnified display interface 1230 shown in FIG12 . This further reduces the user's interaction cost and improves the efficiency of table extraction.

[0143] As shown in Figure 14, this figure is a flowchart of another table extraction method provided in an embodiment of the present application. The difference between this embodiment and the above embodiment is that in the embodiment shown in Figure 14, the electronic device supports extracting multiple tables in the target object, that is, it can extract multiple tables at a time, further improving the extraction efficiency. Specifically, the method includes:

[0144] S1401: The electronic device starts a table extraction function.

[0145] S1402: The electronic device displays a framing interface.

[0146] S1403: The electronic device performs framing in response to a click operation on the framing control.

[0147] S1404, the electronic device displays a table selection interface.

[0148] As shown in FIG15 , this figure is a schematic diagram of a multi-table frame selection provided in an embodiment of the present application.

[0149] Among them, the viewfinder interface 1510 includes a preview image 1511, a viewfinder control 1512 and an album control 1513. Among them, the preview image 1511 includes multiple table areas, the viewfinder control 1512 is used to determine the video frame, and the album control 1513 is used to select other images from the gallery and extract the tables in other images.

[0150] After the user clicks the viewfinder control 1512, the electronic device displays a table selection interface 1520 in response to the click operation on the viewfinder control 1512. The table selection interface 1520 includes an extraction control 1525 and multiple pre-selection boxes, such as pre-selection box 1521, pre-selection box 1522, pre-selection box 1523 and pre-selection box 1524.

[0151] S1405: In response to the selection operation on the pre-selection box, the electronic device displays the selected pre-selection box.

[0152] Continuing to refer to FIG. 15 , the user can select a pre-selected box in the table box selection interface 1520 , and the electronic device highlights the selected pre-selected box in response to the selection operation on the pre-selected box.

[0153] It should be noted that the highlighted display is merely an exemplary introduction, and the electronic device may also use other methods to highlight the pre-selected box selected by the user.

[0154] In some examples, the user can select pre-selection box 1521 and pre-selection box 1522. In response to the selection operations on pre-selection box 1521 and pre-selection box 1522, the electronic device can highlight pre-selection box 1521 and pre-selection box 1522 in table selection interface 1520. Pre-selection box 1523 and pre-selection box 1524 in table selection interface 1520 are pre-selection boxes that the user has not selected.

[0155] In some embodiments, the user may also select only one pre-selected box.

[0156] S1406: The electronic device adjusts the pre-selection box in response to the adjustment operation on the pre-selection box.

[0157] 15 , the user can adjust the pre-selection box in the table selection interface 1520. Taking the user adjusting the pre-selection box 1521 as an example, the user can adjust the size of the area selected by the pre-selection box 1521 or adjust the position of the pre-selection box 1521.

[0158] In some examples, the user can press and hold the boundary 1521A of the pre-selection box 1521 and perform a sliding operation. The electronic device can adjust the size of the area selected by the pre-selection box 1521 based on the sliding operation on the boundary 1521A. The adjusted pre-selection box is shown in the table selection interface 1530.

[0159] In other examples, the user may also long press the pre-selection box 1521 and perform a drag operation, and the electronic device adjusts the position of the pre-selection box based on the drag operation on the pre-selection box 1521. The adjusted pre-selection box is shown in the table selection interface 1540.

[0160] S1407: The electronic device displays a comparison preview interface in response to a click operation on the extraction control.

[0161] As shown in Figure 16, this figure is a schematic diagram of an enlarged display provided in an embodiment of the present application. In some examples, a user can click an extraction control 1525 in a table selection interface 1520. In response to the click operation on the extraction control 1525, the electronic device displays a comparison preview interface 1610. The comparison preview interface 1610 includes an export control 1611, a selection image 1612, a selection image 1613, a preview table 1614 corresponding to the selection image 1612, and a preview table 1615 corresponding to the selection image 1613.

[0162] Similar to the above-mentioned single table extraction process, the process of the electronic device displaying the preview table 1614 and the preview table 1615 based on the table recognition result will not be described in detail here.

[0163] S1408. The electronic device enlarges and displays the framed image in response to a click operation on the framed image.

[0164] Continuing with FIG16 , a user can click on framed image 1612 or framed image 1613, and the electronic device can display a magnified display interface 1620. Taking the case where the user clicks on framed image 1612 as an example, magnified display interface 1620 includes a magnified image 1621 corresponding to framed image 1612. Similarly, a user can click on framed image 1613, causing the electronic device to display a magnified version of framed image 1613. In other words, the user can magnify the pre-framed image, making it easier for the user to determine whether to adjust the size and / or position of the pre-framed image.

[0165] S1409: The electronic device enlarges and displays the electronic form in response to a click operation on the electronic form.

[0166] Continuing with FIG16 , a user can click on preview table 1614 or preview table 1615, and the electronic device can display an enlarged display interface 1630. Taking the case where the user clicks on preview table 1614 as an example, the electronic device can, in response to the click operation on preview table 1614, display an enlarged version of preview table 1614 and preview table 1615 on enlarged display interface 1630, wherein the enlarged version of preview table 1614 is separated from preview table 1615 by a preset distance. In other examples, taking the case where the user clicks on preview table 1614 as an example, the electronic device can, in response to the click operation on preview table 1614, display an enlarged version of preview table 1614 on enlarged display interface 1630.

[0167] The magnified display interface 1630 further includes a first format control 1631 and a second format control 1632. The first format control 1631 allows the user to export the preview table into an electronic form in a first format, and the second format control 1632 allows the user to export the preview table into an electronic form in a second format.

[0168] S1410: In response to a click operation on a first format control, the electronic device exports the preview table into an electronic version of the table in the first format.

[0169] S1411: In response to a click operation on the second format control, the electronic device exports the preview table into an electronic version of the table in the second format.

[0170] It should be noted that the same or similar parts as those in the embodiment shown in FIG. 6 are not described in detail in the embodiment shown in FIG. 14 , and the specific contents can be found in the embodiment shown in FIG. 6 .

[0171] As shown in FIG17 , this figure is a flowchart of another table extraction method provided in an embodiment of the present application, the method comprising:

[0172] S1701. The electronic device starts a table extraction function.

[0173] In some examples, the user can activate the table extraction function of the electronic device through at least one of the four methods introduced in the above embodiments, which will not be repeated here.

[0174] S1702: The application at the application layer launches a table extraction activity.

[0175] The application layer can include applications such as camera, gallery, and memo, as well as table extraction activities. When the electronic device starts the table extraction function, applications in the application layer can launch the table extraction activity. For example, applications such as camera, gallery, and memo launch the table extraction activity.

[0176] S1703: The application layer obtains the table image.

[0177] In some examples, the electronic device can obtain a table image based on a user clicking a viewfinder control on the viewfinder interface, or based on an image selected by the user in the gallery. The specific process is described in the above embodiment and will not be repeated here.

[0178] S1704. The application layer transmits the table image to the algorithm engine layer.

[0179] After the application layer obtains the table image, it can transmit the table image to the algorithm engine layer. The algorithm engine layer may include a table area detection algorithm, a document edge detection algorithm, etc., wherein the table area detection algorithm may include a single table area detection algorithm and a multiple table area detection algorithm.

[0180] S1705. The algorithm engine layer feeds back the region detection result to the application layer based on the table image.

[0181] The algorithm engine layer can detect the table area in the table image based on the table area detection algorithm to obtain the area detection result. The area detection result can be the positions of 4 anchor points (1 pre-selected box).

[0182] S1706: The application layer displays a pre-selected box based on the area detection result.

[0183] After receiving the region detection results, the application layer determines the positions of the four anchor points for a preselected box and displays the preselected box based on the anchor point positions. Of course, when a table image includes multiple table areas, the region detection results can also include multiple groups of anchor points, each group of anchor points includes four anchor points, and each group of anchor points corresponds to a preselected box.

[0184] S1707: The application layer sends the frame selection image and / or table image to the server.

[0185] The user may adjust the pre-selected box or not. The application layer may send the image in the pre-selected box, i.e., the box-selected image, to the server, or may send the table image to the server, or may send both the box-selected image and the table image to the server.

[0186] S1708. The server returns the table recognition result to the application layer based on the frame-selected image and / or table image.

[0187] Upon receiving the framed image and / or table image, the server may identify the framed image and / or table image to obtain a table recognition result. The table recognition result may include the number of rows and columns in the table, the content in the table, and the position of each content in the table. Furthermore, the table recognition result may also include the aspect ratio of each grid. After determining the table recognition result, the server feeds the table recognition result back to the electronic device.

[0188] In other examples, when the computing power of the electronic device is sufficient, the framed image and / or table image can also be sent to the algorithm engine layer, and the relevant table recognition algorithm can be deployed in the algorithm engine layer to recognize the table and obtain the table recognition result.

[0189] S1709: The application layer displays a preview table based on the table recognition result.

[0190] After determining the table recognition result, the application layer displays a preview table based on the table recognition result.

[0191] S1710. The application layer exports the preview table to an electronic form in a preset format.

[0192] The electronic device may export the preview table into an electronic form in a preset format in response to the user clicking the export control, where the preset format may be the first format or the second format in the aforementioned embodiment.

[0193] It should be noted that this embodiment is similar to the embodiment shown in FIG. 6 or FIG. 14 , and the specific contents can be referred to the aforementioned embodiment.

[0194] Based on the above description, an embodiment of the present application provides a table extraction method, which can be applied to an electronic device. The method includes presenting a framing interface, the framing interface including a framing control, and in response to a click operation on the framing control, framing a target object to obtain a table image including a table, wherein the target object can be a paper document (such as a paper book, a paper picture, etc.), or other non-electronic documents, such as the ground, a polymer (such as plastic), etc. The electronic device can then display a table selection interface, the table selection interface including a table image, a pre-selection box, and an extraction control, the pre-selection box being used to select a table area in the table image; in response to a click operation on the extraction control, an electronic version of the table corresponding to the table image is obtained.

[0195] In this method, the user simply uses an electronic device to frame the target object. For example, they can capture a table within the target object to obtain an image of the table. Then, they can click an extraction control in the selection interface, and the electronic device will generate an electronic version of the table corresponding to the table image. This method eliminates the need for users to manually create, adjust, or enter table content, thereby improving table extraction efficiency.

[0196] This embodiment also provides a computer-readable storage medium, which includes instructions. When the above instructions are executed on an electronic device, the electronic device executes the relevant method steps in Figures 6, 14 and 17 to implement the method in the above embodiments.

[0197] This embodiment also provides a computer program product containing instructions. When the computer program product is run on an electronic device, the electronic device executes the relevant method steps shown in Figures 6, 14 and 17 to implement the method in the above embodiments.

[0198] The above is only a specific embodiment of the present application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A table extraction method, characterized in that: include: Displaying a table selection interface, the table selection interface comprising an extraction control, a table image and a plurality of pre-selection boxes, wherein the plurality of pre-selection boxes are used to select a plurality of table areas in the table image; In response to a selection operation on the plurality of pre-selected boxes, highlighting the selected pre-selected boxes in the table box selection interface; In response to a click operation on the extraction control, an electronic version of the form is obtained according to the form area selected by the selected pre-selection box.

2. The method according to claim 1, characterized in that The step of obtaining an electronic version of the form according to the form area selected by the selected pre-selected box includes: Sending the table image and / or the framed image corresponding to the table area framed by the selected pre-selected box to a server; receiving a table recognition result fed back by the server based on the table image and / or the frame selection image, wherein the table recognition result includes the number of rows and columns of the table, the content in the table, and the position of each content in the table; According to the form recognition result, an electronic version of the form is obtained.

3. The method according to claim 2, characterized in that The step of obtaining an electronic version of the form according to the form recognition result includes: According to the table recognition result, a comparison preview interface is displayed, wherein the comparison preview interface includes an export control, a plurality of the framed images, and a plurality of preview tables corresponding to the plurality of the framed images; In response to a click operation on the export control, electronic versions of the tables corresponding to the preview tables are obtained.

4. The method according to claim 3, characterized in that The method further comprises: In response to an editing operation on at least one preview table among the plurality of preview tables, adjusting at least one preview table; In response to a click operation on the export control, an electronic version of a plurality of tables corresponding to the preview tables is obtained, including: In response to a click operation on the export control, an electronic version table corresponding to the adjusted preview table and / or an electronic version table corresponding to the unadjusted preview table is obtained.

5. The method according to claim 3 or 4, characterized in that: The method further comprises: In response to a click operation on the framed image, a first enlarged display interface is displayed, wherein the enlarged display interface includes an enlarged image of the framed image.

6. The method according to claim 3 or 4, characterized in that: The method further comprises: In response to a click operation on the preview table, a second enlarged display interface is displayed, wherein the second enlarged display interface includes an enlarged version of the preview table.

7. The method according to claim 6, characterized in that The second magnification display interface further includes a format control, and the method further includes: In response to a click operation on the format control, an electronic version of a table corresponding to the plurality of preview tables is obtained, wherein the format of the electronic version of the table is a preset format corresponding to the format control.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: Displaying a framing interface, wherein the framing interface includes a preview image and framing controls; The display table frame selection interface includes: In response to a click operation on the viewfinder control, a frame selection interface is displayed.

9. A table extraction method, characterized in that: include: Displaying a table selection interface, the table selection interface includes an extraction control, a table image and a pre-selection box, the pre-selection box is used to select a table area in the table image; In response to a click operation on the extraction control, an electronic version of the form is obtained according to the form area selected by the pre-selection box.

10. An electronic device, characterized in that: include: Camera, processor and memory; The camera collects images; Wherein, one or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the electronic device executes the table extraction method as described in any one of claims 1-9.

11. A computer storage medium, characterized in that: The method comprises computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the table extraction method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Table extraction method, electronic equipment and medium

    CN118823809A

  • Customs clearance data generation system and method based on image and text identification

    CN108960054A

  • Table object screening method and device, electronic equipment and storage medium

    CN109992750A

  • Table object editing method and device, electronic equipment and storage medium

    CN109992759A

  • Table output method and device and electronic equipment

    CN111984170A