Module Expr Str Import alias alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Print BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults kwarg body Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Num If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad orelse If CompareEq Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore Str orelse Assign NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Dict Str Str Str Str BinOpMod Str AttributeLoad NameLoad attr Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Str For NameStore Call AttributeLoad NameLoad attr body If CompareIn Str NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareLt Call NameLoad NameLoad BinOpAdd NameLoad Num body Break If BoolOpAnd CompareEq SubscriptLoad NameLoad Index NameLoad NameLoad CompareEq Call NameLoad NameLoad BinOpAdd NameLoad Num CompareEq Call NameLoad NameLoad Call NameLoad NameLoad body Assign NameStore NameLoad Continue If CompareGt SubscriptLoad NameLoad Index NameLoad NameLoad body Assign NameStore NameLoad Break If CompareLt SubscriptLoad NameLoad Index NameLoad NameLoad body Break Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Print BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call NameLoad BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad TryFinally body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad BinOpMult ListLoad NameLoad Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type BoolOpOr NameLoad NameLoad body Print Str Expr Call AttributeLoad NameLoad attr Raise finalbody Expr Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BinOpMod Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Str BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Print AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad orelse Assign NameStore BinOpMod Str NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad orelse Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list decorator_list
N/A N/A 
   Run Tesseract to generate hocr file 
 N/A os sys N/A logging N/A subprocess N/A glob subprocess CalledProcessError multiprocessing Pool pypdfocr_interrupts init_worker error N/A N/A text N/A N/A N/A N/A ERROR: %s text N/A N/A N/A sys exit -1 N/A unwrap_self N/A N/A arg N/A kwarg N/A N/A N/A N/A PyTesseract make_hocr_from_pnm arg kwarg N/A PyTesseract N/A object N/A N/A Class to wrap all the tesseract calls __init__ N/A N/A self config N/A N/A N/A 
           Detect windows tesseract location.  
         N/A N/A self lang eng N/A N/A self required 3.02.02 N/A N/A self threads N/A N/A config get threads 4 N/A N/A binary config N/A N/A binary N/A config N/A binary N/A N/A N/A os name nt N/A N/A binary N/A "%s" binary N/A binary N/A N/A binary replace \ \\ N/A N/A N/A logging info N/A Setting location for tesseracdt executable to %s binary N/A N/A N/A N/A str N/A os name nt N/A N/A binary "c:\Program Files (x86)\Tesseract-OCR\tesseract.exe" N/A N/A binary tesseract N/A N/A self binary binary N/A N/A self msgs N/A TS_MISSING TS_VERSION TS_img_MISSING TS_FAILED N/A  
                Could not execute %s
                Please make sure you have Tesseract installed correctly
                 N/A self binary Tesseract version is too old Cannot find specified tiff file Tesseract-OCR execution failed! N/A _is_version_uptodate N/A N/A self N/A N/A N/A 
            Make sure the version is current 
         N/A N/A N/A logging info Checking tesseract version N/A cmd N/A %s -v N/A self binary N/A N/A N/A logging info cmd N/A N/A N/A ret_output N/A N/A subprocess check_output cmd shell True stderr N/A subprocess STDOUT N/A N/A N/A CalledProcessError N/A N/A N/A error N/A N/A self msgs N/A TS_MISSING N/A ver_str 0.0.0 N/A line N/A N/A ret_output splitlines N/A N/A N/A tesseract line N/A N/A ver_str N/A N/A N/A line split N/A 1 N/A ver N/A N/A int x N/A x N/A N/A ver_str split . N/A req N/A N/A int x N/A x N/A N/A N/A self required split . N/A N/A N/A str N/A os name nt N/A N/A req N/A req N/A 2 N/A version_good False N/A N/A i num N/A enumerate req N/A N/A N/A N/A len ver N/A i 1 N/A N/A N/A N/A N/A N/A ver N/A i num N/A N/A len ver N/A i 1 N/A N/A len ver N/A len req N/A N/A version_good True N/A N/A N/A N/A ver N/A i num N/A N/A version_good True N/A N/A N/A N/A ver N/A i num N/A N/A N/A N/A version_good ver_str N/A _warn N/A N/A self msg N/A N/A N/A N/A WARNING: %s msg N/A make_hocr_from_pnms N/A N/A self fns N/A N/A N/A N/A uptodate ver N/A N/A self _is_version_uptodate N/A N/A uptodate N/A N/A N/A error N/A N/A N/A self msgs N/A TS_VERSION N/A  (found %s, required %s) N/A ver N/A self required N/A N/A N/A logging debug Making pool for tesseract N/A pool N/A Pool processes N/A self threads initializer init_worker N/A N/A N/A N/A N/A hocr_filenames N/A N/A pool map unwrap_self N/A zip N/A N/A self N/A len fns fns N/A N/A N/A pool close N/A N/A N/A N/A KeyboardInterrupt Exception N/A N/A Caught keyboard interrupt... terminating N/A N/A N/A pool terminate N/A N/A N/A N/A N/A pool join N/A N/A zip fns hocr_filenames N/A make_hocr_from_pnm N/A N/A self img_filename N/A N/A N/A N/A basename filext N/A N/A N/A os path splitext img_filename N/A hocr_filename N/A %s.html basename N/A N/A N/A N/A N/A os path exists img_filename N/A N/A N/A error N/A N/A N/A self msgs N/A TS_img_MISSING N/A  %s img_filename N/A N/A N/A logging info N/A Running OCR on %s to create %s.html N/A img_filename basename N/A cmd N/A %s "%s" "%s" -psm 1 -c hocr_font_info=1 -l %s hocr N/A N/A self binary img_filename basename N/A self lang N/A N/A N/A logging info cmd N/A N/A N/A ret_output N/A N/A subprocess check_output cmd shell True stderr N/A subprocess STDOUT N/A N/A N/A N/A subprocess CalledProcessError N/A e N/A N/A N/A e output N/A N/A N/A self _warn N/A N/A self msgs N/A TS_FAILED N/A N/A N/A N/A os path isfile hocr_filename N/A N/A N/A N/A logging info N/A Created %s.html basename N/A hocr_filename N/A N/A hocr_filename N/A %s.hocr basename N/A N/A N/A N/A os path isfile hocr_filename N/A N/A N/A N/A logging info N/A Created %s.hocr basename N/A hocr_filename N/A N/A N/A error N/A N/A self msgs N/A TS_FAILED N/A N/A