Ask Your Question
1

movement and distance detection within a room

asked 2014-03-02 10:28:34 -0600

SirBrux gravatar image

updated 2014-03-03 15:14:01 -0600

berak gravatar image

I am building a program that detects/tracks movement within a room and can determine where (quadrant or distance) that movement is within the room. Any suggestions on how this can be accomplished??

Further detail: Say the camera detects a person within the room from their movement when this happens I need to relay information that 1) there is movement (a person) and 2) spatially where they are within the room either by dividing the room into quadrants and relaying the quadrant or relay the distance from the camera (which is stationary).

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-03-03 14:35:11 -0600

Will Stewart gravatar image

updated 2014-03-03 14:47:52 -0600

If I understand you correctly, you need to translate between the coordinates of the room (where there is a 0,0 reference somewhere and the room coordinates can be laid out like a grid) and the x,y pixel location of the object in the image. Use findHomography() to understand the transformation and perspectiveTransform() to calculate each new point based on the homography.

This picture helps visualize the problem:

More at http://answers.opencv.org/question/1858/homography-for-cordinates-of-poins/ and http://stackoverflow.com/questions/9275567/opencv-homography-transform-a-point-what-is-this-code-doing

edit flag offensive delete link more

Comments

How is this coming along?

Will Stewart gravatar imageWill Stewart ( 2014-03-26 10:07:39 -0600 )edit

Question Tools

Stats

Asked: 2014-03-02 10:28:34 -0600

Seen: 879 times

Last updated: Mar 03 '14