Introduce plugins/filters

This commit is contained in:
James R. Barlow
2019-05-27 16:55:04 -07:00
parent 5c4c32ab3c
commit 7566d4b768
6 changed files with 193 additions and 5 deletions
+4 -2
View File
@@ -18,6 +18,7 @@
import argparse
from . import PROGRAM_NAME, VERSION
from ._filters import check_filter_loadable
def numeric(basetype, min_=None, max_=None):
@@ -466,9 +467,10 @@ advanced.add_argument(
help="Specify the location of the Tesseract user patterns file.",
)
filters = parser.add_argument_group("Filters", argparse.SUPPRESS)
filters.add_argument('--filter-ocr-image', help=argparse.SUPPRESS)
filters.add_argument(
'--filter-ocr-image', help=argparse.SUPPRESS, type=check_filter_loadable
)
debugging = parser.add_argument_group(
"Debugging", "Arguments to help with troubleshooting and debugging"