I am trying to read the word “आम” and use that as a trigger to say that its an aadhar card. But some images are rotated so the OCR cannot read the text so i am using a do while loop to rotate it till it reads the text “आम” but the loop only works once and stops. What am I doing wrong
Hi @jamnanin,
In If condition you are using some variable what is that? and which data type?
Regards,
Arivu
the variable is “op” which is of boolean type and is the output of OCR text exists.
HI @jamnanin,
OCR Text Exists returns the False value so it went out side of the loop.
you are checking in do while condition if it is true only it will continue else break the loop.
Regards,
Arivu
1 Like
oh yes. thanks.