Lesson6.UiPath 結合Google Vision API OCR

 
UiPath 結合Google Vision API OCR
Step1.先建立專案並選定該專案





Step2.啟用Cloud Vision API並獲取API KEY



啟用Cloud Vision API

切換到憑證左側選單

建立憑證=>選擇API金鑰

選擇Cloud Vision API 自行取名按下建立


將產生的API KEY 複製起來


API 金鑰的最佳管理做法




將預設的OCR Engine刪除拖曳更放Google Cloud Vision OCR

拿此篇網路新聞文章做螢幕擷取OCR測試




宣告字串變數存放API KEY
在點選Cloud Vison Engine 到右側屬性面板找到APiKey去指定變數






快捷鍵CTRL+K直接去宣告輸出的變數給Text綁定

自動宣告在底下Data Manager




當一運行即可看到擷取完整的文章段落


若執行報以下錯誤,代表你的專案沒有綁定設置付費帳號,要綁定信用卡。




Message: Error performing OCR: This API method requires billing to be enabled. Please enable billing on project #830077777953 by visiting https://console.developers.google.com/billing/enable?project=830077777953 then retry. If you enabled billing for this project recently, wait a few minutes for the action to propagate to our systems and retry. GoogleCloudErrorInvalidResponse

請到Google Cloud 首頁,左側選單點入帳單
設置你的帳單帳號,新增完帳單帳號以後,要再去跟你的專案綁定





















留言

這個網誌中的熱門文章

Lesson3.Python基礎程式教學(Python、Pycharm跟vscode下載安裝配置)

Lesson4.UiPath PDF檔案資料提取_word存取及整合python處理

Lesson9.Orchestrator 註冊與整體介紹(Orchestrator Personal Workspace Feed)