CN102750773A - Method for positioning paper money number image region - Google Patents

Method for positioning paper money number image region Download PDF

Info

Publication number
CN102750773A
CN102750773A CN2012102024779A CN201210202477A CN102750773A CN 102750773 A CN102750773 A CN 102750773A CN 2012102024779 A CN2012102024779 A CN 2012102024779A CN 201210202477 A CN201210202477 A CN 201210202477A CN 102750773 A CN102750773 A CN 102750773A
Authority
CN
China
Prior art keywords
image
pixel
region
bank note
value
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.)
Granted
Application number
CN2012102024779A
Other languages
Chinese (zh)
Other versions
CN102750773B (en
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 JOJUBANKING TECHNOLOGY Co Ltd
Original Assignee
HANGZHOU JOJUBANKING 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 JOJUBANKING TECHNOLOGY Co Ltd filed Critical HANGZHOU JOJUBANKING TECHNOLOGY Co Ltd
Priority to CN201210202477.9A priority Critical patent/CN102750773B/en
Publication of CN102750773A publication Critical patent/CN102750773A/en
Application granted granted Critical
Publication of CN102750773B publication Critical patent/CN102750773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Character Input (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

The invention relates to a method for positioning a paper money number image region. The method comprises the following steps: acquiring a horizontally arranged single paper money image; acquiring the appearing region of the number of the current paper money image, respectively selecting two rows in each region, and acquiring the proportion of the quantity of pixels with the pixel values less than an upper threshold F accounting for the total quantity of the pixels; carrying out [-1, 0, 1] Sobel gradient calculation respectively on the pixels of each row in each region, and acquiring the proportion of the quantity of the pixels with the gradient calculated values larger than a lower threshold G accounting for the total quantity of the pixels; respectively calculating the sums of V1 and V2 of the sampling rows in the four regions, searching for the maximum value of the sums of V1 and V2, and taking the region corresponding to the maximum value as a number region; and amplifying the image of the number region, carrying out slant and longitudinal draw correction on the amplified image, removing the blank region of the image of the number region, and identifying characters of the image of the number region. The method disclosed by the invention has the advantages that the paper money number region can be accurately positioned and the reliability is high.

Description

The localization method of bank note hat font size image-region
Technical field
The present invention relates to a kind of image position method.
Background technology
Banknote image hat font size area positioning method is the common step of hat font size identification, mainly comprises two types in the method for announcing at present.The first kind is the projection localization method, and the image after the binaryzation is carried out level, vertical projection, and the number of the prosperous pixel of each row and each row on statistics level and the vertical direction is confirmed the number zone with this.This method receives the influence of noise spot after the binaryzation, and the location on the upper side or on the lower side easily.
Second type of localization method that is a kind of based on the rectangle frame search.Because focal length and object distance are certain when taking sample image, so the width w and the height H in pure number zone are also fixed.Setting up the rectangle that a size is w * H pixel, in the statistical picture is the sum of black pixel point in the rectangular area of left upper apex line by line with the current pixel point.Note the coordinate of the maximum rectangular area of stain sum, this coordinate both had been the coordinate in pure number zone.The method lost efficacy when handling dirty coin, old coin image easily.
Summary of the invention
For overcoming the shortcoming that locate failure appears in prior art easily, the invention provides a kind of can be exactly to bank note hat font size zone location, the localization method of the bank note hat font size image-region that reliability is high.
The localization method of bank note hat font size image-region may further comprise the steps:
1), obtains individual banknote image of horizontal positioned, banknote image and bank note in perspective;
2), obtain first area, second area, the 3rd zone and the four-range area image of current banknote image; The band of position of hat font size when is just putting in corresponding bank note front, first area; The band of position of hat font size during positive inversion of the corresponding bank note of second area; The band of position of hat font size when the 3rd regional corresponding bank note reverse side is just being put, the band of position of hat font size when the 4th regional corresponding bank note reverse side is inverted;
3), in each zone, select two line data respectively at least as the sampling row; Obtain the pixel value of each sampling row respectively; Pixel value refers to the brightness value of the pixel of forming line data; The calculating pixel value is less than the quantity of the pixel of upper limit threshold F, and pixel value is designated as V less than the ratio that the pixel quantity of upper limit threshold F accounts for the pixel total quantity 1
4), respectively pixel of each row in each zone is carried out the Sobel gradient calculation of [1,0,1], obtain the gradient calculation value and account for the ratio of pixel total quantity greater than the quantity of the pixel of lower threshold G, this ratio is designated as V 2After Sobel calculating, each location of pixels can obtain a gradient calculation value, and the gradient calculation value is big more, and the possibility that this pixel position corresponding is in the picture material edge is just big more;
5), to all sampling row in four zones, each sampling row is calculated respectively should sampling row V 1+ V 2Value, seek V 1+ V 2Maximal value, with the zone at this maximal value place as prefix sign indicating number zone;
6), prefix sign indicating number area image is amplified, and the image after will amplifying does with longitudinal stretching and proofreaies and correct, and rejects the white space of prefix sign indicating number area image, and the preservation image is discerned the character of prefix sign indicating number area image.
Further, in the step 3), each zone selects two line data as the sampling row.Two row samplings work and have often enough provided correct result, and calculated amount is little, reduces the computation burden of system.
Further, in the step 6), the candidate region image is amplified 2 times.
Further, in the step 6), through the character string numerical value of OCR character recognition program identification prefix sign indicating number area image.
Technical conceive of the present invention is: because the bank note of placement can't be distinguished by system is positive the placement or the reverse side placement; Be to be inverted or just to put; Therefore grasp four zones of banknote image, four zones are corresponding position, prefix sign indicating number zone during four kinds of modes of emplacements of corresponding bank note respectively.Calculate the pixel value in four zones respectively,, identify through the character string of OCR character recognition program at last the prefix sign indicating number to confirm the position at prefix sign indicating number place.
The present invention can accurate recognition prefix sign indicating number region, and reliability is high, and can guarantee in 100ms, to accomplish the prefix sign indicating number identification of individual bank note, is applicable to extensive commercial application.
Description of drawings
Fig. 1 is a process flow diagram of the present invention.
Embodiment
With reference to accompanying drawing, further specify the present invention:
The localization method of bank note hat font size image-region may further comprise the steps:
1), obtains individual banknote image of horizontal positioned, banknote image and bank note in perspective;
2), obtain first area, second area, the 3rd zone and the four-range area image of current banknote image; The band of position of hat font size when is just putting in corresponding bank note front, first area; The band of position of hat font size during positive inversion of the corresponding bank note of second area; The band of position of hat font size when the 3rd regional corresponding bank note reverse side is just being put, the band of position of hat font size when the 4th regional corresponding bank note reverse side is inverted;
3), in each zone, select two line data respectively at least as the sampling row; Obtain the pixel value of each sampling row respectively; Pixel value refers to the brightness value of the pixel of forming line data; The calculating pixel value is less than the quantity of the pixel of upper limit threshold F, and pixel value is designated as V less than the ratio that the pixel quantity of upper limit threshold F accounts for the pixel total quantity 1
4), respectively pixel of each row in each zone is carried out the Sobel gradient calculation of [1,0,1], obtain the gradient calculation value and account for the ratio of pixel total quantity greater than the quantity of the pixel of lower threshold G, this ratio is designated as V 2After Sobel calculating, each location of pixels can obtain a gradient calculation value, and the gradient calculation value is big more, and the possibility that this pixel position corresponding is in the picture material edge is just big more;
5), to all sampling row in four zones, each sampling row is calculated respectively should sampling row V 1+ V 2Value, seek V 1+ V 2Maximal value, with the zone at this maximal value place as prefix sign indicating number zone;
6), prefix sign indicating number area image is amplified, and the image after will amplifying does with longitudinal stretching and proofreaies and correct, and rejects the white space of prefix sign indicating number area image, and the preservation image is discerned the character of prefix sign indicating number area image.
In the step 3), each zone selects two line data as the sampling row.Two row samplings work and have often enough provided correct result, and calculated amount is little, reduces the computation burden of system.
In the step 6), the candidate region image is amplified 2 times.And character string numerical value through OCR character recognition program identification prefix sign indicating number area image.
Technical conceive of the present invention is: because the bank note of placement can't be distinguished by system is positive the placement or the reverse side placement; Be to be inverted or just to put; Therefore grasp four zones of banknote image, four zones are corresponding position, prefix sign indicating number zone during four kinds of modes of emplacements of corresponding bank note respectively.Calculate the pixel value in four zones respectively,, identify through the character string of OCR character recognition program at last the prefix sign indicating number to confirm the position at prefix sign indicating number place.
The present invention can accurate recognition prefix sign indicating number region, and reliability is high, and can guarantee in 100ms, to accomplish the prefix sign indicating number identification of individual bank note, is applicable to extensive commercial application.
The described content of this instructions embodiment only is enumerating the way of realization of inventive concept; Protection scope of the present invention should not be regarded as and only limit to the concrete form that embodiment states, protection scope of the present invention also reach in those skilled in the art conceive according to the present invention the equivalent technologies means that can expect.

Claims (3)

1. bank note is preced with the localization method of font size image-region, may further comprise the steps:
1), obtains individual banknote image of horizontal positioned, banknote image and bank note in perspective;
2), obtain first area, second area, the 3rd zone and the four-range area image of current banknote image; The band of position of hat font size when is just putting in corresponding bank note front, first area; The band of position of hat font size during positive inversion of the corresponding bank note of second area; The band of position of hat font size when the 3rd regional corresponding bank note reverse side is just being put, the band of position of hat font size when the 4th regional corresponding bank note reverse side is inverted;
3), in each zone, select two line data respectively at least as the sampling row; Obtain the pixel value of each sampling row respectively; Pixel value refers to the brightness value of the pixel of forming line data; The calculating pixel value is less than the quantity of the pixel of upper limit threshold F, and pixel value is designated as V less than the ratio that the pixel quantity of upper limit threshold F accounts for the pixel total quantity 1
4), respectively pixel of each row in each zone is carried out the Sobel gradient calculation of [1,0,1], obtain the gradient calculation value and account for the ratio of pixel total quantity greater than the quantity of the pixel of lower threshold G, this ratio is designated as V 2After Sobel calculating, each location of pixels can obtain a gradient calculation value, and the gradient calculation value is big more, and the possibility that this pixel position corresponding is in the picture material edge is just big more;
5), to all sampling row in four zones, each sampling row is calculated respectively should sampling row V 1+ V 2Value, seek V 1+ V 2Maximal value, with the zone at this maximal value place as prefix sign indicating number zone;
6), prefix sign indicating number area image is amplified, and the image after will amplifying does with longitudinal stretching and proofreaies and correct, and rejects the white space of prefix sign indicating number area image, and the preservation image is discerned the character of prefix sign indicating number area image.
2. the localization method of bank note hat font size image-region as claimed in claim 1 is characterized in that: in the step 6, the candidate region image is amplified 2 times.
3. the localization method of bank note hat font size image-region as claimed in claim 2 is characterized in that: through the character string numerical value of OCR character recognition program identification prefix sign indicating number area image.
CN201210202477.9A 2012-06-15 2012-06-15 Method for positioning paper money number image region Active CN102750773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210202477.9A CN102750773B (en) 2012-06-15 2012-06-15 Method for positioning paper money number image region

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210202477.9A CN102750773B (en) 2012-06-15 2012-06-15 Method for positioning paper money number image region

Publications (2)

Publication Number Publication Date
CN102750773A true CN102750773A (en) 2012-10-24
CN102750773B CN102750773B (en) 2014-07-30

Family

ID=47030921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210202477.9A Active CN102750773B (en) 2012-06-15 2012-06-15 Method for positioning paper money number image region

Country Status (1)

Country Link
CN (1) CN102750773B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105046252A (en) * 2014-11-21 2015-11-11 华中科技大学 Method for recognizing Renminbi (Chinese currency yuan) crown codes
CN106355743A (en) * 2015-07-14 2017-01-25 深圳怡化电脑股份有限公司 Banknote version identification method and device
CN106600812A (en) * 2016-12-14 2017-04-26 深圳怡化电脑股份有限公司 Paper currency recognition method and paper currency recognition device
CN108074323A (en) * 2016-11-15 2018-05-25 深圳怡化电脑股份有限公司 A kind of bank note towards recognition methods and its device
CN108831004A (en) * 2017-05-02 2018-11-16 深圳怡化电脑股份有限公司 The determination method, apparatus and automatic depositing-withdrawing equipment in paper money number region
CN108961531A (en) * 2017-05-17 2018-12-07 深圳怡化电脑股份有限公司 Method, apparatus, equipment and the storage medium of paper money number identification
CN112990150A (en) * 2021-05-10 2021-06-18 恒银金融科技股份有限公司 Method for measuring upper and lower boundaries of crown word number based on projection bidirectional accumulation sum

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107085882A (en) * 2017-06-02 2017-08-22 深圳怡化电脑股份有限公司 A kind of method and device for determining counterfeit money

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010122894A (en) * 2008-11-19 2010-06-03 Oki Electric Ind Co Ltd Medium discrimination device
CN101923741A (en) * 2010-08-11 2010-12-22 西安理工大学 Paper currency number identification method based on currency detector
CN102005078A (en) * 2010-12-23 2011-04-06 北京新岸线软件科技有限公司 Method and device for recognizing paper currencies and tickets

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010122894A (en) * 2008-11-19 2010-06-03 Oki Electric Ind Co Ltd Medium discrimination device
CN101923741A (en) * 2010-08-11 2010-12-22 西安理工大学 Paper currency number identification method based on currency detector
CN102005078A (en) * 2010-12-23 2011-04-06 北京新岸线软件科技有限公司 Method and device for recognizing paper currencies and tickets

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘承香 阮双琛 胡学娟 黄贵明: "纸币号码识别技术研究", 《激光与红外》 *
刘炜: "人民币冠字号码识别与图像鉴伪技术研究及应用", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *
艾朝霞: "人民币纸币序列号、面额号定位与分割", 《科学技术与工程》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105046252A (en) * 2014-11-21 2015-11-11 华中科技大学 Method for recognizing Renminbi (Chinese currency yuan) crown codes
CN105046252B (en) * 2014-11-21 2018-09-07 华中科技大学 A kind of RMB prefix code recognition methods
CN106355743A (en) * 2015-07-14 2017-01-25 深圳怡化电脑股份有限公司 Banknote version identification method and device
CN108074323A (en) * 2016-11-15 2018-05-25 深圳怡化电脑股份有限公司 A kind of bank note towards recognition methods and its device
CN106600812A (en) * 2016-12-14 2017-04-26 深圳怡化电脑股份有限公司 Paper currency recognition method and paper currency recognition device
CN106600812B (en) * 2016-12-14 2019-12-06 深圳怡化电脑股份有限公司 Paper money identification method and device
CN108831004A (en) * 2017-05-02 2018-11-16 深圳怡化电脑股份有限公司 The determination method, apparatus and automatic depositing-withdrawing equipment in paper money number region
CN108961531A (en) * 2017-05-17 2018-12-07 深圳怡化电脑股份有限公司 Method, apparatus, equipment and the storage medium of paper money number identification
CN108961531B (en) * 2017-05-17 2020-10-20 深圳怡化电脑股份有限公司 Method, device and equipment for identifying serial number of paper currency and storage medium
CN112990150A (en) * 2021-05-10 2021-06-18 恒银金融科技股份有限公司 Method for measuring upper and lower boundaries of crown word number based on projection bidirectional accumulation sum

Also Published As

Publication number Publication date
CN102750773B (en) 2014-07-30

Similar Documents

Publication Publication Date Title
CN102750773B (en) Method for positioning paper money number image region
US9946941B2 (en) Lane detection
US8184859B2 (en) Road marking recognition apparatus and method
CN101615252B (en) Method for extracting text information from adaptive images
WO2016127545A1 (en) Character segmentation and recognition method
US9311533B2 (en) Device and method for detecting the presence of a logo in a picture
EP3309705A1 (en) Qr code feature detection method and system
CN102750540A (en) Morphological filtering enhancement-based maximally stable extremal region (MSER) video text detection method
CN108009522B (en) Road detection method, device and terminal
CN108235115B (en) Method and terminal for positioning human voice area in song video
CN106650729B (en) A kind of characters on license plate cutting method based on projection
EP2813973A1 (en) Method and system for processing video image
CN106203397A (en) Differentiate and localization method based on the form of tabular analysis technology in image
CN112329641A (en) Table identification method, device and equipment and readable storage medium
CN112446262A (en) Text analysis method, text analysis device, text analysis terminal and computer-readable storage medium
CN115240197A (en) Image quality evaluation method, image quality evaluation device, electronic apparatus, scanning pen, and storage medium
US8897538B1 (en) Document image capturing and processing
CN105069893A (en) Method and apparatus for checking bank note
CN112016566B (en) Segmentation method for handwritten Chinese characters at financial bill upper-case money amount
CN113569859B (en) Image processing method and device, electronic equipment and storage medium
CN101799922A (en) Method and device for detecting strokes of characters, method and device for locating lines of characters, and method and device for judging repeat of subtitles
CN112016565B (en) Segmentation method for fuzzy numbers at account number of financial bill
US11688173B2 (en) Road shape determination method
CN110059695B (en) Character segmentation method based on vertical projection and terminal
CN105956509A (en) Method and device for one-dimensional bar code detection based on clustering algorithm

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant