CN112153239A - Method and device for correcting document scanning image, storage medium and electronic equipment - Google Patents

Method and device for correcting document scanning image, storage medium and electronic equipment Download PDF

Info

Publication number
CN112153239A
CN112153239A CN202010993196.4A CN202010993196A CN112153239A CN 112153239 A CN112153239 A CN 112153239A CN 202010993196 A CN202010993196 A CN 202010993196A CN 112153239 A CN112153239 A CN 112153239A
Authority
CN
China
Prior art keywords
value
image
brightness
corrected
scanning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010993196.4A
Other languages
Chinese (zh)
Inventor
张志龙
张敏
周亮
潘凤岩
王明华
颜志鑫
李�远
杨香玉
姜晓光
王睿
禹鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Lanxum Computer Technology Co ltd
Beijing Lischen Jinzhi Technology Co ltd
Beijing Chenguang Rongxin Technology Co ltd
Original Assignee
Beijing Lanxum Computer Technology Co ltd
Beijing Lischen Jinzhi Technology Co ltd
Beijing Chenguang Rongxin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Lanxum Computer Technology Co ltd, Beijing Lischen Jinzhi Technology Co ltd, Beijing Chenguang Rongxin Technology Co ltd filed Critical Beijing Lanxum Computer Technology Co ltd
Priority to CN202010993196.4A priority Critical patent/CN112153239A/en
Publication of CN112153239A publication Critical patent/CN112153239A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/387Composing, repositioning or otherwise geometrically modifying originals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00002Diagnosis, testing or measuring; Detecting, analysing or monitoring not otherwise provided for
    • H04N1/00005Diagnosis, testing or measuring; Detecting, analysing or monitoring not otherwise provided for relating to image data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00681Detecting the presence, position or size of a sheet or correcting its position before scanning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/00681Detecting the presence, position or size of a sheet or correcting its position before scanning
    • H04N1/00763Action taken as a result of detection
    • H04N1/00774Adjusting or controlling
    • H04N1/00779Adjusting settings, e.g. mode, feeding rate or type of paper

Abstract

The embodiment of the invention provides a method and a device for correcting a document scanning image, a storage medium and an electronic device, wherein the document scanning image is obtained and comprises a plurality of page scanning images, performing brightness detection on each page scanning image to obtain brightness values of a plurality of pixel units in each page scanning image, correcting the brightness values of the pixel units with the brightness values lower than a preset brightness value to a preset brightness mean value, and generates a corrected page scan image from the corrected pixel units and the remaining pixel units, the corrected page scanning images are spliced to generate the corrected document scanning image, so that the problem of poor scanning result caused by uneven brightness of the document scanning image is solved, therefore, the scanning quality of the document scanning image is improved, and the scanning efficiency of the document scanning image is improved.

Description

Method and device for correcting document scanning image, storage medium and electronic equipment
Technical Field
The invention belongs to the technical field of image processing, and particularly relates to a method and a device for correcting a document scanning image, a storage medium and electronic equipment.
Background
Document processing apparatuses have become indispensable apparatuses in offices or personal homes at present, and common document processing apparatuses include scanners of automatic sheet feeders, multi-function office machines, copying machines, and the like. For a scanner, a user needs to put documents into a paper feeding tray of the scanner, and the scanner will feed the documents in sequence and generate a document scanning image after reading the documents. When the page in the document has "wrinkles", or the document is not placed correctly, or the lamp tube of the scanner is inclined, the generated scanned image of the document is prone to image skew.
In the prior art, when a page in a document has a wrinkle, or the document is not placed correctly, or a lamp of a scanner is inclined, manual adjustment is usually required, and after the situation is eliminated, the document is scanned again, so that the problem of low document scanning efficiency is easily caused.
Disclosure of Invention
In order to solve the problem that in the prior art, when a document has a page with a wrinkle, the page with the wrinkle is usually searched from the document manually, and after the wrinkle is eliminated on the page, the page is scanned again, so that the document scanning efficiency is low easily, the application provides a method and a device for correcting a document scanning image, a storage medium and an electronic device.
In a first aspect, the present application provides a method for correcting a scanned document image, the method including:
acquiring a document scanning image, wherein the document scanning image comprises a plurality of page scanning images;
performing brightness detection on each page scanning image to acquire brightness values of a plurality of pixel units in each page scanning image;
when the brightness values of the pixel units are judged to be different, correcting the brightness value of the pixel unit with the brightness value lower than the preset brightness value to a preset brightness mean value, and generating a corrected page scanning image by the corrected pixel unit and the residual pixel units;
and splicing the corrected page scanning images to generate a corrected document scanning image.
Optionally, the performing brightness detection on each page scan image to obtain brightness values of a plurality of pixel units in each page scan image includes:
dividing each page scan image into a plurality of pixel units;
and for each pixel unit, calculating the brightness value of the pixel unit by acquiring a plurality of image channel values of the pixel unit so as to determine the brightness values of the pixel units.
Optionally, the plurality of image channel values comprises an R value, a G value, and a B value;
the calculating the brightness value of the pixel unit by obtaining a plurality of image channel values of the pixel unit includes:
and calculating an average value among the R value, the G value and the B value, and determining the average value as the brightness value of the pixel unit.
Optionally, the plurality of image channel values comprises an R value, a G value, and a B value;
the calculating the brightness value of the pixel unit by obtaining a plurality of image channel values of the pixel unit includes:
and calculating the brightness value of the pixel unit according to a preset R value weighting coefficient, a preset G value weighting coefficient, a preset B value weighting coefficient, the R value, the G value and the B value.
Optionally, before the correcting the luminance value of the pixel unit with the luminance value lower than the preset luminance value to the preset luminance mean value, and generating the corrected page scan image by using the corrected pixel unit and the remaining pixel units, the method further includes:
screening out pixel units with brightness values higher than a preset brightness value from the plurality of pixel units;
and carrying out average value calculation on a plurality of pixel units with the brightness values higher than the preset brightness value so as to calculate the brightness average value.
Optionally, after the splicing the plurality of corrected page scan images to generate a corrected document scan image, the method further includes:
and outputting the corrected document scanned image through a plurality of scanning output modes, wherein the plurality of scanning output modes comprise black and white scanning output, gray scale scanning output and color scanning output.
Optionally, before the outputting the corrected document scan image through multiple scan output modes, the method further includes:
and performing custom adjustment on the corrected document scanned image, and continuously executing the step of outputting the corrected document scanned image through multiple scanning output modes, wherein the custom adjustment comprises adjusting the image size of the corrected document scanned image, adjusting the image ground color of the corrected document scanned image, adjusting the rotation direction of the corrected document scanned image, eliminating blank pages of the corrected document scanned image or adding frames to the corrected document scanned image.
In a second aspect, the present application provides a device for correcting a scanned image of a document, comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a document scanning image which comprises a plurality of page scanning images;
the second acquisition module is used for carrying out brightness detection on each page scanning image so as to acquire the brightness values of a plurality of pixel units in each page scanning image;
the correction module is used for correcting the brightness value of the pixel unit with the brightness value lower than the preset brightness value to a preset brightness mean value, and generating a corrected page scanning image by the corrected pixel unit and the residual pixel units;
and the generating module is used for splicing the corrected page scanning images to generate a corrected document scanning image.
In a third aspect, an embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the above-mentioned method for correcting a document scanned image.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a memory for storing information including program instructions and a processor for controlling execution of the program instructions, wherein the program instructions are loaded by the processor and executed to perform the steps of the method for correcting a scanned image of a document.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: according to the embodiment of the application, the document scanning image is obtained and comprises a plurality of page scanning images, brightness detection is carried out on each page scanning image to obtain the brightness values of a plurality of pixel units in each page scanning image, the brightness values of the pixel units with the brightness values lower than the preset brightness value are corrected to the preset brightness mean value, the corrected pixel units and the residual pixel units are generated into the corrected page scanning image, the corrected page scanning images are spliced to generate the corrected document scanning image, the problem that the scanning result is poor due to uneven brightness of the document scanning image is avoided, the scanning quality of the document scanning image is improved, and the scanning efficiency of the document scanning image is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application in a non-limiting sense. In the drawings:
FIG. 1 is a flowchart illustrating steps of a method for correcting a scanned image of a document according to an embodiment of the present application;
FIG. 2 is a block diagram of a device for correcting a scanned document image according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
In the prior art, when a page in a document has a wrinkle, or the document is not placed correctly, or a lamp of a scanner is inclined, manual adjustment is usually required, and after the situation is eliminated, the document is scanned again, so that the problem of low document scanning efficiency is easily caused.
Further, in addition to eliminating the above situation through manual adjustment, in the prior art, for the case that the document is not correctly placed, the skewed document scanning image may be adjusted by stretching a tool or adjusting a scanning angle, so as to obtain a corrected document scanning image. However, the prior art solution can only address the situation that the document is not correctly placed, but also address the problem that the scanned image brightness of the document is not uniform and the scanning result is poor due to the "wrinkles" in the page of the document. Based on this, the embodiment of the present invention first provides a method for correcting a document scanned image, as shown in fig. 1, the method includes:
step S101, obtaining a document scanning image, wherein the document scanning image comprises a plurality of page scanning images;
in the embodiment of the invention, each step is executed by the scanner.
In this step, the document to be scanned generally includes a plurality of pages, and therefore, after the document is scanned by the scanner, the document scan image obtained includes a plurality of page scan images.
Specifically, the process of acquiring a document scan image may be as follows: taking the scanner including the sheet-fed scanner as an example, a user places a document to be scanned in a paper feeding tray of the sheet-fed scanner, and the sheet-fed scanner sequentially feeds the document in the paper feeding tray and generates a document scanning image after reading the document.
Step S102, carrying out brightness detection on each page scanning image to obtain the brightness values of a plurality of pixel units in each page scanning image;
in this embodiment of the present invention, step S102 may include dividing each of the page scan images into a plurality of pixel units; and for each pixel unit, calculating the brightness value of the pixel unit by acquiring a plurality of image channel values of the pixel unit so as to determine the brightness values of the pixel units.
In this step, the image channel values include an R value, a G value, and a B value.
Alternatively, the specific implementation of calculating the luminance value of the pixel unit by obtaining a plurality of image channel values of the pixel unit in step S102 may include: and calculating an average value among the R value, the G value and the B value, and determining the average value as the brightness value of the pixel unit.
Specifically, by the formula: y ═ R + G + B)/3, where Y represents the luminance value, R represents the R value, G represents the G value, and B represents the B value. It should be noted that the process of calculating the luminance value of the pixel unit by obtaining a plurality of image channel values of the pixel unit is actually a process of converting the pixel unit into a gray pixel unit, and the calculated luminance value is actually a gray value of the gray pixel unit.
As another alternative, the specific implementation of calculating the luminance value of the pixel unit by acquiring a plurality of image channel values of the pixel unit in step S102 may include: and calculating the brightness value of the pixel unit according to a preset R value weighting coefficient, a preset G value weighting coefficient, a preset B value weighting coefficient, the R value, the G value and the B value.
Specifically, by the formula: y ═ a × R) + (B × G) + (c × B), where Y denotes a luminance value, a denotes a preset R value weighting coefficient, B denotes a preset G value weighting coefficient, c denotes a preset B value weighting coefficient, R denotes an R value, G denotes a G value, and B denotes a B value. The R value weighting coefficient, the G value weighting coefficient and the B value weighting coefficient can be determined by obtaining the sensitivity of human eyes to the R value, the G value and the B value. For example, the preset R-value weighting factor comprises 0.299, the preset G-value weighting factor comprises 0.587, and the preset B-value weighting factor comprises 0.114.
It should be noted that, in addition to the above two alternatives to obtain the luminance values of the multiple pixel units in each page scan image, the luminance values of the multiple pixel units in each page scan image may also be obtained in other manners, which is not limited in this embodiment of the present invention.
Step S103, when the brightness values of the pixel units are judged to be different, correcting the brightness value of the pixel unit with the brightness value lower than the preset brightness value to a preset brightness mean value, and generating a corrected page scanning image by the corrected pixel unit and the residual pixel units;
in this step, it should be noted that, in a scene with "wrinkles" in a page in a document according to the embodiment of the present invention, in the scene, since the page has "wrinkles", brightness of a scanned image of the document is easily uneven, which causes a problem of poor scanning result. Therefore, when the brightness values of the pixel units are determined to be different, the step can be executed.
In the embodiment of the present invention, the preset brightness value may be set according to requirements, and in a general case, the preset brightness value is generally a default set brightness of a document scanned by a scanner. The pixel units with the brightness values lower than the preset brightness value can be understood as 'dark part' pixel units, and the 'dark part' pixel units can be adjusted to be visible 'bright part' pixel units by correcting the brightness values of the pixel units with the brightness values lower than the preset brightness value to the preset brightness mean value, so that the problem of poor scanning results caused by uneven brightness of a document scanning image is solved. Further, after correcting the brightness value of the pixel unit with the brightness value lower than the preset brightness value to the preset brightness mean value, generating the corrected page scan image by the corrected pixel unit and the remaining pixel units, so that the corrected page scan image can meet the output standard, and executing the subsequent steps to generate the corrected document scan image.
In the embodiment of the present invention, before step S103, the method further includes: and acquiring a preset brightness average value. Specifically, screening out pixel units with brightness values higher than a preset brightness value from a plurality of pixel units; and carrying out average value calculation on a plurality of pixel units with the brightness values higher than the preset brightness value so as to calculate a brightness average value.
In this step, the pixel units with the brightness values higher than the preset brightness value are subjected to average value calculation to calculate the brightness average value, so that the problems that the brightness values of the pixel units with the brightness values lower than the preset brightness value are corrected to the preset brightness average value subsequently, the brightness value difference between the pixel units is too large, and the scanning result is poor due to the fact that the brightness average value is influenced due to the existence of the pixel units with the brightness values lower than the preset brightness value are avoided. That is to say, in the embodiment of the invention, the brightness values of the pixel units having the brightness values lower than the preset brightness value are corrected to the preset brightness average value, instead of correcting the brightness values of the pixel units having the brightness values lower than the preset brightness value to the preset brightness value, so as to avoid the problems of too large brightness value difference between the pixel units and poor scanning result. That is, by correcting the luminance values of the pixel units with luminance values lower than the preset luminance value to the preset luminance mean value, the luminance value difference between the pixel units is reduced, and the quality of the scanning result is improved.
And step S104, splicing the plurality of corrected page scanning images to generate corrected document scanning images.
In the embodiment of the invention, by splicing a plurality of corrected page scanning images, the generated document scanning image can accord with the output standard under the condition that each corrected page scanning image accords with the output standard, and the problem of poor scanning result caused by uneven brightness of the document scanning image is avoided, so that the scanning quality of the document scanning image is improved, and the scanning efficiency of the document scanning image is improved.
In the embodiment of the present invention, after step S104, the method further includes:
step S105, the corrected document scanned image is self-defined and adjusted, and the step of outputting the corrected document scanned image through a plurality of scanning output modes is continuously executed.
In this step, the custom adjustment includes adjusting an image size of the corrected document scanned image, adjusting an image ground color of the corrected document scanned image, adjusting a rotation direction of the corrected document scanned image, removing a blank page of the corrected document scanned image, or adding a frame to the corrected document scanned image.
In the embodiment of the invention, the corrected document scanning image is subjected to user-defined adjustment, so that the process of man-machine interaction is increased, the subsequently output document scanning image meets the requirements of users, and the use experience of the users is enhanced. It should be noted that, besides the above-mentioned multiple custom adjustment manners, other custom adjustment manners may also be included, and the embodiment of the present invention is not limited to this. In addition, in the embodiment of the present invention, a non-adjustment mode may be selected, and the subsequent step S106 may be continuously executed.
In the embodiment of the present invention, after step S105, the method further includes:
and step S106, outputting the corrected document scanning image through a plurality of scanning output modes.
In this step, the plurality of scan output modes include black and white scan output, gray scale scan output, and color scan output. Specifically, by adjusting the output parameters of the scanner, it is possible to output a plurality of types of corrected document scan images.
In the embodiment of the invention, the corrected document scanning image is output through a plurality of scanning output modes, so that the output corrected document scanning image can meet different requirements of users, and the use experience of the users is enhanced.
The embodiment of the application provides a method for obtaining a document scanning image, the document scanning image comprises a plurality of page scanning images, brightness detection is carried out on each page scanning image to obtain the brightness values of a plurality of pixel units in each page scanning image, the brightness values of the pixel units with the brightness values lower than the preset brightness value are corrected to be the preset brightness mean value, the corrected pixel units and the residual pixel units are used for generating the corrected page scanning image, the corrected page scanning images are spliced, and the corrected document scanning image is generated.
In still another embodiment of the present invention, there is provided a correction apparatus for a scanned image of a document, as shown in fig. 2, including:
the system comprises a first acquisition module 01, a second acquisition module, a third acquisition module and a fourth acquisition module, wherein the first acquisition module 01 is used for acquiring a document scanning image which comprises a plurality of page scanning images;
the second obtaining module 02 is configured to perform brightness detection on each page scan image to obtain brightness values of a plurality of pixel units in each page scan image;
the correcting module 03 is configured to correct the brightness value of the pixel unit with the brightness value lower than the preset brightness value to a preset brightness mean value, and generate a corrected page scan image by using the corrected pixel unit and the remaining pixel units;
and the generating module 04 is configured to splice the plurality of corrected page scan images to generate a corrected document scan image.
In this embodiment of the present invention, the second obtaining module 02 of the apparatus specifically includes: a partitioning sub-module 021 and a calculation sub-module 022.
The dividing submodule 021 is used for dividing each page scanning image into a plurality of pixel units;
the calculation sub-module 022 is configured to, for each of the pixel units, calculate a luminance value of the pixel unit by obtaining a plurality of image channel values of the pixel unit to determine a plurality of luminance values of the pixel unit.
In the embodiment of the present invention, the plurality of image channel values include an R value, a G value, and a B value; the calculation sub-module 022 of the apparatus is specifically configured to calculate an average value between the R value, the G value and the B value and determine the average value as the luminance value of the pixel unit.
In the embodiment of the present invention, the plurality of image channel values include an R value, a G value, and a B value; the calculating submodule 022 of the apparatus is specifically configured to calculate the luminance value of the pixel unit according to a preset R value weighting coefficient, a preset G value weighting coefficient, a preset B value weighting coefficient, an R value, a G value, and a B value.
In the embodiment of the present invention, the apparatus further includes: a screening module 05 and a calculation module 06.
The screening module 05 is configured to screen out a pixel unit with a luminance value higher than a preset luminance value from the plurality of pixel units;
the calculating module 06 is configured to perform average calculation on a plurality of pixel units with luminance values higher than a preset luminance value to calculate a luminance average value.
In the embodiment of the present invention, the apparatus further includes: and an output module 07.
The output module 07 is configured to output the corrected document scanned image through multiple scan output modes, where the multiple scan output modes include black and white scan output, gray scale scan output, and color scan output.
In the embodiment of the present invention, the apparatus further includes: and an adjusting module 08.
The adjusting module 08 is configured to perform a custom adjustment on the corrected document scanned image, and continue to execute the step of outputting the corrected document scanned image through multiple scan output modes by the output module 07, where the custom adjustment includes adjusting an image size of the corrected document scanned image, adjusting an image ground color of the corrected document scanned image, adjusting a rotation direction of the corrected document scanned image, removing a blank page of the corrected document scanned image, or adding a frame to the corrected document scanned image.
The embodiment of the application provides a device for document scanning images, which acquires the document scanning images, wherein the document scanning images comprise a plurality of page scanning images, brightness detection is carried out on each page scanning image to acquire the brightness values of a plurality of pixel units in each page scanning image, the brightness values of the pixel units with the brightness values lower than the preset brightness value are corrected to the preset brightness mean value, the corrected pixel units and the residual pixel units are used for generating the corrected page scanning images, the corrected page scanning images are spliced to generate the corrected document scanning images, and the problem of poor scanning results caused by uneven brightness of the document scanning images is solved, so that the scanning quality of the document scanning images is improved, and the scanning efficiency of the document scanning images is improved.
An embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, and where the program controls a device on which the storage medium is located to execute each step of the above-mentioned embodiment of the method for correcting a document scanned image when the program runs.
An embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, and the program instructions are loaded by the processor and executed to implement the steps of the method for correcting a scanned image of a document. For a detailed description, reference may be made to the above-described embodiments of the method of correcting a scanned image of a document.
Fig. 3 is a schematic diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 3, the electronic apparatus 3 of this embodiment includes: the processor 31, the memory 32, and the computer program 33 stored in the memory 32 and capable of running on the processor 31, wherein the computer program 33, when executed by the processor 31, implements the correction method applied to the scanned document image in the embodiment, and for avoiding repetition, it is not described herein repeatedly. Alternatively, the computer program is executed by the processor 31 to implement the functions of the models/units in the correction apparatus applied to the scanned document image in the embodiment, which are not repeated herein.
The electronic device 3 includes, but is not limited to, a processor 31 and a memory 32. It will be appreciated by those skilled in the art that fig. 3 is merely an example of the electronic device 3, and does not constitute a limitation of the electronic device 3, and may include more or less components than those shown, or combine certain components, or different components, for example, the electronic device 3 may also include an input-output device, a network access device, a bus, etc.
The Processor 31 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 32 may be an internal storage unit of the electronic device 3, such as a hard disk or a memory of the electronic device 3. The memory 32 may also be an external storage device of the electronic device 3, such as a plug-in hard disk provided on the electronic device 3, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 32 may also include both an internal storage unit of the electronic device 3 and an external storage device. The memory 32 is used for storing computer programs and other programs and data required by the electronic device 3. The memory 32 may also be used to temporarily store data that has been output or is to be output.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer-readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of correcting a scanned image of a document, the method comprising:
acquiring a document scanning image, wherein the document scanning image comprises a plurality of page scanning images;
performing brightness detection on each page scanning image to acquire brightness values of a plurality of pixel units in each page scanning image;
when the brightness values of the pixel units are judged to be different, correcting the brightness value of the pixel unit with the brightness value lower than the preset brightness value to a preset brightness mean value, and generating a corrected page scanning image by using the corrected pixel unit and the rest pixel units;
and splicing the corrected page scanning images to generate a corrected document scanning image.
2. The method according to claim 1, wherein said performing brightness detection on each of the page scan images to obtain brightness values of a plurality of pixel units in each of the page scan images comprises:
dividing each page scan image into a plurality of pixel units;
and for each pixel unit, calculating the brightness value of the pixel unit by acquiring a plurality of image channel values of the pixel unit so as to determine the brightness values of the pixel units.
3. The method of claim 2, wherein the plurality of image channel values comprises an R value, a G value, and a B value;
the calculating the brightness value of the pixel unit by acquiring a plurality of image channel values of the pixel unit includes:
and calculating an average value among the R value, the G value and the B value, and determining the average value as the brightness value of the pixel unit.
4. The method of claim 2, wherein the plurality of image channel values comprises an R value, a G value, and a B value;
the calculating the brightness value of the pixel unit by acquiring a plurality of image channel values of the pixel unit includes:
and calculating the brightness value of the pixel unit according to a preset R value weighting coefficient, a preset G value weighting coefficient, a preset B value weighting coefficient, the R value, the G value and the B value.
5. The method according to claim 1, wherein before the correcting the luminance values of the pixel units with luminance values lower than the preset luminance value to the preset luminance average value and generating the corrected page scan image by using the corrected pixel units and the remaining pixel units, the method further comprises:
screening out pixel units with brightness values higher than a preset brightness value from the plurality of pixel units;
and carrying out average value calculation on a plurality of pixel units with the brightness values higher than the preset brightness value so as to calculate the brightness average value.
6. The method according to claim 1, further comprising, after said stitching the plurality of corrected page scan images to generate a corrected document scan image:
and outputting the corrected document scanned image through a plurality of scanning output modes, wherein the plurality of scanning output modes comprise black and white scanning output, gray scale scanning output and color scanning output.
7. The method according to claim 6, further comprising, before said outputting the corrected document scan image by a plurality of scan-out modes:
and performing custom adjustment on the corrected document scanned image, and continuing to execute the step of outputting the corrected document scanned image through multiple scanning output modes, wherein the custom adjustment comprises adjusting the image size of the corrected document scanned image, adjusting the image ground color of the corrected document scanned image, adjusting the rotation direction of the corrected document scanned image, eliminating blank pages of the corrected document scanned image or adding frames to the corrected document scanned image.
8. An apparatus for correcting a scanned image of a document, the apparatus comprising:
the device comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a document scanning image which comprises a plurality of page scanning images;
the second acquisition module is used for carrying out brightness detection on each page scanning image so as to acquire the brightness values of a plurality of pixel units in each page scanning image;
the correction module is used for correcting the brightness value of the pixel unit with the brightness value lower than the preset brightness value to a preset brightness mean value, and generating a corrected page scanning image by the corrected pixel unit and the residual pixel units;
and the generating module is used for splicing the corrected page scanning images to generate a corrected document scanning image.
9. A storage medium characterized by comprising a stored program, wherein a device on which the storage medium is located is controlled to execute the method for correcting a document scanned image according to any one of claims 1 to 7 when the program is executed.
10. An electronic device comprising a memory for storing information comprising program instructions and a processor for controlling the execution of the program instructions, characterized in that the program instructions are loaded and executed by the processor to implement the steps of the method for correction of scanned images of documents according to any of claims 1 to 7.
CN202010993196.4A 2020-09-21 2020-09-21 Method and device for correcting document scanning image, storage medium and electronic equipment Pending CN112153239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010993196.4A CN112153239A (en) 2020-09-21 2020-09-21 Method and device for correcting document scanning image, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010993196.4A CN112153239A (en) 2020-09-21 2020-09-21 Method and device for correcting document scanning image, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112153239A true CN112153239A (en) 2020-12-29

Family

ID=73893344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010993196.4A Pending CN112153239A (en) 2020-09-21 2020-09-21 Method and device for correcting document scanning image, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112153239A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118939A (en) * 2021-03-17 2022-09-27 成都理想境界科技有限公司 Image brightness homogenizing method, computer readable storage medium, electronic device and laser projection image processing device
CN116051490A (en) * 2022-12-30 2023-05-02 北京辰光融信技术有限公司 Document print quality detection method, printing device, electronic device, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1307714A (en) * 1998-06-30 2001-08-08 夏普公司 Image correction device
CN103209284A (en) * 2013-02-26 2013-07-17 中国科学院自动化研究所 Brightness compensation method of document scanning image
US20160344897A1 (en) * 2015-05-22 2016-11-24 Kyocera Document Solutions Image processing apparatus
JP2017046342A (en) * 2015-08-26 2017-03-02 株式会社リコー Image processing system and image processing method
CN108513039A (en) * 2017-02-28 2018-09-07 佳能株式会社 Image processing apparatus, image processing method and recording medium
CN109348084A (en) * 2018-11-26 2019-02-15 珠海奔图电子有限公司 Image forming method, device, electronic equipment and readable storage medium storing program for executing
CN109510916A (en) * 2017-09-14 2019-03-22 精工爱普生株式会社 The production method and recording medium of scanner, scan data
CN109769077A (en) * 2017-11-10 2019-05-17 精工爱普生株式会社 Reading device and image production method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1307714A (en) * 1998-06-30 2001-08-08 夏普公司 Image correction device
CN103209284A (en) * 2013-02-26 2013-07-17 中国科学院自动化研究所 Brightness compensation method of document scanning image
US20160344897A1 (en) * 2015-05-22 2016-11-24 Kyocera Document Solutions Image processing apparatus
JP2017046342A (en) * 2015-08-26 2017-03-02 株式会社リコー Image processing system and image processing method
CN108513039A (en) * 2017-02-28 2018-09-07 佳能株式会社 Image processing apparatus, image processing method and recording medium
CN109510916A (en) * 2017-09-14 2019-03-22 精工爱普生株式会社 The production method and recording medium of scanner, scan data
CN109769077A (en) * 2017-11-10 2019-05-17 精工爱普生株式会社 Reading device and image production method
CN109348084A (en) * 2018-11-26 2019-02-15 珠海奔图电子有限公司 Image forming method, device, electronic equipment and readable storage medium storing program for executing

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118939A (en) * 2021-03-17 2022-09-27 成都理想境界科技有限公司 Image brightness homogenizing method, computer readable storage medium, electronic device and laser projection image processing device
CN115118939B (en) * 2021-03-17 2024-02-02 成都理想境界科技有限公司 Image brightness homogenizing method, computer readable storage medium, electronic device and laser projection image processing device
CN116051490A (en) * 2022-12-30 2023-05-02 北京辰光融信技术有限公司 Document print quality detection method, printing device, electronic device, and storage medium
CN116051490B (en) * 2022-12-30 2023-06-20 北京辰光融信技术有限公司 Document print quality detection method, printing device, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
EP2149860B1 (en) Image processing unit, noise reduction method, program, and storage medium
US9497355B2 (en) Image processing apparatus and recording medium for correcting a captured image
KR101800931B1 (en) Image processing apparatus, image processing method, and computer program
US20140044354A1 (en) Image processing apparatus and image processing method
JP2020028029A (en) Image processing apparatus, image processing system, program, and image processing method
US11308318B2 (en) Image processing apparatus, image processing method, and storage medium
US8937753B2 (en) Image scanning apparatus, image compensation method and computer-readable recording medium
CN112153239A (en) Method and device for correcting document scanning image, storage medium and electronic equipment
DE102010040273A1 (en) Image scanning apparatus, image scanning method, image display control apparatus, image display control method, image processing system and computer program
JP2011142469A (en) Image processing apparatus and image processing method
JP2003283804A (en) Method and system for correcting curvature of binding
US10979588B2 (en) Image forming apparatus, image forming method, and storage medium
US10497080B2 (en) Method and apparatus for image processing
CN1941960A (en) Embedded scanning cell phone
EP3358816A1 (en) Image-reading device and image-forming device
JP2000032287A (en) Image processor and image processing method
JP2020092375A5 (en) Image processing equipment, image processing methods, and programs
US8416469B2 (en) Image processing apparatus, image processing method and computer program
US20230051281A1 (en) Color correction of an image
US11032439B2 (en) Image processing apparatus
JP2007324648A (en) Image reading system and control method thereof
JP6482298B2 (en) Liquid crystal display device and program using the same
CN115861465A (en) Method and device for determining watermark color, storage medium and image forming device
JP4692169B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP6224419B2 (en) Image processing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20201229

WD01 Invention patent application deemed withdrawn after publication