Use backend-specific suffixes for output filenames.
This commit is contained in:
parent
721de38920
commit
4548f92e73
2 changed files with 4 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class OCREngine(QThread):
|
|||
self.pageChanged.emit(page)
|
||||
page_text = self.recognize_page(page)
|
||||
print(page_text)
|
||||
with open(filename + '.txt', 'w') as page_text_file:
|
||||
with open(filename + self.output_format.suffix, 'w') as page_text_file:
|
||||
page_text_file.write(page_text)
|
||||
|
||||
def recognize_page(self, page):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue