fix CLI call

pull/33/head
Konstantin Baierer 4 years ago
parent 9db6edf51e
commit 2bc34891a5

@ -117,20 +117,19 @@ def main(
print("Error: You used -ep to enable plotting but set none of -sl, -sd, -sa or -si") print("Error: You used -ep to enable plotting but set none of -sl, -sd, -sa or -si")
sys.exit(1) sys.exit(1)
eynollah = Eynollah( eynollah = Eynollah(
image, image_filename=image,
None, dir_out=out,
out, dir_models=model,
model, dir_of_cropped_images=save_images,
save_images, dir_of_layout=save_layout,
save_layout, dir_of_deskewed=save_deskewed,
save_deskewed, dir_of_all=save_all,
save_all, enable_plotting=enable_plotting,
enable_plotting, allow_enhancement=allow_enhancement,
allow_enhancement, curved_line=curved_line,
curved_line, full_layout=full_layout,
full_layout, allow_scaling=allow_scaling,
allow_scaling, headers_off=headers_off,
headers_off,
) )
pcgts = eynollah.run() pcgts = eynollah.run()
eynollah.writer.write_pagexml(pcgts) eynollah.writer.write_pagexml(pcgts)

Loading…
Cancel
Save