mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-06-08 19:59:56 +02:00
extracting images only now works for a single image input
This commit is contained in:
parent
327b446a16
commit
74a0699f6b
1 changed files with 4 additions and 3 deletions
|
@ -3013,10 +3013,11 @@ class Eynollah:
|
||||||
|
|
||||||
if self.plotter:
|
if self.plotter:
|
||||||
self.plotter.write_images_into_directory(polygons_of_images, image_page)
|
self.plotter.write_images_into_directory(polygons_of_images, image_page)
|
||||||
#plt.imshow(text_regions_p_1)
|
|
||||||
#plt.show()
|
|
||||||
|
|
||||||
|
if self.dir_in:
|
||||||
self.writer.write_pagexml(pcgts)
|
self.writer.write_pagexml(pcgts)
|
||||||
|
else:
|
||||||
|
return pcgts
|
||||||
|
|
||||||
else:
|
else:
|
||||||
img_res, is_image_enhanced, num_col_classifier, num_column_is_classified = self.run_enhancement(self.light_version)
|
img_res, is_image_enhanced, num_col_classifier, num_column_is_classified = self.run_enhancement(self.light_version)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue