Folder monitoring: OCR runs in a loop

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-Tools.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Culfin
User
Posts: 2
Joined: Tue Apr 04, 2023 10:36 am

Folder monitoring: OCR runs in a loop

Post by Culfin »

I want to monitor a specific folder for incoming PDF's.
PDF Tools should OCR the files, add "_OCR" to the filename.
Then the original files should be moved to another folder and the OCR files should stay in the original folder.

Everything works well, but PDF Tools runs this process in an infinite loop, which means that the same file gets OCR processed again and again. (so we end up with filename_OCR_OCR_OCR_OCR ...)

Any ideas how to solve this issue?

screenshot.png
2t.png
You do not have the required permissions to view the files attached to this post.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Folder monitoring: OCR runs in a loop

Post by Tracker Supp-Stefan »

Hello Culfin,

Move both the already processed files and the results to different folders should be the easiest solution.
You can e.g. create subfolders of the monitored one - and tell PDF Tools to NOT check subfolders.
So your _OCR-ed files will still be in relatively the same place, and won't be infinitely processed.

Kind regards,
Stefan
User avatar
DenisO
Site Admin
Posts: 104
Joined: Fri Jun 09, 2017 5:40 pm

Re: Folder monitoring: OCR runs in a loop

Post by DenisO »

Hello Culfin,
we will fix the issue. meanwhile you can use the workaround proposed by Stefan.
sorry for the inconvenience
Denis Oleksenko
Software Developer
Tracker Software Products (Canada) LTD
Culfin
User
Posts: 2
Joined: Tue Apr 04, 2023 10:36 am

Re: Folder monitoring: OCR runs in a loop

Post by Culfin »

Hey DenisO, thanks for fixing this issue.
can you please tell me when this will happen?
Then I may wait and avoid the workaround...
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Folder monitoring: OCR runs in a loop

Post by Tracker Supp-Stefan »

Hello Culfin,

The fix can only be introduced in a new build - so it might be several weeks before the new version is released. As such - I would still recommend you to try the workaround for now, and you can always quickly edit your custom tool to adjust the save locations once the fix is available.

Kind regards,
Stefan
User avatar
DenisO
Site Admin
Posts: 104
Joined: Fri Jun 09, 2017 5:40 pm

Re: Folder monitoring: OCR runs in a loop

Post by DenisO »

Hello Culfin,

good news :) the fix will in the upcoming release maybe in couple of days.
Best regards,
Denis Oleksenko
Software Developer
Tracker Software Products (Canada) LTD
User avatar
DenisO
Site Admin
Posts: 104
Joined: Fri Jun 09, 2017 5:40 pm

Re: Folder monitoring: OCR runs in a loop

Post by DenisO »

Hi Culfin,

new version of PDF Tools is available. Please try it, monitors should work properly now :)
Best Regards,
Denis Oleksenko
Software Developer
Tracker Software Products (Canada) LTD
User avatar
David.P
User
Posts: 1521
Joined: Thu Feb 28, 2008 8:16 pm

Re: Folder monitoring: OCR runs in a loop

Post by David.P »

Hello all,

as a follow-up question to this discussion, can PDF-Tools Folder Monitor be set up such that (while the Folder Monitor is running) only newly added PDF files are detected and processed?

In other words, files that already exist in the watched folder should not be processed when Folder Monitor is started, only files that are added subsequently.

Is this possible?
David.P
PDF-XChange Pro
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Folder monitoring: OCR runs in a loop

Post by Tracker Supp-Stefan »

Hello David.P,

I could not find a way to do that, however if you are setting up a folder monitoring - it might be better to also set Tools to e.g. move files it has processed to another location.
So you then can have a folder that is monitored, and another one for the already processed files.
image.png
Kind regards,
Stefan
You do not have the required permissions to view the files attached to this post.
User avatar
David.P
User
Posts: 1521
Joined: Thu Feb 28, 2008 8:16 pm

Re: Folder monitoring: OCR runs in a loop

Post by David.P »

Yes thanks Stefan, I think that's also what it says over there in the instructions linked above.

What I had in mind was to specify my normal download folder as the watched folder (which of course contains all kinds of stuff), and then automatically OCR only those three dozen PDFs that I might download during a certain period, while Folder Monitor is active and running.

If this shouldn't work, I'll probably have to temporarily change my download folder and point the downloads to an otherwise empty watched folder.

Best regards
David
David.P
PDF-XChange Pro
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: Folder monitoring: OCR runs in a loop

Post by Tracker Supp-Stefan »

Hello David.P,

For the moment I do not think your desired workflow can be achieved, so it's best to just use another temporary empty folder as the watched one.

Kind regards,
Stefan
User avatar
David.P
User
Posts: 1521
Joined: Thu Feb 28, 2008 8:16 pm

Re: Folder monitoring: OCR runs in a loop

Post by David.P »

Thank you, Stefan.
Will do.
:)
David.P
PDF-XChange Pro
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17960
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Folder monitoring: OCR runs in a loop

Post by Tracker Supp-Stefan »

:)