mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-03 11:29:28 -05:00
17 lines
426 B
Python
17 lines
426 B
Python
from .parsers import RasterisedDocumentParser
|
|
|
|
|
|
def tesseract_consumer_declaration(sender, **kwargs):
|
|
return {
|
|
"parser": RasterisedDocumentParser,
|
|
"weight": 0,
|
|
"mime_types": {
|
|
"application/pdf": ".pdf",
|
|
"image/jpeg": ".jpg",
|
|
"image/png": ".png",
|
|
"image/tiff": ".tif",
|
|
"image/gif": ".gif",
|
|
"image/bmp": ".bmp",
|
|
}
|
|
}
|