0
我試圖使用Google Cloud Vision API,但面臨一些問題。讓我解釋我採取的步驟,然後解釋我面臨的問題。我在Windows 10中運行此代碼。使用Google Cloud Vision API
- 下載並安裝「GoogleCloudSDKInstaller」。
- gcloud身份驗證的應用程序的默認登錄激活我的登錄憑據
- 用於this代碼在我的本地系統運行的臉部檢測裝置,用於圖像 。
- 光盤插入其中的圖像存在
然後運行下面的代碼的文件夾:
蟒蛇detect_face.py 「image.jpg的」
但我發現了這個錯誤:
raise EnvironmentError('Project was not passed and could not be ' OSError: Project was not passed and could not be determined from the environment.
任何人都可以請告訴我爲什麼我得到這個問題?
感謝您的回答。我解決了這個問題後,此鏈接https://www.youtube.com/watch?v=nMY0qDg16y4&list=PLQVvvaa0QuDfGVb3yucqvKtUgwOJgZWCm&index=2 – Beta
所以這是同樣的事情? 很高興爲您服務! –