2021-02-04 13:17:24 +01:00
|
|
|
def get_parser(*args, **kwargs):
|
|
|
|
|
from .parsers import RasterisedDocumentParser
|
|
|
|
|
|
|
|
|
|
return RasterisedDocumentParser(*args, **kwargs)
|
2017-03-11 16:30:49 +00:00
|
|
|
|
|
|
|
|
|
2020-11-16 23:53:12 +01:00
|
|
|
def tesseract_consumer_declaration(sender, **kwargs):
|
|
|
|
|
return {
|
2021-02-04 13:17:24 +01:00
|
|
|
"parser": get_parser,
|
2020-11-16 23:53:12 +01:00
|
|
|
"weight": 0,
|
2020-11-30 00:40:04 +01:00
|
|
|
"mime_types": {
|
|
|
|
|
"application/pdf": ".pdf",
|
|
|
|
|
"image/jpeg": ".jpg",
|
2020-12-02 17:39:49 +01:00
|
|
|
"image/png": ".png",
|
|
|
|
|
"image/tiff": ".tif",
|
|
|
|
|
"image/gif": ".gif",
|
|
|
|
|
"image/bmp": ".bmp",
|
2022-02-27 15:26:41 +01:00
|
|
|
},
|
2020-11-16 23:53:12 +01:00
|
|
|
}
|