none.py 294 B

1234567
  1. import numpy as np
  2. from .common import CommonDetector
  3. class NoneDetector(CommonDetector):
  4. async def _detect(self, image: np.ndarray, detect_size: int, text_threshold: float, box_threshold: float, unclip_ratio: float, verbose: bool = False):
  5. return [], np.zeros(image.shape), None