diff options
| author | Ján Jančár | 2022-07-09 12:59:45 +0200 |
|---|---|---|
| committer | GitHub | 2022-07-09 12:59:45 +0200 |
| commit | 3d17e0f3bebab559db7bfda6fc1288cdca1aee34 (patch) | |
| tree | 71d5363f15f9542c3794a74612ad73a8eb1fb0cc /cc_cli.py | |
| parent | 0c3a583f3cbf34adad41e6a93e4b184efb765ad7 (diff) | |
| parent | 4b3692cb14282ef6eca1735b78062d2d5f0a5684 (diff) | |
| download | sec-certs-3d17e0f3bebab559db7bfda6fc1288cdca1aee34.tar.gz sec-certs-3d17e0f3bebab559db7bfda6fc1288cdca1aee34.tar.zst sec-certs-3d17e0f3bebab559db7bfda6fc1288cdca1aee34.zip | |
Merge pull request #244 from crocs-muni/feat/ocr
Add OCR
Diffstat (limited to 'cc_cli.py')
| -rwxr-xr-x | cc_cli.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -9,7 +9,7 @@ import click from sec_certs.config.configuration import config from sec_certs.dataset import CCDataset -from sec_certs.utils.helpers import warn_if_missing_poppler +from sec_certs.utils.helpers import warn_if_missing_poppler, warn_if_missing_tesseract logger = logging.getLogger(__name__) @@ -87,7 +87,7 @@ def main( if inputpath and "build" not in actions_set: dset: CCDataset = CCDataset.from_json(Path(inputpath)) - if output: + if output and dset.root_dir != output: print( "Warning: you provided both input and output paths. The dataset from input path will get copied to output path." ) @@ -128,6 +128,7 @@ def main( ) sys.exit(1) warn_if_missing_poppler() + warn_if_missing_tesseract() dset.convert_all_pdfs() if "analyze" in actions_set: |
