mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
* Add custom detection and recognition model usage instructions in re * update * Add custom detection and recognition model usage instructions in re * add db net for benchmark * rename benckmark to PaddleOCR_benchmark * add addict to req * rename
13 lines
319 B
Python
13 lines
319 B
Python
# -*- coding: utf-8 -*-
|
|
# @Time : 2020/6/5 11:35
|
|
# @Author : zhoujun
|
|
from .DBHead import DBHead
|
|
|
|
__all__ = ['build_head']
|
|
support_head = ['DBHead']
|
|
|
|
|
|
def build_head(head_name, **kwargs):
|
|
assert head_name in support_head, f'all support head is {support_head}'
|
|
head = eval(head_name)(**kwargs)
|
|
return head |