Dear Forum,
I’m trying to use python code in UiPath,
I want to use the function call ddddocr,
and bellow is my .py file:
def OCRfumction(filePath):
import ddddocr
ocr = ddddocr.DdddOcr()
with open(filePath, ‘rb’) as f:
img_bytes = f.read()
res = ocr.classification(img_bytes)
return res
I always stock at Get Python Object: Error converting Python object
please help!







