Table extraction method, electronic equipment and medium
Through the use of table frame selection interface and extraction control, users can quickly generate electronic forms, which solves the problem of low table extraction efficiency in the existing technology and realizes an efficient table extraction process.
Patent Information
- Application Number
- CN202310442919.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-21
- Publication Date
- 2024-10-22
AI Technical Summary
In the existing technology, users need to manually create and adjust tables and enter data, resulting in low table extraction efficiency.
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.
It eliminates the need for users to manually create and adjust tables, significantly improves the efficiency of table extraction, simplifies the operation process, and is suitable for time-sensitive scenarios.
Smart Images

Figure CN118823809A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a table extraction method, electronic equipment and medium. Background Art
[0002] 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 realize voice calls, but also install various applications to realize office functions.
[0003] Currently, a mobile phone can be installed with a spreadsheet application, and users can create various spreadsheets on the mobile phone based on the spreadsheet application. When a user needs to extract a spreadsheet from a paper document into an electronic spreadsheet, the user needs to first create a spreadsheet on the mobile phone, and then fill in data in the spreadsheet to complete the spreadsheet extraction.
[0004] However, the above table extraction method is relatively complicated, which reduces the efficiency of table extraction. Summary of the invention
[0005] The present application provides a table extraction method, electronic equipment and medium, which can improve the table extraction efficiency.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, the present application provides a table extraction method, which can be applied to electronic devices, and the method includes displaying a table selection interface, the table selection interface includes 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 a selection operation on the multiple pre-selection boxes, the selected pre-selection boxes are highlighted in the table selection interface; in response to a click operation on the extraction control, an electronic version of the table is obtained according to the table area selected by the selected pre-selection box.
[0008] In this method, the user only needs to use the electronic device to frame the target object, for example, take a picture of 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 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.
[0009] In some possible implementations, an electronic version of a table is obtained based on the table area framed by the selected pre-selected box, and the table image and / or the framed image corresponding to the table area framed by the selected pre-selected box are sent to the server; the server performs recognition based on the table image and / or the framed image to obtain a table recognition result, 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, and receives the table recognition result fed back by the server based on the table image and / or the framed image, and obtains the 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, and the electronic device displays a preview table with a consistent aspect ratio to improve the user experience.
[0010] In some possible implementations, an electronic version of the form is obtained based on the table recognition result. The comparison preview interface may be displayed based on the table recognition result, and the comparison preview interface includes an export control, multiple framed images, and multiple preview tables 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 tables is obtained.
[0011] In some possible implementations, the method further includes: in response to an edit operation on at least one of the multiple preview tables, adjusting at least one preview table; in response to a click operation on an export control, obtaining electronic versions of the tables corresponding to the multiple preview tables, which may be in response to a click operation on the export control, 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.
[0012] In some possible implementations, the method further includes: in response to a click operation on the framed image, displaying a first zoom display interface, wherein the zoom display interface includes an zoomed-in image of the framed image.
[0013] In some possible implementations, the method further includes: in response to a click operation on the preview table, displaying a second enlarged display interface, wherein the second enlarged display interface includes an enlarged version of the preview table.
[0014] 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 table corresponding to the multiple preview tables, the format of the electronic version of the table being a preset format corresponding to the format control.
[0015] 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 selection interface in response to a click operation on the framing control.
[0016] In a second aspect, the present application provides a table extraction method, the method comprising:
[0017] Display the table selection interface, which includes extraction controls, table images, and pre-selection boxes. The pre-selection box is used to select the table area in the table image.
[0018] 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.
[0019] In a third aspect, the present application provides an electronic device, including: a camera, a processor, and a memory;
[0020] The camera collects images;
[0021] 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.
[0022] 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.
[0023] 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 any one of the methods in the first or second aspect above.
[0024] The technical solution of this application has the following beneficial effects:
[0025] The present application provides a table extraction method, which includes displaying a table selection interface, the table selection interface includes 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, take a picture of 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.
[0026] 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 features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. Therefore, the description of technical features, technical solutions or beneficial effects 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 realized 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 a specific embodiment that does not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0028] Figure 2 A schematic diagram of a software structure of an electronic device provided in an embodiment of the present application;
[0029] Figure 3 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0030] Figure 4 A schematic diagram of a framing interface provided in an embodiment of the present application;
[0031] Figure 5 A schematic diagram of a table selection interface provided in an embodiment of the present application;
[0032] Figure 6 A flowchart of a table extraction method provided in an embodiment of the present application;
[0033] Figure 7 A schematic diagram of entering a table extraction function provided in an embodiment of the present application;
[0034] Figure 8 A schematic diagram of another method of entering a table extraction function provided in an embodiment of the present application;
[0035] Fig. 9 A schematic diagram of another method of entering a table extraction function provided in an embodiment of the present application;
[0036] Fig.10 A schematic diagram of another method of entering the table extraction function provided in an embodiment of the present application
[0037] Fig.11 A schematic diagram of a table selection interface provided in an embodiment of the present application;
[0038] Fig.12 A schematic diagram of an enlarged display provided for an embodiment of the present application;
[0039] Fig.13 A schematic diagram of a table export provided in an embodiment of the present application;
[0040] Fig.14 A flowchart of another table extraction method provided in an embodiment of the present application;
[0041] Fig.15 A schematic diagram of a multi-table frame selection provided in an embodiment of the present application;
[0042] Fig.16 A schematic diagram of an enlarged display provided for an embodiment of the present application;
[0043] Fig.17 A flowchart of another table extraction method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The terms "first", "second", "third", etc. in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.
[0045] In the embodiments of the present 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 the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0046] In order to make the description of the following embodiments clear and concise, a brief introduction to the related technology is first given:
[0047] An application is a computer program written for a specific purpose of a user. Applications can be divided into different types according to their purpose, such as office, entertainment, e-commerce, finance, social networking, or games. Each type can include different applications. For example, entertainment applications can include short videos, long videos, news, novels, audiobooks, etc.; office applications can include spreadsheet applications, document applications, etc.
[0048] 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, where editing can refer to editing the size of the table or editing the content of the table.
[0049] 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 input the contents of the table in the paper document into the electronic form to obtain an editable electronic form.
[0050] 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 table extraction.
[0051] In view of this, an embodiment of the present application provides a table extraction method, which can be applied to an electronic device, and includes presenting a framing interface, the framing interface including a framing control, framing a target object in response to a click operation on the framing control, and obtaining 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, obtaining an electronic version of the table corresponding to the table image.
[0052] In this method, the user only needs to use the electronic device to frame the target object, for example, take a picture of 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 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.
[0053] In some embodiments, the electronic device may be a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, a smart watch, etc. The present 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 follows: Figure 1 As shown, Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0054] like Figure 1 As shown, the electronic device may include a processor 110 , an internal memory 121 , a camera 193 , and a display screen 194 .
[0055] It is to 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 in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0056] 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 processor (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 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-selection boxes, the selected pre-selection boxes are highlighted in the table selection interface; in response to a click operation on the extraction control, an electronic version of the table is obtained according to the table area selected by the selected pre-selection box.
[0057] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0058] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0059] The electronic device implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0060] The display screen 194 is used to display images, videos, etc. The 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oled, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0061] A series of graphical user interfaces (GUIs) can be displayed on the display screen 194 of the electronic device, and 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 limited 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 program, and controls all data processed by the application program and interactive operations on the data. Users can interact with the control through direct manipulation to read or edit relevant information of the application program. Generally speaking, a control can include visual interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.
[0062] The electronic device can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0063] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
[0064] 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 optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted 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.
[0065] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy.
[0066] Video codecs are used to compress or decompress digital videos. Electronic devices can support one or more video codecs. In this way, electronic devices can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0067] The internal memory 121 can be used to store computer executable program codes, which include 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, and 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 box is 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.
[0068] 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.
[0069] In addition, an operating system is running 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 the operating system.
[0070] The operating system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core 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 exemplify the software structure of the electronic device.
[0071] like Figure 2 As shown, this figure is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application.
[0072] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, framework layer, algorithm engine layer, system library and kernel layer.
[0073] 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.
[0074] The framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The framework layer includes some predefined functions. The framework layer can include window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0075] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0076] 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.
[0077] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0078] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
[0079] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0080] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0081] The algorithm engine layer includes a document edge detection module, a single table area detection module, and a multiple table area detection module. The document edge detection module is used to detect the document edge of the target object, the single table area detection module is used to detect the area of a single table in the target object, and the multiple table area detection module is used to simultaneously detect the areas of multiple tables of the target object.
[0082] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), Android runtime, etc.
[0083] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0084] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0085] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0086] A 2D graphics engine is a drawing engine for 2D drawings.
[0087] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0088] 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.
[0089] In order to make the technical solution of the present application clearer and easier to understand, the application scenarios of the table extraction method provided by the present application are introduced below.
[0090] like Figure 3 As shown, the figure is a schematic diagram of an application scenario provided by an embodiment of the present application.
[0091] In this scenario, the user can hold the electronic device 301 and extract the table in the target object 302 through the electronic device 301. 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. Figure 4 As shown, this figure is a schematic diagram of a framing interface provided by 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.
[0092] 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.
[0093] After the user clicks the viewfinder control 402, the electronic device can display a table selection interface. Figure 5As shown, 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. Among them, the table image 501 can be an image including a table in the target object; the pre-selection box 502 is used to select the table area in the table image, and the pre-selection box 502 can support manual adjustment by the user to change its size and shape; the extraction control 503 is used to perform table extraction to generate an electronic version of the table.
[0094] In the above scenario, through the technical solution provided by the embodiment of the present application, the user does not need to manually create a table, adjust the table, and enter the table content, which simplifies the user's operation and improves the efficiency of table extraction. Furthermore, the technical solution can complete the table extraction in a short time, saving time, and can also be applied in time-sensitive scenarios.
[0095] In order to make the technical solution of the present application clearer and easier to understand, the table extraction method provided in the embodiment of the present application is introduced below in conjunction with the accompanying drawings. Figure 6 As shown in FIG. 1 , the figure is a flow chart of a table extraction method provided in an embodiment of the present application. The method includes:
[0096] S601, the electronic device starts a table extraction function.
[0097] Electronic devices can start the table extraction function in a variety of ways, which are introduced below.
[0098] The first one:
[0099] like Figure 7 As shown, this figure is a schematic diagram of entering the table extraction function provided in an embodiment of the present application.
[0100] The user can control the electronic device to start the form extraction function from the control center of the electronic device. In some embodiments, the user can trigger a sliding operation from the top of the screen of the electronic device to the bottom of the screen, and the electronic device displays the control center interface 710 in response to the user's sliding operation. The control center interface includes wifi settings, music control, volume control, screen brightness control, positioning control, and smart scanning 711. Among them, smart scanning 711 includes multiple scanning functions, such as code scanning, document scanning, card scanning, form extraction, etc.
[0101] Among them, the top and bottom of the screen are relative concepts. The figure only takes the case of the electronic device in portrait mode as an example. When the electronic device is in landscape mode, the top and bottom of the screen will change.
[0102] The user can click on the smart scan 711, and the electronic device responds to the click operation on the smart scan 711 by displaying a scan interface 720, which includes a table extraction option 721, a code scanning option 722, a document scanning option 723, a card scanning option 724, etc. Among them, the electronic device may default to the function corresponding to the code scanning option 722, or default to the function corresponding to other options. In some examples, it may also be determined based on the frequency of use of each function, or the option corresponding to the last access to the smart scan, or the option set by the user.
[0103] Taking the electronic device entering the scan code option 722 by default as an example, the user can then trigger a right swipe operation on the screen, and the electronic device switches from the current scan code option 722 to the table extraction option 721 in response to the right swipe operation. In other examples, the user can click on the table extraction option 721, and the electronic device can switch to the table extraction option 721 in response to the click operation on the table extraction option 721. After switching to the table extraction option 721, the electronic device can display the viewfinder interface 730. The second type:
[0104] like Figure 8 As shown, this figure is a schematic diagram of another method of entering the table extraction function provided in an embodiment of the present application.
[0105] The user can click on the note application 811 of the desktop interface 810, and the electronic device can start the note application in response to the click operation on the note application 811, and enter the note application interface 820. The note application interface 820 includes a picture control 821. The user can click on the picture control 821, and the electronic device can display multiple options in response to the click operation on the picture control 821, such as a photo option, a document scanning option, a card scanning option, a selection from the gallery option, a table extraction option 831, etc. The user can click on the table extraction option 831 to start the table extraction function, and then the electronic device displays the viewfinder interface 840.
[0106] The third type:
[0107] like Fig. 9 As shown, this figure is a schematic diagram of another method of entering the table extraction function provided in an embodiment of the present application.
[0108] The user can click on the table application 911 of the desktop interface 910, and the electronic device can start the table application in response to the click operation on the table application 911, and enter the table application interface 920, and the table application interface 920 includes a one-key extraction control 921. The user can click on the one-key extraction control 921, and the electronic device can start the extraction function in response to the click operation on the one-key extraction control 921, and then the electronic device displays the viewfinder interface 930.
[0109] The fourth type:
[0110] like Fig.10 As shown, this figure is a schematic diagram of another method of entering the table extraction function provided in an embodiment of the present application.
[0111] The user may first take a photo of the target object through an electronic device to obtain an image of the target object, or may obtain the image of the target object from the Internet or other electronic devices, and the image of the target object may be saved in the electronic device. The user may enter the gallery interface 1020 by clicking on the gallery application 1011 of the desktop interface 1010, and the gallery interface 1020 includes an image 1021 of the target object. In some examples, the user may long press the image 1021 of the target object, and the electronic device may display multiple options in response to the user's long press operation on the image 1021 of the target object, such as a photo option, a document scanning option, a card scanning option, a selection option from the gallery, a table extraction option 1031, etc. The user may click on the table extraction option 1031 to start the table extraction function, and then the electronic device displays the viewfinder interface 1040.
[0112] It should be noted that the above-mentioned viewfinder interface 730, viewfinder interface 840, viewfinder interface 930 and viewfinder interface 1040 are similar to Figure 4 The framing interface shown is similar and will not be described again here.
[0113] The above is merely an exemplary introduction to starting the table extraction function of the electronic device in the embodiment of the present application. Those skilled in the art may choose other ways to start the table extraction function based on actual needs.
[0114] S602: The electronic device displays a framing interface.
[0115] by Figure 4 For example, the viewfinder interface may include a preview image 401, a viewfinder control 402, and an album control 403. The preview image 401 may be an image captured by a camera of the electronic device, and the viewfinder control 402 is used to determine the video frame, that is, to determine which frame of the image is to be subsequently processed. The user may click on the album control 403, and the electronic device may display a gallery interface in response to the click operation on the album control 403, such as the gallery interface 1020 described above, and the user may select an image of the target object from the gallery interface, so that the user does not need to determine the video frame through the viewfinder control 402.
[0116] S603: The electronic device performs framing in response to a click operation on the framing control.
[0117] 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, such as a cloud server, so that the server can process the image of the target object.
[0118] S604, the electronic device displays a table selection interface.
[0119] by Figure 5 For example, the table selection interface includes a table image 501 , a pre-selection box 502 , and an extraction control 503 .
[0120] In some examples, the electronic device can detect the table image using a table area detection algorithm to obtain an area detection result, determine the table area in the table image according to the area detection result, and display a pre-selection box at the edge of the table area. The pre-selection box may include 4 anchor points, and the user may adjust the position and size of the pre-selection box again through the anchor points.
[0121] 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 four anchor points) to the electronic device, and the electronic device can display a pre-selection box based on the area detection result.
[0122] S605: The electronic device adjusts the pre-selection box in response to the adjustment operation on the pre-selection box.
[0123] like Fig.11 As shown, the figure is a schematic diagram of a table selection interface provided by an embodiment of the present application. After the user clicks the framing control, the electronic device can display the table selection interface 1110 by default, or can display the table selection interface 1120 by default, wherein the table selection interface 1110 includes a selection all control 1111 and a rotation control 1112, and the table selection interface 1120 includes an automatic selection interface 1121 and a rotation control 1122. The user can click the selection all control 1111 of the table selection interface 1110, and the electronic device responds to the click operation of the selection all control 1111 and displays the table selection interface 1120, at which time the pre-selection box will select the entire area of the table image; then, the user can click the automatic selection control 1121 of the table selection interface 1120, and the electronic device responds to the click operation of the automatic selection control 1121 and displays the table selection interface 1110, at which time the pre-selection box will select the table area in the table image based on the table area detection algorithm or the detection result. In some examples, the user can also manually adjust the position and size of the pre-selected box.
[0124] S606: The electronic device displays a comparison preview interface in response to a click operation on the extraction control.
[0125] like Fig.12 As shown, the 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.
[0126] In some embodiments, the electronic device may 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 may send the table recognition result to the electronic device, and the electronic device displays the preview table 1213 based on the table recognition result. Further, the server may 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 may 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 or consistent with the aspect ratio of the grid in the framed image 1212, which is convenient for users to compare and improve the user experience.
[0127] 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 recognize 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.
[0128] S607: In response to a click operation on the framed image, the electronic device enlarges and displays the framed image.
[0129] Continue to see Fig.12 The user can click on the framed image 1212, and the electronic device responds to the click operation on the framed image 1212 by displaying a zoom display interface 1220, where the zoom display interface 1220 includes an enlarged image 1221 corresponding to the framed image. That is, the user can enlarge the pre-framed image, thereby facilitating the user to determine whether the pre-selected frame needs to be adjusted, etc.
[0130] S608: The electronic device enlarges and displays the electronic form in response to a click operation on the electronic form.
[0131] Continue to see Fig.12, the user can also click on the preview table 1213, and the electronic device responds to the click operation on the preview table 1213 by displaying the enlarged display interface 1230, which includes an enlarged version of the preview table 1213 and format controls, such as a first format control 1232 and a second format control 1233, and 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.
[0132] 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.
[0133] It should be noted that the magnified display interface 1230 may also include only one export control, for example, only a first format control, and those skilled in the art may design the number of export controls based on actual needs.
[0134] 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.
[0135] The user can click the first format control 1232, and the electronic device exports the preview table to an electronic version of the first format in response to the click operation on the first format control 1232. The logo 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 logo and format of the control can be designed based on actual needs.
[0136] like Fig.13 As shown, this figure is a schematic diagram of a table export provided in an embodiment of the present application.
[0137] 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 start the table application and embed the preview table into the worksheet displayed by the table application. The 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, which includes a confirm save control 1321. The user can set the save path of the electronic form in 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 save path selected by the user and displays a save path interface 1330, which includes an electronic form file 1331.
[0138] 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.
[0139] The user can also click on the second format control 1233, and the electronic device exports the preview table as an electronic version of the second number in response to the click operation of the second format control 1232. The identifier of the second format control 1233 can be "Export to Notes" or other text or icons, and the second format can be a note format or other formats. The identifier and format of the control can be designed based on actual needs.
[0140] Continue to see Fig.13 After the user clicks 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 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 table 1341 and a file 1342 in the first format corresponding to the electronic version table. The user can edit the electronic version table 1341 in the note application interface 1340, or click on the file 1342 in the first format. The electronic device starts the table application in response to the click operation on the file 1342 in the first format. The electronic device can display the above-mentioned table application interface 1310 and edit in the table application interface 1310.
[0141] It should be noted that the electronic device may not display the comparison preview interface 1210 and the enlarged display page 1220, but may display the comparison preview interface 1210 and the enlarged display page 1220 when the user clicks the Figure 5After selecting the extraction control 503 in the table frame interface shown, the electronic device directly displays Fig.12 The enlarged display interface 1230 is shown. In this way, the user's interaction cost is further reduced and the efficiency of table extraction is improved.
[0142] like Fig.14 As shown in FIG. 1 , this figure is a flow chart of another table extraction method provided in an embodiment of the present application. The difference between this embodiment and the above embodiment is that: Fig.14 In the illustrated embodiment, the electronic device supports extracting multiple tables in the target object, that is, multiple tables can be extracted at one time, further improving the extraction efficiency. Specifically, the method includes:
[0143] S1401. The electronic device starts a table extraction function.
[0144] S1402: The electronic device displays a framing interface.
[0145] S1403: The electronic device performs framing in response to a click operation on the framing control.
[0146] S1404, the electronic device displays a table selection interface.
[0147] like Fig.15 As shown, this figure is a schematic diagram of a multi-table frame selection provided in an embodiment of the present application.
[0148] The viewfinder interface 1510 includes a preview image 1511, a viewfinder control 1512 and an album control 1513, wherein 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 tables in other images.
[0149] After the user clicks on 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 .
[0150] S1405: In response to the selection operation on the pre-selection box, the electronic device displays the selected pre-selection box.
[0151] Continue to see Fig.15 The user can select the pre-selected box in the table box selection interface 1520, and the electronic device responds to the selection operation of the pre-selected box by highlighting the selected pre-selected box.
[0152] 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.
[0153] In some examples, the user can select pre-selection box 1521 and pre-selection box 1522, and the electronic device can highlight pre-selection box 1521 and pre-selection box 1522 in table selection interface 1520 in response to the selection operation of pre-selection box 1521 and pre-selection box 1522. Among them, pre-selection box 1523 and pre-selection box 1524 in table selection interface 1520 are pre-selection boxes that are not selected by the user.
[0154] In some embodiments, the user may also select only one pre-selected box.
[0155] S1406: The electronic device adjusts the pre-selection box in response to the adjustment operation on the pre-selection box.
[0156] Continue to see Fig.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, and can also adjust the position of the pre-selection box 1521.
[0157] In some examples, a user may press and hold border 1521A of pre-selection box 1521 and perform a sliding operation. The electronic device may adjust the size of the area selected by pre-selection box 1521 based on the sliding operation on border 1521A. The adjusted pre-selection box is shown in table selection interface 1530.
[0158] 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.
[0159] S1407: The electronic device displays a comparison preview interface in response to a click operation on the extraction control.
[0160] like Fig.16 As shown, the figure is a schematic diagram of an enlarged display provided by an embodiment of the present application. In some examples, the user can click the extraction control 1525 in the table selection interface 1520, and the electronic device displays the comparison preview interface 1610 in response to the click operation on the extraction control 1525. 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.
[0161] 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.
[0162] S1408. The electronic device enlarges and displays the framed image in response to a click operation on the framed image.
[0163] Continue to see Fig.16 , the user can click on the framed image 1612 or the framed image 1613, and the electronic device can display the enlarged display interface 1620. Taking the user clicking on the framed image 1612 as an example, the enlarged display interface 1620 includes an enlarged image 1621 corresponding to the framed image 1612. Similarly, the user can also click on the framed image 1613, so that the electronic device enlarges and displays the framed image 1613. In other words, the user can enlarge the pre-framed image, so that the user can determine whether to adjust the size and / or position of the pre-selected frame, etc.
[0164] S1409. The electronic device enlarges and displays the electronic form in response to a click operation on the electronic form.
[0165] Continue to see Fig.16 , the user can click on the preview table 1614 or the preview table 1615, and the electronic device can display the enlarged display interface 1630. Taking the user clicking on the preview table 1614 as an example, the electronic device can respond to the click operation on the preview table 1614 and display the enlarged version of the preview table 1614 and the preview table 1615 on the enlarged display interface 1630, wherein the enlarged version of the preview table 1614 is separated from the preview table 1615 by a preset distance. In other examples, taking the user clicking on the preview table 1614 as an example, the electronic device can respond to the click operation on the preview table 1614 and display the enlarged version of the preview table 1614 on the enlarged display interface 1630.
[0166] The enlarged display interface 1630 also 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 to an electronic form in a first format, and the second format control 1632 is used to export the preview table to an electronic form in a second format.
[0167] 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.
[0168] S1411. 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.
[0169] It should be noted that Fig.14 The embodiment shown is Figure 6 The same or similar parts of the embodiments shown in the Fig.14 The embodiments shown are not described in detail. For details, please refer to Figure 6 The embodiment shown.
[0170] like Fig.17 As shown, this figure is a flowchart of another table extraction method provided in an embodiment of the present application, the method comprising:
[0171] S1701. The electronic device starts a table extraction function.
[0172] 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.
[0173] S1702: The application at the application layer launches a table extraction activity.
[0174] The application layer may include applications such as camera, gallery, memo, etc., and table extraction activity. When the electronic device starts the table extraction function, the application layer application may launch the table extraction activity, for example, the camera, gallery, memo, etc. applications launch the table extraction activity.
[0175] S1703. The application layer obtains a table image.
[0176] In some examples, the electronic device can obtain the table image based on the user's click operation on the viewfinder control in the viewfinder interface, or can obtain the table image based on the image selected by the user in the gallery. The specific process is referred to the above embodiment and will not be repeated here.
[0177] S1704. The application layer transmits the table image to the algorithm engine layer.
[0178] 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.
[0179] S1705. The algorithm engine layer feeds back the region detection result to the application layer based on the table image.
[0180] 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).
[0181] S1706. The application layer displays a pre-selected box according to the area detection result.
[0182] After receiving the region detection result, the application layer can determine the positions of the four anchor points of a pre-selected box, and display the pre-selected box based on the anchor point positions. Of course, when the table image includes multiple table areas, the region detection result can also include multiple groups of anchor points, each group of anchor points includes 4 anchor points, and each group of anchor points corresponds to a pre-selected box.
[0183] S1707. The application layer sends the frame selection image and / or table image to the server.
[0184] The user may adjust the pre-selected box or not, and 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.
[0185] S1708. The server returns the table recognition result to the application layer based on the frame selection image and / or the table image.
[0186] After receiving the above-mentioned framed image and / or table image, the server can identify the framed image and / or 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. Furthermore, the table recognition result may also include the aspect ratio of each grid. After determining the table recognition result, the server feeds back the table recognition result to the electronic device.
[0187] 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 relevant table recognition algorithms can be deployed at the algorithm engine layer to recognize the table and obtain the table recognition result.
[0188] S1709: The application layer displays a preview table based on the table recognition result.
[0189] After determining the table recognition result, the application layer displays a preview table based on the table recognition result.
[0190] S1710. The application layer exports the preview table as an electronic form in a preset format.
[0191] The electronic device may export the preview table into an electronic form in a preset format in response to a user clicking operation on the export control, wherein the preset format may be the first format or the second format in the aforementioned embodiment.
[0192] It should be noted that the present embodiment is different from the above Figure 6 or Fig.14 The embodiment shown is similar, and the specific content can refer to the aforementioned embodiment.
[0193] Based on the above description, a table extraction method provided in an embodiment of the present application can be applied to an electronic device, the method comprising presenting a framing interface, the framing interface comprising a framing control, framing a target object in response to a click operation on the framing control, and obtaining 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 comprising 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, obtaining an electronic version of the table corresponding to the table image.
[0194] In this method, the user only needs to use the electronic device to frame the target object, for example, take a picture of 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 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.
[0195] This embodiment also provides a computer-readable storage medium, which includes instructions. When the instructions are executed on an electronic device, the electronic device executes Figure 6 , Fig.14 and Fig.17 The relevant method steps in the embodiment are used to implement the method in the above embodiment.
[0196] This embodiment also provides a computer program product including instructions. When the computer program product is run on an electronic device, the electronic device executes the following Figure 6 , Fig.14 and Fig.17 The relevant method steps in the embodiment are used to implement the method in the above embodiment.
[0197] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope 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 enlarged display interface also includes a format control, and the method also includes: in response to a click operation on the format control, obtaining electronic versions of tables corresponding to the multiple preview tables, the format of the electronic versions of the tables being 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; 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 according to any one of claims 1 to 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 method according to any one of claims 1 to 9.
Citation Information
Cited By
Table extraction method, electronic device and medium
EP4636641A1
Table extraction method, electronic device and medium
WO2024216932A1
