README is updated

pull/48/head
vahid 3 years ago
parent c67e155431
commit b3b49272a5

@ -80,10 +80,18 @@ eynollah \
-o <directory to write output xml or enhanced image> \
-m <directory of models> \
-fl <if true, the tool will perform full layout analysis> \
-ae <if true, the tool will resize and enhance the image and produce the resulting image as output> \
-ae <if true, the tool will resize and enhance the image and produce the resulting image as output. The rescaled and enhanced image will be saved in output directory> \
-as <if true, the tool will check whether the document needs rescaling or not> \
-cl <if true, the tool will extract the contours of curved textlines instead of rectangle bounding boxes> \
-si <if a directory is given here, the tool will output image regions inside documents there>
-sd <if a directory is given, deskewed image will be saved there>
-sa <if a directory is given, all plots needed for documentation will be saved there>
-tab <if true, this tool will try to detect tables>
-ib <in general, eynollah uses RGB as input but if the input document is strongly dark, bright or for any other reason you can turn binarized input on. This option does not mean that you have to provide a binary image, otherwise this means that the tool itself will binarized the RGB input document>
-ho <if true, this tool would ignore headers role in reading order detection>
-sl <if a directory is given, plot of layout will be saved there>
-ep <if true, the tool will be enabled to save desired plot. This should be true alongside with -sl, -sd, -sa , -si or -ae options>
```
The tool does accept and works better on original images (RGB format) than binarized images.

@ -125,10 +125,10 @@ def main(
setOverrideLogLevel(log_level)
initLogging()
if not enable_plotting and (save_layout or save_deskewed or save_all or save_images or allow_enhancement):
print("Error: You used one of -sl, -sd, -sa or -si or -ae but did not enable plotting with -ep")
print("Error: You used one of -sl, -sd, -sa, -si or -ae but did not enable plotting with -ep")
sys.exit(1)
elif enable_plotting and not (save_layout or save_deskewed or save_all or save_images or allow_enhancement):
print("Error: You used -ep to enable plotting but set none of -sl, -sd, -sa or -si or -ae")
print("Error: You used -ep to enable plotting but set none of -sl, -sd, -sa, -si or -ae")
sys.exit(1)
eynollah = Eynollah(
image_filename=image,

Loading…
Cancel
Save