Merge pull request #1525 from Evezerest/dy1
set default use_gpu to False
This commit is contained in:
commit
5693001294
|
@ -106,7 +106,7 @@ class MainWindow(QMainWindow, WindowMixin):
|
||||||
getStr = lambda strId: self.stringBundle.getString(strId)
|
getStr = lambda strId: self.stringBundle.getString(strId)
|
||||||
|
|
||||||
self.defaultSaveDir = defaultSaveDir
|
self.defaultSaveDir = defaultSaveDir
|
||||||
self.ocr = PaddleOCR(use_pdserving=False, use_angle_cls=True, det=True, cls=True, use_gpu=True, lang=lang)
|
self.ocr = PaddleOCR(use_pdserving=False, use_angle_cls=True, det=True, cls=True, use_gpu=False, lang=lang)
|
||||||
|
|
||||||
if os.path.exists('./data/paddle.png'):
|
if os.path.exists('./data/paddle.png'):
|
||||||
result = self.ocr.ocr('./data/paddle.png', cls=True, det=True)
|
result = self.ocr.ocr('./data/paddle.png', cls=True, det=True)
|
||||||
|
|
Loading…
Reference in New Issue