<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                **Tesseract:** Tesseract是一個將圖像翻譯成文字的OCR(光學文字識別,OpticalCharacterRecognition),目前由谷歌贊助。Tesseract是目前公認最優秀、最準確的開源OCR庫。Tesseract具有很高的識別度,也具有很高的靈活性,他可以通過訓練識別任何字體。 <br/> **不同環境下Tesseract的安裝方法:** (1)根據不同的使用環境安裝 在Windows系統安裝:https://github.com/tesseract-ocr/tesseract 下載安裝軟件 在Python中安裝esseract:` pip install pytesseract` 在ubuntu中安裝: `sudo apt install tesseract-ocr` (2)安裝好后,無論哪一種環境,都需要設置環境變量 Mac和Linux在安裝的時候就默認已經設置好了。在Windows下把`tesseract.exe`所在的路徑添加到PATH環境變量中。 (3)配置好環境變量后,進?cmd輸?下?的命令查看版本,正常運?則安裝成功。 ```shell C:\Users\Administrator>D:\Tesseract-OCR\tesseract --version tesseract 4.00.00alpha leptonica-1.74.1 ``` <br/> **在命令?中使?tesseract識別圖像:** ```shell # tesseract 圖?路徑 識別后數字輸出的?件路徑 tesseract demo.png d ``` 如果要識別中?圖像,需要下載語?安裝包,URL地址:https://github.com/tesseract-ocr/tessdat 。 <br/> **在代碼中使?tesseract識別圖像:** ```python import pytesseract from PIL import Image pytesseract.pytesseract.tesseract_cmd = r'D:\Tesseract-OCR\tesseract.exe' tessdata_dir_config = r'D:\Tesseract-OCR\tessdata' image = Image.open(r'F:\demo\demo.jpg') # 將會輸出圖片驗證碼上的字符 print(pytesseract.image_to_string(image, lang='eng', config=tessdata_dir_config)) ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看