問題タブ [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.

0 投票する
2 に答える
591 参照

python - google.gax.errors.RetryError StatusCode.DEADLINE_EXCEEDED

この github から: https://github.com/GoogleCloudPlatform/python-docs-samples

ビデオ インテリジェンス API をテストし、ラベル分析を行おうとしています。

そして、ターミナルから実行します python labels.py MP4_FILE_PATH

しばらくすると、次のエラー コードで失敗します。

うまくいかない理由を教えてください!:(

0 投票する
1 に答える
436 参照

python - google-cloud-python の Vision API が複数の注釈を返すのはなぜですか?

Python で Google クラウド ビジョン API を使用しています
( https://googlecloudplatform.github.io/google-cloud-python/stable/vision-usage.html )

listしかし、単一の画像のアノテーション結果がsで構成されている理由がわかりませんでしたannotationドキュメントには次
のように記載されています。

image.detect1 つの画像に対して複数の注釈が返されるのはなぜですか?
検出結果は各属性( 、 など)に含まれているので不要に思えannotations[0].facesますannotations[0].logos

そして、自分のイメージで API を試すと、annotations長さ 1 の が返されます。

だから私の質問は:

  • Python の Vision API クライアントが単一の画像に対して複数の注釈を返すのはなぜですか?
  • annotationリスト内のすべてを解析する必要がありますannotationsか?