Upgrade to Pro — share decks privately, control downloads, hide ads and more …

メモリリソース不足で苦労しましたが、何とか7周年基板で Azure Computer Visi...

TakSan
August 28, 2022

メモリリソース不足で苦労しましたが、何とか7周年基板で Azure Computer Vision 動かせました

2022/08/27(土)14:00〜
に開催された、『【オンライン】7周年基板IoT作品開発コンテスト 本番LT会!』での発表資料です。
イベントページ:
https://algyan.connpass.com/event/254210/

TakSan

August 28, 2022
Tweet

More Decks by TakSan

Other Decks in Technology

Transcript

  1. 通信内容 C:¥Users¥xxxx>curl "https://taksan-computervision.cognitiveservices.azure.com/vision/v3.2/analyze?visualFeatures= Objects,Brands,Categories,Faces&language=en&model-version=latest" -H "Ocp-Apim-Subscription-Key: e15e4f6a274e463d 89dedd4a650b58bc" -H "Content-Type:

    application/json" -d "{'url’ : 'https://i.gyazo.com/39ae3853870eb5cf161d9bbd 65af1c7b.png’}” {"categories":[{"name":"others_","score":0.01171875},{"name":"outdoor_","score":0.05078125}],"faces":[],"objects “:[{"rectangle":{"x":381,"y":521,"w":473,"h":156},"object":"taxi","confidence":0.512,"parent":{"object":"car",“ confidence":0.874,"parent":{"object":"Land vehicle","confidence":0.88,"parent":{"object":"Vehicle","confidence":0 .881}}}},{"rectangle":{"x":819,"y":526,"w":440,"h":143},"object":"car","confidence":0.858,"parent":{"object":"Lan D vehicle","confidence":0.878,"parent":{"object":"Vehicle","confidence":0.88}}}],"brands":[],"requestId":"cf02897 d-3aea-4dcb-b79d-6d542495dbf9","metadata":{"height":1080,"width":1920,"format":"Png"},"modelVersion":"2021-05-01" } ▲ 要求(HTTP POST) ▲ 応答(Json Data)
  2. 画像であらわすと { (中略) "objects": [ { "rectangle": { "x": 381,

    "y": 521, "w": 473, "h": 156 }, "object": "taxi", "confidence": 0.512, "parent": { "object": "car", "confidence": 0.874, "parent": { "object": "Land vehicl "confidence": 0.88, "parent": { "object": "Vehicle", "confidence": 0.881 } } } }, { "rectangle": { "x": 819, "y": 526, "w": 440, "h": 143 }, "object": "car", "confidence": 0.858, "parent": { "object": "Land vehicle "confidence": 0.878, "parent": { "object": "Vehicle", "confidence": 0.88 } } } ], (中略) } 要求画像 応答結果 (JSON) 結果から枠線 と名前を描画
  3. 無謀な挑戦? { (中略) "objects": [ { "rectangle": { "x": 381,

    "y": 521, "w": 473, "h": 156 }, "object": "taxi", "confidence": 0.512, "parent": { "object": "car", "confidence": 0.874, "parent": { "object": "Land vehicl "confidence": 0.88, "parent": { "object": "Vehicle", "confidence": 0.881 } } } }, { "rectangle": { "x": 819, "y": 526, "w": 440, "h": 143 }, "object": "car", "confidence": 0.858, "parent": { "object": "Land vehicle "confidence": 0.878, "parent": { "object": "Vehicle", "confidence": 0.88 } } } ], (中略) } 要求画像 応答結果 (JSON) 結果から枠線 と名前を描画 同じ様な事が ALGYAN7周年基板で 実行可能か検証したら いばらの道だった(゚Д゚)