Top Banner
3D DANCE HEAD USING KINECT AND 3D PROJECTOR Supervised by Prof. LYU Rung Tso Student: Chan Wai Yeung (1155005 Lai Tai Shing (1155005
30

Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

Jan 01, 2016

Download

Documents

Marjory Cox
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

3D DANCE HEAD USING KINECT AND 3D PROJECTOR

Supervised by Prof. LYU Rung Tsong MichaelStudent: Chan Wai Yeung (1155005589)

Lai Tai Shing (1155005604)

Page 2: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

2

Introduction Objectives 1st term review 2nd term work Design & Implementation Limitation Conclusion Q & A

Page 3: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

3

Introduction Participants’ heads are superimposed to the

dancers Limitation of current Dance Head

Inspirationo Play Dance Heads without the limitation o Use the popular device Kinect to capture the head

Page 4: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

4

Objectives Study the Kinect SDK or other libraries Design and implement an algorithm to extract the

“Head” part using Kinect Rendering the image in 3D Study Point Cloud library used for reconstruct the

3D point image. Make some special features for the application

Page 5: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

5

Development tools Programming Language (C++) Open source libraries

o OpenNI o OpenCV o Point Cloud Library

Operating system o Linux (1st term)o Windows (2nd term)

Page 6: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

6

1st term work Study open source libraries

o OpenNI • As a channel to get data from KINECT

• Color image• Depth map

o OpenCV • Cascade classifier for detection of face• Image processing

Page 7: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

7

Different methods Cutting the head by radius

Edge detection

Surface normal

Surface normal combined with depth value

Page 8: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

8

Page 9: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

9

Overall work Semester 1

o Capture image from Kinecto Face Detection OpenCVo Extract people from backgroundo Extract the head part by surface normal

Semester 2o Pass image data to Point Cloud Libraryo Reconstruct the 3D point imageo Add special features to applications

Page 10: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

10

Optimize sem1’s work Multi-faces detected

o Use extra variable to save characteristics of different face

Improve frame rate o Reduce the computation of parts

Speed up the face detection o Scale down the image resolution

Improve the cutting edge of heado Estimate the edge values by the near points

Page 11: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

11

Point Cloud Library Free and open source library Run on different platform

o Windows/ MacOS/ Android/ IOS Data structure used to represents wide range of

multi- dimensional points 3D point cloud

o Represent X, Y, and Z geometric coordinates Use point to reconstruct the captured object

Page 12: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

12

Compatible to hardware sensorso Kinect o PrimeSensor 3D camera

2D / 3D image processing 9 modules

o Filters / features / keypoints / registeration / kdtree / octree / segmentation / sample_consensus / surfae / range_image / io / visualization

Page 13: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

13

Point Cloud data type Point

o RGBXYZo XYZo RGBXYZA

Point Cloudo Collection of points

Page 14: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

14

3D stereoscopy With glasses

o Active o Passive

Without glasseso Time-multiplexedo Spatial-multiplexed

Page 15: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

15

Active glasses Shutter glasses Screen would alternately display the left-eye and

right-eye images Glasses would shield left and right alternately

Page 16: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

16

Passive glasses Use special glass to filter out different image

o Red-Blueo Polarizer

Page 17: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

17

Design

OpenNI retrive data

Face detected by

OpenCV

Point Cloud Library

Page 18: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

18

openni_wrapper

OpenNI retrive data

Point Cloud

Library

Page 19: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

19

Implementation Module io

o Save and load background Module visualization

o Render or draw 3D shapes

Page 20: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

20

Page 21: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

21

Features Blur function Swap faces between two players Enlarge or reduce the face size Load image to the background Move forward or backward to the image of the

players

Page 22: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

22

Blur function

To smoothen the surface of point cloud

Page 23: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

23

Swap faces between two players

Two face detected at the same time

“v” : swap the faces between 2 players

Page 24: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

24

Enlarge or reduce the face size

“,” “.” : enlarge and reduce the size of the players’ faces

Page 25: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

25

Load image to the background

“k” : capture the image and save as background“l” : load the image to the background“b” : change or reset the background

Page 26: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

26

Move forward or backward to the image of the players

“[” ”]” : move forward or backward of the players

Page 27: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

27

3D display

A demo of red blue 3D stereo

Page 28: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

28

Limitation Side view problem

o Cannot detect side view of players Quality of the output image Kinect limitation

o Errors occur when detecting black objectso Black colour absorb infra red

Error of face detectiono The cascade may not fit all kind of faces

Low frame rate o Heavy pixel by pixel computation

Page 29: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

29

Conclusion Image processing OpenCV PCL 3D point image Face detection

Page 30: Supervised by Prof. LYU Rung Tsong Michael Student: Chan Wai Yeung (1155005589) Lai Tai Shing (1155005604)

30

Q & A