MCPcopy Create free account
hub / github.com/Topdu/OpenOCR / start_recognition_threads

Method start_recognition_threads

tools/infer_e2e_parallel.py:46–52  ·  view source on GitHub ↗

Start recognition threads.

(self)

Source from the content-addressed store, hash-verified

44 self.stop_signal = threading.Event() # Signal to stop threads
45
46 def start_recognition_threads(self):
47 """Start recognition threads."""
48 self.rec_threads = []
49 for _ in range(self.max_rec_threads):
50 t = threading.Thread(target=self.recognize_text)
51 t.start()
52 self.rec_threads.append(t)
53
54 def detect_text(self, image_list):
55 """Single-threaded text detection for all images."""

Callers 1

process_imagesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected