Read Hindi from rotated image

ocr
studio

#1

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


#2

Hi @jamnanin,

In If condition you are using some variable what is that? and which data type?

Regards,
Arivu


#3

the variable is “op” which is of boolean type and is the output of OCR text exists.


#4

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


#5

oh yes. thanks.