`eval(op_type)` -> `getattr(operators, op_type)` ### What problem does this PR solve? Using `eval()` can lead to code injections and is entirely unnecessary here. ### Type of change - [x] Other (please describe): Best practice code improvement, preventing the possibility of code injection. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| layout_recognizer.py | ||
| ocr.py | ||
| ocr.res | ||
| operators.py | ||
| postprocess.py | ||
| recognizer.py | ||
| seeit.py | ||
| t_ocr.py | ||
| t_recognizer.py | ||
| table_structure_recognizer.py | ||