CN101571922A - Character recognition tool for mobile terminal automation testing and method thereof - Google Patents

Character recognition tool for mobile terminal automation testing and method thereof Download PDF

Info

Publication number
CN101571922A
CN101571922A CNA2008100941211A CN200810094121A CN101571922A CN 101571922 A CN101571922 A CN 101571922A CN A2008100941211 A CNA2008100941211 A CN A2008100941211A CN 200810094121 A CN200810094121 A CN 200810094121A CN 101571922 A CN101571922 A CN 101571922A
Authority
CN
China
Prior art keywords
literal
image
picture
process parameter
character recognition
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
CNA2008100941211A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNA2008100941211A priority Critical patent/CN101571922A/en
Publication of CN101571922A publication Critical patent/CN101571922A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a character recognition tool for mobile terminal automation testing and a method thereof. The tool comprises an OCR engine module, an OCR programmatic interface and an image processing module, wherein the OCR engine module is used for recognizing the characters in an image processed by the image processing module; the image processing module is used for setting image processing parameters and processing the images needing character recognition according to the set image processing parameters; and the OCR programmatic interface is used for recognizing the characters in the image processed by the image processing module, outputting the characters in the image and prompting users whether to save the currently set image processing parameters. The simplified character recognition tool and the method thereof are based on the OCR engine provided by the Microsoft Corporation and assisted by simple image pretreatment operation, basically satisfy the character recognition rate for the image verification operation of the mobile terminal automation testing and are achieved easily.

Description

A kind of character recognition tool and method thereof that is used for mobile terminal automation testing
Technical field
The present invention relates to a kind of character recognition tool that is used for portable terminal, more particularly, relate to a kind of character recognition tool and method thereof that is used for mobile terminal automation testing.
Background technology
In portable terminal (mobile phone) automatic test important step is arranged---the image authentication operation, in fact it is exactly the literal of discerning in the picture of mobile telephone, whether the operating result of verifying current automatic test is correct, thereby replace the arbitration functions of human eye to realize test automation, the technology of mainly using is a character recognition technology.
Character recognition technology also claims OCR (Optical Character Recognition) technology, is used for the literal of recognition image, is widely used in printing industry, literary composition seal office service.Business level software for discerning characters in the market, such as Shenzhen Chinese king, Qing Hua Ziguang and minister No. seven etc. are mainly used in the literal identification in the image that printing word scanning obtains.But the picture of handling in mobile phone automatized test is not the plain text picture, and its feature is that data are little, mostly is colored, and discrimination is required to be higher than recognition speed.There is a good automated test tool TestQuery that a kind of character recognition tool (ITR is provided at present, Intelligent Text Recognition), but because use underaction in its integrated and whole test environment, and cost an arm and a leg and to popularize use.So we press for a kind of simple and practical character recognition tool of suitable mobile phone screen picture.
Summary of the invention
Technical matters solved by the invention is to provide a kind of character recognition tool and method thereof that is used for mobile terminal automation testing, does not have a kind of problem that can realize simply and be used for the character recognition tool of mobile terminal automation testing in the prior art to solve.
In order to address the above problem, the invention provides a kind of character recognition tool that is used for mobile terminal automation testing, it comprises: character recognition technology OCR engine modules, OCR DLL (dynamic link library), image processing module, wherein,
Described OCR engine modules is used for the image Chinese words after the described image processing module processing is discerned;
Described image processing module is used to be provided with the Flame Image Process parameter, and the picture that needs is carried out literal identification is handled according to the described Flame Image Process parameter that is provided with;
Described OCR DLL (dynamic link library) is used to utilize the image Chinese words after described OCR engine modules is handled described image processing module to discern the literal in the output image, and the Flame Image Process parameter of pointing out the user whether to preserve Set For Current.
Character recognition tool of the present invention, wherein, described image processing module is used to be provided with the Flame Image Process parameter, further comprises different sampling types being set and the sampling ratio is amplified downscaled images, and different foreground and background colour filtering noise are set.
Wherein, the picture that described image processing module is handled needs is handled according to the described Flame Image Process parameter that is provided with, and comprises that further the picture that described image processing module is handled needs becomes artwork master to picture according to the described Flame Image Process parameter that is provided with.
Wherein, the literal in the described OCR DLL (dynamic link library) output image further comprises the literal in the output coloured image, the color and the positional information of literal in picture of literal.
In order to address the above problem, the present invention also provides a kind of character recognition method that is used for mobile terminal automation testing, it is characterized in that, may further comprise the steps:
Selection need be carried out the picture of literal identification;
The Flame Image Process parameter is set, and the picture that needs is carried out literal identification is handled according to the described Flame Image Process parameter that is provided with;
Image Chinese words after utilizing OCR to described processing is discerned, the literal in the output image, and the Flame Image Process parameter of pointing out the user whether to preserve Set For Current.
Method of the present invention, wherein, the described Flame Image Process parameter that is provided with comprises different sampling types being set and the sampling ratio is amplified downscaled images, and different foreground and background colour filtering noise are set.
Wherein, the described picture that needs is carried out literal identification is handled according to the described Flame Image Process parameter that is provided with, and comprises that further the picture that described image processing module is handled needs becomes artwork master to picture according to the described Flame Image Process parameter that is provided with.
Wherein, the literal in the described output image further comprises the literal in the output coloured image, the color and the positional information of literal in picture of literal.
Compared with prior art, simplification character recognition tool provided by the invention and method thereof, the OCR engine that provides based on Microsoft, be aided with simple image pretreatment operation, substantially satisfied the required required literal discrimination of image authentication operation of mobile terminal automation testing, and realized simple.
Description of drawings
Fig. 1 is the operating process synoptic diagram of character recognition method of the present invention;
Fig. 2 is the application process synoptic diagram of the method for the invention in mobile terminal automation testing.
Embodiment
The present invention provides a kind of character recognition tool and method thereof that is used for mobile terminal automation testing here, does not have a kind of problem that can realize simply and be used for the character recognition tool of mobile terminal automation testing in the prior art to solve.Below embodiment is described in detail, but not as a limitation of the invention.
The described character recognition tool of the embodiment of the invention is made up of 3 modules, comprising: character recognition technology (OCR) engine modules, OCR DLL (dynamic link library), image processing module, wherein,
The OCR engine modules is used for the image Chinese words after the image processing module processing is discerned; Wherein the OCR engine provides the function of ground literal identification, itself has very hi-tech, the OCR engine that we can select Microsoft to provide, and it is a disclosed DLL (dynamic link library).
Image processing module is used to be provided with the Flame Image Process parameter, and the picture that needs is carried out literal identification is handled according to the Flame Image Process parameter that is provided with; Image processing module can remedy the OCR of Microsoft engine identification colour picture effect defect of bad.Consider the single characteristics of the regular color of picture of mobile telephone Chinese words, we can the set handling parameter become simple artwork master to picture in image processing module, improved OCR literal discrimination, also other parameter can be set, as long as satisfy the identification demand.Here the Flame Image Process parameter of She Zhiing also can be the parameter of acquiescence, also can be the parameter of obtaining by behind the character recognition tool test recognition effect.
The OCR DLL (dynamic link library) is used to utilize the image Chinese words after the OCR engine modules is handled image processing module to discern the literal in the output image, and the Flame Image Process parameter of pointing out the user whether to preserve Set For Current.This DLL (dynamic link library) can be exported the literal in the coloured image, and the color of literal and the literal positional information in picture satisfies the demand of automatic test.
Be described in further detail in the concrete enforcement to character recognition method technical scheme of the present invention below, as shown in Figure 1, the technical program may further comprise the steps:
Step 101: input handset screen shots or other pictures (being the picture that selection need be carried out literal identification here).
Step 102: change the Flame Image Process parameter, different sampling types and sampling ratio can be set amplify downscaled images, (parameter in the image processing module can constantly expand according to actual needs here) such as different foreground and background colour filtering noises is set; And the picture that needs is carried out literal identification is handled according to the Flame Image Process parameter that is provided with;
Step 103: the Flame Image Process parameter of input is in the OCR DLL (dynamic link library), and character recognition effect checked in the literal in the output image.
Step 104: and point out the user, if satisfied, can preserve the current images processing parameter in document to recognition effect.
As shown in Figure 2, the concrete steps that are applied in the mobile phone automatized testing process of the concrete described character recognition method of the embodiment of the invention are as follows:
Step 201: during the operation automatic test script, the checkpoint (input expected effect value) of execution result is set.
Step 202: screen shots or other pictures of intercepting mobile phone.
Step 203: input handset picture and Flame Image Process parameter arrive in the OCR DLL (dynamic link library), the output character recognition result.
Step 204: the result of output and expected result comparison, verification operation is correctness as a result.
Step 205: image authentication correctly continues automatic test, and the image authentication mistake withdraws from testing procedure, and print error message.
Compared with prior art, simplification character recognition tool and method thereof that the present invention provides by described embodiment, the OCR engine that provides based on Microsoft, be aided with simple image pretreatment operation, substantially satisfied the required required literal discrimination of image authentication operation of mobile terminal automation testing, and realized simple.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (8)

1, a kind of character recognition tool that is used for mobile terminal automation testing is characterized in that, comprising: character recognition technology OCR engine modules, OCR DLL (dynamic link library), image processing module, wherein,
Described OCR engine modules is used for the image Chinese words after the described image processing module processing is discerned;
Described image processing module is used to be provided with the Flame Image Process parameter, and the picture that needs is carried out literal identification is handled according to the described Flame Image Process parameter that is provided with;
Described OCR DLL (dynamic link library) is used to utilize the image Chinese words after described OCR engine modules is handled described image processing module to discern the literal in the output image, and the Flame Image Process parameter of pointing out the user whether to preserve Set For Current.
2, character recognition tool as claimed in claim 1, it is characterized in that described image processing module is used to be provided with the Flame Image Process parameter, further comprise different sampling types being set and the sampling ratio is amplified downscaled images, different foreground and background colour filtering noise are set.
3, character recognition tool as claimed in claim 1, it is characterized in that, the picture that described image processing module is handled needs is handled according to the described Flame Image Process parameter that is provided with, and comprises that further the picture that described image processing module is handled needs becomes artwork master to picture according to the described Flame Image Process parameter that is provided with.
4, character recognition tool as claimed in claim 1 is characterized in that, the literal in the described OCR DLL (dynamic link library) output image further comprises the literal in the output coloured image, the color and the positional information of literal in picture of literal.
5, a kind of character recognition method that is used for mobile terminal automation testing is characterized in that, may further comprise the steps:
Selection need be carried out the picture of literal identification;
The Flame Image Process parameter is set, and the picture that needs is carried out literal identification is handled according to the described Flame Image Process parameter that is provided with;
Image Chinese words after utilizing OCR to described processing is discerned, the literal in the output image, and the Flame Image Process parameter of pointing out the user whether to preserve Set For Current.
6, method as claimed in claim 5 is characterized in that, the described Flame Image Process parameter that is provided with comprises different sampling types being set and the sampling ratio is amplified downscaled images, and different foreground and background colour filtering noise are set.
7, method as claimed in claim 5, it is characterized in that, the described picture that needs is carried out literal identification is handled according to the described Flame Image Process parameter that is provided with, and comprises that further the picture that described image processing module is handled needs becomes artwork master to picture according to the described Flame Image Process parameter that is provided with.
8, method as claimed in claim 5 is characterized in that, the literal in the described output image further comprises the literal in the output coloured image, the color and the positional information of literal in picture of literal.
CNA2008100941211A 2008-05-04 2008-05-04 Character recognition tool for mobile terminal automation testing and method thereof Pending CN101571922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100941211A CN101571922A (en) 2008-05-04 2008-05-04 Character recognition tool for mobile terminal automation testing and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100941211A CN101571922A (en) 2008-05-04 2008-05-04 Character recognition tool for mobile terminal automation testing and method thereof

Publications (1)

Publication Number Publication Date
CN101571922A true CN101571922A (en) 2009-11-04

Family

ID=41231277

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100941211A Pending CN101571922A (en) 2008-05-04 2008-05-04 Character recognition tool for mobile terminal automation testing and method thereof

Country Status (1)

Country Link
CN (1) CN101571922A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012069662A1 (en) * 2010-11-26 2012-05-31 Silicon & Software Systems Ltd. Improved ocr for automated stb testing
CN103067736A (en) * 2012-12-20 2013-04-24 广州视源电子科技股份有限公司 Automatic test system based on character recognition
CN103942212A (en) * 2013-01-21 2014-07-23 腾讯科技(深圳)有限公司 User interface character detecting method and device
CN104978247A (en) * 2014-04-29 2015-10-14 腾讯科技(深圳)有限公司 Application test method, application test device and application test system
CN105068930A (en) * 2015-08-07 2015-11-18 天津市康凯特软件科技有限公司 Intelligent analysis method and device for test generation data of mobile terminal
CN107203763A (en) * 2016-03-18 2017-09-26 北大方正集团有限公司 Character recognition method and device
CN108509342A (en) * 2018-04-04 2018-09-07 成都中云天下科技有限公司 A kind of precisely quick App automated testing methods
CN108549604A (en) * 2018-04-11 2018-09-18 上海达梦数据库有限公司 A kind of test script generation method, device, terminal device and storage medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9942543B2 (en) 2010-11-26 2018-04-10 Accenture Global Solutions Limited System and method for improved optical character recognition for automated set-top box testing
US9516304B2 (en) 2010-11-26 2016-12-06 Accenture Global Solutions Limited System and method for improved optical character recognition for automated set-top box testing
WO2012069662A1 (en) * 2010-11-26 2012-05-31 Silicon & Software Systems Ltd. Improved ocr for automated stb testing
CN103067736A (en) * 2012-12-20 2013-04-24 广州视源电子科技股份有限公司 Automatic test system based on character recognition
CN103067736B (en) * 2012-12-20 2015-04-22 广州视源电子科技股份有限公司 Automatic test system based on character recognition
CN103942212A (en) * 2013-01-21 2014-07-23 腾讯科技(深圳)有限公司 User interface character detecting method and device
CN103942212B (en) * 2013-01-21 2018-01-09 腾讯科技(深圳)有限公司 The character detecting method and device of a kind of user interface
CN104978247A (en) * 2014-04-29 2015-10-14 腾讯科技(深圳)有限公司 Application test method, application test device and application test system
CN105068930A (en) * 2015-08-07 2015-11-18 天津市康凯特软件科技有限公司 Intelligent analysis method and device for test generation data of mobile terminal
CN107203763A (en) * 2016-03-18 2017-09-26 北大方正集团有限公司 Character recognition method and device
CN107203763B (en) * 2016-03-18 2020-03-06 北大方正集团有限公司 Character recognition method and device
CN108509342A (en) * 2018-04-04 2018-09-07 成都中云天下科技有限公司 A kind of precisely quick App automated testing methods
CN108549604A (en) * 2018-04-11 2018-09-18 上海达梦数据库有限公司 A kind of test script generation method, device, terminal device and storage medium

Similar Documents

Publication Publication Date Title
CN101571922A (en) Character recognition tool for mobile terminal automation testing and method thereof
CN106681611A (en) Method and device for QR code scanning
US20140056475A1 (en) Apparatus and method for recognizing a character in terminal equipment
CN102541728A (en) Method for expanding identifiable control of automatic test tool
CN101976271A (en) Method for automatically extracting website and opening web page
CN103365988A (en) Method and device for loud reading pictures and characters of mobile terminal and mobile terminal
CN101976265A (en) Method for automatically judging telephone number and adding contact
TWI470549B (en) A method of using an image recognition guide to install an application, and an electronic device
US8100339B2 (en) Preamble data generating method and related apparatus for quick response code
CN103873918A (en) Picture processing method, device and terminal
CN101339617A (en) Mobile phones photographing and translation device
CN104461667A (en) Root method and device for intelligent terminal
CN108648189B (en) Image blur detection method and device, computing equipment and readable storage medium
CN111507122A (en) Graphic code identification method and device, storage medium and terminal
CN103150510A (en) Method and device for processing malicious behaviors of software
CN111371793A (en) Communication method and communication system
CN103731544A (en) Display method and device for intelligent terminal interface and intelligent terminal
CN101996320B (en) Method for automatically extracting instant messaging accounts and executing corresponding operations
CN102314493A (en) Method and terminal for displaying file and/or file folder
CN101009747A (en) The method for accurate digit extraction based on multiple OCR scheme combination verification
CN101980156A (en) Method for automatically extracting email address and creating new email
CN103020528A (en) Display method and display device for malicious acts of applications
CN104699607A (en) Automation testing method and system for mobile terminal
JP5862623B2 (en) Image processing apparatus, image processing method, and program
CN103092823A (en) Method and device for text operation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20091104