A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Merge branch 'dev' into feature-redo-ocr
shamoon186ae844bcf5
diff --cc src/documents/tasks.pyindex 1070471ba,a33dc4e29..ebdf5e22e--- a/src/documents/tasks.py+++ b/src/documents/tasks.py@@@ -1,18 -1,12 +1,18 @@@import loggingimport os+import shutil+import tempfile+from pathlib import Path+from typing import List # for type hinting. Can be removed, if only Python >3.8 is used+from typing import Type- import magicimport tqdmfrom asgiref.sync import async_to_syncfrom channels.layers import get_channel_layerfrom django.conf import settings+from django.core.exceptions import ObjectDoesNotExistfrom django.db.models.signals import post_save+ from documents import barcodesfrom documents import indexfrom documents import sanity_checkerfrom documents.classifier import DocumentClassifier@@@ -24,15 -18,7 +24,10 @@@ from documents.models import Documenfrom documents.models import DocumentTypefrom documents.models import StoragePathfrom documents.models import Tag+from documents.parsers import DocumentParser+from documents.parsers import get_parser_class_for_mime_type+from documents.parsers import ParseErrorfrom documents.sanity_checker import SanityCheckFailedException- from pdf2image import convert_from_path- from pikepdf import Pdf- from PIL import Image- from PIL import ImageSequence- from pyzbar import pyzbarfrom whoosh.writing import AsyncWriter