CN108229436A - Coloured image gray processing method and device, storage medium for certificate identification - Google Patents

Coloured image gray processing method and device, storage medium for certificate identification Download PDF

Info

Publication number
CN108229436A
CN108229436A CN201810104833.0A CN201810104833A CN108229436A CN 108229436 A CN108229436 A CN 108229436A CN 201810104833 A CN201810104833 A CN 201810104833A CN 108229436 A CN108229436 A CN 108229436A
Authority
CN
China
Prior art keywords
pixel
value
rgb color
pixel value
color image
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
CN201810104833.0A
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.)
Hangzhou Qing Technology Co Ltd
Original Assignee
Hangzhou Qing 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 Hangzhou Qing Technology Co Ltd filed Critical Hangzhou Qing Technology Co Ltd
Priority to CN201810104833.0A priority Critical patent/CN108229436A/en
Publication of CN108229436A publication Critical patent/CN108229436A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/28Quantising the image, e.g. histogram thresholding for discrimination between background and foreground patterns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The present invention provides a kind of coloured image gray processing method and device identified for certificate, storage medium, wherein, method includes:Obtain the RGB color image of certificate;According to human-eye visual characteristic to red pixel portions, green pixel portions and blue pixel portions the distribution weight of each pixel in the RGB color image;Red pixel value, green pixel values and the blue pixel value of each pixel in the weight and the RGB color image calculate the pixel value of the pixel.The precision of OCR Text regions efficiency and Text region is greatly improved in the present invention, meets people's e-manufacturing, the needs lived.

Description

Coloured image gray processing method and device, storage medium for certificate identification
Technical field
The present invention relates to technical field of image processing more particularly to coloured image gray processing methods, are exactly specifically one Kind is used for the coloured image gray processing method and device of certificate identification, storage medium.
Background technology
With increasingly dependence of the people to computer technology and network communication, need to calculate a large amount of papery data typing Machine for example, during movable property and real estate sales/purchase, lease, is scanned certificate, material, qualifications, to historical document, Books carry out electronic disposal.In order to preferably preserve, retrieving, check word class paper material, people develop word knowledge again Other technology, the text information in automatic identification picture or photo.
So-called Text region is exactly the technology using Computer Automatic Recognition character, is a weight of application of pattern recognition Want field.The last century 50's people start to inquire into normal words recognition methods, and develop optical character recognition reader;60 years There is the practical machine using magnetic ink and sytlized font for initial stage, multiple fonts and hand-written occurs in the later stage sixties Body Text region machine, accuracy of identification and machine performance all can substantially be met the requirements, for example, the handwritten form for letter sorting Digital cognitron and block letter English digital cognitron;The basic theories of the main study text identification of the people seventies and development are high The Text region machine of performance, and focus on the research of Chinese Character Recognition.Wherein, OCR (optical character Recognition) Text region is the representative of character recognition technology.
OCR Text regions refer to that electronic equipment (for example, scanner or digital camera) checks the character printed on paper, then Shape is translated into the process of computword with character identifying method;That is, text information is scanned, then to image text Part is analyzed and processed, and obtains the process of word and layout information.How debug or using auxiliary information improve identification just True rate is the most important subjects of OCR, and OCR technique has the characteristics that friendly, stability, ease for use and feasibility, deep by word Identification worker's likes.
It is essentially all cromogram for certificate since the picture of OCR technique identification is mostly coloured image Picture, and a little mark, picture, insignias etc. usually can be also included in certificate, include bulk information in colored certificate, in order to complete Text region in certificate needs to carry out binaryzation to certificate image, i.e., colored certificate image simply is divided into prospect and the back of the body Scape, and foreground information is simply defined as black, background information is defined as white.In many cases, it may appear that Text region Error or even identification mistake, while a large amount of memories of consumption calculations machine are understood coloured image binary conversion treatment, recognition efficiency is low Under.
Therefore, there is an urgent need for research and develop a kind of colored certificate OCR Text regions efficiency of raising and accuracy of identification by those skilled in the art Method, so as to meet people's e-manufacturing, life needs.
Invention content
In view of this, the technical problem to be solved in the present invention is to provide a kind of coloured image gray scale for certificate identification Change method and device, storage medium, solve in the prior art that certificate recognition efficiency is low, be susceptible to asking for identification error Topic.
In order to solve the above-mentioned technical problem, specific embodiment of the invention provides a kind of cromogram for certificate identification Picture gray processing method, including:Obtain the RGB color image of certificate;According to human-eye visual characteristic in the RGB color image Red pixel portions, green pixel portions and the blue pixel portions distribution weight of each pixel;According to the weight and described Red pixel value, green pixel values and the blue pixel value of each pixel in RGB color image calculate the pixel value of the pixel.
The specific embodiment of the present invention also provides a kind of coloured image gray processing device for certificate identification, including: Acquiring unit, for obtaining the RGB color image of certificate;Allocation unit, for giving the RGB color according to human-eye visual characteristic Red pixel portions, green pixel portions and the blue pixel portions distribution weight of each pixel in image;Computing unit is used In red pixel value, green pixel values and the blue pixel of each pixel in the weight and the RGB color image Value calculates the pixel value of the pixel.
The specific embodiment of the present invention also provides a kind of computer storage media for including computer executed instructions, described When computer executed instructions are handled via data processing equipment, which performs the coloured image for certificate identification Gray processing method.
Above-mentioned specific embodiment according to the present invention it is found that for certificate identification coloured image gray processing method and dress It puts, storage medium at least has the advantages that:During OCR Text regions, according to human-eye visual characteristic, to RGB color The red pixel portions of each pixel, green pixel portions and blue pixel portions distribution weight in image, further according to distribution The red pixel value of weight and each pixel, green pixel values and blue pixel value calculate the pixel value of the pixel, utilize this Original red pixel value, original green pixel values and the original blue pixel of each pixel in pixel value update RGB color image Value, obtains gray level image, finally carries out binary conversion treatment to gray level image, i.e., RGB color image first is converted into gray level image, Binary conversion treatment is carried out to gray level image again, reduces data processing amount, OCR Text regions efficiency and Text region is greatly improved Precision meets people's e-manufacturing, the needs lived.
It is to be understood that above-mentioned general description and detailed description below are merely illustrative and illustrative, not It can the limitation range of the invention to be advocated.
Description of the drawings
Following appended attached drawing is the part of specification of the present invention, depicts example embodiments of the present invention, institute Attached drawing is used for illustrating the principle of the present invention together with the description of specification.
Fig. 1 is a kind of reality for coloured image gray processing method for certificate identification that the specific embodiment of the invention provides Apply the flow chart of example one.
Fig. 2 is a kind of reality for coloured image gray processing method for certificate identification that the specific embodiment of the invention provides Apply the flow chart of example two.
Fig. 3 is a kind of reality for coloured image gray processing method for certificate identification that the specific embodiment of the invention provides Apply the flow chart of example three.
Fig. 4 is a kind of reality for coloured image gray processing device for certificate identification that the specific embodiment of the invention provides Apply the schematic block diagram of example one.
Fig. 5 is a kind of reality for coloured image gray processing device for certificate identification that the specific embodiment of the invention provides Apply the schematic block diagram of example two.
Fig. 6 is a kind of reality for coloured image gray processing device for certificate identification that the specific embodiment of the invention provides Apply the schematic block diagram of example three.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are more clearly understood, below will with attached drawing and in detail Narration clearly illustrates the spirit of disclosed content, and any skilled artisan is understanding the content of present invention After embodiment, when the technology that can be taught by the content of present invention, it is changed and modifies, without departing from the essence of the content of present invention God and range.
The illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but not as a limitation of the invention. In addition, element/component of the same or like label used in drawings and the embodiments is for representing same or like portion Point.
About " first " used herein, " second " ... etc., not especially censure the meaning of order or cis-position, It is non-to limit the present invention, only for distinguishing the element described with same technique term or operation.
About direction term used herein, such as:Upper and lower, left and right, front or rear etc. are only the sides of refer to the attached drawing To.Therefore, the direction term used is intended to be illustrative and not intended to limit this creation.
It is open term, i.e., about "comprising" used herein, " comprising ", " having ", " containing " etc. Mean including but not limited to.
About it is used herein " and/or ", including any of the things or all combination.
Include " two " and " two or more " about " multiple " herein;Include " two groups " about " multigroup " herein And " more than two ".
About term used herein " substantially ", " about " etc., to modify it is any can be with the quantity or mistake of microvariations Difference, but this slight variations or error can't change its essence.In general, microvariations that such term is modified or error Range in some embodiments can be 20%, in some embodiments can be 10%, can be in some embodiments 5% or its His numerical value.It will be understood by those skilled in the art that the aforementioned numerical value referred to can be adjusted according to actual demand, it is not limited thereto.
It is certain to describe the word of the application by lower or discuss in the other places of this specification, to provide art technology Personnel's guiding additional in relation to the description of the present application.
Fig. 1 is a kind of reality for coloured image gray processing method for certificate identification that the specific embodiment of the invention provides The flow chart of example one is applied, as shown in Figure 1, using the RGB color image of the acquisition certificate such as scanner, camera, then to RGB color Red pixel portions, green pixel portions and the blue pixel portions distribution weight of each pixel in image, finally according to power Weight and the red pixel value of each pixel, green pixel values, blue pixel value calculate the pixel value of each pixel.
In the specific embodiment shown in the drawings, the coloured image gray processing method for certificate identification includes:
Step 101:Obtain RGB (red, green, blue) coloured image of certificate.In specific embodiments of the present invention, scanning is utilized Instrument, camera, video camera etc. acquire the RGB color image of certificate.Certificate can be identity card, student's identity card, employee's card, graduation Card, qualification certificates, honorary certificate etc..
Step 102:According to human-eye visual characteristic to each pixel in the RGB color image red pixel portions, Green pixel portions and blue pixel portions distribution weight.In specific embodiments of the present invention, human-eye visual characteristic refers specifically to people Eye is to green sensitive degree highest, red is taken second place, blue is minimum, and therefore, when distributing weight, red weight highest, blue weight is most It is low, most suitable gray level image can be obtained by ranking operation.
In specific embodiments of the present invention, step 102 specifically includes:The RGB color figure is given according to human-eye visual characteristic The red pixel portions distribution weight W of each pixel as inr;According to human-eye visual characteristic in the RGB color image The green pixel portions distribution weight W of each pixelg;According to human-eye visual characteristic to each picture in the RGB color image The blue pixel portions distribution weight W of elementb
Step 103:The red pixel value of each pixel in the weight and the RGB color image, green picture Plain value and blue pixel value calculate the pixel value of the pixel.In specific embodiments of the present invention, for gray level image, due to Red pixel value, green pixel values and blue pixel value should all be equal, according to original red pixel of weight and each pixel Value, original green pixel values, original blue pixel value calculate the pixel value of the pixel, and the pixel value calculated is recycled to update Original red pixel value, original green pixel values and original blue pixel value, so as to complete coloured image gray processing.
In specific embodiments of the present invention, step 103 specifically includes:By the red pixel value R, the green pixel values The G and blue pixel value B sums after being multiplied with respective weights and obtains the pixel value P of the pixel.The specific calculating of pixel value P Formula is:
P=R × Wr+G×Wg+B×Wb
Referring to Fig. 1, according to human-eye visual characteristic to the red pixel portion of each pixel in the RGB color image of certificate Point, green pixel portions and blue pixel portions distribution weight, further according to the red pixel value of weight and each pixel, green picture Plain value and blue pixel value calculate the pixel value of the pixel, so as to obtain most suitable gray level image, reduce later stage two-value Change data processing amount during operation, improve OCR Text regions efficiency and accuracy of identification.
Fig. 2 is a kind of reality for coloured image gray processing method for certificate identification that the specific embodiment of the invention provides The flow chart of example two is applied, as shown in Fig. 2, carrying out binaryzation operation according to predetermined threshold value and pixel value.
In the specific embodiment shown in the drawings, the coloured image gray processing method for certificate identification further includes:
Step 104:Binaryzation operation is carried out according to predetermined threshold value and the pixel value.In specific embodiments of the present invention, When gray level image is exchanged into black white image, binaryzation operation is carried out according to predetermined threshold value and the size of pixel value, by gray-scale map It is more much easier than coloring image into black white image as being converted into black white image, and it is less prone to pigment erroneous judgement.
Referring to Fig. 2, since coloured image gray processing algorithm is simple, data processing amount is small, first colors image into ash Image is spent, then greyscale image transitions far smaller than will be colored image into directly into the data processing amount of black white image Black white image, and by greyscale image transitions into black white image precision height, not error-prone, OCR Text regions are efficient, processing Speed is fast, precision is good.
Fig. 3 is a kind of reality for coloured image gray processing method for certificate identification that the specific embodiment of the invention provides The flow chart of example three is applied, if as shown in figure 3, pixel value is more than predetermined threshold value, pixel value puts 1, i.e. pixel is black;If picture Element value is less than or equal to predetermined threshold value, and pixel value is set to 0, i.e., pixel is white.
In the specific embodiment shown in the drawings, step 104 specifically includes:
Step 1041:Compare the predetermined threshold value and the size of the pixel value.In specific embodiments of the present invention, pixel The bigger explanation pixel of value is foreground pixel, and it is background pixel otherwise to illustrate the pixel.
Step 1042:If the pixel value is more than the predetermined threshold value, which is 1.The specific implementation of the present invention In example, pixel value 1, it is black to illustrate the pixel.
Step 1043:Otherwise, which is 0.In specific embodiments of the present invention, pixel value 0 illustrates that the pixel is White.
It, can be simply big between the pixel value of compared pixels and predetermined threshold value for gray level image referring to Fig. 3 It is small, the big pixel of pixel value is set to black, the small pixel of pixel value is set to white, data processing amount is small, and treatment effeciency is high, It is and not error-prone.
Fig. 4 is a kind of reality for coloured image gray processing device for certificate identification that the specific embodiment of the invention provides The schematic block diagram of example one is applied, as shown in figure 4, using the RGB color image of the acquiring units such as scanner, camera acquisition certificate, Weight is distributed to the red pixel portions, green pixel portions and blue pixel portions of each pixel in RGB color image again, The pixel of each pixel is finally calculated according to the red pixel value of weight and each pixel, green pixel values, blue pixel value Value.
In the specific embodiment shown in the drawings, the coloured image gray processing device for certificate identification includes:It obtains Unit 1, allocation unit 2 and computing unit 3.Wherein, acquiring unit 1 is used to obtain the RGB color image of certificate;Allocation unit 2 For red pixel portions, the green pixel portions according to human-eye visual characteristic to each pixel in the RGB color image Weight is distributed with blue pixel portions;Computing unit 3 is for each pixel in the weight and the RGB color image Red pixel value, green pixel values and blue pixel value calculate the pixel value of the pixel.
Referring to Fig. 4, according to human-eye visual characteristic to the red pixel portion of each pixel in the RGB color image of certificate Point, green pixel portions and blue pixel portions distribution weight, further according to the red pixel value of weight and each pixel, green picture Plain value and blue pixel value calculate the pixel value of the pixel, so as to obtain most suitable gray level image, reduce later stage two-value Change data processing amount during operation, improve OCR Text regions efficiency and accuracy of identification.
In specific embodiments of the present invention, the allocation unit 2 specifically includes:First distribution module, the second distribution module With third distribution module.Wherein, the first distribution module is used for according to human-eye visual characteristic to each in the RGB color image The red pixel portions distribution weight W of pixelr;Second distribution module is used for according to human-eye visual characteristic to the RGB color figure The green pixel portions distribution weight W of each pixel as ing;Third distribution module is used for according to human-eye visual characteristic to described The blue pixel portions distribution weight W of each pixel in RGB color imageb
Fig. 5 is a kind of reality for coloured image gray processing device for certificate identification that the specific embodiment of the invention provides The schematic block diagram of example two is applied, as shown in figure 5, carrying out binaryzation operation according to the pixel value of predetermined threshold value and pixel.
In the specific embodiment shown in the drawings, the coloured image gray processing device for certificate identification further includes two-value Change arithmetic element 4.Wherein, binaryzation arithmetic element 4 is used to carry out binaryzation operation according to predetermined threshold value and the pixel value.
Referring to Fig. 5, since coloured image gray processing algorithm is simple, data processing amount is small, first colors image into ash Image is spent, then greyscale image transitions far smaller than will be colored image into directly into the data processing amount of black white image Black white image, and by greyscale image transitions into black white image precision height, not error-prone, OCR Text regions are efficient, processing Speed is fast, precision is good.
Fig. 6 is a kind of reality for coloured image gray processing device for certificate identification that the specific embodiment of the invention provides The schematic block diagram of example three is applied, if as shown in fig. 6, pixel value is more than predetermined threshold value, pixel value puts 1, i.e. pixel is black;If Pixel value is less than or equal to predetermined threshold value, and pixel value is set to 0, i.e., pixel is white.
In the specific embodiment shown in the drawings, the binaryzation arithmetic element 4 specifically includes:Comparison module 41 and tax It is worth module 42.Wherein, comparison module 41 is for the predetermined threshold value and the size of the pixel value;Assignment module 42 is used for When the predetermined threshold value is more than the pixel value, the pixel value is 1, is otherwise 0.
It, can be simply big between the pixel value of compared pixels and predetermined threshold value for gray level image referring to Fig. 6 It is small, the big pixel of pixel value is set to black, the small pixel of pixel value is set to white, data processing amount is small, and treatment effeciency is high, It is and not error-prone.
The specific embodiment of the present invention also provides a kind of computer storage media for including computer executed instructions, described When computer executed instructions are handled via data processing equipment, which performs the coloured image for certificate identification Gray processing method, method include the following steps:
Step 101:Obtain the RGB color image of certificate.
Step 102:According to human-eye visual characteristic to each pixel in the RGB color image red pixel portions, Green pixel portions and blue pixel portions distribution weight.
Step 103:The red pixel value of each pixel in the weight and the RGB color image, green picture Plain value and blue pixel value calculate the pixel value of the pixel.
The specific embodiment of the present invention also provides a kind of computer storage media for including computer executed instructions, described When computer executed instructions are handled via data processing equipment, which performs the coloured image for certificate identification Gray processing method, method include the following steps:
Step 101:Obtain the RGB color image of certificate.
Step 102:According to human-eye visual characteristic to each pixel in the RGB color image red pixel portions, Green pixel portions and blue pixel portions distribution weight.
Step 103:The red pixel value of each pixel in the weight and the RGB color image, green picture Plain value and blue pixel value calculate the pixel value of the pixel.
Step 104:Binaryzation operation is carried out according to predetermined threshold value and the pixel value.
The specific embodiment of the present invention also provides a kind of computer storage media for including computer executed instructions, described When computer executed instructions are handled via data processing equipment, which performs the coloured image for certificate identification Gray processing method, method include the following steps:
Step 101:Obtain the RGB color image of certificate.
Step 102:According to human-eye visual characteristic to each pixel in the RGB color image red pixel portions, Green pixel portions and blue pixel portions distribution weight.
Step 103:The red pixel value of each pixel in the weight and the RGB color image, green picture Plain value and blue pixel value calculate the pixel value of the pixel.
Step 1041:Compare the predetermined threshold value and the size of the pixel value.
Step 1042:If the pixel value is more than the predetermined threshold value, which is 1.
Step 1043:Otherwise, which is 0.
The specific embodiment of the invention provides a kind of coloured image gray processing method and device identified for certificate, storage is situated between Matter, during OCR Text regions, according to human-eye visual characteristic, red pixel portions to pixel each in RGB color image, Green pixel portions and blue pixel portions distribution weight, the red pixel value of weight and each pixel further according to distribution, Green pixel values and blue pixel value calculate the pixel value of the pixel, update each picture in RGB color image using the pixel value Original red pixel value, original green pixel values and the original blue pixel value of element, obtain gray level image, finally to gray level image Binary conversion treatment is carried out, i.e., RGB color image is first converted into gray level image, then binary conversion treatment, drop are carried out to gray level image The precision of OCR Text regions efficiency and Text region is greatly improved in low data processing amount, meets people's e-manufacturing, life Needs living.
The above-mentioned embodiment of the present invention can be implemented in various hardware, Software Coding or both combination.For example, this hair Bright embodiment, which is alternatively in data signal processor (Digital Signal Processor, DSP), performs the above method Program code.The present invention can also refer to computer processor, digital signal processor, microprocessor or field-programmable gate array Arrange the multiple functions that (Field Programmable Gate Array, FPGA) is performed.Can above-mentioned processing be configured according to the present invention Device performs particular task, and the machine-readable software code of ad hoc approach or the firmware generation that the present invention discloses are defined by performing Code is completed.Software code or firmware code can be developed into different program languages and different forms or form.Or Different target platform composing software codes.However, in generation, is configured according to the software code of execution task of the present invention and other types Different code pattern, type and the language of code do not depart from spirit and scope of the invention.
The foregoing is merely the schematical specific embodiment of the present invention, before the design of the present invention and principle is not departed from It puts, the equivalent variations and modification that any those skilled in the art is made should all belong to the scope of protection of the invention.

Claims (10)

  1. A kind of 1. coloured image gray processing method for certificate identification, which is characterized in that this method includes:
    Obtain the RGB color image of certificate;
    According to human-eye visual characteristic to red pixel portions, the green pixel portions of each pixel in the RGB color image Weight is distributed with blue pixel portions;And
    Red pixel value, green pixel values and the blue picture of each pixel in the weight and the RGB color image Element value calculates the pixel value of the pixel.
  2. 2. as described in claim 1 for the coloured image gray processing method of certificate identification, which is characterized in that this method is also wrapped It includes:
    Binaryzation operation is carried out according to predetermined threshold value and the pixel value.
  3. 3. as claimed in claim 2 for the coloured image gray processing method of certificate identification, which is characterized in that according to default threshold The pixel value of value and each pixel carries out the step of binaryzation operation, specifically includes:
    Compare the predetermined threshold value and the size of the pixel value;
    If the pixel value is more than the predetermined threshold value, which is 1;And
    Otherwise, which is 0.
  4. 4. as described in claim 1 for the coloured image gray processing method of certificate identification, which is characterized in that regarded according to human eye Feel red pixel portions, green pixel portions and blue pixel portions of the characteristic to each pixel in the RGB color image The step of distributing weight, specifically includes:
    According to human-eye visual characteristic to the red pixel portions distribution weight W of each pixel in the RGB color imager
    According to human-eye visual characteristic to the green pixel portions distribution weight W of each pixel in the RGB color imageg;And
    According to human-eye visual characteristic to the blue pixel portions distribution weight W of each pixel in the RGB color imageb
  5. 5. as claimed in claim 5 for the coloured image gray processing method of certificate identification, which is characterized in that according to the power Red pixel value, green pixel values and the blue pixel value of each pixel in weight and the RGB color image calculate the pixel Pixel value the step of, specifically include:
    By the red pixel value, the green pixel values and the blue pixel value, sum and obtain after being multiplied with respective weights The pixel value of the pixel.
  6. 6. a kind of coloured image gray processing device for certificate identification, which is characterized in that the device includes:
    Acquiring unit, for obtaining the RGB color image of certificate;
    Allocation unit, for according to human-eye visual characteristic to each pixel in the RGB color image red pixel portions, Green pixel portions and blue pixel portions distribution weight;And
    Computing unit, red pixel value, green picture for each pixel in the weight and the RGB color image Plain value and blue pixel value calculate the pixel value of the pixel.
  7. 7. as claimed in claim 6 for the coloured image gray processing device of certificate identification, which is characterized in that the device also wraps It includes:
    Binaryzation arithmetic element, for carrying out binaryzation operation according to predetermined threshold value and the pixel value.
  8. 8. as claimed in claim 7 for the coloured image gray processing device of certificate identification, which is characterized in that the binaryzation Arithmetic element specifically includes:
    Comparison module, for the predetermined threshold value and the size of the pixel value;And
    Assignment module, when being more than the pixel value for the predetermined threshold value, the pixel value is 1, is otherwise 0.
  9. 9. as claimed in claim 7 for the coloured image gray processing device of certificate identification, which is characterized in that the distribution is single Member specifically includes:
    First distribution module, for the red pixel according to human-eye visual characteristic to each pixel in the RGB color image Part distribution weight Wr
    Second distribution module, for the green pixel according to human-eye visual characteristic to each pixel in the RGB color image Part distribution weight Wg;And
    Third distribution module, for the blue pixel according to human-eye visual characteristic to each pixel in the RGB color image Part distribution weight Wb
  10. 10. a kind of computer storage media for including computer executed instructions, the computer executed instructions are via data processing During equipment processing, any coloured image gray scales for certificate identification of data processing equipment perform claim requirement 1-5 Change method.
CN201810104833.0A 2018-02-02 2018-02-02 Coloured image gray processing method and device, storage medium for certificate identification Pending CN108229436A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810104833.0A CN108229436A (en) 2018-02-02 2018-02-02 Coloured image gray processing method and device, storage medium for certificate identification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810104833.0A CN108229436A (en) 2018-02-02 2018-02-02 Coloured image gray processing method and device, storage medium for certificate identification

Publications (1)

Publication Number Publication Date
CN108229436A true CN108229436A (en) 2018-06-29

Family

ID=62670729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810104833.0A Pending CN108229436A (en) 2018-02-02 2018-02-02 Coloured image gray processing method and device, storage medium for certificate identification

Country Status (1)

Country Link
CN (1) CN108229436A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021905A (en) * 2006-02-15 2007-08-22 中国科学院自动化研究所 File image binaryzation method
CN101458770A (en) * 2008-12-24 2009-06-17 北京文通科技有限公司 Character recognition method and system
CN103049756A (en) * 2012-11-16 2013-04-17 健雄职业技术学院 Method for automatically extracting and removing words in color image on basis of CEMA (Cellular Message Encryption Algorithm) and texture matching repairing technology
CN104217403A (en) * 2014-08-26 2014-12-17 浙江工商大学 Method for converting colored image into grayscale image
CN104267184A (en) * 2014-08-28 2015-01-07 中南大学 Immune-electrochemical sensor based on AuNPs@AgNCs nano composite material, construction and applications thereof
CN107369242A (en) * 2017-06-15 2017-11-21 深圳怡化电脑股份有限公司 A kind of Paper Currency Identification, device, terminal device and readable storage medium storing program for executing
CN107730508A (en) * 2017-09-01 2018-02-23 上海微元计算机系统集成有限公司 Color documents images multichannel binary processing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021905A (en) * 2006-02-15 2007-08-22 中国科学院自动化研究所 File image binaryzation method
CN101458770A (en) * 2008-12-24 2009-06-17 北京文通科技有限公司 Character recognition method and system
CN103049756A (en) * 2012-11-16 2013-04-17 健雄职业技术学院 Method for automatically extracting and removing words in color image on basis of CEMA (Cellular Message Encryption Algorithm) and texture matching repairing technology
CN104217403A (en) * 2014-08-26 2014-12-17 浙江工商大学 Method for converting colored image into grayscale image
CN104267184A (en) * 2014-08-28 2015-01-07 中南大学 Immune-electrochemical sensor based on AuNPs@AgNCs nano composite material, construction and applications thereof
CN107369242A (en) * 2017-06-15 2017-11-21 深圳怡化电脑股份有限公司 A kind of Paper Currency Identification, device, terminal device and readable storage medium storing program for executing
CN107730508A (en) * 2017-09-01 2018-02-23 上海微元计算机系统集成有限公司 Color documents images multichannel binary processing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
肖蕾蕾: ""基于Android的光学字符识别研究与实现",", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Similar Documents

Publication Publication Date Title
CN110866495B (en) Bill image recognition method, bill image recognition device, bill image recognition equipment, training method and storage medium
US10817741B2 (en) Word segmentation system, method and device
CN112528863A (en) Identification method and device of table structure, electronic equipment and storage medium
CN111275139B (en) Handwritten content removal method, handwritten content removal device, and storage medium
CN113486828B (en) Image processing method, device, equipment and storage medium
CN109740515B (en) Evaluation method and device
RU2726185C1 (en) Detecting and identifying objects on images
CN108764352A (en) Duplicate pages content detection algorithm and device
CN112508011A (en) OCR (optical character recognition) method and device based on neural network
CN111488881A (en) Method, device and storage medium for removing handwritten content in text image
CN112749606A (en) Text positioning method and device
KR20080095743A (en) Image processing program and image processing device
CN107358184A (en) The extracting method and extraction element of document word
CN106446885A (en) Paper-based Braille recognition method and system
CN115812221A (en) Image generation and coloring method and device
CN112036304A (en) Medical bill layout identification method and device and computer equipment
CN111724396A (en) Image segmentation method and device, computer-readable storage medium and electronic device
CN108197624A (en) The recognition methods of certificate image rectification and device, computer storage media
CN109508712A (en) A kind of Chinese written language recognition methods based on image
KR20210077251A (en) Database building device that can build a knowledge database from a table-inserted image and operating method thereof
CN108229436A (en) Coloured image gray processing method and device, storage medium for certificate identification
CN108734167B (en) Method for recognizing characters on contaminated film
CN114332898A (en) Automatic correcting method and device for connection test questions and storage medium
JP2019046225A (en) Recognition device, recognition program, and recognition method
CN112101356A (en) Method and device for positioning specific text in picture and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180629