我正在尝试在 databrick python 笔记本上运行以下脚本:
pip install presidio-image-redactor
pip install pytesseract
python -m spacy download en_core_web_lg
from PIL import Image
from presidio_image_redactor import ImageRedactorEngine
import pytesseract
image = Image.open("images/ImageData.PNG")
engine = ImageRedactorEngine()
redacted_image = engine.redact(image, (255, 192, 203))
Run Code Online (Sandbox Code Playgroud)
运行最后一行后,我收到以下错误:
TesseractNotFoundError:tesseract 未安装或不在您的路径中。
我错过了什么吗?