答案 0 :(得分:1)
尝试以下步骤,这对我有用。
1)从here下载tesseract-OCR并将其安装在<div ng-app="app" ng-controller="myCtrl as vm">
<ui-select multiple tagging ng-model="vm.selected" theme="bootstrap">
<ui-select-match placeholder="Pick one...">{{$item.value}}</ui-select-match>
<ui-select-choices repeat="val in vm.values | filter: $select.search track by val.value">
<div ng-bind="val.value | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
</div>
2)编写以下代码
C:/Program Files
from PIL import Image
from pytesseract import image_to_string
即
#pytesseract.pytesseract.tesseract_cmd = '<full_path_to_your_tesseract_executable>'
3)现在运行
pytesseract.pytesseract.tesseract_cmd = 'C:/Program Files/Tesseract-OCR/tesseract.exe'
希望有所帮助!