← Back to team overview

sikuli-driver team mailing list archive

[Question #238824]: text reco

 

New question #238824 on Sikuli:
https://answers.launchpad.net/sikuli/+question/238824

Hi, I need to find if a text captured contains capital letter , number, " _ " char.

r1= capture()#text captured is Hello_1
text1 = TextRecognizer.getInstance().recognize(ImageIO.read(File(r1)))
print text1
validcount=0
invalidcount=0
if exists( capital letter or" _ "or number)  
         validcount++
elsif exists(small letter)    
         invalidcount++
Expected o/p: validcount=3 and invalidcount=4

Can you help in coding this

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.