Click here to Skip to main content
15,940,550 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I'm building an app using OpenCV4Android, I want to identify the position of the object w.r.t the line drawn on the frame(line drawn to check the pixel position after the movement detected).

I want to identify the position of the face ( or it can be any object detected, I detect object/face using haar classifiers).

For eg. if the face is moved say, 50/100 pixels either right or to left, it has to be identified.( I assume the face or object will be in the same position).

Is there anyway I can implement this.
Updated 10-Dec-14 17:34pm
Kornfeld Eliyahu Peter 9-Dec-14 1:29am    
Two points are never crossing! Maybe a line out of that two points can cross an other line of other two point...
Any case your question is unclear, please improve it...
Legor 10-Dec-14 4:42am    
Its not clear what you are trying to do. Please improve your question and be more specific.
Member 11291794 11-Dec-14 19:14pm    
Maybe the center of gravity of points can be used for your purpose I think.

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