This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-01-26 13:24:07

The_Dancing_Donut
Scratcher
Registered: 2010-08-03
Posts: 1000+

Could Panther be used like the Kinect?

Erm... not sure if this is the right location - it seems kinda advanced.  hmm

So you know how Panther has the camera feature? Well, if your computer runs fast enough, you can program it so that it is constantly updating, like a video stream. I'm sure that you could always delete the first costume, so that the project doesn't lag too much. Yeah?

Now, I got an idea from the Eyepet (Playstation, not Kinect, I know) where the character appears to be in your room. If I got some paper that was, say, a particular shade of green, the lighting in the room consistent, and well-lit; could I use the green paper as a 'trigger', or 'remote'? So that if I held the paper up, then the 'pet' would move towards it? I have an idea of how to script it: I'd need a 'When Flag Clicked - Forever - If Touching Colour [selected with picker, I'd take a pic in good light conditions and pick the colour] - Do this, e.g. make the pet roll over.

I could make different coloured cards that act as triggers for different actions.

I haven't tested this and I'm not sure Panther is capable of this sort of thing...
I need reassurance, or someone to tell me it's just a dream.
Oh, and tips would help. If this turns out to be possible I'll get started on it right away  lol

Thanks for reading!  big_smile  Gah, you're thinking tl;dr, right?


Offending strangers since 2010.

Offline

 

#2 2011-01-26 13:55:29

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Could Panther be used like the Kinect?

idk, you could use the [replace costume (costume #) with [camera]] block to always have it showing camera. i really haven't experimented much with it, so i cant say about the second part

Offline

 

#3 2011-01-26 14:06:53

The_Dancing_Donut
Scratcher
Registered: 2010-08-03
Posts: 1000+

Re: Could Panther be used like the Kinect?

scimonster wrote:

idk, you could use the [replace costume (costume #) with [camera]] block to always have it showing camera. i really haven't experimented much with it, so i cant say about the second part

Oh yeah, that would reduce lag. I'm not that clear either. I love Panther but I'm not sure it could handle it...


Offending strangers since 2010.

Offline

 

#4 2011-01-26 14:10:35

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Could Panther be used like the Kinect?

Yes, absolutely possible! I've done some experimenting already where a Panther program locates a ball on the screen, recognises colours, shapes, barcodes, and even plays you at noughts and crosses using the webcam! It's not very easy though, the variable changes in background and lighting cause large problems so the programming has to be neatly constructed. I would say it's much more efficient to look for patterns than specific colours, so rather than a piece of green paper, try two white diamonds on a black sheet or something. That's a lot harder to program, as it's searching for a pattern, but well worth it as room brightness will have less of an effect  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#5 2011-01-26 14:15:11

The_Dancing_Donut
Scratcher
Registered: 2010-08-03
Posts: 1000+

Re: Could Panther be used like the Kinect?

sparks wrote:

Yes, absolutely possible! I've done some experimenting already where a Panther program locates a ball on the screen, recognises colours, shapes, barcodes, and even plays you at noughts and crosses using the webcam! It's not very easy though, the variable changes in background and lighting cause large problems so the programming has to be neatly constructed. I would say it's much more efficient to look for patterns than specific colours, so rather than a piece of green paper, try two white diamonds on a black sheet or something. That's a lot harder to program, as it's searching for a pattern, but well worth it as room brightness will have less of an effect  smile

Cool! I'm glad I'm not just a crazy person with an abstract idea  smile
I think it might be hard making the program recognise shapes, but I'll give it a try before I fall back on lame old colour cards.
I have an idea, and if it worked, it could be amazing...  wink


Offending strangers since 2010.

Offline

 

#6 2011-01-26 18:36:13

Necromaster
Scratcher
Registered: 2010-04-07
Posts: 1000+

Re: Could Panther be used like the Kinect?

sparks wrote:

Yes, absolutely possible! I've done some experimenting already where a Panther program locates a ball on the screen, recognises colours, shapes, barcodes, and even plays you at noughts and crosses using the webcam! It's not very easy though, the variable changes in background and lighting cause large problems so the programming has to be neatly constructed. I would say it's much more efficient to look for patterns than specific colours, so rather than a piece of green paper, try two white diamonds on a black sheet or something. That's a lot harder to program, as it's searching for a pattern, but well worth it as room brightness will have less of an effect  smile

Hurray! I was working on a project like this, but I was using colors and wasn't able to get it to work. I would think that recognizing patterns would be easier!  smile

Offline

 

#7 2011-11-16 17:02:21

redmario995
Scratcher
Registered: 2010-06-12
Posts: 16

Re: Could Panther be used like the Kinect?

they're making a rabbids game that uses AR just like EyePet where the rabbids appear in your house and you can slap them and such

Offline

 

#8 2011-11-17 11:33:17

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Could Panther be used like the Kinect?

IDK, but it sounds like a cool idea.  You might not be able to get the lighting absolutely perfect, so maybe you should see if you can allow for a small range of shades.

Offline

 

#9 2011-11-17 15:01:18

pen13
Scratcher
Registered: 2010-08-27
Posts: 100+

Re: Could Panther be used like the Kinect?

Yay pine apples


http://womrealms.com/char.php?nomimg1:3ri855a
pen13 http://blocks.scratchr.org/API.php?user=pen13&action=onlineStatus green= online gray=offline

Offline

 

#10 2011-11-17 15:26:06

rabbit1131
Scratcher
Registered: 2009-10-16
Posts: 1000+

Re: Could Panther be used like the Kinect?

Yup.


The Intergalactic Adventures of Revesilia! I hope you will partake in this gigantic undertaking, to build the sequel to the hit map The Adventures of Revesilia! The Intergalactic Adventures of Revesilia Map Builders Application thread! http://internetometer.com/image/35004.png

Offline

 

#11 2011-11-17 15:37:10

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Could Panther be used like the Kinect?

It could and I was going to make a project with it...

but...
then i found my web cam didn't work...


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#12 2011-11-18 14:35:33

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Could Panther be used like the Kinect?

You could use the colour blocks. You could do something like this:

make colour [saved shade]
show colour [saved shade v]
say [press space to save the colour]
repeat until <key [space v] pressed>{
replace costume (1) with [camera v]
set [saved shade v] to !colour of pixel at x(0) y(0)!
}
say []
hide colour [saved shade v]
forever {
replace costume (1) with [camera v]
if <(!saved shade! as string) = (!colour of pixel at x(0) y(0)! as string)>{
  broadcast [move the pet v] and wait
}
}

Last edited by joefarebrother (2011-11-18 14:35:50)


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#13 2011-11-18 21:48:17

hello12345678910
Scratcher
Registered: 2009-07-11
Posts: 100+

Re: Could Panther be used like the Kinect?

Pecola1 wrote:

It could and I was going to make a project with it...

but...
then i found my web cam didn't work...

haha  tongue


http://tinyurl.com/8yt32o9 http://tinyurl.com/6tgwp5r || Fish = F+I+S+H = 6+9+19+8 = 42<<The answer to Life, the Universe and Everything

Offline

 

Board footer