I have PDF files that I read in Text and OCR. Then I count the words of both in different variables. This goes fine. Then I want to compare the two counts in an IF. If the text is larger dan the OCR than write the file to text.txt else write file to OCR.txt.
This is what doesn’t work: condition in the IF sExtractedOCR.Split(" “c).Count<sExtractedText.Split(” "c).Count.
All the texts are written to text.txt file while I have one file that should write to OCR.txt.
I hope someone can help me with this?
Kind regards
The counts of the different PDF’s are in the print screen above. Each document has 3 lines in the output 2 with counts for Text and OCR and the third the choice to use text or OCR. The decision which one of the to to use.
I have 1 document that needs to be to OCR. That has Tekst: 91 and OCR 446. All the other documents should be “Use Text” instead of OCR. As you can see all of the outcome is to OCR. That is not right.