consultantslmka.blogg.se

Ffmpeg crop invalid too big or non positive size for width
Ffmpeg crop invalid too big or non positive size for width












ffmpeg crop invalid too big or non positive size for width

Hocr_tree = hocr_make_tree_and_return(book_code) If options.has_key("hocrout") and options: Otsu_thresh = imageIn.otsu_find_threshold() Print "Unexpected error:", sys.exc_info() Jp2Image = mh.imread(image_file, as_grey=True) Internal_image_file_path = os.path.join(book_code, image_file_name) Print "Now working with image: " + image_file_name ImageBase, imageEx = os.path.splitext(image_file_name) # hocr_tree = hocr_make_tree_and_return(book_code)īook_code = os.path.split(image_split_path)#directory name # if options.has_key("hocrout") and options:

ffmpeg crop invalid too big or non positive size for width

If options.has_key("sql") and options:īook_id = sql_make_book_and_return_id(book_code) Image_split_path = os.path.split(image_path)īook_code = os.path.split(image_split_path) Image_path = os.path.abspath(image_files) G_appcrit = GreekOCR(splits=options, feats=features) G = GreekOCR(splits=options,feats=features) Source File: greekocr4gamera.py def performGreekOCR(options):














Ffmpeg crop invalid too big or non positive size for width