Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

omindex with tesseract filter for scanned PDFs #1481

Open
whotopia opened this issue Oct 10, 2023 · 0 comments
Open

omindex with tesseract filter for scanned PDFs #1481

whotopia opened this issue Oct 10, 2023 · 0 comments

Comments

@whotopia
Copy link

Hi, this may be more of an Xampian/Omega/tesseract question, but I was wondering, noting the following section in xapian_indexer.rb:

# omindex binary path
# To index "non-text" files, use omindex filters
# e.g.: tesseract OCR engine as a filter for PNG files
OMINDEX = '/usr/bin/omindex'
# $omindex += " --filter=image/png:'tesseract -l chi_sim+chi_tra %f -'"
# $omindex += " --filter=image/jpeg:'tesseract -l chi_sim+chi_tra %f -'"

I was wondering, if I had PDF files being uploaded to the DMS that were of mixed types .. i.e. some are 'proper' PDFs and others are PDFs containing scanned content with no OCR content in them. How would it be possible to set things up so that tesseract was called to OCR only when needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants