mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-25 12:05:58 +03:00
[GH-ISSUE #151] [Feature] - Templates for OCR (Zonal OCR) using KULL #115
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @swissbyte on GitHub (Oct 8, 2020).
Original GitHub issue: https://github.com/ciur/papermerge/issues/151
Originally assigned to: @ciur on GitHub.
Hi
I already saw your pinned post about automation. Looks great! I exactly need a solution which automatically sorts, and tags my PDFs accrding to their content.
Now i have a feature request:
Many of the expensive solutions offers Zonal OCR. They implemented something called OCR-Templates. This is nothing else than just a file which defines several boxes where OCR searches for Text. One possibility to select such zones is this project:
https://jsoma.github.io/kull
https://github.com/jsoma/kull
I have also recorded a short gif

Now the trick:
There are multiple zones defined
If we have the possibility to do RegEx or any other StrComp function on every zone itself, we would have an extremly powerfull detection engine.
AND:
If we have the possibility to use some of the content of these fields as metadata, we would have one of the most powerfull intelligent classification engine out there...
What do you think?
I have not looked through the code, but if possible, i would like to help to implement this feature.
Maybe this feature could be implemented together with Milestone 1.5.0 ?
Thank you very much.
@ciur commented on GitHub (Oct 8, 2020):
very interesting idea! thanks for the tip!
@swissbyte commented on GitHub (Oct 9, 2020):
But be carefull... It looks like, that KULL outputs wrong coordinates. At least y1 and y2 are switched...
I think the most efficient way would be to first OCR the document, overlay the text into the pdf and then search for text using pdfQuery... There is also a Project which can directly search using OCR. But i think this would be much more CPU-Heavy
@svenihoney commented on GitHub (Oct 16, 2020):
Maybe using ocrmypdf is an option here: Embeds the OCR result into the PDF and does document improvements on imports as well. Maybe #169 is relevant for this, too.
@damirabal commented on GitHub (Nov 17, 2020):
Zonal OCR would be a HUGE feature to implement to this great DMS.