Scanning method, electronic equipment and storage medium
By detecting and processing the overlapping areas of the documents to be processed in the scanner and outputting scan files based on the overlapping area area, the problem of low image overlap and multi-page scanning efficiency in existing scanners is solved, and a more efficient and intelligent image scanning process is achieved.
Patent Information
- Application Number
- CN202411836343.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-04-25
AI Technical Summary
Existing scanners are prone to image overlap during image scanning, which affects the integrity of the image and is not suitable for multi-page scanning requirements, affecting the work efficiency of users.
By acquiring the original image of the to-be-processed document, the area of the overlapping area is detected and determined, and the scanned file is output based on the area. Optionally, if the overlapping area area is less than the preset threshold, image correction compensation will be automatically performed; if the area is too large, the user is prompted to manually adjust the document placement position.
It effectively solves the problem of image overlap, improves the intelligence and convenience of image scanning, meets the needs of multi-page scanning, reduces human intervention, and improves scanning efficiency.
Smart Images

Figure CN119893004A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a scanning method, an electronic device and a storage medium. Background Art
[0002] Currently, scanners mainly include flatbed scanners and automatic document feeder (ADF) scanners. ADF scanners can achieve fast batch scanning mode, but the resolution is limited and paper jams are prone to occur. Flatbed scanners can support high-resolution scanning mode, but can only scan one drawing at a time.
[0003] When using a flatbed scanner, the following problems may occur: when scanning a document, images may overlap, affecting the integrity of the document image output by the flatbed scanner. Usually, the user needs to manually adjust the document and scan it again after seeing the document image, or the user's needs for other image scanning scenarios may not be met, affecting the user's work efficiency. Therefore, there are still some imperfect problems in the existing technology regarding image scanning. Summary of the invention
[0004] In view of this, the present application provides a scanning method, an electronic device and a storage medium to help solve the problem of imperfect image scanning in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a scanning method, including: Obtaining the original image of the document to be processed; When there is an overlapping area in the original images, determining the area of the overlapping area; The scanned file of the document to be processed is output based on the area of the overlapping region.
[0006] In an optional embodiment, outputting the scanned file of the document to be processed based on the area of the overlapping region includes: When the area of the overlapping region is smaller than a preset area threshold, performing correction compensation on the original image to generate a corresponding corrected image; A scan file of the document to be processed is output based on the corrected image.
[0007] In an optional embodiment, the step of outputting the scanned file of the document to be processed based on the area of the overlapping region further includes: When the area of the overlapping region is not less than a preset area threshold, a prompt message is output, where the prompt message is used to prompt the adjustment of the placement position of the document to be processed.
[0008] In an optional embodiment, when there is an overlapping area in the original image, before determining the area of the overlapping area, the method further includes: When there is an angle between the original images of the documents to be processed, it is determined that there is an overlapping area between the original images.
[0009] In an optional embodiment, when there is an overlapping area in the original image, determining the area of the overlapping area includes: When there is an overlapping area in the original images, determining the area of the overlapping area based on the length of the right-angle side of the overlapping area; or, When there is an overlapping area in the original images, the area of the overlapping area is determined according to the sizes of the first angle and the second angle between the original images of the document to be processed, and the vertex distance between the first angle and the second angle; or, When there is an overlapping area in the original image, the area of the overlapping area is determined based on the area ratio between the original image and the standard image.
[0010] In an optional embodiment, when the area of the overlapping region is smaller than a preset area threshold, performing correction compensation on the original image to generate a corresponding corrected image includes: Display the image adjustment interface; The compensation area on the original image is color compensated according to the color selected from the image adjustment interface to obtain the corrected image; the compensation area matches the overlapping area and is the area obtained after the original image is corrected and compensated based on the overlapping area.
[0011] In an optional embodiment, displaying an image adjustment interface includes: Acquire the color of the area adjacent to the compensation area on the original image; The image adjustment interface including a color picking unit is displayed according to the color of the adjacent area; wherein the color picking unit is used to select a corresponding color from the adjacent area to perform color compensation on the compensation area on the original image.
[0012] In an optional embodiment, the method further includes: In response to a first filling request from a user, determining an original image of one of the documents to be processed as a first filling image; Filling the first filling image into a filling area of an original image of another document to be processed to obtain a first merged image; A scan file of the first merged image is output.
[0013] In an optional embodiment, the method further includes: In response to a second filling request from a user, acquiring a pre-stored second filling image; Filling the second filled image into the filling area corresponding to the original image to obtain a second merged image; A scan file of the second merged image is output.
[0014] In a second aspect, an embodiment of the present application provides an electronic device, comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute any one of the methods described in the first aspect above.
[0015] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any method described in the first aspect.
[0016] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes executable instructions. When the executable instructions are executed on a computer, the computer executes any one of the methods described in the first aspect.
[0017] The present application provides a scanning method, electronic device and storage medium, which have at least the following beneficial effects: The original image of the document to be processed is obtained, and when there is an overlapping area in the original image, the area of the overlapping area is determined, and then the scanned file of the document to be processed is output based on the area of the overlapping area. When performing image scanning, each embodiment of the present application can output the scanned file according to the area when an overlapping area appears, which helps to save the placement operation of human intervention, and at the same time can meet the scanning requirements of multi-page scanning, etc., which helps to reduce the occurrence of overlaps during multi-page scanning that affect scanning efficiency. The present application improves the intelligence and convenience of image scanning. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0020] Figure 1 A schematic diagram of a scanning method provided in an embodiment of the present application; Figure 2 An exemplary schematic diagram of a scanning method provided in an embodiment of the present application; Figure 3 An exemplary schematic diagram of another scanning method provided in an embodiment of the present application; Figure 4A An exemplary schematic diagram of another scanning method provided in an embodiment of the present application; Figure 4B An exemplary schematic diagram of another scanning method provided in an embodiment of the present application; Figure 4C An exemplary schematic diagram of another scanning method provided in an embodiment of the present application; Figure 4D An exemplary schematic diagram of another scanning method provided in an embodiment of the present application; Figure 4E An exemplary schematic diagram of another scanning method provided in an embodiment of the present application; Figure 5A An exemplary schematic diagram of another scanning method provided in an embodiment of the present application; Figure 5B An exemplary schematic diagram of another scanning method provided in an embodiment of the present application; Fig. 6A An exemplary schematic diagram of another scanning method provided in an embodiment of the present application; Figure 6B An exemplary schematic diagram of another scanning method provided in an embodiment of the present application; Figure 6C An exemplary schematic diagram of another scanning method provided in an embodiment of the present application; Fig.6D An exemplary schematic diagram of another scanning method provided in an embodiment of the present application; Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0022] It should be clear that the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative work are within the scope of protection of the present application. The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0023] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0024] When existing scanning devices scan multiple documents, if there are overlapping areas between the documents, users usually have to wait until the scanning device outputs the scanned file before they can discover the overlapping phenomenon. Users need to open the scanning device and rearrange the documents, which wastes resources and affects the overall scanning efficiency.
[0025] In response to the above problems, an embodiment of the present application provides a scanning method, which can efficiently output normal scanned files by automatically correcting and compensating during the scanning process or prompting the user to make manual corrections before scanning.
[0026] Figure 1 The present invention provides a flow chart of a scanning method. The method can be applied to scanning devices such as Figure 1 As shown, the method may include: Step 101, obtaining the original image of the document to be processed.
[0027] Step 102: When there is an overlapping area in the original image, determine the area of the overlapping area.
[0028] Step 103: output the scanned file of the document to be processed based on the area of the overlapping region.
[0029] After the user places the document to be processed in the scanning area and clicks the scan button, the scanning device can perform a scanning operation on the scanning area to generate an image to be processed. The image to be processed includes the original image of the document to be processed and the background image of the scanning area. The scanning device deletes the background image from the image to be processed to generate the original image of the document to be processed.
[0030] Figure 2is an example of an image to be processed. The position indicated by arrow 201 is the scanning area. During the scanning process, the scanning device will scan the document to be processed and the uncovered scanning area together. Therefore, the image to be processed will contain the original image of the document to be processed and the background image of the scanning area. The original image of the document to be processed can be divided into a content area and a blank area. The content area contains the text or image information of the document to be processed, and the blank area is blank and contains no information. The scanning device can detect the blank area, and after determining the blank area, delete the image outside the blank area, and the remaining image is the original image of the document to be processed. Optionally, the scanning device can set a width threshold (for example, 5mm). When it is detected that the width of the blank area is greater than the width threshold, the blank area can be determined.
[0031] By detecting the blank area, the scanning device can accurately identify the original image of the document to be processed. After applying this method, users do not need to place the document to be processed strictly according to the rules. Even if the document to be processed is tilted or upside down, the scanning device can still normally obtain the original image of the document to be processed, which improves the user experience.
[0032] In a scenario where multiple documents to be processed are placed in the scanning area for scanning at the same time, the scanning device needs to detect whether there is an overlapping area in the original image after obtaining the original image of the documents to be processed. If it is confirmed that there is an overlapping area in the original image, the scanning device needs to further determine the area of the overlapping area, and then output the scanned file of the document to be processed based on the area of the overlapping area.
[0033] In an optional embodiment, when the area of the overlapping region is small, it can be considered that the current overlapping phenomenon has little impact on the content information in the document to be processed, and the scanning device can automatically correct and compensate the original image and output the corrected and compensated scanned file. When the area of the overlapping region is large, it can be considered that the current overlapping phenomenon has a significant impact on the content information in the document to be processed, and the scanning device will output a prompt message to prompt the user to manually adjust the placement of the document to be processed to eliminate the overlapping region.
[0034] Specifically, the scanning device can pre-set a reasonable area threshold. When it is detected that the area of the overlapping area is less than the preset area threshold, the original image is corrected and compensated to generate a corresponding corrected image. Then, the scanning device can output a scanned file of the document to be processed based on the corrected image. When it is detected that the area of the overlapping area is not less than the preset area threshold, the scanning device will output a prompt message through the control panel. After seeing the prompt message, the user can turn on the scanning device, adjust the placement of the document to be processed, and rescan it.
[0035] By applying the above method, when overlap occurs between different documents to be processed, the scanning device can achieve normal output of the scanned files through correction compensation, or notify the user to manually eliminate the overlapping area before outputting the scanned files, thereby improving scanning efficiency.
[0036] In an optional embodiment, the scanning device can determine whether there is an overlapping area in the original image of the document to be processed by the angle. Figure 3 When two documents to be processed partially overlap, an angle will appear on the edge of the documents to be processed. When the scanning device detects that an angle appears in the original image, it can be confirmed that there is an overlapping area in the original image. In another embodiment, the overlapping area can also be determined by identifying whether there is an obstruction. Specifically, the scanned image to be processed is identified, and when it is identified that there are images of other documents to be processed on the image of a document to be processed, it is determined that the original image of the document to be processed has the overlapping area. In actual processing, the method of confirming the overlapping area by the angle is simple and easy to implement, does not require high chip configuration, and can save chip resources.
[0037] In an optional embodiment, when it is detected that there is an overlapping area in the original image, the scanning device can specifically determine the area of the overlapping area in the following manner: (1) The area of the overlapping area is determined based on the length of the right-angle side of the overlapping area. (2) The area of the overlapping area is determined based on the size of the first angle and the second angle between the original images of the document to be processed, and the vertex distance between the first angle and the second angle. (3) The area of the overlapping area is determined based on the area ratio of the original image to the standard image.
[0038] The following examples illustrate: (1) Refer to Figure 4A , an overlapping area appears between the two documents to be processed, and the dotted line is the obstructed right-angled side, including the long right-angled side a and the short right-angled side b. The scanning device can extend the original right-angled side in the direction to complete the obstructed long right-angled side a and the short right-angled side b, and determine the length of the long right-angled side a and the short right-angled side b. Through the triangle area formula and the length of the long right-angled side a and the short right-angled side b, the scanning device can determine the area of the obstructed triangle, that is, the area of the overlapping area. Take A4 paper as an example. The size of A4 paper is 210mm 297mm. If the long right-angle side a is 10mm and the short right-angle side b is 8mm, the area of the overlapping area calculated by the triangle area calculation formula is 8 10 1 / 2=40mm², the ratio of the overlapping area to the total area is 40 / (210 297)≈0.06%. The scanning device can determine that the current overlapping area is small, and can output the scanned file after correction and compensation. If the long right-angle side a is 120mm and the short right-angle side b is 100mm, then the area of the overlapping area is 120 100 1 / 2=6000mm², the area of the overlapping area accounts for about 9.6% of the total area. The scanning device can determine that the area of the current overlapping area is too large, and it is necessary to remind the user to pay attention to the placement position on the control panel.
[0039] (2) Reference Figure 4B , the positions indicated by arrows 401 and 402 are two vertices of the overlapping area, angle m and angle n are the first angle and the second angle, respectively, and the distance between the two vertices is the hypotenuse c of the triangle of the overlapping area. Under the condition that the hypotenuse c, angle m and angle n are known, the scanning device can calculate the area of the overlapping area. For example, the lengths of the other two right-angled sides can be obtained by trigonometric formulas, and then the area of the triangle can be calculated.
[0040] (3) Reference Figure 4C , three documents (Document A, Document B, and Document C) are scanned at the same time, and the original image of Document C can be regarded as the standard image. The scanning device compares the original images of Document A and Document B with the standard image to determine the area of the overlapping area. For example, when the total area of Document A and Document B is 1.96 times the standard image area, it can be determined that the area of the overlapping area is 0.04 times the standard image area, and the area of the overlapping area is small. Automatic correction compensation can be used to output the scanned file. When the total area of Document A and Document B is 1.90 times the standard image area, it can be determined that the area of the overlapping area is 0.10 times the standard image area, and the area of the overlapping area is large. The scanning device needs to notify the user to manually adjust the documents to be processed.
[0041] In addition, the scanning device can also calculate the area of the overlapping area through image recognition algorithms.
[0042] In the embodiment of the present application, the overlapping phenomenon may be caused by scanning multiple pages, or it may be caused by folding of the document to be processed itself. Through the above-mentioned overlapping area recognition and calculation method, the overlapping phenomenon in various scenarios can be processed and the complete scanned file can be smoothly output.
[0043] In the process of determining the area of the overlapping region, the control panel can display a related interface to interact with the user. Figure 4D, the preset format is the area of the standard image. Users can select the "Preset Format" option to modify the specific value of the standard image area. When the user selects "Automatically Identify Format", the scanning device can automatically calculate the area ratio of the original image and the standard image, and then determine the area of the overlapping area. When the area of the overlapping area is large, the control panel can display a prompt message. Figure 4E , the control panel can display the message "The overlapping area is too large, please pay attention to the placement" to the user. After the user clicks "Confirm", the scanning device stops working and the user manually adjusts the placement of the document. After the user clicks "Ignore", the scanning device continues to execute the subsequent process and outputs the scanned file.
[0044] In the embodiment of the present application, the scanning device can select any one of the above methods to calculate the area of the overlapping area, or can calculate the area of the overlapping area by setting weights and combining multiple methods, which is not limited here. Through the above methods, the scanning device can accurately calculate the area of the overlapping area, and then perform the corresponding multi-page scanning operation to improve the scanning effect. The above area calculation method is only an exemplary description, and other reasonable methods can also be used to determine the area of the overlapping area.
[0045] In an optional embodiment, in a scenario where multiple documents to be processed overlap, the scanning device will correct and compensate for the obscured original image to generate a corresponding corrected image. Specifically, the scanning area will first compensate for the right angles of the obscured original image, and then supplement it according to the color of the surrounding area after compensating it to a normal paper format. For example, for ordinary document portraits, the periphery of the overlapping area is white, and the color compensation within the right angle is also white. However, for brochures and other documents whose surrounding colors are not white, the color of the overlapping area can be selected, and the user can choose to fill it according to the surrounding color. Refer to Figure 5A Document A is a promotional page consisting of gray and white colors. When scanning, the gray triangular area of Document A is blocked by Document B. In response to this situation, the scanning device first performs right-angle compensation on Document A to determine the complete original image of Document A. Afterwards, the scanning device performs color compensation on the blocked area of Document A, and the color can refer to the color of the area surrounding the blocked area. When performing color compensation on Document A, the scanning device can refer to the color of the area indicated by arrow 501 and fill the blocked area with gray. It can be understood that for documents with simpler colors, the color of the blocked area is usually consistent with its surrounding colors. Color compensation of the blocked area based on the colors around the blocked area can reasonably restore the original image of the document.
[0046] When performing color compensation, the user can also manually determine the color of the blocked area. Specifically, the scanning device displays an image adjustment interface, and performs color compensation on the compensation area on the original image according to the color selected from the image adjustment interface to obtain a corrected image. The compensation area matches the overlapping area, and is the area obtained after correcting and compensating the original image based on the overlapping area. Optionally, the image adjustment interface includes a color picking section, which contains a variety of optional colors, and the user can select a color for compensation in the color picking section. The colors contained in the color picking section are determined by the colors of the adjacent areas of the compensation area, refer to Figure 5A When the color of the adjacent area of the compensation area is gray, the color extraction part mainly includes gray-based colors.
[0047] In a specific scenario, the scanning device obtains the color of an area adjacent to the compensation area, and then generates an image adjustment interface including a color picking portion based on the color of the adjacent area. Figure 5B It can be seen as a schematic diagram of the image adjustment interface. The area indicated by arrow 502 is the color selection part. The user can move the rectangular selection box in the area to select the color for compensation. The control panel displays a preview image of the color compensation in the preview area. After the user selects a color and clicks "Confirm", the scanning device can perform color compensation on the blocked area.
[0048] In an optional embodiment, when scanning multiple documents to be processed at the same time, in response to a user's first filling request, the scanning device may determine the original image of one of the documents to be processed as a first filling image, and fill the first filling image into the filling area of another document to be processed to obtain a first merged image. Afterwards, the scanning device may output a scanned file of the first merged image.
[0049] Reference Fig. 6A Document A is the original image of a personal information application form. The white area is blank, and there is no user ID photo. Other user information exists in the light gray area. Document B is the original image of the user's ID photo, and its color is dark gray. The user can place Document A and Document B in the scanning area of the scanning device at the same time for multi-page scanning. The scanning device displays the original images of Document A and Document B on the control panel. The user can drag the original image of Document B to the filling area of the original image of Document A on the control panel. The scanning device detects the user's filling request and fills the original image of Text B into the filling area of the original image of Document A to obtain the corresponding merged image. Alternatively, the user can also directly select the fill button on the control panel, and the scanning device directly identifies the structure of each original image, automatically confirms the fill image and completes the filling. There is no limit on the number of fill images, refer to Figure 6B In response to the user's dragging operation, the scanning device can fill multiple filling images into corresponding filling areas respectively.
[0050] Reference Figure 6C , after the user selects the fill scan mode, the scanning device displays the "single fill" and "multiple fill" options through the control panel. When there is only one fill image in the scan area, the user can click the "single fill" option, and the scanning device directly performs image recognition to determine the first fill image and complete the filling. When there are multiple first fill images in the scan area, the user can click the "multiple fill" option, and the scanning device displays each original image through the control panel, and the user can manually drag and drop to fill the corresponding image. Optionally, when filling a single image, the user can also complete the filling by dragging.
[0051] In an optional embodiment, the scanning device may also store certain images as fill images in advance. In response to the user's second fill request, the scanning device obtains the pre-stored second fill image and fills the second fill image into the fill area corresponding to the original image to obtain a second merged image. Afterwards, the scanning device may output a scan file of the second merged image. Fig.6D , users can manually select a fill image in the "Fill Image Selection" interface. The pre-stored second fill images include: custom images and official preset images. Official preset images may include images stored in the local database when the scanning device leaves the factory, or official preset images may also include images downloaded from the Internet by the scanning device. Custom images include images uploaded by users themselves. For example, after the user connects the mobile phone to the scanning device, he can send pictures from the album in his mobile phone to the scanning device. The "Custom Image" interface can display existing fill images. Fig.6D For example, the current scanning device has stored images such as "XX one-inch red-backed photo", "XX ID card front side" and "XX ID card back side". Users can use the "New" option to store other images as fill images, or use the "Delete" option to delete existing fill images.
[0052] During the filling process, the scanning device can adjust the specifications of the filling image so that the adjusted filling image matches the filling area. Specifically, the specification adjustment may include: size adjustment, quantity adjustment, and direction adjustment. For example, when a two-inch ID photo is missing in the user's personal information form and the filling image is the user's one-inch ID photo, the scanning device can increase the size of the one-inch ID photo to match the filling area in the personal information form. When there are multiple filling areas and only one filling image, the scanning device can adjust the quantity of the filling image and copy a single filling image multiple times to meet each filling area. When the placement direction of the filling image does not match the filling area, the scanning device can adjust the direction of the filling image to achieve matching between the two.
[0053] In the embodiment of the present application, through the above-mentioned filling operation, the scanning device can realize flexible combination between images and improve the work efficiency of the user. For example, for the above-mentioned personal information table, the user does not need to paste the ID photo into the personal information table to obtain a scanned file combining the two. For another example, when there are multiple personal information tables and only one ID photo, the user does not need to take the ID photo again or paste the ID photo repeatedly into different personal information tables. The completed scanned file can be obtained by image filling and specification adjustment. This method can save the user's time and improve the user experience.
[0054] Corresponding to the above embodiments, the present application also provides an electronic device. Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, the electronic device 700 may include: a processor 701, a memory 702 and a communication unit 703. These components communicate through one or more buses. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the embodiment of the present application. It can be a bus structure or a star structure, and can also include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0055] The communication unit 703 is used to establish a communication channel so that the electronic device can communicate with other devices, receive user data sent by other devices or send user data to other devices.
[0056] The processor 701 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It runs or executes software programs, instructions, and / or modules stored in the memory 702, and calls data stored in the memory to perform various functions of the electronic device and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 701 can include only a central processing unit (CPU). In the embodiment of the present application, the CPU can be a single computing core or multiple computing cores.
[0057] The memory 702 is used to store the execution instructions of the processor 701. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0058] When the execution instructions in the memory 702 are executed by the processor 701, the electronic device 700 can execute Figure 1 Some or all of the steps in the illustrated embodiments.
[0059] In a specific implementation, the present application also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment of the scanning method provided in the present application. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0060] In a specific implementation, the present application also provides a computer program product, wherein the computer program product includes executable instructions, and when the executable instructions are executed on a computer, the computer executes part or all of the steps in each embodiment of the scanning method provided in the present application.
[0061] The embodiment of the present application also provides a non-temporary computer-readable storage medium, which stores computer instructions, and the computer instructions enable the computer to execute the scanning method provided by the embodiment of the present application.
[0062] The above-mentioned non-temporary computer-readable storage medium may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (Read Only Memory; hereinafter referred to as: ROM), an erasable programmable read-only memory (ErasableProgrammable Read Only Memory; hereinafter referred to as: EPROM) or flash memory, optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device or device.
[0063] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0064] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0065] Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application or some parts of the embodiments.
[0066] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. A scanning method, characterized in that: include: Obtaining the original image of the document to be processed; When there is an overlapping area in the original images, determining the area of the overlapping area; The scanned file of the document to be processed is output based on the area of the overlapping region.
2. The method according to claim 1, characterized in that The step of outputting the scanned file of the document to be processed based on the area of the overlapping region comprises: When the area of the overlapping region is smaller than a preset area threshold, performing correction compensation on the original image to generate a corresponding corrected image; A scan file of the document to be processed is output based on the corrected image.
3. The method according to claim 1, characterized in that The step of outputting the scanned file of the document to be processed based on the area of the overlapping region further includes: When the area of the overlapping region is not less than a preset area threshold, a prompt message is output, where the prompt message is used to prompt the adjustment of the placement position of the document to be processed.
4. The method according to claim 1, characterized in that: When there is an overlapping area in the original image, before determining the area of the overlapping area, the method further includes: When there is an angle between the original images of the documents to be processed, it is determined that there is an overlapping area between the original images.
5. The method according to claim 1, characterized in that When there is an overlapping area in the original image, determining the area of the overlapping area includes: When there is an overlapping area in the original images, determining the area of the overlapping area based on the length of the right-angle side of the overlapping area; or, When there is an overlapping area in the original images, the area of the overlapping area is determined according to the sizes of the first angle and the second angle between the original images of the document to be processed, and the vertex distance between the first angle and the second angle; or, When there is an overlapping area in the original image, the area of the overlapping area is determined based on the area ratio between the original image and the standard image.
6. The method according to claim 1, characterized in that When the area of the overlapping region is smaller than a preset area threshold, the original image is corrected and compensated to generate a corresponding corrected image, including: Display the image adjustment interface; The compensation area on the original image is color compensated according to the color selected from the image adjustment interface to obtain the corrected image; the compensation area matches the overlapping area and is the area obtained after the original image is corrected and compensated based on the overlapping area.
7. The method according to claim 6, characterized in that Display the image adjustment interface, including: Acquire the color of the area adjacent to the compensation area on the original image; The image adjustment interface including a color picking unit is displayed according to the color of the adjacent area; wherein the color picking unit is used to select a corresponding color from the adjacent area to perform color compensation on the compensation area on the original image.
8. The method according to claim 1, characterized in that The method further comprises: In response to a first filling request from a user, determining an original image of one of the documents to be processed as a first filling image; Filling the first filling image into a filling area of an original image of another document to be processed to obtain a first merged image; A scan file of the first merged image is output.
9. The method according to claim 1, characterized in that: The method further comprises: In response to a second filling request from a user, acquiring a pre-stored second filling image; Filling the second filled image into the filling area corresponding to the original image to obtain a second merged image; A scan file of the second merged image is output.
10. An electronic device, characterized in that: The electronic device comprises a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device executes the method according to any one of claims 1 to 12.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 12.