You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
334 B
17 lines
334 B
from abc import abstractmethod
|
|
|
|
class ModelBase(object):
|
|
def __init__(self):
|
|
pass
|
|
|
|
def __del__(self):
|
|
pass
|
|
|
|
'''
|
|
模型处理的标准接口
|
|
1.输入标准化
|
|
2.输出标准化
|
|
'''
|
|
@abstractmethod
|
|
def doWork(self,image,mode,class_name,cfg,isdraw_box=False,bgr2rgb=True):
|
|
pass
|