106
はじめてのモーションセンサー

エフサミ2014

Embed Size (px)

Citation preview

Page 1: エフサミ2014

はじめてのモーションセンサー

Page 2: エフサミ2014

自己紹介

中村 薫フリーランスで主にDepthセンサー系の仕事をしています

アプリケーション開発、講演、ハンズオンセミナー、執筆など

Microsoft MVP for Kinect for Windows

[email protected]

Copyright © 2014 Natural Software All rights reserved.

Page 3: エフサミ2014

Tokyo MotionControl Network

https://www.facebook.com/TokyoMotioncontrolNetwork

Copyright © 2014 Natural Software All rights reserved.

Page 4: エフサミ2014

注目のセンサー&デバイス

Kinect

Kinect v2

Creative Camera

Leap Motion

Oculus Rift

Copyright © 2014 Natural Software All rights reserved.

Structure Sensor

Page 5: エフサミ2014

大きな流れ・1

Copyright © 2014 Natural Software All rights reserved.

Page 6: エフサミ2014

大きな流れ・1

Copyright © 2014 Natural Software All rights reserved.

Microsoft Intel

Apple Google

Page 7: エフサミ2014

大きな流れ・2

Copyright © 2014 Natural Software All rights reserved.

Intel RealSense Leap Motion

Page 8: エフサミ2014

センサーを利用したパターン・1

Copyright © 2014 Natural Software All rights reserved.

Page 9: エフサミ2014

センサーを利用したパターン・2

Copyright © 2014 Natural Software All rights reserved.

Page 10: エフサミ2014

なぜDepthセンサー?

• センサーの低価格化

• Web,モバイルに続く価値の提供

Copyright © 2014 Natural Software All rights reserved.

Page 11: エフサミ2014

さまざまなセンサー&デバイス

Copyright © 2014 Natural Software All rights reserved.

Page 12: エフサミ2014

注目のセンサー&デバイス

Kinect Kinect v2 Creative Camera

Leap Motion

Copyright © 2014 Natural Software All rights reserved.

Structure Sensor

Page 13: エフサミ2014

Kinect

• NUIのさきがけ

• Xbox用のほかにWindows用のセンサーがある

http://www.xbox.com/ja-JP/xbox360

Copyright © 2014 Natural Software All rights reserved.

Page 14: エフサミ2014

Kinect for Windows SDK

Color Stream Depth Stream

Player Tracking Skeleton Tracking

Audio Stream

Copyright © 2014 Natural Software All rights reserved.

Page 15: エフサミ2014

Toolkit

Kinect Studio

Kinect Background RemovalKinect Fusion

Face TrackingVoice Command

Kinect Interaction

Copyright © 2014 Natural Software All rights reserved.

Page 16: エフサミ2014

Kinect v2

• Xbox One に同梱された新しいKinect

• Kinect for Windows v2 Developer Preview の配布が始まっている

http://www.xbox.com/ja-JP/xbox-one/meet-xbox-one

Copyright © 2014 Natural Software All rights reserved.

Page 17: エフサミ2014

Kinect for Windows v2

• Xbox Oneに付属のKinectと同等

• 2014年夏にリリース予定

• Kinect for Windows v2のソフトウェアやハードウェア、APIは暫定的なものであり正式版では変更される可能性があります。

Copyright © 2014 Natural Software All rights reserved.

Page 18: エフサミ2014

Kinect for Windows SDK v2

Color Stream Depth Stream Skeleton Tracking

Copyright © 2014 Natural Software All rights reserved.

Audio

Page 19: エフサミ2014

Kinect for Windows SDK v2

Control Fusion Face

Copyright © 2014 Natural Software All rights reserved.

実装されたけど、動かない

Page 20: エフサミ2014

Creative Senz3D

• 手指を認識できるセンサー

• Intel Perceptual Computing SDK を利用する

• コンピューターへの内蔵化を予定

Copyright © 2014 Natural Software All rights reserved.

Page 21: エフサミ2014

Intel Perceptual Computing SDK

Color Stream Hand and Finger Tracking Gesture and Pose Facial Analysis

Speech Recognition Voice Synthesis

"Nothing to say?"

Pulse EstimatorEmotion

Copyright © 2014 Natural Software All rights reserved.

Page 22: エフサミ2014

インテルRealSenseテクノロジー

Copyright © 2014 Natural Software All rights reserved.

Page 23: エフサミ2014

Leap Motion

• 指先を高精度で検出

• 使いやすいソフトウェア

• ハードウェアの内蔵化が進んでいる

https://www.leapmotion.com/

Copyright © 2014 Natural Software All rights reserved.

Page 24: エフサミ2014

Leap Motion SDK

Hand and Finger Tracking Gesture

http://www.buildinsider.net/small/leapmotionfirstimp/01

Touch

Copyright © 2014 Natural Software All rights reserved.

Page 25: エフサミ2014

Structure Sensor

• Kinect v1とほぼ同じセンサー

• iOS対応

• eBayにて発売開始

Copyright © 2014 Natural Software All rights reserved.

Page 26: エフサミ2014

ViewerおよびScanner

Copyright © 2014 Natural Software All rights reserved.

Page 27: エフサミ2014

デバイスの実行環境(OS)

Copyright © 2014 Natural Software.jp All rights reserved.

Windows Mac OSX Linux iOS Android

Kinect for Windows v1 ○ × × × ×

Kinect for Windows v2 ○ × × × ×

Intel RealSense ○ × × × △

Leap Motion ○ ○ ○ × △

Structure Sensor ○ ○ × ○ ×

Google Tango × × × × ○

Kinect for Wndows v2のソフトウェアやハードウェア、APIは暫定的なものであり正式版では変更される可能性があります。

凡例○:公式サポート △:将来的にサポート予定 ×:未サポート

Page 28: エフサミ2014

デバイスの実行環境(開発環境、言語)

Copyright © 2014 Natural Software.jp All rights reserved.

C++.NET

(C#,VB)WinRT

(C++,C#,VB)Unity(C#)

Objective-C JavaJava

Script

Kinect for Windows v1

○ ○ × △ × × ○

Kinect for Windowsv2

○ ○ ○ ○ × × ○

Intel RealSense ○ ○ × ○ × ○ ×

Leap Motion ○ ○ × ○ ○ ○ ○

Structure Sensor ○ ○ × ○ ○ × ×

Google Tango × × × × × ○ ×

Kinect for Wndows v2のソフトウェアやハードウェア、APIは暫定的なものであり正式版では変更される可能性があります。

凡例○:公式ライブラリあり △:非公式ライブラリあり ×:未サポート

Page 29: エフサミ2014

事例

Copyright © 2014 Natural Software All rights reserved.

Page 30: エフサミ2014

医療

http://www.youtube.com/watch?v=624N3-nIieICopyright © 2014 Natural Software All rights reserved.

Page 31: エフサミ2014

サイネージ

Copyright © 2014 Natural Software All rights reserved.

Page 32: エフサミ2014

空中ディスプレイKinect, Leap Motion, Intel PerC

Copyright © 2014 Natural Software All rights reserved.

Page 33: エフサミ2014

現実世界へのインタラクション階段+マッピング+Kinect

http://www.youtube.com/watch?v=h8wZnY_jWF8

Copyright © 2014 Natural Software All rights reserved.

Page 34: エフサミ2014

Photo by Ben Lorph

Kinect x 8台

Copyright © 2014 Natural Software All rights reserved.

Page 35: エフサミ2014

Kinectコンテストから

Copyright © 2014 Natural Software All rights reserved. http://k4wa.com/

Page 36: エフサミ2014

非接触バイタルセンシング

Copyright © 2014 Natural Software All rights reserved.

http://monoist.atmarkit.co.jp/mn/articles/1310/02/news063.html

Page 37: エフサミ2014

高齢者遠隔運動指導・管理モデルRehAct

Copyright © 2014 Natural Software All rights reserved.

http://monoist.atmarkit.co.jp/mn/articles/1310/02/news063_2.html

Page 38: エフサミ2014

Senz3D+Oculus Riftで行動誘導

Copyright © 2014 Natural Software All rights reserved.

Page 39: エフサミ2014

行動誘導の研究

Copyright © 2014 Natural Software All rights reserved.

https://www.youtube.com/watch?v=ldEyGeSw4M8

Page 40: エフサミ2014

Structure Sensorを使った試作

Copyright © 2014 Natural Software All rights reserved.

Page 41: エフサミ2014

センサー詳解

Copyright © 2014 Natural Software All rights reserved.

Page 42: エフサミ2014

KINECT V1

Copyright © 2014 Natural Software All rights reserved.

Page 43: エフサミ2014

Kinect v1

• NUIのさきがけ

• Xbox用のほかにWindows用のセンサーがある

Copyright © 2014 Natural Software All rights reserved.

http://www.xbox.com/ja-JP/xbox360

Page 44: エフサミ2014

Kinect for Windows SDK

Color Stream Depth Stream

Player Tracking Skeleton Tracking

Audio Stream

Copyright © 2014 Natural Software All rights reserved.

Page 45: エフサミ2014

Toolkit

Kinect FusionFace Tracking

Kinect Interaction Kinect Background Removal

Copyright © 2014 Natural Software All rights reserved.

Page 46: エフサミ2014

KINECT V2

Copyright © 2014 Natural Software All rights reserved.

Page 47: エフサミ2014

注意!!

• Kinect for Windows v2のソフトウェアやハードウェア、APIは暫定的なものであり正式版では変更される可能性があります。

Copyright © 2014 Natural Software All rights reserved.

Page 48: エフサミ2014

Kinect v2

Copyright © 2014 Natural Software All rights reserved.

Page 49: エフサミ2014

Kinect v2

• Xbox One に同梱された新しいKinect

• Kinect for Windows v2 Developer Preview の配布が始まっている

• Kinect for Windows v2のRTMは7月末の予定

• Kinect for Windows SDK v2 のRTMは未定

Copyright © 2014 Natural Software All rights reserved.

Page 50: エフサミ2014

Copyright © 2014 Natural Software All rights reserved.

Page 51: エフサミ2014

Copyright © 2014 Natural Software All rights reserved.

http://www.youtube.com/watch?v=Hi5kMNfgDS4

Page 52: エフサミ2014

KINECT V1とV2の比較

Copyright © 2014 Natural Software All rights reserved.

Page 53: エフサミ2014

Kinect for Windows v2のハードウェア要求

対応OS Windows 8, Windows 8.1

開発環境 Visual Studio 2012以降(C++, C#など)

CPU Core i7 2.5GHz以上 64bit CPU

メモリ 4GB以上

USB USB 3.0

グラフィック DirectX 11対応のグラフィックカード

Copyright © 2014 Natural Software All rights reserved.

Kinect v2のソフトウェアやハードウェア、APIは暫定的なものであり正式版では変更される可能性があります。

Page 54: エフサミ2014

センサーの仕様比較

Copyright © 2014 Natural Software All rights reserved.

Kinect v1 Kinect v2

Color画像640x480

1280x9601920x1080

Depth画像80x69

320x240630x480

512x424

Depthセンシング方式 Light Coding TOF(Time of Fright)

Depth認識範囲800mm-4000mm(Default)

400mm-3500mm(Near)500mm-4500mm

水平視野角 57度 70度

垂直視野角43度

(±27度:チルトモーター)60度

(http://goo.gl/pZQRKm)

Kinect v2のソフトウェアやハードウェア、APIは暫定的なものであり正式版では変更される可能性があります。

Page 55: エフサミ2014

センサーの仕様比較

Copyright © 2014 Natural Software All rights reserved.

Kinect v1 Kinect v2

人の検出 6人 6人

人の骨格検出 2人 6人

検出骨格数 20点/一人 25点/一人

手指検出 × △(親指と指先)

手のポーズ検出△

(Kinect Interaction:グー、パー)○(グー、チョキ、パー)

Kinect v2のソフトウェアやハードウェア、APIは暫定的なものであり正式版では変更される可能性があります。

Page 56: エフサミ2014

センサーの仕様比較

Copyright © 2014 Natural Software All rights reserved.

Kinect v1 Kinect v2

ジェスチャー△

(Kinect Interaction:入力支援)○

マイク 4つのマイクアレイ 4つのマイクアレイ

音声入力 ○ ○

チルトモーター あり なし

加速度センサー あり なし

Kinect v2のソフトウェアやハードウェア、APIは暫定的なものであり正式版では変更される可能性があります。

Page 57: エフサミ2014

センサーの仕様比較

Copyright © 2014 Natural Software All rights reserved.

Kinect v1 Kinect v2

USB USB 2.0 USB 3.0

複数Kinectの同時利用 4台まで 未定

複数アプリからの同時利用 × ○

Kinect v2のソフトウェアやハードウェア、APIは暫定的なものであり正式版では変更される可能性があります。

Page 58: エフサミ2014

Kinect for Windows SDK v2

Color Stream Depth Stream Skeleton Tracking

Copyright © 2014 Natural Software All rights reserved.

Kinect v2のソフトウェアやハードウェア、APIは暫定的なものであり正式版では変更される可能性があります。

Page 59: エフサミ2014

Depthを比較する

Copyright © 2014 Natural Software All rights reserved.

Kinect v1 Kinect v2

Kinect v2のソフトウェアやハードウェア、APIは暫定的なものであり正式版では変更される可能性があります。

Page 60: エフサミ2014

Kinect v2

反射の時間を測る

Depthセンシング方式(TOF)

Copyright © 2014 Natural Software All rights reserved.

Page 61: エフサミ2014

Depthセンシング方式(Light Coding)

ランダムな点を照射し、歪みを計測する

Copyright © 2014 Natural Software All rights reserved.

Page 62: エフサミ2014

Kinect for Windows v2

Copyright © 2014 Natural Software All rights reserved.

Kinect v2のソフトウェアやハードウェア、APIは暫定的なものであり正式版では変更される可能性があります。

Page 63: エフサミ2014

全身の骨格検出数

Copyright © 2014 Natural Software All rights reserved.

Kinect v1 : 20点/一人 Kinect v2 : 25点/一人

Page 64: エフサミ2014

全身の骨格検出数

Copyright © 2014 Natural Software All rights reserved.

Page 65: エフサミ2014

Kinect for Windows v2

Copyright © 2014 Natural Software All rights reserved.

http://www.innovotion.co.jp/blog/2013/11/27/22/

Page 66: エフサミ2014

Kinect for Windows v2

Copyright © 2014 Natural Software All rights reserved.

http://www.innovotion.co.jp/blog/2013/11/27/22/

Page 67: エフサミ2014

Kinect v1からのデータ

• ColorImageStream

– RGB または IR

• DepthImageStream

– Depth と PlayerIndex

• SkeletonStream

Copyright © 2014 Natural Software All rights reserved.

Page 68: エフサミ2014

Kinect v2からのデータ

• ColorFrameReader

• DepthFrameReader

• InfraredFrameReader

• BodyIndexFrameReader

• BodyFrameReader

• LongExposureInfraredFrameReader

• MultiSourceFrameReader

Copyright © 2014 Natural Software All rights reserved.

Page 69: エフサミ2014

改善点

• DepthとPlayerIndex(BodyIndex)が分離された

– V1ではDepthとPlayerIndexがひとまとまりだった

• ColorストリームとIRストリームを同時に読み込むことができる

– V1ではColorとIRストリームは排他(PrimeSense系センサーの仕様?)

Copyright © 2014 Natural Software All rights reserved.

Page 70: エフサミ2014

INTEL PERCEPUTUAL COMPUTING SDK

Copyright © 2014 Natural Software All rights reserved.

Page 71: エフサミ2014

Intel Perceptual Computing SDK

• 2013年3月に正式版がリリースされたSDK

• 手指および顔の認識、音声認識が特長

• 全ての機能はリファレンスカメラとしての「Creative* Interactive Gesture Camera」でのみ動作する

• 一部のカメラのみの機能はWebカメラでも動作する

• 以降 PerC SDKと表記する

Copyright © 2014 Natural Software All rights reserved.

Page 72: エフサミ2014

PerC SDK

Color Stream Hand and Finger Tracking Gesture and Pose Facial Analysis

Speech Recognition Voice Synthesis

"Nothing to say?"

Pulse EstimatorEmotion

Copyright © 2014 Natural Software All rights reserved.

Page 73: エフサミ2014

Sensor

http://download-software.intel.com/sites/default/files/article/325946/creativelabs-camera-productbrief-final.pdfCopyright © 2014 Natural Software All rights reserved.

Page 74: エフサミ2014

Creative* Camera

• SoftKinetic 社 DS325 互換

• Creative* Camera で SoftKinetic 社 iisu SDK を利用することもできる

• 逆(DS325 で PerC SDK)はできない

Copyright © 2014 Natural Software All rights reserved.

Page 75: エフサミ2014

RGB Camera

解像度 720p (1280×720 pixels)

フレームレート 30 fps

視野角 73 度

表示範囲 0m – 7.01m

Copyright © 2014 Natural Software All rights reserved.

Page 76: エフサミ2014

IR Depth Sensor

解像度 QVGA (320×240 pixels)

フレームレート 30 fps

視野角 73 度

認識範囲 15cm – 100cm

認識技術 Time-of-flight(TOF)

Copyright © 2014 Natural Software All rights reserved.

Page 77: エフサミ2014

インテルRealSenseテクノロジー

• 2014年1月のCESにて、PerC SDKやCreative* Cameraは「インテルRealSenseテクノロジー」として発表された

• 2014年末にはDepthセンサーが内蔵されたノートPCやタブレットPCが発売予定

Copyright © 2014 Natural Software All rights reserved.

Page 78: エフサミ2014

インテルRealSenseテクノロジー

Copyright © 2014 Natural Software All rights reserved.

Page 79: エフサミ2014

Copyright © 2014 Natural Software All rights reserved.

Page 80: エフサミ2014

LEAP MOTION

Copyright © 2014 Natural Software All rights reserved.

Page 81: エフサミ2014

Leap Motion

• Leap Motion社が販売しているデバイス

• 手や指の動きを認識する

Copyright © 2014 Natural Software All rights reserved.

Page 82: エフサミ2014

なにができるのか

http://www.youtube.com/watch?v=3b4w749Tud8

Copyright © 2014 Natural Software All rights reserved.

Page 83: エフサミ2014

Leap Motion SDK

Hand and Finger Tracking Gesture

http://www.buildinsider.net/small/leapmotionfirstimp/01

Touch

Copyright © 2014 Natural Software All rights reserved.

Page 84: エフサミ2014

Leap Motion SDK v2

http://www.buildinsider.net/small/leapmotionfirstimp/01Copyright © 2014 Natural Software All rights reserved.

Hand Tracking Arm Tracking

Page 85: エフサミ2014

Leap Motion のインタフェース

Leap Motion Application Interface Leap Motion WebSocket Interface

https://developer.leapmotion.com/documentation/GetStarted/Leap_Architecture.htmlCopyright © 2014 Natural Software All rights reserved.

Page 86: エフサミ2014

Airspace

Copyright © 2014 Natural Software All rights reserved.

Page 87: エフサミ2014

内蔵されたLeap Motion

http://gizmodo.com/heres-the-first-laptop-with-leap-motion-built-right-in-1346551607Copyright © 2014 Natural Software All rights reserved.

Page 88: エフサミ2014

デバイスの実行環境

Copyright © 2014 Natural Software All rights reserved.

Page 89: エフサミ2014

出力装置の進化

Copyright © 2014 Natural Software All rights reserved.

Page 90: エフサミ2014

ディスプレイを越えて

Copyright © 2014 Natural Software All rights reserved.

Page 91: エフサミ2014

http://www.youtube.com/watch?v=h8wZnY_jWF8Copyright © 2014 Natural Software All rights reserved.

Page 92: エフサミ2014

Oculus Rift(オキュラス・リフト)

http://www.oculusvr.com/Copyright © 2014 Natural Software All rights reserved.

Page 93: エフサミ2014

Copyright © 2014 Natural Software All rights reserved.

Page 94: エフサミ2014

触覚を得る

Copyright © 2014 Natural Software All rights reserved.

Page 95: エフサミ2014

http://www.youtube.com/watch?v=xaFBjUJj00M

Copyright © 2014 Natural Software All rights reserved.

Page 96: エフサミ2014

http://www.youtube.com/watch?v=CE4WsYncNa4

Copyright © 2014 Natural Software All rights reserved.

Page 97: エフサミ2014

今後の予測

Copyright © 2014 Natural Software All rights reserved.

Page 98: エフサミ2014

新しいデバイス

Copyright © 2014 Natural Software All rights reserved.

http://makezine.com/2014/01/12/make-editors-highlights-and-picks-from-ces-2014/

http://mobilesyrup.com/2014/01/09/thalmic-labs-shoots-to-kill-with-ces-demo-first-look/

Page 99: エフサミ2014

キーワード

• 内蔵化

• モバイル

• Web/クラウド

Copyright © 2014 Natural Software All rights reserved.

Page 100: エフサミ2014

内蔵化

センサーの内蔵化が進むでしょう。

• Leap Motion

• インテルRealSenseテクノロジー

Copyright © 2014 Natural Software All rights reserved.

https://www.leapmotion.com/

Page 101: エフサミ2014

インテルRealSenseテクノロジー

Copyright © 2014 Natural Software All rights reserved.

Page 102: エフサミ2014

内蔵化によるメリット

• ユーザーが個別にセンサーを購入する必要がなくなる

• センサーを所持するユーザーが増える

• センサーを使ったアプリケーションの需要が高まる

Copyright © 2014 Natural Software All rights reserved.

Page 103: エフサミ2014

モバイル

• iOSやAndroid対応のセンサーが発売され、モバイルでのセンサー利用が可能になるでしょう。

Copyright © 2014 Natural Software All rights reserved.

http://makezine.com/2014/01/12/make-editors-highlights-and-picks-from-ces-2014/

Page 104: エフサミ2014

モバイル化によるセンサー用途

• 空間スキャン

• ユーザーの向いている方向を認識

• ユーザーを認識

Copyright © 2014 Natural Software All rights reserved.

Page 105: エフサミ2014

Web/クラウド

• センサーSDKのブラウザ対応が進んでいます。Webやクラウドとセンサーの連携が進んでいくでしょう。

Copyright © 2014 Natural Software All rights reserved.

Page 106: エフサミ2014

Tokyo MotionControl Networkhttps://www.facebook.com/TokyoMotioncontrolNetwork