問題タブ [google-cloud-python]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - google.gax.errors.RetryError StatusCode.DEADLINE_EXCEEDED
この github から: https://github.com/GoogleCloudPlatform/python-docs-samples
ビデオ インテリジェンス API をテストし、ラベル分析を行おうとしています。
そして、ターミナルから実行します python labels.py MP4_FILE_PATH
しばらくすると、次のエラー コードで失敗します。
うまくいかない理由を教えてください!:(
python - google-cloud-python の Vision API が複数の注釈を返すのはなぜですか?
Python で Google クラウド ビジョン API を使用しています
( https://googlecloudplatform.github.io/google-cloud-python/stable/vision-usage.html )
list
しかし、単一の画像のアノテーション結果がsで構成されている理由がわかりませんでしたannotation
。ドキュメントには次
のように記載されています。
image.detect
1 つの画像に対して複数の注釈が返されるのはなぜですか?
検出結果は各属性( 、 など)に含まれているので不要に思えannotations[0].faces
ますannotations[0].logos
。
そして、自分のイメージで API を試すと、annotations
長さ 1 の が返されます。
だから私の質問は:
- Python の Vision API クライアントが単一の画像に対して複数の注釈を返すのはなぜですか?
annotation
リスト内のすべてを解析する必要がありますannotations
か?