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

#1 2009-06-26 13:11:54

pip
Scratcher
Registered: 2008-01-17
Posts: 14

Live Video?

I was wondering if there was some sort of a way to have a live running video (like from a webcam) in your scratch project. The reason I was wondering this was because I have been trying to find a way to make a game that used a bit of tracking what you were actually doing. Maybe a python script? If anybody has an ideas, that would be great.  big_smile
Thanks,
Pip

Last edited by pip (2009-06-26 13:12:35)

Offline

 

#2 2009-06-26 13:36:35

Mozaz
Scratcher
Registered: 2009-05-19
Posts: 500+

Re: Live Video?

I don't think this would be possible ever, because there's privacy problems etc.


http://i33.tinypic.com/15i5fmp.png

Offline

 

#3 2009-06-26 13:41:46

pip
Scratcher
Registered: 2008-01-17
Posts: 14

Re: Live Video?

Well, of course not on the internet, but there HAS to be some sort of a way to do it on your own computer. You can literally do ANYTHING if you know how to. I'm just wondering if there is a simple python script to do it.

Offline

 

#4 2009-06-26 13:45:50

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: Live Video?

There should scripts for processing data from camera, but they need to be modified for Scratch.......... Maybe there is something in Ruby?


Converting my Scratch projects to Python!

Offline

 

#5 2009-06-26 13:47:58

lxt
Scratcher
Registered: 2008-07-11
Posts: 27

Re: Live Video?

I've actually written a video tracker for Scratch, but it's incredibly unstable. I used Processing, but you could use any software package you're familiar with - all you need to do write something that tracks co-ordinates, converts them to the scratch co-ordinate system, and then uses the undocumented networking protocol in Scratch to send them over TCP (check out the Sensor sub-forum for more info).

Offline

 

#6 2009-06-26 14:41:28

pip
Scratcher
Registered: 2008-01-17
Posts: 14

Re: Live Video?

Wait... What programing language did YOU use?

Offline

 

#7 2009-06-26 14:57:02

pip
Scratcher
Registered: 2008-01-17
Posts: 14

Re: Live Video?

Oh sorry. Processing. Could you copy and paste the script and paste it?
Thanks a lot.
Pip

Offline

 

Board footer