Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I find theta on Matlab?

Status
Not open for further replies.

Abrar111

Electrical
Jul 14, 2011
1
Hello!

I'm working on a Tennis Ball Machine Project. The project aims to change the idea of tennis ball being shot at random on the tennis court, but to have the capability to intellectually interact with the player giving a tougher training exercise.
By utilizing image processing (Visual Servoing) , the project once completed will have a fully automated “Tennis robot” that detects where the player is on the court and intelligently interacts with him/her.

Anyway, the part I'm working on right now is to detect the player in the tennis court.
For now the camera only detect the player and give its coordinates on the screen in pixels.
However, I want to find the player location in real time (in the real court), this can be done by finding the the theta in Matlab between the norm and the player.

My question is how can I find theta?

Check the attachment for better clarification.

Thanks ..
 
Replies continue below

Recommended for you

I would agree that trigonometry is how you can find theta.
 
It is a bit unclear as to whether you have coordinates from your camera, Abrar. But in either case it's certainly unnecessary to be pretentious *cough cough IRSTUFF*. Assuming you do have the necessary information you can find theta with the formula provided in your picture I modified (attached).
 
 http://files.engineering.com/getfile.aspx?folder=30bd3a0b-5d4f-4ca5-8e01-dcea670b6ad8&file=Tennis_Court.jpg
Status
Not open for further replies.

Part and Inventory Search

Sponsor