The MASM Forum Archive 2004 to 2012

General Forums => The Laboratory => Topic started by: Farabi on February 02, 2012, 05:02:55 AM

Title: Motion Tracker
Post by: Farabi on February 02, 2012, 05:02:55 AM
I created this long time ago, but never released the code. I was going into the mall on my town, and amazed when I looked at the door which is opened by itself. At first I though maybe the used infra red to detect movement, but after I experimented with it, I know that the door is controled by computers and the remembered each frame and then compared it with newest one. I tried to stand in front of the door, but then the door is closed, and when I move my hand, the door opened again by itself.

http://ompldr.org/vY2wwcg/SW_Graphic.rar

You can play with it and then connecting it into a microcontroler or a device so it can opened by it self. I put it to my glass so I can use my grass as a survelience camera.
Title: Re: Motion Tracker
Post by: Farabi on February 02, 2012, 10:31:11 AM
Tyring to figuring out the original idea is taking to much time for me, anyway, the algo is founded after 2 decades of research, I rather to look for tutorial now. Here is a nice one for the state of the art line edges detection.  http://www.aishack.in/2011/06/the-canny-edge-detector/
Title: Re: Motion Tracker
Post by: Tedd on February 02, 2012, 01:13:49 PM
Quote from: Farabi on February 02, 2012, 05:02:55 AM
I was going into the mall on my town, and amazed when I looked at the door which is opened by itself. At first I though maybe the used infra red to detect movement, but after I experimented with it, I know that the door is controled by computers and the remembered each frame and then compared it with newest one. I tried to stand in front of the door, but then the door is closed, and when I move my hand, the door opened again by itself.

I'm afraid this is still just a simple infra-red detector. It triggers when there is a change in infra-red level above a threshold.
So, when you move from not being in view of the detector to in-view, this is a change in infra-red and the door is triggered. As you stand there, there is very little change, so the close-door timer triggers and the door closes again. Then you move your arms and that triggers once again.
Title: Re: Motion Tracker
Post by: vanjast on February 03, 2012, 05:14:43 AM
From what I remember Tedd's correct here.
From what I've seen (it may be different on your side), the IR detector has a sector lens/detector and works on change in IR signal across sectors, not pure IR presence. This filters out any 'hot' stationary objects. Hence the door closes when you stand still, and opens when you move again.
:8)
Title: Re: Motion Tracker
Post by: Farabi on February 03, 2012, 09:16:43 PM
What I know is, IR had a short distance. But I guess the door triger mechanism is a simple IR mechanism.