Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Is it possible for someone to write a program that tells if an object is behind another?
e.g can this photo http://oi33.tinypic.com/14jqjom.jpg[^]
be read by a program and the program inputs "black object is in front of the red object"?
Posted
Comments
EbolaHost 18-May-14 13:39pm    
Im not asking for someone to write me a program.I just want to know if there's a solutions
Also.. It's "outputs" not "inputs".. I cant seem to find the edit button on my phone
OriginalGriff 18-May-14 13:48pm    
The edit button is "Improve question" and it's at the bottom right of your question text.
EbolaHost 18-May-14 14:01pm    
Yeah i know but it seems to be hiding today(no joking)
SoMad 18-May-14 14:07pm    
Those controls are hidden and show up on mouse hover. Try touching somewhere in the middle of the post to see if that reveals the controls.

Soren Madsen
OriginalGriff 18-May-14 14:13pm    
I can't see it either, if I'm in "mobile" mode - scroll to the bottom left of the page and switch to "Full site" - you'll see it then.
I'll report it in sugs'n'bugs...

1 solution

yes, you can!
but... this capability is limited by some factors:
1. you cannot tell if an object is behind another object if it is a photo and the objects are unknown to your brain (in the sense of recognition) e.g. they are just random polygons, so neither you nor a machine (capable of 3d vision) can tell. But, as soon as these objects are moving take a look at #3
2. so either your machine has a database to look up objects like "hey this is half of a car, so the rest must be hidden behind another object" -> car is in background! This works even in 2D.
or
3. your machine must be capable of moving the "head" (just a bit) to see if some more of any of these objects gets visible. that's another trick humans use to tell and is only possible on a 3d system.

maybe there are some other ticks but head/camera movement and object tracking maybe combined with an object database would perfectly solve this problem - in theory!

there may be other methods. about 10 year ago I played around with intels opencv and a tv card, and when it comes to tracking humans, sports on tv are perfect "training material" because you can use the geometry of the human body, tricot colors or even public faces (free and public available) as training material. and, these events are all filmed nearly at same distance, angle, etc. so perfect conditions!

have fun
 
Share this answer
 
v6
Comments
Bernhard Hiller 19-May-14 2:59am    
Let's add to 3: if you have more than one single eye, you can get extra information, e.g. the angles between the eyes, differences in the overlap etc.
Also note that focussing may give some information on distance.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900