MCPcopy Create free account

hub / github.com/MichaelHL-ai/OCR_EVALUATION / functions

Functions36 in github.com/MichaelHL-ai/OCR_EVALUATION

↓ 6 callersFunctionvalidate_point_inside_bounds
(x, y, imWidth, imHeight)
rrc_evaluation_funcs.py:244
↓ 3 callersFunctionget_intersection
(pD, pG)
Algorithm_IoU.py:110
↓ 3 callersFunctiontext_distance
(str1, str2)
Algorithm_IoU.py:154
↓ 2 callersFunctionarea
(a, b)
Algorithm_DetEva.py:119
↓ 2 callersFunctioncenter
(r)
Algorithm_DetEva.py:127
↓ 2 callersFunctioncompute_ap
(confList, matchList, numGtCare)
Algorithm_IoU.py:116
↓ 2 callersFunctiondiag
(r)
Algorithm_DetEva.py:140
↓ 2 callersFunctionget_tl_line_values
Validate the format of the line. If the line is not valid an exception will be raised. If maxWidth and maxHeight are specified, all points mu
rrc_evaluation_funcs.py:127
↓ 2 callersFunctionnormalize_txt
Normalize Chinese text strings by: - remove puncutations and other symbols - convert traditional Chinese to simplified
Algorithm_IoU.py:137
↓ 2 callersFunctionpolygon_from_points
Returns a Polygon object to use with the Polygon2 class from a list of 8 points: x1,y1,x2,y2,x3,y3,x4,y4
Algorithm_IoU.py:63
↓ 2 callersFunctionrectangle_to_polygon
(rect)
Algorithm_IoU.py:79
↓ 1 callersFunctionargparser
()
script.py:19
↓ 1 callersFunctioncenter_distance
(r1, r2)
Algorithm_DetEva.py:137
↓ 1 callersFunctiondecode_utf8
Returns a Unicode object on success, or None on failure
rrc_evaluation_funcs.py:80
↓ 1 callersFunctionevaluation_imports
evaluation_imports: Dictionary ( key = module name , value = alias ) with python modules used in the evaluation.
Algorithm_DetEva.py:12
↓ 1 callersFunctionget_intersection_over_union
(pD, pG)
Algorithm_IoU.py:104
↓ 1 callersFunctionget_union
(pD, pG)
Algorithm_IoU.py:99
↓ 1 callersFunctionmany_to_one_match
(detNum)
Algorithm_DetEva.py:106
↓ 1 callersFunctionone_to_many_match
(gtNum)
Algorithm_DetEva.py:93
↓ 1 callersFunctionone_to_one_match
(row, col)
Algorithm_DetEva.py:72
↓ 1 callersFunctionpoint_distance
(r1, r2)
Algorithm_DetEva.py:132
↓ 1 callersFunctionvalidate_clockwise_points
Validates that the points that the 4 points that dlimite a polygon are in clockwise order.
rrc_evaluation_funcs.py:252
↓ 1 callersFunctionvalidate_tl_line
Validate the format of the line. If the line is not valid an exception will be raised. If maxWidth and maxHeight are specified, all points mu
rrc_evaluation_funcs.py:116
Functiondefault_evaluation_params
default_evaluation_params: Default parameters to use for the validation and evaluation.
Algorithm_DetEva.py:22
Functiondefault_evaluation_params
default_evaluation_params: Default parameters to use for the validation and evaluation.
Algorithm_IoU.py:12
Functionevaluate_method
Method evaluate_method: evaluate method and returns the results Results. Dictionary with the following values: - method (required
Algorithm_DetEva.py:61
Functionevaluate_method
Method evaluate_method: evaluate method and returns the results Results. Dictionary with the following values: - method (required
Algorithm_IoU.py:52
Functionget_tl_line_values_from_file_contents
Returns all points, confindences and transcriptions of a file in lists. Valid line formats: xmin,ymin,xmax,ymax,[confidence],[transcription]
rrc_evaluation_funcs.py:281
Functionload_zip_file
Returns an array with the contents (filtered by fileNameRegExp) of a ZIP file. The key's are the names or the file or the capturing group def
rrc_evaluation_funcs.py:48
Functionload_zip_file_keys
Returns an array with the entries of the ZIP file that match with the regular expression. The key's are the names or the file or the capturin
rrc_evaluation_funcs.py:19
Functionmain_evaluation
This process validates a method, evaluates it and if it succed generates a ZIP file with a JSON entry for each sample. Params: args:
rrc_evaluation_funcs.py:312
Functionmain_validation
This process validates a method Params: default_evaluation_params_fn: points to a function that returns a dictionary with the default par
rrc_evaluation_funcs.py:378
Functionrectangle_to_points
(rect)
Algorithm_IoU.py:94
Functionvalidate_data
Method validate_data: validates that all files in the results folder are correct (have the correct name contents). Va
Algorithm_DetEva.py:39
Functionvalidate_data
Method validate_data: validates that all files in the results folder are correct (have the correct name contents). Va
Algorithm_IoU.py:29
Functionvalidate_lines_in_file
This function validates that all lines of the file calling the Line validation function for each line
rrc_evaluation_funcs.py:95