Image processing method, device, computer equipment and storage medium

By sampling pixel points and comparing parameters of the original image set of the scanning device, blank images are automatically filtered out and imported into the scanning library, which solves the problem of low filtering efficiency of blank pages in the scanner and realizes efficient automated processing.

CN115272239BActive Publication Date: 2025-09-02CHINA MERCHANTS FINANCE HLDG CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210907795.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2025-09-02
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

Existing scanners are prone to blank pages during double-sided scanning or batch scanning, resulting in the problem of low efficiency of traditional manual screening.

Method used

By obtaining the original image set of the scanning device, preprocessing it and sampling pixels, filtering out blank images using multiple pixel parameters, and importing non-blank images into the scanning library.

Benefits of technology

It improves the efficiency of blank page screening, solves the problem of low manual screening efficiency, and realizes automated and rapid blank page removal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115272239B_ABST
    Figure CN115272239B_ABST
Patent Text Reader

Abstract

The present application discloses an image processing method, apparatus, computer equipment, and storage medium to solve the problem of blank pages appearing during scanning. The method comprises: obtaining an original image set obtained by a scanning device, the original image set including multiple original images; pre-processing the multiple original images to obtain multiple corresponding target images; sampling pixels of the multiple target images according to a preset sampling method to obtain sampling pixels corresponding to each target image; comparing the sampling pixels corresponding to each target image with multiple different pixel parameters to obtain a comparison result corresponding to each target image; screening out blank images from the original image set based on the comparison result corresponding to each target image; eliminating the blank images from the original image set to obtain a target image set; and importing the target image set into a scanning library of the scanning device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of scanning processing technology, and in particular to an image processing method, apparatus, computer equipment and storage medium. Background Art

[0002] Currently, widely used scanners from major brands generally support duplex scanning and mixed single- and double-sided scanning. However, enabling duplex scanning inevitably results in blank pages, and batch importing of images can also result in blank images being mixed in. Both of these situations result in blank pages. Traditional solutions typically rely on manual screening for blank pages, which is inefficient. Summary of the Invention

[0003] Based on this, it is necessary to provide an image processing method, device, computer equipment and storage medium to address the above technical problems, so as to solve the problem of blank pages appearing during the scanning process.

[0004] In a first aspect, an image processing method is provided, comprising:

[0005] Acquire an original image set obtained by a scanning device, wherein the original image set includes a plurality of original images;

[0006] Pre-processing the multiple original images respectively to obtain corresponding multiple target images;

[0007] Sampling pixels of the plurality of target images according to a preset sampling method to obtain sampling pixels corresponding to each target image;

[0008] Comparing the sampled pixels corresponding to each target image with a plurality of different pixel parameters to obtain a comparison result corresponding to each target image;

[0009] Screening out blank images from the original image set according to the comparison results corresponding to each target image;

[0010] Eliminate the blank image from the original image set to obtain a target image set;

[0011] The target image set is imported into a scanning library of the scanning device.

[0012] Furthermore, the pixel sampling of the plurality of target images is performed according to a preset sampling method to obtain the sampling pixel points corresponding to each target image, including:

[0013] Defining a sampling range for each target image to be sampled, wherein the sampling range includes a preset edge of the target image;

[0014] Sampling pixels of each target image within a sampling range of each target image to obtain all pixels corresponding to the sampling range of each target image;

[0015] All pixel points corresponding to the sampling range of each target image are used as sampling pixel points corresponding to each target image.

[0016] Furthermore, the multiple different pixel parameters include a preset color range, a preset image tolerance, and a preset number of noise points. The sampling pixels corresponding to each target image are compared with the multiple different pixel parameters to obtain a comparison result corresponding to each target image, including:

[0017] The color range, tolerance and noise data of each sampling pixel point of each target image are compared with the preset color range, preset image tolerance and preset noise number respectively to obtain the comparison result corresponding to each target image.

[0018] Furthermore, the color range, tolerance, and noise data of each sampled pixel point of each target image are compared with a preset color range, a preset image tolerance, and a preset number of noise points, respectively, to obtain a comparison result corresponding to each target image, including:

[0019] When the color range of all sampling pixel points of the target image is greater than the preset color range, and the tolerance range of all sampling pixel points of the target image is less than the preset image tolerance, and the number of noise points in all sampling pixel points of the target image is less than the preset noise point number, the target image is determined to be a blank image as the corresponding comparison result.

[0020] Furthermore, the step of importing the target image set into a scanning library of the scanning device includes:

[0021] In response to a user's scan output instruction for the target image set, the target image set is matched from the scan library and output as a scan result.

[0022] Furthermore, the original image set obtained by the scanning device includes:

[0023] Responding to a pre-output scanning instruction for a target scanning task input by a user, obtaining scanning storage path information of the scanning device, obtaining a plurality of scanned images corresponding to the target scanning task according to the scanning storage path information, and using the plurality of scanned images corresponding to the target scanning task as an original image set; or

[0024] In response to the image import instruction input by the user, image import path information is obtained, and multiple imported images are obtained in batches according to the image import path information, and the multiple imported images are used as the original image set.

[0025] Furthermore, the pre-processing of the plurality of original images to obtain corresponding plurality of target images includes:

[0026] According to a preset geometric scaling ratio, the plurality of original images are scaled geometrically to obtain corresponding plurality of target images.

[0027] In a second aspect, an image processing apparatus is provided, comprising:

[0028] An acquisition module, configured to acquire an original image set obtained by a scanning device, wherein the original image set includes a plurality of original images;

[0029] A pre-processing module, configured to pre-process the plurality of original images to obtain a plurality of corresponding target images;

[0030] A sampling module is used to sample pixels of the plurality of target images according to a preset sampling method to obtain sampling pixels corresponding to each target image;

[0031] a comparison module, configured to compare the sampled pixel points corresponding to each target image with a plurality of different pixel point parameters, respectively, to obtain a comparison result corresponding to each target image;

[0032] A screening module, configured to screen out blank images from the original image set according to the comparison results corresponding to each target image;

[0033] A removal module, configured to remove the blank images from the original image set to obtain a target image set;

[0034] The import module is used to import the target image set into the scanning library of the scanning device.

[0035] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the aforementioned control methods when executing the computer program.

[0036] In a fourth aspect, a computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the control method as described in any one of the above items when executed by a processor.

[0037] One of the solutions provided above is applied to scanning application scenarios. Faced with the scenario where blank pages are prone to appear in the original image set obtained from the scanning device, a new method for screening blank pages is proposed. Multiple original images are pre-processed separately to obtain multiple target images for easy processing. Pixel sampling is performed on the multiple target images to obtain sampling pixels corresponding to each target image. The sampling pixels are compared with multiple different pixel parameters to obtain a comparison result corresponding to each target image. The comparison result reflects whether each image is a blank image. Finally, based on the comparison result corresponding to each target image, the images corresponding to the blank images are screened from the original image set to obtain the remaining original images, which are then imported into the scanning library of the scanning device. In this solution, blank page screening is achieved in a very simple way, which greatly improves screening efficiency and solves the technical problem of low manual screening efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. 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 any creative work.

[0039] Figure 1 This is a schematic diagram of an application environment of an image processing method in an embodiment of the present application;

[0040] Figure 2 This is a flowchart of an image processing method according to an embodiment of the present application;

[0041] Figure 3 is a structural diagram of an image processing device in one embodiment of the present application;

[0042] Figure 4 Schematic diagram of a computer device in one embodiment of the present application. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0044] The image processing method provided in this embodiment can be applied in Figure 1 In an application environment, a scanning device such as a scanner communicates with a server. The server can be implemented by an independent server or a server cluster consisting of multiple servers.

[0045] In one embodiment, if Figure 2 As shown, an image processing method is provided, which is applied in Figure 1 The server in the example is used as an example to illustrate the following steps:

[0046] S10: Acquire an original image set obtained by a scanning device, where the original image set includes multiple original images.

[0047] In daily office applications, scanning devices are often used to perform scanning work to obtain the desired scan results. Scanning devices include scanners, etc. In actual applications, scanners are often used to perform batch scanning work. In this embodiment, a set of original images obtained by the scanner can be obtained. The original image set is a set of scanned original images obtained by the scanner based on a preset method, and the original image set includes multiple original images. The inventors have found that due to problems with the image source, the scanned results often include blank pages. To solve this problem, the present embodiment of the application is specially provided.

[0048] S20: Pre-processing the multiple original images respectively to obtain corresponding multiple target images.

[0049] S30: Pixel sampling is performed on the plurality of target images according to a preset sampling method to obtain sampling pixels corresponding to each target image.

[0050] After obtaining the original image set, each original image in the original image set is preprocessed to obtain multiple corresponding target images. Pixel sampling is then performed on each of the obtained target images according to a predetermined method to obtain sampled pixel points corresponding to each target image. For example, assuming the original image set includes N original images, each of these N original images is preprocessed to obtain N target images. Pixel sampling is then performed on each of these N target images according to a predetermined method to obtain sampled pixel points corresponding to each target image.

[0051] It should be noted that the sampling pixel points corresponding to each target image are the basis for further judgment and processing of subsequent images, and are pixel points sampled from all the pixels of the target image.

[0052] S40: Compare the sampled pixel points corresponding to each target image with a plurality of different pixel point parameters to obtain a comparison result corresponding to each target image.

[0053] In this embodiment, after obtaining the sampling pixels corresponding to each target image, the sampling pixels corresponding to each target image are compared with a plurality of different pixel parameters to obtain a comparison result corresponding to each target image. For example, assuming there are M pixel parameters, after obtaining N target images, the sampling pixels corresponding to each of the N target images are compared with the M pixel parameters to obtain a comparison result corresponding to each of the N target images. The comparison result corresponding to each target image indicates whether the target image is a blank image.

[0054] S50: Filter out blank images from the original image set according to the comparison results corresponding to each target image.

[0055] S60: Eliminate blank images from the original image set to obtain a target image set.

[0056] S70: Importing the target image set into the scanning library of the scanning device.

[0057] After obtaining the comparison results corresponding to each target image, blank images can be extracted from the original image set, and then the original images corresponding to the screened blank images can be eliminated from the initial original image set to finally obtain the target image set. For example, if P blank images are screened out from the N target images, then the original images corresponding to these P blank images are eliminated from the N original images in the initial original image set to obtain the target image set, which includes NP original images. Finally, the obtained target image set is imported into the scanning library of the scanning device for subsequent other processing processes of the scanning device. It should be noted that the scanning library of the scanning device refers to the storage space object of the scanning device.

[0058] It can be seen that in the embodiment of the present application, an image processing method is provided, which is applied to scanning application scenarios. In the face of the scenario where blank pages are easily present in the original image set obtained from the scanning device, a new method for screening blank pages is proposed. Multiple original images are pre-processed separately to obtain multiple target images for easy processing. Pixel sampling is performed on the multiple target images to obtain sampling pixels corresponding to each target image; the sampling pixels are compared with multiple different pixel parameters to obtain a comparison result corresponding to each target image. The comparison result reflects whether each image is a blank image. Finally, based on the comparison result corresponding to each target image, the image corresponding to the blank image is screened out from the original image set to obtain the remaining original images, which are then imported into the scanning library of the scanning device. In this solution, the screening of blank pages is achieved in a very simple way, which greatly improves the screening efficiency and solves the technical problem of low manual screening efficiency.

[0059] In one embodiment, in step S10, there are multiple ways to obtain the original image set obtained by the scanning device. Depending on the application scenario, including the scenario of scanning physical files in batches or the scenario of scanning based on imported files, the embodiment of the present application can be divided into the following two situations. The first way is to respond to the pre-output scanning instruction for the target scanning task input by the user to obtain the scanning storage path information of the scanning device, and obtain multiple scanned images corresponding to the target scanning task according to the scanning storage path information, and use the multiple scanned images corresponding to the target scanning task as the original image set; or; the second way is to respond to the image import instruction input by the user to obtain the image import path information, and obtain multiple imported images imported in batches according to the image import path information, and use the multiple imported images as the original image set.

[0060] In the first approach, it is understood that a scanning device can currently have multiple different scanning tasks, including a scan instruction for a specific file, with a target scanning task being one of these tasks. The target scanning task is a batch scanning task. When a user wishes to trigger the target scanning task, the scanning device can input a pre-output scanning instruction for the target scanning task through the scanning device. Upon receiving the pre-output scanning instruction, the scanning device responds to the pre-output scanning instruction and obtains scan storage path information from the scanning device. The scan storage path information represents the storage path of the to-be-scanned images for all scan tasks currently associated with the scanning device. The storage path corresponding to the scanning device includes the original image set corresponding to the target scanning task. After obtaining the scan storage path information, the scanning device retrieves multiple scanned images corresponding to the target scanning task based on the scan storage path information and uses the multiple scanned images corresponding to the target scanning task as the original image set. In other words, the first approach responds to a batch file scanning scenario, thereby obtaining the original image set, executing the aforementioned embodiment process, and importing the target image set into the scanning device's scan library, awaiting the final scan.

[0061] In the second method, it is understood that the scanning device can import images to be scanned. In this embodiment, when batch importing images is required for scanning, the user can input an image import instruction for the batch of images into the scanning device. The scanning device then responds to the image import instruction input by the user to obtain image import path information, and then obtains multiple batch imported images based on the image import path information, and uses the multiple imported images as the original image set. In other words, this second method responds to the scenario of scanning imported images, thereby obtaining the above-mentioned original image set, and executing the above-mentioned embodiment process to obtain the target image set, import it into the scanning library of the scanning device, and wait for the final scanning process.

[0062] It can be seen that in this embodiment, two scanning application scenarios are provided, one is the application scenario of batch import for scanning; the other is the application scenario of batch entity scanning, which improves the wide application of the solution.

[0063] In one embodiment, in step S20, pre-processing the multiple original images to obtain the corresponding multiple target images includes the following steps: scaling the multiple original images proportionally according to a preset scaling ratio to obtain the corresponding multiple target images. The preset scaling ratio can be configured based on experience and is not specifically limited. This significantly reduces the amount of processed data without sacrificing image content, thereby accelerating processing speed and improving blank page screening efficiency.

[0064] It should be noted that in some embodiments, orthogonal transformation can also be used for proportional scaling. This implementation can significantly reduce the size of the processed image, lower processing costs, reduce processing memory consumption, and speed up processing, especially when processing large numbers of images. Preprocessing can also include other processes, as long as they reduce processing workload and meet the needs of screening, and there are no specific limitations.

[0065] In one embodiment, step S30, that is, sampling pixels of the plurality of target images according to a preset sampling method to obtain sampling pixels corresponding to each target image, specifically includes the following steps:

[0066] S31: Defining a sampling range for each target image to be sampled, wherein the sampling range includes a preset edge of the target image.

[0067] In this embodiment, a sampling range for each target image to be sampled is defined, wherein the sampling range includes a preset edge of the target image. The sampling range is the area where pixel sampling is required later, and the sampling range includes some edge positions or peripheries of the target image. In the embodiment of the present application, these edge positions are referred to as preset edges. It is worth noting that the sampling range can be configured, such as using the entire image as the sampling range, or dividing interval areas as sampling ranges at intervals to reduce processing workload, etc., without specific limitation. In this embodiment, the sampling range includes the edge positions of the image. Since the periphery of a non-blank image may also be blank, by including the edge positions of the sampled periphery in the sampling range for pixel sampling and subsequent judgment, the efficiency and accuracy of blank page screening can be improved. It should also be noted that setting a smaller sampling range can also effectively reduce image processing workload, which is conducive to improving processing efficiency.

[0068] It should be noted that, in some embodiments, the settings of the sampling ranges of different images may be inconsistent, and may be specifically determined based on the size of the image after preprocessing, and is not specifically limited.

[0069] S32: Sampling pixels of each target image within a sampling range of each target image to obtain all pixels corresponding to the sampling range of each target image.

[0070] S33: All pixel points corresponding to the sampling range of each target image are used as sampling pixel points corresponding to each target image.

[0071] After defining the sampling range of each target image, to further reduce processing workload and improve processing efficiency and accuracy, pixel sampling is performed on each target image within the sampling range of each target image. All pixels corresponding to the sampling range of each target image are obtained, and valid pixels are screened from them. The valid pixels corresponding to the sampling range of each target image are used as the sampling pixels corresponding to each target image.

[0072] It can be seen that in this embodiment, a specific method for determining sampling pixel points is proposed. By setting a sampling range and including the peripheral edges in the sampling range, processing efficiency and effectiveness can be effectively improved.

[0073] In one embodiment, multiple different pixel parameters include a preset color range, a preset image tolerance, and a preset number of noise points. The sampling pixels corresponding to each target image are compared with the multiple different pixel parameters to obtain a comparison result corresponding to each target image, including: comparing the color range, tolerance, and noise data of each sampling pixel of each target image with the preset color range, preset image tolerance, and preset number of noise points to obtain a comparison result corresponding to each target image.

[0074] In this embodiment, the multiple different pixel parameters set include a preset color range, a preset image tolerance, and a preset noise count. In other embodiments, two of these parameters may also be included, without limitation. For example, a preset color range and a preset noise count may be used, or a preset noise count and a preset image tolerance may be used. It should be noted that the preset color range, preset image tolerance, and preset noise count are all reference comparison parameters obtained through statistical analysis of a large number of blank page images.

[0075] Specifically, in one embodiment, the color range, tolerance and noise data of each sampling pixel point of each target image are compared with the preset color range, preset image tolerance and preset noise number, respectively, to obtain a comparison result corresponding to each target image, including: when the color range of all sampling pixel points of the target image is greater than the preset color range, and the tolerance range of all sampling pixel points of the target image is less than the preset image tolerance, and the number of noise points in all sampling pixel points of the target image is less than the preset noise number, then the target image is judged to be a blank image as the corresponding comparison result.

[0076] In one embodiment, when the color range of all sampling pixels of the target image is not greater than the preset color range, or the tolerance range of all sampling pixels of the target image is not less than the preset image tolerance, and the number of noise points in all sampling pixels of the target image is not less than the preset noise point number, the target image is determined to be not a blank image as the corresponding comparison result.

[0077] In this method, by setting the comparison method of multiple sample pixel parameters and meeting multiple conditions, it is possible to further ensure that blank pages are screened out and the effectiveness of the screening is guaranteed.

[0078] In one embodiment, after the target image set is imported into the scanning library of the scanning device, the method further includes the following steps:

[0079] S70: In response to the user's scan output instruction for the target image set, the target image set is matched from the scan library and output as a scan result.

[0080] In this embodiment, after the target image set is imported into the scanning library of the scanning device, it is possible to respond to the user's scan output instruction for the target image set, match the target image set from the scanning library as the scan result output, and output the scan result without blank pages, thereby greatly improving the scanning experience.

[0081] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0082] In one embodiment, an image processing device is provided, which corresponds one-to-one to the image processing method in the above embodiment. Figure 4 As shown, the image processing device includes an acquisition module 101, a pre-processing module 102, a sampling module 103, a comparison module 104, a screening module 105, a rejection module 106 and an import module 107. The functional modules are described in detail as follows:

[0083] An acquisition module 101 is configured to acquire an original image set obtained by a scanning device, wherein the original image set includes multiple original images;

[0084] The pre-processing module 102 is used to pre-process the multiple original images to obtain corresponding multiple target images;

[0085] The sampling module 103 is configured to sample pixels of the plurality of target images according to a preset sampling method to obtain sampling pixels corresponding to each target image;

[0086] A comparison module 104 is configured to compare the sampled pixels corresponding to each target image with a plurality of different pixel parameters to obtain a comparison result corresponding to each target image;

[0087] A screening module 105 is configured to screen out blank images from the original image set based on the comparison results corresponding to each target image;

[0088] A removal module 106 is configured to remove the blank images from the original image set to obtain a target image set;

[0089] The import module 107 is configured to import the target image set into the scanning library of the scanning device.

[0090] In one embodiment, the sampling module 103 is specifically configured to:

[0091] Defining a sampling range for each target image to be sampled, wherein the sampling range includes a preset edge of the target image;

[0092] Sampling pixels of each target image within a sampling range of each target image to obtain all pixels corresponding to the sampling range of each target image;

[0093] All pixel points corresponding to the sampling range of each target image are used as sampling pixel points corresponding to each target image.

[0094] In one embodiment, the comparison module 104 is specifically configured to:

[0095] The color range, tolerance and noise data of each sampling pixel point of each target image are compared with the preset color range, preset image tolerance and preset noise number respectively to obtain the comparison result corresponding to each target image.

[0096] In one embodiment, the comparison module 104 is specifically configured to:

[0097] When the color range of all sampling pixel points of the target image is greater than the preset color range, and the tolerance range of all sampling pixel points of the target image is less than the preset image tolerance, and the number of noise points in all sampling pixel points of the target image is less than the preset noise point number, the target image is determined to be a blank image as the corresponding comparison result.

[0098] In one embodiment, the import module 107 is specifically configured to: respond to a user's scan output instruction for the target image set, and match the target image set from the scan library to output as a scan result.

[0099] In one embodiment, the acquisition module 101 is specifically used to: respond to a pre-output scanning instruction for a target scanning task input by a user to obtain scanning storage path information of the scanning device, and obtain multiple scanning images corresponding to the target scanning task according to the scanning storage path information, and use the multiple scanning images corresponding to the target scanning task as the original image set; or; respond to an image import instruction input by the user to obtain image import path information, and obtain multiple imported images imported in batches according to the image import path information, and use the multiple imported images as the original image set.

[0100] In one embodiment, the pre-processing module 102 is specifically configured to perform geometric scaling on the plurality of original images according to a preset geometric scaling ratio to obtain a corresponding plurality of target images.

[0101] It can be seen that in the embodiment of the present application, an image processing device is provided, which is applied to scanning application scenarios. When faced with a scenario where blank pages are easily present in the original image set obtained from the scanning device, multiple original images are pre-processed separately to obtain multiple target images for easy processing. Pixel sampling is performed on the multiple target images to obtain sampling pixels corresponding to each target image; the sampling pixels are compared with multiple different pixel parameters to obtain a comparison result corresponding to each target image. The comparison result reflects whether each image is a blank image. Finally, based on the comparison result corresponding to each target image, the images corresponding to the blank images are screened out from the original image set to obtain the remaining original images, which are then imported into the scanning library of the scanning device. In this solution, the screening of blank pages is achieved in a very simple way, which greatly improves the screening efficiency and solves the technical problem of low manual screening efficiency.

[0102] For the specific definition of the image processing device, please refer to the definition of the image processing method above and will not be repeated here. Each module in the above-mentioned image processing device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.

[0103] In one embodiment, a computer device is provided. The computer device can be a server connected to a scanning device as a server. The internal structure diagram of the computer device can be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium and an internal memory. The readable storage medium stores an operating system, computer-readable instructions and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in the readable storage medium. The database of the computer device is used to store data involved in the image processing method. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer-readable instructions are executed by the processor, an image processing method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.

[0104] In one embodiment, a computer device is provided, comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the following steps are implemented:

[0105] Acquire an original image set obtained by a scanning device, wherein the original image set includes a plurality of original images;

[0106] Pre-processing the multiple original images respectively to obtain corresponding multiple target images;

[0107] Sampling pixels of the plurality of target images according to a preset sampling method to obtain sampling pixels corresponding to each target image;

[0108] Comparing the sampled pixels corresponding to each target image with a plurality of different pixel parameters to obtain a comparison result corresponding to each target image;

[0109] Screening out blank images from the original image set according to the comparison results corresponding to each target image;

[0110] Eliminate the blank image from the original image set to obtain a target image set;

[0111] The target image set is imported into a scanning library of the scanning device.

[0112] In one embodiment, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the aforementioned image processing methods are implemented.

[0113] In one embodiment, a computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0114] Acquire an original image set obtained by a scanning device, wherein the original image set includes a plurality of original images;

[0115] Pre-processing the multiple original images respectively to obtain corresponding multiple target images;

[0116] Sampling pixels of the plurality of target images according to a preset sampling method to obtain sampling pixels corresponding to each target image;

[0117] Comparing the sampled pixels corresponding to each target image with a plurality of different pixel parameters to obtain a comparison result corresponding to each target image;

[0118] Screening out blank images from the original image set according to the comparison results corresponding to each target image;

[0119] Eliminate the blank image from the original image set to obtain a target image set;

[0120] The target image set is imported into a scanning library of the scanning device.

[0121] In one embodiment, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the following steps:

[0122] Acquire an original image set obtained by a scanning device, wherein the original image set includes a plurality of original images;

[0123] Pre-processing the multiple original images respectively to obtain corresponding multiple target images;

[0124] Sampling pixels of the plurality of target images according to a preset sampling method to obtain sampling pixels corresponding to each target image;

[0125] Comparing the sampled pixels corresponding to each target image with a plurality of different pixel parameters to obtain a comparison result corresponding to each target image;

[0126] Screening out blank images from the original image set according to the comparison results corresponding to each target image;

[0127] Eliminate the blank image from the original image set to obtain a target image set;

[0128] The target image set is imported into a scanning library of the scanning device.

[0129] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions. The computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0130] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0131] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. An image processing method, characterized in that: include: Acquire an original image set obtained by a scanning device, wherein the original image set includes a plurality of original images; Preprocessing the multiple original images respectively to obtain corresponding multiple target images; Sampling pixels of the plurality of target images according to a preset sampling method to obtain sampling pixels corresponding to each target image; Comparing the sampled pixels corresponding to each target image with a plurality of different pixel parameters to obtain a comparison result corresponding to each target image; Screening out blank images from the original image set according to the comparison results corresponding to each target image; Eliminate the blank image from the original image set to obtain a target image set; Importing the target image set into a scanning library of the scanning device; The plurality of different pixel parameters include a preset color range, a preset image tolerance, and a preset number of noise points. The sampling pixels corresponding to each target image are compared with the plurality of different pixel parameters to obtain a comparison result corresponding to each target image, including: The color range, tolerance and noise data of each sampling pixel point of each target image are compared with the preset color range, preset image tolerance and preset noise number respectively to obtain the comparison result corresponding to each target image.

2. The image processing method according to claim 1, wherein: The pixel sampling of the plurality of target images is performed according to a preset sampling method to obtain sampling pixel points corresponding to each target image, including: Defining a sampling range for each target image to be sampled, wherein the sampling range includes a preset edge of the target image; Sampling pixels of each target image within a sampling range of each target image to obtain all pixels corresponding to the sampling range of each target image; All pixel points corresponding to the sampling range of each target image are used as sampling pixel points corresponding to each target image.

3. The image processing method according to claim 1, wherein: The color range, tolerance, and noise data of each sampled pixel point of each target image are compared with a preset color range, a preset image tolerance, and a preset number of noise points, respectively, to obtain a comparison result corresponding to each target image, including: When the color range of all sampling pixel points of the target image is greater than the preset color range, and the tolerance range of all sampling pixel points of the target image is less than the preset image tolerance, and the number of noise points in all sampling pixel points of the target image is less than the preset noise point number, the target image is determined to be a blank image as the corresponding comparison result.

4. The image processing method according to claim 1, wherein: After importing the target image set into the scanning library of the scanning device, the method further includes: In response to a user's scan output instruction for the target image set, the target image set is matched from the scan library and output as a scan result.

5. The image processing method according to claim 1, wherein: The original image set obtained by the scanning device includes: Responding to a pre-output scanning instruction for a target scanning task input by a user, obtaining scanning storage path information of the scanning device, obtaining a plurality of scanned images corresponding to the target scanning task according to the scanning storage path information, and using the plurality of scanned images corresponding to the target scanning task as an original image set; or In response to the image import instruction input by the user, image import path information is obtained, and multiple imported images are obtained in batches according to the image import path information, and the multiple imported images are used as the original image set.

6. The image processing method according to any one of claims 1 to 5, characterized in that: The preprocessing of the plurality of original images to obtain corresponding plurality of target images includes: According to a preset geometric scaling ratio, the plurality of original images are scaled geometrically to obtain corresponding plurality of target images.

7. An image processing device, characterized in that: include: An acquisition module, configured to acquire an original image set obtained by a scanning device, wherein the original image set includes a plurality of original images; A preprocessing module, configured to preprocess the plurality of original images respectively to obtain a plurality of corresponding target images; A sampling module is used to sample pixels of the plurality of target images according to a preset sampling method to obtain sampling pixels corresponding to each target image; a comparison module, configured to compare the sampled pixel points corresponding to each target image with a plurality of different pixel point parameters, respectively, to obtain a comparison result corresponding to each target image; A screening module, configured to screen out blank images from the original image set according to the comparison results corresponding to each target image; A removal module, configured to remove the blank images from the original image set to obtain a target image set; An import module, configured to import the target image set into a scanning library of the scanning device; The plurality of different pixel parameters include a preset color range, a preset image tolerance, and a preset number of noise points. The sampling pixels corresponding to each target image are compared with the plurality of different pixel parameters to obtain a comparison result corresponding to each target image, including: The color range, tolerance and noise data of each sampling pixel point of each target image are compared with the preset color range, preset image tolerance and preset noise number respectively to obtain the comparison result corresponding to each target image.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the image processing method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the image processing method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Blank paper detecting method

    CN102496006A

  • Image Reading Device And Image Forming Apparatus

    CN105933565A