Commit c2e48063 authored by Jerome Flesch's avatar Jerome Flesch

Merge pull request #26 from PauloMigAlmeida/cuneiform_develop

Added custom cuneiform parameters if needed
parents 085ebdfe 5eb183aa
......@@ -239,8 +239,17 @@ class TextBuilder(object):
tesseract_configs = []
cuneiform_args = ["-f", "text"]
def __init__(self, tesseract_layout=3):
def __init__(self, tesseract_layout=3, cuneiform_dotmatrix=False,
cuneiform_fax=False, cuneiform_singlecolumn=False):
self.tesseract_configs = ["-psm", str(tesseract_layout)]
# Add custom cuneiform parameters if needed
if cuneiform_dotmatrix:
if cuneiform_fax:
if cuneiform_singlecolumn:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment