We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fed221 commit 1b4dfa4Copy full SHA for 1b4dfa4
main.py
@@ -23,7 +23,7 @@ def __init__(self, gpu=False, times=1, filter=0.8, ua="ARNRS", debug=False):
23
self.debug = debug
24
25
# Init detector and OCR
26
- self.__detector = Detector(device="gpu" if gpu else "cpu")
+ self.__detector = Detector(device="cuda" if gpu else "cpu")
27
self.__eocr = easyocr.Reader(['ch_sim', 'en'], gpu=self.gpu)
28
self.__pocr = PaddleOCR(use_angle_cls=True, use_gpu=self.gpu, show_log=debug)
29
0 commit comments