如何在不弹出提示的情况下运行tesseract?

2024-06-10 01:37:54 发布

您现在位置:Python中文网/ 问答频道 /正文

当我运行tesseract时,会弹出一个提示,有时这会超出我需要tesseract读取的内容。你知道吗

result = pytesseract.image_to_string(Image.fromarray(img), config="-c tessedit_char_whitelist=0123456789abcdefghijklmnopqrstuvxwyzABCDEFGHIJKLMNOPQRSTUVXWYZ-_+*/!@#$%^&() -psm 4 -oem 1")

有没有办法隐藏提示?你知道吗

我和这家伙有同样的问题https://stackoverflow.com/questions/38782124/how-can-i-hide-the-console-window-when-i-run-tesseract-with-pytesser 那个问题没有回答。你知道吗


Tags: toimageconfig内容imgstringresultwhitelist