CN1632820A - Method for deciding background color according to area in optical character recognition of mobile terminal - Google Patents
Method for deciding background color according to area in optical character recognition of mobile terminal Download PDFInfo
- Publication number
- CN1632820A CN1632820A CN 200410103481 CN200410103481A CN1632820A CN 1632820 A CN1632820 A CN 1632820A CN 200410103481 CN200410103481 CN 200410103481 CN 200410103481 A CN200410103481 A CN 200410103481A CN 1632820 A CN1632820 A CN 1632820A
- Authority
- CN
- China
- Prior art keywords
- subregion
- background
- character recognition
- optical character
- portable terminal
- 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
Links
- 238000012015 optical character recognition Methods 0.000 title claims abstract description 45
- 238000000034 method Methods 0.000 title claims description 28
- 238000006243 chemical reaction Methods 0.000 claims description 13
- 238000005516 engineering process Methods 0.000 description 4
- 239000003086 colorant Substances 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
Landscapes
- Character Input (AREA)
Abstract
This invention provides a mobile terminal optical character recognition area-dividing of the background color, which comprises the following steps: to divide the character block with different background color in one area; to make the comparison computation between the single background and front characters in each sub-area divided; to intelligently divide the characters with different background color to do double computation and recognition.
Description
Technical field
The present invention relates to subregion in the optical character recognition of a kind of optical character recognition technology, particularly a kind of portable terminal and judge the method for background colour.
Technical background
At present in the optical character recognition technology of portable terminal, this step of contrast of judging the gray average of character to be identified and background often carries no weight, because in most cases, as newpapers and periodicals, books, in the optical character recognition of business card etc., the gray average of background often high (of light color), and the gray average of prospect character often low (color is dark).So often directly just supposing this point in the binaryzation process of present most of optical character recognition handles.Better slightly OCR recognition system can allow the user select the background color depth before identification or calculate the prospect character of general image automatically and the grey-scale contrast of background instructs binaryzation and identification, even like this, the shortcoming of existing technology is to allow the background color depth of user's appointment often be directed to whole image to be identified, and perhaps the automatic calculating of optical character recognition also is to calculate the prospect character of entire image and the grey-scale contrast of background.If for piece image background and the prospect character color contrast inconsistent situation of zones of different at whole sub-picture, this method is just invalid, also just causes the part character to discern.
In addition, the scene that portable terminal utilizes its camera to carry out optical character recognition not only comprises the identification to books, business card, also have literal on the billboard (as telephone number), literal is (as distance on the way mark board, location name etc.), the identification of the license number of vehicle license (China is the car plate of wrongly written or mispronounced character of the blue end commonly).This moment, often near the background gray average the character zone was less than prospect character gray average, and this is just in time opposite with the contrast that present most optical character recognition are applied to books newpapers and periodicals business card.Simultaneously because background such as vehicle license, billboard, way mark board and prospect character gray average contrast are ever-present in the inconsistent situation of zones of different of whole sub-picture, for example car plate is the wrongly written or mispronounced character of the blue end, but the information such as capitalization telephone number on the vehicle body but are white gravoply, with black engraved characters; Also have this situation to occur on the personalized business card: the name zone is the background color depth, and that the contact method zone is a background colour is shallow.So the prospect character of traditional calculating entire image and the grey-scale contrast method of background are skimble-skamble under this kind situation, have inevitably caused some character to discern.
Summary of the invention
The objective of the invention is: at the deficiencies in the prior art, provide a kind of method simple, applicable to different scenes, the method for background colour is judged in the subregion in the optical character recognition of the portable terminal that the optical character recognition accuracy is high.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is: the method for background colour is judged in the subregion in a kind of optical character recognition of portable terminal, comprising:
Step 1, lock zone to be identified;
Step 2, binary conversion treatment is first made in described zone to be identified;
Step 3, according to the described result of binary conversion treatment first, analyze to obtain the subregion that may comprise literal in the described zone to be identified;
Step 4, need carry out in the subregion of optical character recognition therein, add up the quantity of black and white pixel according to binary conversion treatment result first, thereby the background of judging this subregion are to be dark background color background or shallow background color background;
Step 5, according to the background color information of described background, carry out final binaryzation algorithm and recognizer in the subregion, thereby obtain the word content in this subregion;
Step 6, repeating step 4 and step 5 are until finishing the optical character recognition operation that all need carry out the subregion of optical character recognition.
Described step 2 can be in this zone to be identified, adopts the global threshold of image binaryzation method computed image binaryzation, thereby finishes binary conversion treatment process first.
Described step 3 can be to utilize the described result of binary conversion treatment first, makes level or vertical projection computing and printed page analysis algorithm, thereby determines several subregions that may comprise literal.
In the described step 4, can be with in this subregion, a side of the negligible amounts of monochrome pixels regards the prospect character as, and then working as the prospect character is black, and the background that shows this subregion is shallow background color background; When the prospect character be white, the background that shows this subregion is dark background color background.
Described step 1 can be when adopting portable terminal to show captured image, demonstrates the locking frame that can move and change its size on display screen, and the user locks zone to be identified by this locking frame of operation.
Can be after determining the subregion that may comprise literal in the described step 3, on the display screen of portable terminal, the form of each subregion on the entire image with the flicker frame shown, the user wherein need to select the subregion of optical character recognition by directionkeys on the portable terminal and acknowledgement key.
If the user still need not to select the subregion of optical character recognition over time, then can give tacit consent to all subregions that may comprise literal all needs to carry out optical character recognition.
Judging background when step 4 is after dark background color background still is shallow background color background, can show judged result on the display screen of portable terminal, verifies its result by the user, and after the affirmation that obtains the user, execution in step 5 again.
If the user does not still verify the result over time, can think that then the user thinks that current judged result is correct, and enter described step 5 with this judged result
In technique scheme, the present invention is cut apart the character block of the background color in various degree in the zone earlier, each subregion after cutting apart being carried out the contrast of independent background and prospect character calculates, intelligence solution the character of different background colors is treated with a certain discrimination, carry out binaryzation and identification, therefore method provided by the present invention goes for the optical character recognition to different scenes, different background look, and has optical character recognition accuracy height, intelligent characteristics such as strong.
Embodiment
Below in conjunction with specific embodiment the present invention is described in further detail.
The method of background colour is judged in the subregion in the optical character recognition of a kind of portable terminal that present embodiment provides, and its step is as follows:
Step 1, utilize the filming apparatus (as camera) on the portable terminal that the image that need carry out optical character recognition is taken, and when showing captured image, on display screen, demonstrate the locking frame that can move and change its size, the user locks zone to be identified by this locking frame of operation.Described locking frame can adopt the horizontal line that takes up mark only or rectangle frame etc.
Step 2, in this zone to be identified, adopt the global threshold of image binaryzation method computed image binaryzation such as maximum variance between clusters, thereby finish binary conversion treatment process first.
Step 3, utilize the described result of binary conversion treatment first, make level or vertical projection computing and printed page analysis algorithm (as the row partitioning algorithm etc.), thereby determine several subregions that may comprise literal.
Here, can on the display screen of portable terminal, show with the form that adds the frame that glimmers these several subregions that may comprise literal, and can make the user select which subregion to need identification by the directionkeys on the portable terminal, acknowledgement key, whether thereby it is correct to make the user can grasp this judged result of control, and avoid discerning unwanted content, avoid the time of meaningless increase recognizer, increase work efficiency.
If the user need not to select the subregion of optical character recognition over time, then giving tacit consent to all subregions that may comprise literal all needs to carry out optical character recognition.
Step 4, needs carry out in the subregion of optical character recognition therein, add up the quantity of black and white pixel according to binary conversion treatment result first, wherein a side of negligible amounts regards the prospect character as, and then working as the prospect character is black, and the background that shows this subregion is shallow background color background; When the prospect character be white, the background that shows this subregion is dark background color background.
The background of then judging this subregion thus is to be dark background color background or shallow background color background;
This step also can be in step 3 user need to select to carry out in the subregion of optical character recognition, thereby when the user selects, the background colour that promptly shows this subregion on the display screen of portable terminal is that dark background color still is the prompting of shallow background color, make the user confirm that on the one hand this subregion needs identification, affirmation system on the other hand judges whether the result of background of this subregion is correct.After the user confirmed, execution in step 5 again.If after waiting for a period of time, also do not receive the affirmation information of user's input, then default user is confirmed, enters step 5 automatically.
Step 5, according to the background color information of described background, carry out final binaryzation algorithm and recognizer in the subregion, thereby obtain the word content in this subregion;
Step 6, repeating step 4 and step 5 are until the optical character recognition of finishing all subregions.
In the present embodiment, the present invention is cut apart the character block of the background color in various degree in the zone earlier, each subregion after cutting apart being carried out the contrast of independent background and prospect character calculates, intelligence solution the character of different background colors is treated with a certain discrimination, carry out binaryzation and identification, and can be as traditional algorithm, instruct the binaryzation and the identification work of all different subregions according to the judgement of a global context, cause the part character to discern.
Claims (9)
1, the method for subregion judgement background colour in a kind of optical character recognition of portable terminal comprises:
Step 1, lock zone to be identified;
Step 2, binary conversion treatment is first made in described zone to be identified;
Step 3, according to the described result of binary conversion treatment first, analyze to obtain the subregion that may comprise literal in the described zone to be identified;
Step 4, need carry out in the subregion of optical character recognition therein, add up the quantity of black and white pixel according to binary conversion treatment result first, thereby the background of judging this subregion are to be dark background color background or shallow background color background;
Step 5, according to the background color information of described background, carry out final binaryzation algorithm and recognizer in the subregion, thereby obtain the word content in this subregion;
Step 6, repeating step 4 and step 5 are until finishing the optical character recognition operation that all need carry out the subregion of optical character recognition.
2, according to claim 1 in the optical character recognition of portable terminal the subregion judge the method for background colour, it is characterized in that: described step 2 is in this zone to be identified, adopt the global threshold of image binaryzation method computed image binaryzation, thereby finish binary conversion treatment process first.
3, according to claim 1 in the optical character recognition of portable terminal the subregion judge the method for background colour, it is characterized in that: described step 3 is to utilize the described result of binary conversion treatment first, make level or vertical projection computing and printed page analysis algorithm, thereby determine several subregions that may comprise literal.
4, judge the method for background colour as subregion in the optical character recognition of portable terminal as described in the claim 1,2 or 3, it is characterized in that: in the described step 4, in this subregion, one side of the negligible amounts of monochrome pixels regards the prospect character as, then working as the prospect character is black, and the background that shows this subregion is shallow background color background; When the prospect character be white, the background that shows this subregion is dark background color background.
5, judge the method for background colour as subregion in the optical character recognition of portable terminal as described in the claim 4, it is characterized in that: described step 1 is when adopting portable terminal to show captured image, on display screen, demonstrate the locking frame that can move and change its size, the user locks zone to be identified by this locking frame of operation.
6, judge the method for background colour as subregion in the optical character recognition of portable terminal as described in the claim 5, it is characterized in that: in the described step 3 after determining the subregion that may comprise literal, on the display screen of portable terminal, the form of each subregion on the entire image with the flicker frame shown, the user wherein need to select the subregion of optical character recognition by directionkeys on the portable terminal and acknowledgement key.
7, judge the method for background colour as subregion in the optical character recognition of portable terminal as described in the claim 6, it is characterized in that: if the user still need not to select the subregion of optical character recognition over time, then giving tacit consent to all subregions that may comprise literal all needs to carry out optical character recognition.
8, judge the method for background colour as subregion in the optical character recognition of portable terminal as described in the claim 7, it is characterized in that: judging background when step 4 is after dark background color background still is shallow background color background, on the display screen of portable terminal, show judged result, verify its result by the user, after the affirmation that obtains the user, execution in step 5 again.
9, judge the method for background colour as subregion in the optical character recognition of portable terminal as described in the claim 8, it is characterized in that: if the user does not still verify the result over time, think that then the user thinks that current judged result is correct, and enter described step 5 with this judged result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004101034815A CN1301490C (en) | 2004-12-30 | 2004-12-30 | Method for deciding background color according to area in optical character recognition of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004101034815A CN1301490C (en) | 2004-12-30 | 2004-12-30 | Method for deciding background color according to area in optical character recognition of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1632820A true CN1632820A (en) | 2005-06-29 |
CN1301490C CN1301490C (en) | 2007-02-21 |
Family
ID=34848181
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004101034815A Expired - Fee Related CN1301490C (en) | 2004-12-30 | 2004-12-30 | Method for deciding background color according to area in optical character recognition of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1301490C (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915437A (en) * | 2011-08-02 | 2013-02-06 | 腾讯科技(深圳)有限公司 | Text information identification method and system |
CN104182769A (en) * | 2014-09-17 | 2014-12-03 | 深圳市捷顺科技实业股份有限公司 | Number plate detection method and system |
CN107403176A (en) * | 2017-03-29 | 2017-11-28 | 北京粉笔未来科技有限公司 | The detection method and device of character background inverse in textual image |
CN116167687A (en) * | 2023-04-25 | 2023-05-26 | 成都运荔枝科技有限公司 | Intelligent scheduling method for cold chain system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4077919B2 (en) * | 1998-01-30 | 2008-04-23 | キヤノン株式会社 | Image processing method and apparatus and storage medium therefor |
JP2001297303A (en) * | 2000-02-09 | 2001-10-26 | Ricoh Co Ltd | Method and device for recognizing document image and computer readable recording medium |
CN1147807C (en) * | 2000-08-22 | 2004-04-28 | 英业达集团(上海)电子技术有限公司 | Automatic identifying method and system for name card |
JP2002236921A (en) * | 2001-02-07 | 2002-08-23 | Ricoh Co Ltd | Document image recognition method, document image recognition device and recording medium |
-
2004
- 2004-12-30 CN CNB2004101034815A patent/CN1301490C/en not_active Expired - Fee Related
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915437A (en) * | 2011-08-02 | 2013-02-06 | 腾讯科技(深圳)有限公司 | Text information identification method and system |
CN104182769A (en) * | 2014-09-17 | 2014-12-03 | 深圳市捷顺科技实业股份有限公司 | Number plate detection method and system |
CN107403176A (en) * | 2017-03-29 | 2017-11-28 | 北京粉笔未来科技有限公司 | The detection method and device of character background inverse in textual image |
CN107403176B (en) * | 2017-03-29 | 2020-02-28 | 北京猿力未来科技有限公司 | Method and device for detecting reverse color of text background in text picture |
CN116167687A (en) * | 2023-04-25 | 2023-05-26 | 成都运荔枝科技有限公司 | Intelligent scheduling method for cold chain system |
CN116167687B (en) * | 2023-04-25 | 2023-06-27 | 成都运荔枝科技有限公司 | Intelligent scheduling method for cold chain system |
Also Published As
Publication number | Publication date |
---|---|
CN1301490C (en) | 2007-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111009131B (en) | High-order video intelligence parking system based on image recognition | |
CN107862290B (en) | Lane line detection method and system | |
US8050456B2 (en) | Vehicle and road sign recognition device | |
CN105608455B (en) | A kind of license plate sloped correcting method and device | |
CN100341313C (en) | Method of determining color composition of an image | |
CN114143940B (en) | Tunnel illumination control method, device, equipment and storage medium | |
CN1801930A (en) | Dubious static object detecting method based on video content analysis | |
CN1589456A (en) | Method and system for improving car safety using image-enhancement | |
CN107085707A (en) | A kind of license plate locating method based on Traffic Surveillance Video | |
CN111881832A (en) | Lane target detection method, device, equipment and computer readable storage medium | |
CN1804858A (en) | Novel assistant positioning system for implementing OCR function on mobile terminals with camera | |
CN1272631C (en) | Moving image detecting method | |
CN106650728A (en) | Shadow license plate image binarization method | |
CN1301490C (en) | Method for deciding background color according to area in optical character recognition of mobile terminal | |
CN104662560A (en) | Method and system for processing video image | |
CN108229447B (en) | High beam light detection method based on video stream | |
CN111652033A (en) | Lane line detection method based on OpenCV | |
CN110348501A (en) | A kind of realization parking lot license plate Similarity Match Method | |
CN114158163A (en) | Intelligent ship lighting control method, device, equipment and storage medium | |
Kardkovács et al. | Real-time traffic sign recognition system | |
CN106951896A (en) | A kind of license plate image sloped correcting method | |
KR20080098850A (en) | Method for location estimation of vehicle number plate and the device for location estimation of vehicle number plate | |
Sulehria et al. | Mathematical morphology methodology for extraction of vehicle number plates | |
CN109858484B (en) | Multi-class transformation license plate correction method based on deflection evaluation | |
CN113298787B (en) | Plate edge sealing defect detection method, controller and computer readable storage medium |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070221 Termination date: 20111230 |