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

#1 2012-11-17 18:39:36

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

An Idea That Will Blow Your Mind

(NOTICE: This Project Is For Scratch 2.0!) It is a project that recognizes other objects. REAL objects. It will use the webcam to sense color. It recognizes objects by creating a perimeter around the object that you want it to recognize (I will tell you how in the next post because I am short on time) then will calculate the distances from the angles (will also tell you how later) and if they are about certain distances apart, they will match up in a list of distances. Then it will check the color of the object by having a 1x1 sprite go across every pixel in the perimeter and check its color. It will then take the top 1 or 2 colors and classify it as that color. The color will then be checked on a list of colors that correspond to certain objects. It will then post the object that matches with all the variables.

NOTE: I am just short on time, that is why I haven't explained how most of this works.

NOTE #2: I was at a TMSCA Math competition and I got 10th place science out of tons of sixth graders! Yay!

Last edited by RoboNeo9 (2012-11-17 18:46:10)

Offline

 

#2 2012-11-17 18:49:27

StarscreamClone
Scratcher
Registered: 2012-05-19
Posts: 1000+

Re: An Idea That Will Blow Your Mind

Wow!


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i1154.photobucket.com/albums/p522/lizzyhipo/Angelica101-1-1-1.jpg&link2=http://i46.tinypic.com/2elqwdy.png&link3=http://i1273.photobucket.com/albums/y404/Hulydooly/decepticon.jpg&link4=http://i44.tinypic.com/34rvb07.png

Offline

 

#3 2012-11-17 18:50:31

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: An Idea That Will Blow Your Mind

StarscreamClone wrote:

Wow!

thanks!

Offline

 

#4 2012-11-17 18:55:53

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: An Idea That Will Blow Your Mind

586 Views 5 Minutes After I Posted It! Wow!

Offline

 

#5 2012-11-17 18:57:05

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: An Idea That Will Blow Your Mind

773! About one minute later

Offline

 

#6 2012-11-17 19:55:37

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: An Idea That Will Blow Your Mind

RoboNeo9 wrote:

773! About one minute later

That's probably just reloading the page all the time.

The concept is nice, but the problem is is that it's going to be really glitchy.
When will you know when to stop sensing?
How will you sense colors, there is no color sensing block. The only way to do it is to have 200 (I believe), ifs just for ONE pixel.
How will you classify the objects? The filled in outline of my computer (with angles highlighted of course), and a book, look almost exactly the same. And how do you know that's not just a random rectangular prism, or a oddly shaped pillow?

Also, how do you go to a math competition and win a science award? 0.0

NOTE #2: I was at a TMSCA Math competition and I got 10th place science out of tons of sixth graders! Yay!

Offline

 

#7 2012-11-17 20:02:14

StarscreamClone
Scratcher
Registered: 2012-05-19
Posts: 1000+

Re: An Idea That Will Blow Your Mind

TorbyFork234 wrote:

Also, how do you go to a math competition and win a science award? 0.0

NOTE #2: I was at a TMSCA Math competition and I got 10th place science out of tons of sixth graders! Yay!

I do not believe it is the science you are thinking of, otherwise, he wouldn't put it there.

About the glitches:
Yes, I suppose that would be a problem.  But, how about there is a sprite in a designated spot (it would be large and have a 2500 ghost effect, or something along those lines) and that would be "if touching color ___.

Last edited by StarscreamClone (2012-11-17 20:02:48)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i1154.photobucket.com/albums/p522/lizzyhipo/Angelica101-1-1-1.jpg&link2=http://i46.tinypic.com/2elqwdy.png&link3=http://i1273.photobucket.com/albums/y404/Hulydooly/decepticon.jpg&link4=http://i44.tinypic.com/34rvb07.png

Offline

 

#8 2012-11-17 20:03:14

StarscreamClone
Scratcher
Registered: 2012-05-19
Posts: 1000+

Re: An Idea That Will Blow Your Mind

Although, there would still be a ton of scripts anyway.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i1154.photobucket.com/albums/p522/lizzyhipo/Angelica101-1-1-1.jpg&link2=http://i46.tinypic.com/2elqwdy.png&link3=http://i1273.photobucket.com/albums/y404/Hulydooly/decepticon.jpg&link4=http://i44.tinypic.com/34rvb07.png

Offline

 

#9 2012-11-17 20:51:38

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: An Idea That Will Blow Your Mind

StarscreamClone wrote:

TorbyFork234 wrote:

Also, how do you go to a math competition and win a science award? 0.0

NOTE #2: I was at a TMSCA Math competition and I got 10th place science out of tons of sixth graders! Yay!

I do not believe it is the science you are thinking of, otherwise, he wouldn't put it there.

About the glitches:
Yes, I suppose that would be a problem.  But, how about there is a sprite in a designated spot (it would be large and have a 2500 ghost effect, or something along those lines) and that would be "if touching color ___.

Well, if you go to a math competition, I'd expect you to win some kind of math award, but, back on topic...

If it were large, then it would be touching multiple colors, and so how would you know which color were where?
And again, there would need to be about 200 of those if touching color for each section of the screen you want to check.

Offline

 

#10 2012-11-17 20:54:52

StarscreamClone
Scratcher
Registered: 2012-05-19
Posts: 1000+

Re: An Idea That Will Blow Your Mind

TorbyFork234 wrote:

StarscreamClone wrote:

TorbyFork234 wrote:

Also, how do you go to a math competition and win a science award? 0.0

I do not believe it is the science you are thinking of, otherwise, he wouldn't put it there.

About the glitches:
Yes, I suppose that would be a problem.  But, how about there is a sprite in a designated spot (it would be large and have a 2500 ghost effect, or something along those lines) and that would be "if touching color ___.

Well, if you go to a math competition, I'd expect you to win some kind of math award, but, back on topic...

If it were large, then it would be touching multiple colors, and so how would you know which color were where? Possibly, it could be a sprite that is a certain size and a certain shape and you select one of a few basic shapes (square, circle, etc.), and it shows slightly at first, giving you time to put it in the right area, then select the object it is.
And again, there would need to be about 200 of those if touching color for each section of the screen you want to check. Yes, I agree, but a lot of hard work pays off.

Last edited by StarscreamClone (2012-11-17 20:55:11)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i1154.photobucket.com/albums/p522/lizzyhipo/Angelica101-1-1-1.jpg&link2=http://i46.tinypic.com/2elqwdy.png&link3=http://i1273.photobucket.com/albums/y404/Hulydooly/decepticon.jpg&link4=http://i44.tinypic.com/34rvb07.png

Offline

 

#11 2012-11-17 21:26:54

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: An Idea That Will Blow Your Mind

TorbyFork234 wrote:

RoboNeo9 wrote:

773! About one minute later

That's probably just reloading the page all the time.

The concept is nice, but the problem is is that it's going to be really glitchy.
When will you know when to stop sensing?
How will you sense colors, there is no color sensing block. The only way to do it is to have 200 (I believe), ifs just for ONE pixel.
How will you classify the objects? The filled in outline of my computer (with angles highlighted of course), and a book, look almost exactly the same. And how do you know that's not just a random rectangular prism, or a oddly shaped pillow?

Also, how do you go to a math competition and win a science award? 0.0

NOTE #2: I was at a TMSCA Math competition and I got 10th place science out of tons of sixth graders! Yay!

Let's start with the science award: There are four tests in the competition which are number sense, general math, calculator, and science. I placed in the science test and I have no idea why it is there in the contest but whatever. For the color sensing: It will be hard to do but I will have it sense if it is touching any of the colors (and if colors are close enough' scratch automatically counts them as the same) that are in the rainbow. Then it will add the color that it senses to a list and add the pixel x,y to two other lists (x and y) and then move to the next pixel (if you do this in turbo mode, this can happen quite quickly) within the perimeter and it will count the number of each color and add the top three or four colors and their general x,y to lists. Then if the object falls under another objects shape and general colors (it will check this by checking the lists and then seeing if they match another objects variables (which will be in lists)).

Offline

 

#12 2012-11-17 22:07:53

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: An Idea That Will Blow Your Mind

RoboNeo9 wrote:

TorbyFork234 wrote:

RoboNeo9 wrote:

773! About one minute later

That's probably just reloading the page all the time.

The concept is nice, but the problem is is that it's going to be really glitchy.
When will you know when to stop sensing?
How will you sense colors, there is no color sensing block. The only way to do it is to have 200 (I believe), ifs just for ONE pixel.
How will you classify the objects? The filled in outline of my computer (with angles highlighted of course), and a book, look almost exactly the same. And how do you know that's not just a random rectangular prism, or a oddly shaped pillow?

Also, how do you go to a math competition and win a science award? 0.0

NOTE #2: I was at a TMSCA Math competition and I got 10th place science out of tons of sixth graders! Yay!

Let's start with the science award: There are four tests in the competition which are number sense, general math, calculator, and science. I placed in the science test and I have no idea why it is there in the contest but whatever.

    For the color sensing: It will be hard to do but I will have it sense if it is touching any of the colors (and if colors are close enough' scratch automatically counts them as the same) that are in the rainbow. Then it will add the color that it senses to a list and add the pixel x,y to two other lists (x and y) and then move to the next pixel (if you do this in turbo mode, this can happen quite quickly) within the perimeter and it will count the number of each color and add the top three or four colors and their general x,y to lists. Then if the object falls under another objects shape and general colors (it will check this by checking the lists and then seeing if they match another objects variables (which will be in lists)).

Made it a bit easier to read

Offline

 

#13 2012-11-17 23:00:27

laser314
Scratcher
Registered: 2010-07-16
Posts: 100+

Re: An Idea That Will Blow Your Mind

RoboNeo9 wrote:

TorbyFork234 wrote:

RoboNeo9 wrote:

773! About one minute later

That's probably just reloading the page all the time.

The concept is nice, but the problem is is that it's going to be really glitchy.
When will you know when to stop sensing?
How will you sense colors, there is no color sensing block. The only way to do it is to have 200 (I believe), ifs just for ONE pixel.
How will you classify the objects? The filled in outline of my computer (with angles highlighted of course), and a book, look almost exactly the same. And how do you know that's not just a random rectangular prism, or a oddly shaped pillow?

Also, how do you go to a math competition and win a science award? 0.0

NOTE #2: I was at a TMSCA Math competition and I got 10th place science out of tons of sixth graders! Yay!

Let's start with the science award: There are four tests in the competition which are number sense, general math, calculator, and science. I placed in the science test and I have no idea why it is there in the contest but whatever. For the color sensing: It will be hard to do but I will have it sense if it is touching any of the colors (and if colors are close enough' scratch automatically counts them as the same) that are in the rainbow. Then it will add the color that it senses to a list and add the pixel x,y to two other lists (x and y) and then move to the next pixel (if you do this in turbo mode, this can happen quite quickly) within the perimeter and it will count the number of each color and add the top three or four colors and their general x,y to lists. Then if the object falls under another objects shape and general colors (it will check this by checking the lists and then seeing if they match another objects variables (which will be in lists)).

It will still be ultra slow.


http://alpha.scratch.mit.edu/scratchr2/static//images/logo_sm.png 2.0 Alpha Tester!http://i49.tinypic.com/1zckcqb.png

Offline

 

#14 2012-11-17 23:03:12

infinitedroptheory
New Scratcher
Registered: 2012-11-17
Posts: 7

Re: An Idea That Will Blow Your Mind

˙ǝuo ƃuınƃıɹʇuı ǝɥʇ ǝʇınb sı ɹǝʇndɯoɔ ɐıʌ ʎʇılɐǝɹ ƃuıʇɐlnɯıs ɟo ɐǝpı ɹnoʎ ʇnq 'uʍolq uǝǝq ʎpɐǝɹlɐ sɐɥ puıɯ ʎW

Offline

 

#15 2012-11-17 23:28:07

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: An Idea That Will Blow Your Mind

infinitedroptheory wrote:

˙ǝuo ƃuınƃıɹʇuı ǝɥʇ ǝʇınb sı ɹǝʇndɯoɔ ɐıʌ ʎʇılɐǝɹ ƃuıʇɐlnɯıs ɟo ɐǝpı ɹnoʎ ʇnq 'uʍolq uǝǝq ʎpɐǝɹlɐ sɐɥ puıɯ ʎW

my mind has already been blown, but your idea of simulating reality via computer is quite the intriguing one. (i think that is what it says) FOR ANYONE WHO CAN'T READ THE UPSIDE DOWN ONE

Offline

 

#16 2012-11-17 23:30:46

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: An Idea That Will Blow Your Mind

laser314 wrote:

RoboNeo9 wrote:

TorbyFork234 wrote:

RoboNeo9 wrote:

773! About one minute later

That's probably just reloading the page all the time.

The concept is nice, but the problem is is that it's going to be really glitchy.
When will you know when to stop sensing?
How will you sense colors, there is no color sensing block. The only way to do it is to have 200 (I believe), ifs just for ONE pixel.
How will you classify the objects? The filled in outline of my computer (with angles highlighted of course), and a book, look almost exactly the same. And how do you know that's not just a random rectangular prism, or a oddly shaped pillow?

Also, how do you go to a math competition and win a science award? 0.0

Let's start with the science award: There are four tests in the competition which are number sense, general math, calculator, and science. I placed in the science test and I have no idea why it is there in the contest but whatever. For the color sensing: It will be hard to do but I will have it sense if it is touching any of the colors (and if colors are close enough' scratch automatically counts them as the same) that are in the rainbow. Then it will add the color that it senses to a list and add the pixel x,y to two other lists (x and y) and then move to the next pixel (if you do this in turbo mode, this can happen quite quickly) within the perimeter and it will count the number of each color and add the top three or four colors and their general x,y to lists. Then if the object falls under another objects shape and general colors (it will check this by checking the lists and then seeing if they match another objects variables (which will be in lists)).

It will still be ultra slow.

Not quite ULTRA slow, just slow.

Offline

 

#17 2012-11-17 23:57:38

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

Re: An Idea That Will Blow Your Mind

That seems very difficult but it sounds awesome and I can't wait to see it!


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&link4=http://i.imgur.com/POEpQyZ.png&link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#18 2012-11-18 00:42:52

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: An Idea That Will Blow Your Mind

RoboNeo9 wrote:

laser314 wrote:

RoboNeo9 wrote:


Let's start with the science award: There are four tests in the competition which are number sense, general math, calculator, and science. I placed in the science test and I have no idea why it is there in the contest but whatever. For the color sensing: It will be hard to do but I will have it sense if it is touching any of the colors (and if colors are close enough' scratch automatically counts them as the same) that are in the rainbow. Then it will add the color that it senses to a list and add the pixel x,y to two other lists (x and y) and then move to the next pixel (if you do this in turbo mode, this can happen quite quickly) within the perimeter and it will count the number of each color and add the top three or four colors and their general x,y to lists. Then if the object falls under another objects shape and general colors (it will check this by checking the lists and then seeing if they match another objects variables (which will be in lists)).

It will still be ultra slow.

Not quite ULTRA slow, just slow.

yes, ultra slow.

For every pixel, it will have to do about 100 checks (if you put them in if elses, it'll go quicker, I'm averaging to 100). So 1 point of data is 100 Scratch calculations, so far. Then, it'll have to check if it's the last point of data. So it would have to check every pixel around it, which is 8 more pixels. 820 calculations (for the initial ifs I add 20) per point. It would then have to do this for about 25x25 pixels, which means 625 pixels.
So, to just map out the data, you would have to have about 512,500 scratch calculations. Which is A LOT!!! and makes it ultra slow.
For the actual angles and edges, I don't know the complex math around it, but for the entire object, I'm going to add in 5000 (because of the complex math, it's not just 1+1, it's more calculations.).
to get one object, and to find the angles/edges, it would take you 517,500 scratch calculations. And if you make a simple "TURBO" speed calculation detector (if you want I can make it for you), you can see how long it takes for it to do 1+1 517,500 times.

Offline

 

#19 2012-11-18 00:51:19

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: An Idea That Will Blow Your Mind

I don't know if this would work really, because there are tons and tons of angles an object can be at. A banana could be on it's side, or have the top pointing at the webcam. Also, shading can very much play a part on color. Overall, I just don't think it will work very well. Sorry.

Offline

 

#20 2012-11-18 00:57:53

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: An Idea That Will Blow Your Mind

infinitedroptheory wrote:

˙ǝuo ƃuınƃıɹʇuı ǝɥʇ ǝʇınb sı ɹǝʇndɯoɔ ɐıʌ ʎʇılɐǝɹ ƃuıʇɐlnɯıs ɟo ɐǝpı ɹnoʎ ʇnq 'uʍolq uǝǝq ʎpɐǝɹlɐ sɐɥ puıɯ ʎW

Stop spamming up topics with upside down text. Use real text. It's really unnecessary.

Offline

 

#21 2012-11-18 00:58:45

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

Re: An Idea That Will Blow Your Mind

ImagineIt wrote:

infinitedroptheory wrote:

˙ǝuo ƃuınƃıɹʇuı ǝɥʇ ǝʇınb sı ɹǝʇndɯoɔ ɐıʌ ʎʇılɐǝɹ ƃuıʇɐlnɯıs ɟo ɐǝpı ɹnoʎ ʇnq 'uʍolq uǝǝq ʎpɐǝɹlɐ sɐɥ puıɯ ʎW

Stop spamming up topics with upside down text. Use real text. It's really unnecessary.

Yeah, I agree with you. If you see it again, just report it.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&link4=http://i.imgur.com/POEpQyZ.png&link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

#22 2012-11-18 05:34:25

soniku3
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: An Idea That Will Blow Your Mind

Wow! That's a mindblown.


internet's all about cats today.

Offline

 

#23 2012-11-18 08:29:17

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: An Idea That Will Blow Your Mind

TorbyFork234 wrote:

RoboNeo9 wrote:

laser314 wrote:


It will still be ultra slow.

Not quite ULTRA slow, just slow.

yes, ultra slow.

For every pixel, it will have to do about 100 checks (if you put them in if elses, it'll go quicker, I'm averaging to 100). So 1 point of data is 100 Scratch calculations, so far. Then, it'll have to check if it's the last point of data. So it would have to check every pixel around it, which is 8 more pixels. 820 calculations (for the initial ifs I add 20) per point. It would then have to do this for about 25x25 pixels, which means 625 pixels.
So, to just map out the data, you would have to have about 512,500 scratch calculations. Which is A LOT!!! and makes it ultra slow.
For the actual angles and edges, I don't know the complex math around it, but for the entire object, I'm going to add in 5000 (because of the complex math, it's not just 1+1, it's more calculations.).
to get one object, and to find the angles/edges, it would take you 517,500 scratch calculations. And if you make a simple "TURBO" speed calculation detector (if you want I can make it for you), you can see how long it takes for it to do 1+1 517,500 times.

I see your point now. It won't quite take 100 calculations per pixel because scratch already "rounds" the colors to a more basic color so really close colors are counted as the same.

Offline

 

#24 2012-11-18 11:01:53

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: An Idea That Will Blow Your Mind

started making this on panther and I just finished making it to where you can put a perimeter around the object.

Offline

 

#25 2012-11-18 11:46:03

RoboNeo9
Scratcher
Registered: 2012-05-09
Posts: 100+

Re: An Idea That Will Blow Your Mind

RoboNeo9 wrote:

started making this on panther and I just finished making it to where you can put a perimeter around the object.

and the scanner goes to the edge of the perimeter as high and to the left a possible

Offline

 

Board footer