Erm... not sure if this is the right location - it seems kinda advanced.
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
Thanks for reading!
Gah, you're thinking tl;dr, right?
Offline
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
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...
Offline
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
Offline
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
![]()
Cool! I'm glad I'm not just a crazy person with an abstract idea
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...
Offline
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
![]()
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!
Offline
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
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
Yup.

Offline
It could and I was going to make a project with it...
but...
then i found my web cam didn't work...
Offline
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)
Offline
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
Offline