Module Expr Str Import alias Import alias identifier Import alias Import alias Import alias ImportFrom alias alias alias Import alias identifier ImportFrom alias alias alias alias alias ImportFrom alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias identifier ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias alias alias alias Expr Call AttributeLoad NameLoad attr keyword Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad Call NameLoad Call NameLoad NameLoad Call NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpDiv BinOpMult BinOpMult Num NameLoad AttributeLoad NameLoad attr BinOpPow AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Str attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad Str attr GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad Str attr If NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr Return Call AttributeLoad Str attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr ListComp Call AttributeLoad Str attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Str attr BinOpDiv AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr BinOpDiv AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad Str attr GeneratorExp Call NameLoad Call NameLoad Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad Num Num Assign NameStore Call NameLoad ListComp BinOpPow Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Num comprehension TupleStore NameStore NameStore NameLoad Return BinOpPow NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad If CompareNotEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore ListLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Call NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore Call NameLoad BinOpAdd ListLoad NameLoad Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assert CompareLtELtE BinOpSub NameLoad Num NameLoad BinOpAdd NameLoad Num Call AttributeLoad Str attr NameLoad Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad UnaryOpNot NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpPow BinOpDiv NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Assign NameStore Call NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Num For TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Print AttributeLoad NameLoad attr Str Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad Num Num Print AttributeLoad NameLoad attr Str NameLoad Assign NameStore Dict Str Str NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call NameLoad NameLoad Str Print NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Str Assign NameStore TupleLoad Str Str Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Str Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad If CompareNotEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assert Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore BoolOpOr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad For NameStore Call NameLoad NameLoad Str body If BoolOpOr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Continue If Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str body Continue Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Str Print NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Num For NameStore NameLoad body Assign NameStore BinOpAdd ListLoad NameLoad Str Call AttributeLoad Str attr NameLoad NameLoad If NameLoad body AugAssignAdd NameStore ListLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Print NameLoad NameLoad AugAssignAdd NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Str Assign NameStore BinOpAdd NameLoad Str Expr Call NameLoad BinOpAdd NameLoad ListLoad Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore Call NameLoad NameLoad Return BinOpMult Call NameLoad Call NameLoad BinOpDiv NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListComp TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad Call NameLoad NameLoad comprehension TupleStore NameStore NameStore NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore SubscriptLoad Call AttributeLoad NameLoad attr Num Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert CompareIn Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign NameStore IfExp CompareEq NameLoad Str Num Call NameLoad NameLoad Assign NameStore IfExp CompareEq NameLoad Str NameLoad Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Num Str Num Str Str NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad GeneratorExp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If CompareGt Call NameLoad NameLoad NameLoad NameLoad body If CompareLt NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad BinOpDiv BinOpMult NameLoad NameLoad NameLoad orelse Assign TupleStore NameStore NameStore TupleLoad BinOpDiv BinOpMult NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareNotEq NameLoad Str CompareNotEq NameLoad Str body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore NameLoad If BoolOpOr NameLoad NameLoad body Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore Str If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr GeneratorExp NameLoad comprehension NameStore NameLoad CompareIn NameLoad AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad If CompareNotEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad NameLoad attr Assign TupleStore NameStore NameLoad Assign NameStore BoolOpOr AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Str Num Index Num Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareNotEq NameLoad Str body Expr Call NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign TupleStore NameStore NameStore TupleLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameStore NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Assign NameStore IfExp NameLoad Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword Num keyword NameLoad Assign NameStore Call NameLoad NameLoad keyword Num Assign TupleStore NameStore NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad orelse Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call NameLoad Call NameLoad BinOpDiv BinOpMult NameLoad AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Call NameLoad BinOpDiv BinOpMult NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body AugAssignAdd NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad If AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index Num SubscriptLoad NameLoad ExtSlice Slice Index Num Str Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareLtELtE NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body AugAssignAdd NameStore Num If CompareGt NameLoad AttributeLoad NameLoad attr body Break Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpDiv BinOpMult Call NameLoad NameLoad NameLoad Num Assign NameStore BinOpDiv BinOpMult Call NameLoad NameLoad NameLoad Num Assign NameStore BinOpDiv BinOpMult Call NameLoad NameLoad NameLoad Num Assign NameStore BinOpDiv BinOpMult Call NameLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr TupleLoad BinOpSub NameLoad NameLoad BinOpAdd NameLoad NameLoad TupleLoad BinOpAdd NameLoad NameLoad BinOpSub NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr TupleLoad BinOpSub NameLoad NameLoad BinOpAdd NameLoad NameLoad TupleLoad BinOpSub NameLoad NameLoad BinOpAdd NameLoad NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpAdd Call NameLoad Call NameLoad BinOpMult BinOpDiv NameLoad Num Num Num Num Assign NameStore SubscriptLoad NameLoad ExtSlice Slice BinOpSub NameLoad NameLoad BinOpAdd NameLoad NameLoad Slice BinOpSub NameLoad NameLoad BinOpAdd NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Call NameLoad NameLoad BinOpDiv BinOpMult Num NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign TupleStore NameStore NameStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad TupleLoad NameLoad NameLoad BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad keyword NameLoad keyword Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore TupleLoad BinOpDiv BinOpAdd NameLoad NameLoad Num BinOpDiv BinOpAdd NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad Str attr NameLoad keyword Str keyword Str keyword Str keyword Num For NameStore TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Num Expr Call AttributeLoad NameLoad attr Num Num Call AttributeLoad Str attr Call NameLoad NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Num Num Call AttributeLoad Str attr Call NameLoad NameLoad keyword Str Assign NameStore Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr Str If UnaryOpNot AttributeLoad NameLoad attr body Print NameLoad Call AttributeLoad NameLoad attr keyword NameLoad For NameStore NameLoad body If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Print NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareGt NameLoad Num body Continue Expr Call AttributeLoad NameLoad attr Num NameLoad Call NameLoad NameLoad keyword Str keyword Call NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Num NameLoad AttributeLoad NameLoad attr keyword Str AugAssignSub NameStore Num Expr Call AttributeLoad NameLoad attr Call NameLoad TupleLoad Num BinOpSub NameLoad Num Num Num keyword Num keyword Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad AttributeLoad NameLoad attr keyword Str AugAssignSub NameStore Num Expr Call AttributeLoad NameLoad attr Num NameLoad Call AttributeLoad Str attr NameLoad keyword Str Expr Call NameLoad NameLoad For NameStore TupleLoad NameLoad NameLoad NameLoad body Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad BinOpAdd BinOpAdd NameLoad Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
Image processing pipelines for phenotyping projects.
 N/A json N/A os.path op N/A sys N/A string N/A logging math sin cos pi N/A numpy np jcvi.graphics.base plt savefig normalize_axes Rectangle latex Image open iopen wand.image Image scipy.ndimage binary_fill_holes distance_transform_edt scipy.optimize fmin_bfgs fmin skimage.color gray2rgb rgb2gray skimage.filter canny roberts sobel skimage.feature peak_local_max skimage.measure regionprops label skimage.morphology disk closing watershed skimage.segmentation clear_border jcvi.utils.counter Counter jcvi.utils.webcolors rgb_to_hex closest_color normalize_integer_triplet jcvi.formats.base must_open jcvi.algorithms.formula reject_outliers get_kmeans jcvi.apps.tesseract image_to_string jcvi.apps.base OptionParser OptionGroup ActionDispatcher iglob mkdir datadir N/A N/A N/A np seterr all ignore Seed N/A object N/A __init__ N/A N/A self imagename accession seedno rgb props exif N/A N/A N/A N/A self imagename imagename N/A N/A self accession accession N/A N/A self seedno seedno N/A N/A y x N/A props centroid N/A N/A N/A self x N/A self y N/A N/A int N/A round x N/A int N/A round y N/A N/A self location N/A N/A {0}|{1} format N/A self x N/A self y N/A N/A self area N/A int N/A round N/A props area N/A N/A self length N/A int N/A round N/A props major_axis_length N/A N/A self width N/A int N/A round N/A props minor_axis_length N/A N/A self props props N/A N/A self circularity N/A N/A N/A 4 pi N/A props area N/A N/A props perimeter 2 N/A N/A self rgb rgb N/A N/A self colorname N/A closest_color rgb N/A N/A self datetime N/A N/A exif get exif:DateTimeOriginal none N/A N/A self rgbtag N/A triplet_to_rgb rgb N/A N/A self pixeltag N/A N/A length={0} width={1} area={2} format N/A self length N/A self width N/A self area N/A N/A self hashtag N/A N/A join N/A N/A self rgbtag N/A self colorname N/A N/A self calibrated False N/A __str__ N/A N/A self N/A N/A N/A fields N/A N/A self imagename N/A self datetime N/A self accession N/A self seedno N/A self location N/A self area N/A N/A {0:.2f} format N/A self circularity N/A self length N/A self width N/A self colorname N/A self rgbtag N/A N/A self calibrated N/A N/A fields N/A N/A self pixelcmratio N/A self rgbtransform N/A self correctedlength N/A self correctedwidth N/A self correctedcolorname N/A self correctedrgb N/A N/A N/A join N/A N/A str x N/A x fields N/A header N/A N/A cls calibrate N/A False N/A N/A fields N/A N/A ImageName DateTime Accession SeedNum Location Area Circularity Length(px) Width(px) ColorName RGB split N/A calibrate N/A N/A fields N/A N/A PixelCMratio RGBtransform Length(cm) Width(cm) CorrectedColorName CorrectedRGB split N/A N/A N/A join fields N/A classmethod calibrate N/A N/A self pixel_cm_ratio tr N/A N/A N/A N/A self pixelcmratio N/A N/A {0:.2f} format pixel_cm_ratio N/A N/A self rgbtransform N/A N/A , join N/A N/A N/A {0:.2f} format x N/A x N/A N/A tr flatten N/A N/A self correctedlength N/A N/A {0:.2f} format N/A N/A self length pixel_cm_ratio N/A N/A self correctedwidth N/A N/A {0:.2f} format N/A N/A self width pixel_cm_ratio N/A correctedrgb N/A N/A np dot tr N/A N/A np array N/A self rgb N/A N/A self correctedrgb N/A triplet_to_rgb correctedrgb N/A N/A self correctedcolorname N/A closest_color correctedrgb N/A N/A self calibrated True N/A N/A rgb_to_triplet N/A N/A rgb N/A N/A N/A N/A tuple N/A N/A int x N/A x N/A N/A rgb split , N/A triplet_to_rgb N/A N/A triplet N/A N/A N/A triplet N/A normalize_integer_triplet triplet N/A N/A N/A , join N/A N/A str N/A int N/A round x N/A x triplet N/A main N/A N/A N/A N/A N/A actions N/A N/A batchseeds extract seed metrics for each image in a directory N/A seeds extract seed metrics from one image N/A calibrate calibrate pixel-inch ratio and color adjustment N/A p N/A ActionDispatcher actions N/A N/A N/A p dispatch N/A globals N/A total_error N/A N/A x colormap N/A N/A N/A xs N/A N/A np reshape x N/A 3 3 N/A error_squared N/A sum N/A N/A N/A N/A N/A np linalg norm N/A N/A N/A np dot xs o e 2 N/A N/A o e colormap N/A N/A error_squared 0.5 N/A calibrate N/A N/A args N/A N/A N/A 
    %prog calibrate calibrate.JPG boxsize

    Calibrate pixel-inch ratio and color adjustment.
    - `calibrate.JPG` is the photo containig a colorchecker
    - `boxsize` is the measured size for the boxes on printed colorchecker, in
      squared centimeter (cm2) units
     N/A xargs N/A args N/A 2 N/A p N/A OptionParser N/A calibrate __doc__ N/A N/A opts args iopts N/A add_seeds_options p args N/A N/A N/A len args 2 N/A N/A N/A N/A sys exit N/A N/A N/A p print_help N/A N/A imagefile boxsize args N/A boxsize N/A float boxsize N/A colorcheckerfile N/A N/A op join datadir colorchecker.txt N/A colorchecker N/A N/A expected 0 N/A row N/A open colorcheckerfile N/A N/A boxes N/A N/A row split N/A N/A N/A colorchecker append boxes N/A expected N/A len boxes N/A folder N/A N/A N/A op split imagefile N/A 0 N/A objects N/A seeds N/A N/A imagefile N/A N/A --outdir={0} format folder xargs N/A nseeds N/A len objects N/A N/A N/A logging debug N/A N/A Found {0} boxes (expected={1}) format nseeds expected N/A N/A N/A expected 4 nseeds N/A expected 4 N/A N/A Number of boxes drastically different from {0} format expected N/A boxes N/A N/A t area N/A t objects N/A reject N/A reject_outliers boxes N/A retained_boxes N/A b N/A N/A r b N/A zip reject boxes N/A r N/A mbox N/A N/A np median retained_boxes N/A pixel_cm_ratio N/A N/A mbox boxsize 0.5 N/A N/A N/A logging debug N/A N/A Median box size: {0} pixels. Measured box size: {1} cm2 format mbox boxsize N/A N/A N/A logging debug N/A N/A Pixel-cm ratio: {0} format pixel_cm_ratio N/A xs N/A N/A t x N/A t objects N/A ys N/A N/A t y N/A t objects N/A idx_xs N/A get_kmeans xs 6 N/A idx_ys N/A get_kmeans ys 4 N/A N/A xi yi s N/A zip idx_xs idx_ys objects N/A N/A N/A s rank N/A yi xi N/A N/A N/A objects sort key N/A N/A N/A x N/A N/A x rank N/A colormap N/A N/A s objects N/A N/A N/A x y N/A s rank N/A N/A observed expected N/A N/A s rgb N/A rgb_to_triplet N/A N/A colorchecker N/A x N/A y N/A N/A N/A colormap append N/A N/A N/A np array observed N/A N/A np array expected N/A tr0 N/A N/A N/A N/A np eye 3 flatten N/A N/A sys stderr Initial distance: N/A total_error tr0 colormap N/A tr N/A fmin total_error tr0 args N/A colormap N/A N/A N/A tr resize N/A 3 3 N/A N/A sys stderr RGB linear transform:
 tr N/A calib N/A PixelCMratio RGBtransform pixel_cm_ratio N/A N/A tr tolist N/A jsonfile N/A N/A op join folder calibrate.json N/A fw N/A must_open jsonfile w N/A fw N/A N/A json dumps calib indent 4 N/A N/A N/A fw close N/A N/A N/A logging debug N/A N/A Calibration specs written to `{0}`. format jsonfile N/A jsonfile N/A add_seeds_options N/A N/A p args N/A N/A N/A g1 N/A OptionGroup p Image manipulation N/A N/A N/A g1 add_option --rotate default 0 type int help Rotate degrees clockwise N/A N/A N/A g1 add_option --rows default : help Crop rows e.g. `:800` from first 800 rows N/A N/A N/A g1 add_option --cols default : help Crop cols e.g. `-800:` from last 800 cols N/A N/A N/A g1 add_option --labelrows help Label rows e.g. `:800` from first 800 rows N/A N/A N/A g1 add_option --labelcols help Label cols e.g. `-800: from last 800 rows N/A N/A N/A p add_option_group g1 N/A g2 N/A OptionGroup p Object recognition N/A N/A N/A g2 add_option --minsize default 0.05 type float help Min percentage of object to image N/A N/A N/A g2 add_option --maxsize default 50 type float help Max percentage of object to image N/A N/A N/A g2 add_option --count default 100 type int help Report max number of objects N/A N/A N/A g2 add_option --watershed default False action store_true help Run watershed to segment touching objects N/A N/A N/A p add_option_group g2 N/A g3 N/A OptionGroup p De-noise N/A valid_filters N/A canny roberts sobel N/A N/A N/A g3 add_option --filter default canny choices valid_filters help Edge detection algorithm N/A N/A N/A g3 add_option --sigma default 1 type int help Canny edge detection sigma, higher for noisy image N/A N/A N/A g3 add_option --kernel default 2 type int help Edge closure, higher if the object edges are dull N/A N/A N/A g3 add_option --border default 5 type int help Remove image border of certain pixels N/A N/A N/A p add_option_group g3 N/A g4 N/A OptionGroup p Output N/A N/A N/A g4 add_option --calibrate help JSON file to correct distance and color N/A N/A N/A g4 add_option --edges default False action store_true help Visualize edges in middle PDF panel N/A N/A N/A g4 add_option --outdir default . help Store intermediate images and PDF in folder N/A N/A N/A g4 add_option --prefix help Output prefix N/A N/A N/A g4 add_option --noheader default False action store_true help Do not print header N/A N/A N/A p add_option_group g4 N/A N/A opts args iopts N/A N/A p set_image_options args figsize 12x6 style white N/A N/A opts args iopts N/A batchseeds N/A N/A args N/A N/A N/A 
    %prog batchseeds folder

    Extract seed metrics for each image in a directory.
     jcvi.formats.pdf cat N/A xargs N/A args N/A 1 N/A p N/A OptionParser N/A batchseeds __doc__ N/A N/A opts args iopts N/A add_seeds_options p args N/A N/A N/A len args 1 N/A N/A N/A N/A sys exit N/A N/A N/A p print_help N/A N/A folder args N/A folder N/A N/A folder rstrip / N/A outdir N/A folder -debug N/A outfile N/A folder -output.tsv N/A N/A N/A op isdir folder N/A images N/A N/A jsonfile N/A N/A opts calibrate N/A N/A op join folder calibrate.json N/A N/A N/A N/A op exists jsonfile N/A N/A jsonfile None N/A im N/A iglob folder *.jpg,*.JPG,*.png N/A N/A N/A N/A N/A im endswith .resize.jpg N/A N/A im endswith .main.jpg N/A N/A im endswith .label.jpg N/A N/A N/A N/A N/A N/A N/A op basename im startswith calibrate N/A N/A N/A N/A N/A images append im N/A fw N/A must_open outfile w N/A fw N/A N/A Seed header calibrate jsonfile N/A nseeds 0 N/A im images N/A N/A imargs N/A N/A im --noheader N/A N/A --outdir={0} format outdir xargs N/A jsonfile N/A N/A imargs N/A N/A N/A --calibrate={0} format jsonfile N/A objects N/A seeds imargs N/A o objects N/A N/A fw o N/A nseeds N/A len objects N/A N/A N/A fw close N/A N/A N/A logging debug N/A N/A Processed {0} images. format N/A len images N/A N/A N/A logging debug N/A N/A A total of {0} objects written to `{1}`. format nseeds outfile N/A pdfs N/A iglob outdir *.pdf N/A outpdf N/A folder -output.pdf N/A N/A cat N/A pdfs N/A N/A N/A --outfile={0} format outpdf N/A N/A N/A logging debug N/A N/A Debugging information written to `{0}`. format outpdf N/A outfile N/A p_round N/A N/A n precision N/A 5 N/A N/A precision N/A int precision N/A N/A N/A int N/A round N/A n N/A float precision precision N/A pixel_stats N/A N/A img N/A N/A N/A img N/A N/A N/A p_round r N/A p_round g N/A p_round b N/A N/A r g b img N/A c N/A Counter img N/A N/A imgx count N/A N/A N/A c most_common 1 N/A 0 N/A imgx N/A slice N/A N/A s m N/A N/A N/A N/A : s N/A N/A ra rb N/A N/A s split : N/A ra N/A N/A ra 0 N/A int ra N/A rb N/A N/A rb m N/A int rb N/A N/A ra rb N/A convert_image N/A N/A pngfile pf outdir resize format rotate rows cols labelrows labelcols N/A . 1000 jpeg 0 : : None None N/A N/A resizefile N/A N/A op join outdir N/A pf .resize.jpg N/A mainfile N/A N/A op join outdir N/A pf .main.jpg N/A labelfile N/A N/A op join outdir N/A pf .label.jpg N/A img N/A Image filename pngfile N/A exif N/A dict N/A N/A k v N/A N/A k v N/A N/A N/A img metadata items N/A N/A k startswith exif: N/A rotate N/A N/A N/A N/A img rotate rotate N/A resize N/A N/A N/A w h N/A img size N/A N/A N/A min w h resize N/A N/A N/A w h N/A N/A N/A nw nh N/A resize N/A N/A resize h w N/A N/A N/A nw nh N/A N/A N/A resize w h resize N/A N/A N/A img resize nw nh N/A N/A N/A logging debug N/A N/A Image `{0}` resized from {1}px:{2}px to {3}px:{4}px format pngfile w h nw nh N/A N/A img format format N/A N/A N/A img save filename resizefile N/A rimg N/A N/A img clone N/A N/A N/A rows : N/A cols : N/A N/A N/A w h N/A img size N/A N/A ra rb N/A slice rows h N/A N/A ca cb N/A slice cols w N/A N/A N/A logging debug N/A N/A Crop image to {0}:{1} {2}:{3} format ra rb ca cb N/A N/A N/A img crop ca ra cb rb N/A N/A img format format N/A N/A N/A img save filename mainfile N/A N/A mainfile resizefile N/A N/A labelrows labelcols N/A N/A N/A w h N/A rimg size N/A N/A labelrows N/A labelcols N/A N/A labelcols : N/A N/A labelcols N/A labelrows N/A N/A labelrows : N/A N/A ra rb N/A slice labelrows h N/A N/A ca cb N/A slice labelcols w N/A N/A N/A logging debug N/A N/A Extract label from {0}:{1} {2}:{3} format ra rb ca cb N/A N/A N/A rimg crop ca ra cb rb N/A N/A rimg format format N/A N/A N/A rimg save filename labelfile N/A N/A labelfile None N/A N/A resizefile mainfile labelfile exif N/A extract_label N/A N/A labelfile N/A N/A N/A accession N/A image_to_string N/A iopen labelfile N/A accession N/A N/A join N/A N/A accession split N/A accession N/A N/A join N/A x N/A x accession N/A x N/A string printable N/A N/A accession N/A N/A accession none N/A accession N/A load_image N/A N/A resizefile N/A N/A N/A img N/A N/A plt imread resizefile N/A N/A h w c N/A img shape N/A N/A N/A logging debug N/A N/A Image `{0}` loaded ({1}px x {2}px). format resizefile w h N/A img N/A seeds N/A N/A args N/A N/A N/A 
    %prog seeds [pngfile|jpgfile]

    Extract seed metrics from [pngfile|jpgfile]. Use --rows and --cols to crop image.
     N/A p N/A OptionParser N/A seeds __doc__ N/A N/A N/A p set_outfile N/A N/A opts args iopts N/A add_seeds_options p args N/A N/A N/A len args 1 N/A N/A N/A N/A sys exit N/A N/A N/A p print_help N/A N/A pngfile args N/A pf N/A N/A opts prefix N/A N/A N/A N/A N/A op basename pngfile rsplit . 1 N/A 0 N/A N/A sigma kernel N/A N/A opts sigma N/A opts kernel N/A N/A rows cols N/A N/A opts rows N/A opts cols N/A N/A labelrows labelcols N/A N/A opts labelrows N/A opts labelcols N/A ff N/A opts filter N/A calib N/A opts calibrate N/A outdir N/A opts outdir N/A N/A outdir . N/A N/A N/A mkdir outdir N/A calib N/A N/A calib N/A N/A json load N/A must_open calib N/A N/A pixel_cm_ratio tr N/A N/A calib N/A PixelCMratio N/A calib N/A RGBtransform N/A tr N/A N/A np array tr N/A N/A resizefile mainfile labelfile exif N/A convert_image pngfile pf outdir outdir rotate N/A opts rotate rows rows cols cols labelrows labelrows labelcols labelcols N/A oimg N/A load_image resizefile N/A img N/A load_image mainfile N/A N/A fig N/A ax1 ax2 ax3 ax4 N/A N/A plt subplots ncols 4 nrows 1 figsize N/A N/A iopts w N/A iopts h N/A img_gray N/A rgb2gray img N/A N/A N/A logging debug N/A N/A Running {0} edge detection ... format ff N/A N/A ff canny N/A N/A edges N/A canny img_gray sigma N/A opts sigma N/A N/A N/A ff roberts N/A N/A edges N/A roberts img_gray N/A N/A N/A ff sobel N/A N/A edges N/A sobel img_gray N/A edges N/A clear_border edges buffer_size N/A opts border N/A selem N/A disk kernel N/A closed N/A kernel N/A closing edges selem edges N/A filled N/A binary_fill_holes closed N/A N/A opts watershed N/A N/A distance N/A distance_transform_edt filled N/A local_maxi N/A peak_local_max distance threshold_rel 0.05 indices False N/A coordinates N/A peak_local_max distance threshold_rel 0.05 N/A N/A markers nmarkers N/A label local_maxi return_num True N/A N/A N/A logging debug N/A N/A Identified {0} watershed markers format nmarkers N/A labels N/A watershed closed markers mask filled N/A N/A labels N/A label filled N/A N/A w h N/A img_gray shape N/A canvas_size N/A w h N/A min_size N/A int N/A round N/A N/A canvas_size N/A opts minsize 100 N/A max_size N/A int N/A round N/A N/A canvas_size N/A opts maxsize 100 N/A N/A N/A logging debug N/A N/A Find objects with pixels between {0} ({1}%) and {2} ({3}%) format min_size N/A opts minsize max_size N/A opts maxsize N/A N/A N/A ax1 set_title Original picture N/A N/A N/A ax1 imshow oimg N/A params N/A N/A {0}, $\sigma$={1}, $k$={2} format ff sigma kernel N/A N/A opts watershed N/A N/A params , watershed N/A N/A N/A ax2 set_title N/A N/A Edge detection
({0}) format params N/A closed N/A gray2rgb closed N/A ax2_img labels N/A N/A opts edges N/A N/A ax2_img closed N/A N/A N/A opts watershed N/A N/A N/A N/A ax2 plot N/A coordinates N/A N/A N/A 1 N/A coordinates N/A N/A N/A 0 g. N/A N/A N/A ax2 imshow ax2_img cmap N/A iopts cmap N/A N/A N/A ax3 set_title Object detection N/A N/A N/A ax3 imshow img N/A filename N/A N/A op basename pngfile N/A labelfile N/A N/A accession N/A extract_label labelfile N/A N/A accession pf N/A rp N/A regionprops labels N/A rp N/A x N/A x rp N/A min_size N/A x area max_size N/A nb_labels N/A len rp N/A N/A N/A logging debug N/A N/A A total of {0} objects identified. format nb_labels N/A objects N/A N/A N/A i props N/A enumerate rp N/A N/A i 1 N/A N/A i N/A opts count N/A N/A N/A N/A y0 x0 N/A props centroid N/A orientation N/A props orientation N/A N/A major minor N/A N/A props major_axis_length N/A props minor_axis_length N/A major_dx N/A N/A N/A cos orientation major 2 N/A major_dy N/A N/A N/A sin orientation major 2 N/A minor_dx N/A N/A N/A sin orientation minor 2 N/A minor_dy N/A N/A N/A cos orientation minor 2 N/A N/A N/A ax2 plot N/A N/A x0 major_dx N/A x0 major_dx N/A N/A y0 major_dy N/A y0 major_dy r- N/A N/A N/A ax2 plot N/A N/A x0 minor_dx N/A x0 minor_dx N/A N/A y0 minor_dy N/A y0 minor_dy r- N/A npixels N/A int N/A props area N/A d N/A min N/A N/A int N/A round N/A N/A minor 2 0.35 1 50 N/A square N/A img N/A N/A N/A y0 d N/A y0 d N/A N/A x0 d N/A x0 d N/A pixels N/A N/A row square N/A N/A N/A N/A pixels extend row N/A N/A N/A logging debug N/A N/A Seed #{0}: {1} pixels ({2} sampled) - {3:.2f}% format i npixels N/A len pixels N/A N/A 100.0 npixels canvas_size N/A rgb N/A pixel_stats pixels N/A N/A N/A objects append N/A Seed filename accession i rgb props exif N/A N/A minr minc maxr maxc N/A props bbox N/A rect N/A Rectangle N/A minc minr N/A maxc minc N/A maxr minr fill False ec w lw 1 N/A N/A N/A ax3 add_patch rect N/A N/A mc mr N/A N/A N/A minc maxc 2 N/A N/A minr maxr 2 N/A N/A N/A ax3 text mc mr N/A N/A {0} format i color w ha center va center size 6 N/A ax N/A ax2 ax3 N/A N/A N/A N/A ax set_xlim 0 h N/A N/A N/A ax set_ylim w 0 N/A N/A N/A ax4 text 0.1 0.92 N/A N/A File: {0} format N/A latex filename color g N/A N/A N/A ax4 text 0.1 0.86 N/A N/A Label: {0} format N/A latex accession color m N/A yy 0.8 N/A fw N/A must_open N/A opts outfile w N/A N/A N/A opts noheader N/A N/A fw N/A N/A Seed header calibrate calib N/A o objects N/A N/A calib N/A N/A N/A N/A o calibrate pixel_cm_ratio tr N/A fw o N/A i N/A o seedno N/A N/A i 7 N/A N/A N/A N/A N/A ax4 text 0.01 yy N/A str i va center bbox N/A dict fc none ec k N/A N/A N/A ax4 text 0.1 yy N/A o pixeltag va center N/A yy 0.04 N/A N/A N/A ax4 add_patch N/A Rectangle N/A 0.1 N/A yy 0.025 0.12 0.05 lw 0 fc N/A rgb_to_hex N/A o rgb N/A N/A N/A ax4 text 0.27 yy N/A o hashtag va center N/A yy 0.06 N/A N/A N/A ax4 text 0.1 yy N/A N/A (A total of {0} objects displayed) format nb_labels color darkslategrey N/A N/A normalize_axes ax4 N/A ax N/A ax1 ax2 ax3 N/A N/A xticklabels N/A N/A int x N/A x N/A N/A ax get_xticks N/A yticklabels N/A N/A int x N/A x N/A N/A ax get_yticks N/A N/A N/A ax set_xticklabels xticklabels family Helvetica size 8 N/A N/A N/A ax set_yticklabels yticklabels family Helvetica size 8 N/A image_name N/A N/A op join outdir N/A N/A pf . N/A iopts format N/A N/A savefig image_name dpi N/A iopts dpi iopts iopts N/A objects N/A N/A N/A __name__ __main__ N/A N/A N/A main