refactor: no need to inherit in python3 clean the code (#5659)

### What problem does this PR solve?

As title

### Type of change


- [x] Refactoring

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong
2025-03-05 18:03:53 +08:00
committed by GitHub
parent a64f4539e7
commit 4326873af6
13 changed files with 31 additions and 31 deletions

View File

@ -38,7 +38,7 @@ def build_post_process(config, global_config=None):
return module_class(**config)
class DBPostProcess(object):
class DBPostProcess:
"""
The post process for Differentiable Binarization (DB).
"""
@ -259,7 +259,7 @@ class DBPostProcess(object):
return boxes_batch
class BaseRecLabelDecode(object):
class BaseRecLabelDecode:
""" Convert between text-label and text-index """
def __init__(self, character_dict_path=None, use_space_char=False):