R0Wi-DEV / workflow_ocr

This is a Nextcloud Workflow App which enables you to process files via OCR on serverside.
GNU Affero General Public License v3.0
79 stars 6 forks source link

the actions "rename" and "access" do not trigger the OCR scan #257

Open ferdiga opened 1 month ago

ferdiga commented 1 month ago

Describe the bug

Create and copy trigger the OCR Workflow process, rename and access do not trigger the OCR Workflow process

System

How to reproduce

Steps to reproduce the behavior:

  1. open or rename a pdf file without text layer
  2. wait (endless)
  3. OCR workflow is not triggered and OCR Tag is not set

Screenshots OCR Workflow config

20240723 115115 Flow - Administration settings - Nextcloud

File after renaming and copy, renamed file is not OCR scanned

20240723 115307 Files - Nextcloud

If applicable, add screenshots to help explain your problem.

Server log

Please paste relevant content of your nextcloud.log file here. It might make sense to first decrease the Loglevel. Also, since the OCR process runs asynchronously, run your cron.php before copying the logs here.

NC log - 
[workflow_ocr] Warning: Tesseract list languages succeeded with warning(s): [DS] Profile read from file (tesseract_opencl_profile_devices.dat).
[DS] Device[1] 0:(null) score is 0.670627
[DS] Selected Device[1]: "(null)" (Native), 
    GET /apps/workflow_ocr/ocrBackendInfo/installedLangs
    from xxx.xxx.xxx.xxx by gass at Jul 23, 2024, 11:38:50 AM

BTW it would be helpful to include the name of the processed file to be sure which file caused the message

Browser log

Paste your developer tools logs here. 

Additional context

Add any other context about the problem here.

R0Wi commented 1 month ago

Hi, in your log snippet I cannot see anything like STARTED -- Run .... This line should be printed if the OCR workflow gets kicked off and your loglevel is set to DEBUG (0). Could you please refer to this guide and repeat your steps once again? This would help us in seeing what's going on under the hood.

ferdiga commented 1 month ago
20240723 133626 Logging - Administration settings - Nextcloud

renaming a file - does this help