Hi guys, new to the forum, firsts post, after looking at examples and trying a bunch of them I can’t seem to get my sequence to work, so I’m reaching out for help!
I want to loop through a folders contents (jpg for now later pds too)and use ocr to to get the text from the images and save it to .txt files, but I get a exception saying no files in the folder, but they are definitely there?
Tired for loops and for each loops, but no luck, can anyone perhaps provide a working example, I’ll be happy to share my activity flow when my power comes back on, we have issues in my country with electricity availability lol!
Directory.GetFiles(folderpath,“*.jpg”) should definitely give you the list of .jpg files in that folder, if you can share more details we can see what could be the reason for the error
Hello @Ray_Shadow ,
You can use For Each File in Folder activity and specify the Path of the Folder which contains all the Files, then you can use the OCR activities to Extract the data from the File.
Regards;)
Thanks I got it working, it was the second argument (Directory.GetFiles(folderpath,“.jpg”)) I was missing, this “.jpg”
There are also older examples here that no longer work or support UIPathDocumentOCR that also had me using OCR that is not to great, but all working now!