MCPcopy Create free account
hub / github.com/Vinyzu/recognizer / __init__

Method __init__

recognizer/components/detector.py:324–335  ·  view source on GitHub ↗

Spawn a new reCognizer Detector Instance Args: optimize_click_order (bool, optional): Whether to optimize the click order with the Travelling Salesman Problem. Defaults to True.

(self, optimize_click_order: Optional[bool] = True)

Source from the content-addressed store, hash-verified

322 # fmt: on
323
324 def __init__(self, optimize_click_order: Optional[bool] = True) -> None:
325 """
326 Spawn a new reCognizer Detector Instance
327
328 Args:
329 optimize_click_order (bool, optional): Whether to optimize the click order with the Travelling Salesman Problem. Defaults to True.
330 """
331 self.optimize_click_order = optimize_click_order
332
333 self.detection_models: DetectionModels = detection_models
334 self.yolo_detector = YoloDetector()
335 self.clip_detector = ClipDetector()
336
337 def detect(
338 self,

Callers

nothing calls this directly

Calls 2

YoloDetectorClass · 0.85
ClipDetectorClass · 0.85

Tested by

no test coverage detected