更新到HyperLPR3版本

This commit is contained in:
tunmx
2023-02-27 15:47:55 +08:00
parent 7ae4d385e1
commit 0864e05f76
912 changed files with 8160 additions and 221461 deletions
@@ -0,0 +1,27 @@
from abc import ABCMeta, abstractmethod
class HamburgerABC(metaclass=ABCMeta):
def __init__(self, input_size: tuple = None, *args,
**kwargs):
self.input_size = input_size
@abstractmethod
def _run_session(self, data):
pass
@abstractmethod
def _postprocess(self, data):
pass
@abstractmethod
def _preprocess(self, image):
pass
def __call__(self, image):
flow = self._preprocess(image)
flow = self._run_session(flow)
result = self._postprocess(flow)
return result