I'm trying to parse pdf files in tika. In some handwritten scanned documents, tika is parsing the file and returning garbage text that does not make sense. I'm using python tika wrapper from here. Is there some way to ignore pdfs that contain images. Tesseract OCR parser is turned off. It is not displayed in metadata after parsing the file.
How to ignore scanned image in tika
885 Views Asked by pramesh At
1
There are 1 best solutions below
Related Questions in PYTHON-3.X
- Update a text file with ( new words+ \n ) after the words is appended into a list
- Kivy - Create new widget and set its position and size
- TypeError: encoding or errors without a string argument
- How to print varible name in python
- PyQt, Python 3: Lambda slot assigning signal argument to a variable?
- How to write data to stdin of the first process in a Python shell pipeline?
- pygame.draw.circle, still draws a square
- Duplicate Frames Created When Calling a Function in a Tkinter Application
- Python TypeError: can only concatenate tuple (not "int") to tuple
- recursively editing member variable: All instances have same value
- missing 1 required positional argument: 'key'
- How do I fix this sorting error?
- Dictionary values missing
- Why does opening a file in two different encodings work as expected?
- Binary bit flip generator in python
Related Questions in APACHE-TIKA
- How to parse and index a big file in multi parts so it can consume less memory while reading a file in input-stream?
- Solr 5.1.0 - Apache TikaEntityProcessor Cannot Find My Files
- How to add new mime type to apache tika
- Adding to custom detector class to apache tika
- Tika text extraction not working on HDFS
- How to properly configure AutoDetectParser in Tika?
- How to parse octet-stream files using Apache Tika?
- Error Submitting PDF's using SolrJ and Solr 5.1.0
- how to extract content of '.msg' files generated by outlook?
- Parsing open graph tags with nutch (into ElasticSearch)
- OneNote support for Apache Tika parsers
- Tika unable to parse after detecting mime-type
- Apache Tika and Apache Solr integration through Java API
- Httpclient asp.net core curl equivalent
- Error indexing text from Apache Tika in Solr
Related Questions in TIKA-SERVER
- How to limit amount of extracted text with Tika server?
- Apche Tika: How to save console log to a file. Use log4j?
- Apache TIKA: org.apache.cxf.interceptor.Fault: XML_WRITE_EXC
- Apache TIKA: Tried to allocate an array of length 1835606, but 1000000 is the maximum for this record type
- Apache TIKA - MediaDataBox iso files
- org.apache.tika.utils.XMLReaderUtils acquireSAXParser WARNING: Contention waiting for a SAXParser. Consider increasing the XMLReaderUtils.POOL_SIZE
- Tika extra space between letters - is there any way to use setEnableAutoSpace via Web API?
- Is it possible to use FileSystemFetcher or S3Fetcher in tika-server in docker?
- How to set locale to tika server?
- Tika server cant parse text from encrypted doc
- Tika server expect no body for encrypted zip
- Apache Tika SQL3Lite parser
- Skip all not support textual extraction parsers in tika-server
- Is there a way to make tika-server.jar permanent if I clean "temp" later?
- How can I use Tika to parse PDF without having Java on my PC(In Python)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
to ignore the inline images you should use the flag "X-Tika-PDFextractInlineImages: false"
but to be honest setting the value to false has sense only for the "native pdf"
for the scanned documents this flag has to be set to true than only way to improve the process is to turn on the ocr and use the OcrStrategy: OCR_ONLY