r/programming • • Nov 19 '10

Yet Another Kinect Hack

http://vimeo.com/16985224
662 Upvotes

253 comments sorted by

View all comments

83

u/bozleh Nov 19 '10

If they're not using the depth information, couldn't they just do this with any webcam?

95

u/[deleted] Nov 19 '10

The creator commented on that

it allows for really easy person detection and a cleaner silhouette. with a regular ir camera we would have to worry about the color of the clothes people are wearing, or do backlighting with IR lamps. The kinect also gives us the z distance of each joint - which means we could in theory have the puppet turn to face the viewer :)

also we can do stuff when another person touches the projection, or is near - ie have the birds react, stare etc.

for the simple silhouette isolation you are right, the kinect just makes it super easy - but for what we have in mind there will be a lot of fun stuff we can add using the device.

2

u/therapistoftheLpark Nov 19 '10

The kinect also gives us the z distance of each joint - which means we could in theory have the puppet turn to face the viewer :)

i dont think thats possible.. if the hand turns to the camera the joints in the back side get lost.

of course you could try to guess the new position.. but its gonna be a mess since the back of the head is literally lost. you can see how wide the beak is open but have no clue in which direction its watching.. a mess

1

u/[deleted] Nov 20 '10

if the hand turns to the camera the joints in the back side get lost.

That's exactly how your eyes work.

→ More replies (1)

1

u/MarderFahrer Nov 19 '10

And it is just coincidence that the video itself is dark as hell and everybody is wearing black clothes?

38

u/[deleted] Nov 19 '10

it is just coincidence that the video itself is dark as hell

They are using a projector I always turn off the lights when I use my projector.

→ More replies (7)

12

u/zoinks Nov 19 '10

they're european you retard.

40

u/hailpixel Nov 19 '10

Totally. I did something very similar a few years back with just opencv and some custom blob tracking. That said, they're probably getting some very clean data from the kinect.

19

u/insomniac84 Nov 19 '10

It is not just clean data. They don't need to put blobs on the arm to track it. They don't need to have the person standing against a solid colored background to isolate the arm. They don't need to do any work figuring out where the arm is.

The depth information makes it extremely easy to isolate the arm, and the whole arm gets tracked, not just blobs.

Sure, the programming after you isolate and read the arm may be the same, but the is a big difference in the kinect just tracking the arm directly rather than blobs.

8

u/ShapkaSamosranka Nov 19 '10

This is extremely interesting from a VFX point of you. Technically, if the image and depth image resolutions were high resolution enough, they could be used for what we currently utilize green and blue screens for, without needing to worry about chroma overlap on the talent.

That, and, you know, some high quality amazing weather forecasts.

6

u/mp2146 Nov 19 '10

Umm... Point of view.

1

u/twinkletits Nov 19 '10

And point of you ;)

→ More replies (1)

2

u/[deleted] Nov 20 '10

With a camera on a tripod and a static background with enough contrast between it and the subject, you can already "key out" the foreground by comparing a still of the background with the live video.

→ More replies (1)
→ More replies (7)
→ More replies (7)

26

u/pregzt Nov 19 '10

Technically this could be done with the webcam I guess. But it is easier to do with Kinect, because it is build to capture moving objects.

What's more Kinect captures the objects in 3D. I'm not too sure if this has been posted here, but still worth to have a look in this context:

http://www.youtube.com/watch?v=7QrnwoO1-8A

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

9

u/iamverycanadian Nov 19 '10 edited Nov 19 '10

The Kinect doesn't "capture objects in 3D". It provides a depth map, which can be used to construct a 3D representation.

EDIT: The point is that Bozleh is commenting that the kinect isn't special if they aren't using depth information, to which pregzt is saying that its special because it captures objects in 3D. Without the depth map, it doesn't do any 3D.

4

u/rukubites Nov 19 '10

I guess I am just a layman, but isn't this just the equivalent of saying a digital camera doesn't store pictures, merely image maps? It takes a jpeg or whatever decoder to interpret the saved file.

1

u/ann_also Nov 20 '10

Usually capturing objects in 3D refers to a 360 degree view from each of 3 axes.

This is only getting depth from a single vantage point. It has no idea if you are a 3-dimensional object or only a surface. It's like rendering terrain using a heightmap -- you can't have overhangs, caves, arches; it's like a rubber sheet you press your hand into.

Using 2 or more Kinects is the next step. Getting a side/top view.

→ More replies (12)

2

u/JimmerUK Nov 19 '10

Yep, with a webcam this would basically be the same set-up as PlayStation's EyeToy which was released eight years ago.

However, link this in with the 3D nature of the kinect it's probably a lot more accurate.

2

u/insomniac84 Nov 19 '10

No.

Because the kinect makes it easy to track just the arm. With a regular webcam you have to do extra work detecting the arm from the background.

With the connect, you just track the stuff closest to you. It is very very easy to isolate the arm from the background, because they are at different distances.

1

u/bozleh Nov 20 '10

Sure - I'm just commenting on how the guy in the video explicitly said they aren't using the depth information supplied by the kinect. I'm now guessing that they are (to isolate the arm from the background) and he meant they aren't using it any more than that - a bit confusing.

1

u/insomniac84 Nov 20 '10

He never said they are not using the depth information. He said they did not code it so you could rotate to face the camera yet.

They definitely used the depth information, because that is how you isolate the arm with ease.

1

u/bozleh Nov 20 '10

next thing we are gonna look at is taking the depth information into account

1 min 17 seconds - I just misunderstood an ambiguous statement

→ More replies (3)

2

u/kabr Nov 19 '10

Shadow Monsters by Phillip Worthington (2006) uses a simple webcam and does the image processing in 2D.

http://www.youtube.com/watch?v=tSJTTkwrZ9s
http://www.youtube.com/watch?v=g0TOQo_7te4

→ More replies (1)