Azure Kinect DKをひとまず動かしたメモ

Azure Kinect DKをひとまず動かしたメモです。

急に買えるようになった

Twitterのタイムラインも賑わっていましたが、急に日本でAzure Kinect DKが買えるようになりました。

image

2020/03/31時点の情報です。

やってきた

3/27にポチって、週明けの3/30に着きました。早い。

image

こんな感じです。わーい。

さっそく動かしてみる

  • Surface Pro 7
  • Windows 10 Pro

で行っています。

Azure Kinect DK documentation | Microsoft Docs

ドキュメントがとても親切でした。

image

こんな感じで、最初にやることもわかる。

image

早速、SDKをダウンロードしてインストールしました。特に難しい設定はナシ。

image

これで実行できます。

image

このようにデバイスが左上で選べました。

image

今回のAzure Kinect DKを選択したらすぐに表示されました。扱いやすそう!

body tracking はCPUモードで起動できた

さて次に、body trackingもやってみましょう。

Quickstart – Set up Azure Kinect body tracking | Microsoft Docs

こちらもドキュメントがしっかり。

image

インストールしました。

image

実行してみます。

PS C:\Program Files\Azure Kinect Body Tracking SDK\tools> .\k4abt_simple_3d_viewer.exe

 Basic Navigation:

 Rotate: Rotate the camera by moving the mouse while holding mouse left button
 Pan: Translate the scene by holding Ctrl key and drag the scene with mouse left button
 Zoom in/out: Move closer/farther away from the scene center by scrolling the mouse scroll wheel
 Select Center: Center the scene based on a detected joint by right clicking the joint with mouse

 Key Shortcuts

 ESC: quit
 h: help
 b: body visualization mode
 k: 3d window layout

C:\agent\_work\11\s\onnxruntime\core\providers\cuda\cuda_call.cc:97 onnxruntime::CudaCall C:\agent\_work\11\s\onnxruntime\core\providers\cuda\cuda_call.cc:91 onnxruntime::CudaCall CUDA failure 35: CUDA driver version is insufficient for CUDA runtime version ; GPU=1800863744 ; hostname=DESKTOP-944VQIO ; expr=cudaSetDevice(device_id_);


[2020-03-30 21:30:18.062] [error] [t=6688] [K4ABT] D:\a\1\s\src\TrackerHost\TrackerHost.cpp (157): Create(). C:\agent\_work\11\s\onnxruntime\core\providers\cuda\cuda_call.cc:97 onnxruntime::CudaCall C:\agent\_work\11\s\onnxruntime\core\providers\cuda\cuda_call.cc:91 onnxruntime::CudaCall CUDA failure 35: CUDA driver version is insufficient for CUDA runtime version ; GPU=1800863744 ; hostname=DESKTOP-944VQIO ; expr=cudaSetDevice(device_id_);


[2020-03-30 21:30:18.062] [error] [t=6688] [K4ABT] D:\a\1\s\src\sdk\k4abt.cpp (38): tracker->Create(sensor_calibration, config) returned failure in k4abt_tracker_create()
Body tracker initialization failed!
 - (File: D:\a\1\s\examples\simple_3d_viewer\main.cpp, Function: main, Line: 140)

GPUが起因なのかエラーになってしまったので、CPUモードで起動します

.\k4abt_simple_3d_viewer.exe CPU

で、起動しました。

Quickstart – Set up Azure Kinect body tracking | Microsoft Docs

If you don’t have a powerful enough GPU and still want to test the result, you can launch the the Azure Kinect Body Tracking Viewer in the command line by the following command: \tools\k4abt_simple_3d_viewer.exe CPU

こちらの説明を参考にしました。

image

無事起動しました!

ここまで、10分程度で素早く試すことができました。使いやすいですね~。