2017-11-16 11 views

答えて

0

Cognitive Services Azure CLIのドキュメントで、認知サービスの管理方法の詳細を確認できます。 Azureの政府といつものように

ここで起こって取得する方法について迅速なサンプルの使用:

az cloud set --name AzureUSGovernment 
az login 

az group create -n cogstestrg -l usgovvirginia 

az cognitiveservices account create -n cogstestcv -g cogstestrg --sku S0 --kind ComputerVision -l usgovvirginia 

az cognitiveservices account show -g cogstestrg -n cogstestcv 

az cognitiveservices account keys list -g cogstestrg -n cogstestcv 

#Make sure you REPLACE_WITH_YOUR_KEY in the curl command below using the key from the previous command 
curl -v -X POST "https://virginia.api.cognitive.microsoft.us/vision/v1.0/analyze?visualFeatures=Categories,Description,Color&details=&language=en" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: REPLACE_WITH_YOUR_KEY" --data-ascii "{'url' : 'http://upload.wikimedia.org/wikipedia/commons/3/3c/Shaki_waterfall.jpg'}" 
関連する問題