top of page
Inaugurated by IN-SPACe
ISRO Registered Space Tutor

S6-SA2-0180

What is the Role of Trigonometry in Computer Vision?

Grade Level:

Class 10

AI/ML, Physics, Biotechnology, Space Technology, Chemistry, Engineering, Medicine

Definition
What is it?

Trigonometry helps computers 'see' and understand the 3D world from 2D images, much like how our eyes work. It uses angles and distances to figure out the position, size, and orientation of objects in pictures and videos. This is crucial for tasks like recognizing faces or navigating self-driving cars.

Simple Example
Quick Example

Imagine your phone uses face unlock. When you hold your phone, it takes a 2D picture of your face. But your face is 3D. Trigonometry helps the phone calculate the angles and distances between your eyes, nose, and mouth in 3D space, even from a flat 2D image. This way, it can match your unique face structure and unlock your phone.

Worked Example
Step-by-Step

Let's say a security camera (at point C) is 4 meters away from a wall. A person (P) is standing against the wall. The camera captures an image where the person appears at an angle of 30 degrees from the camera's central line. We want to find the distance (x) of the person from the point on the wall directly opposite the camera (O).

1. Identify the knowns: Distance CO (adjacent side) = 4 meters, Angle C (theta) = 30 degrees. We need to find PO (opposite side) = x.
---2. Recall the trigonometric ratio that relates opposite and adjacent sides: tan(theta) = Opposite / Adjacent.
---3. Substitute the values: tan(30 degrees) = x / 4.
---4. We know that tan(30 degrees) is approximately 0.577.
---5. So, 0.577 = x / 4.
---6. Multiply both sides by 4: x = 0.577 * 4.
---7. Calculate x: x = 2.308 meters.
---Answer: The person is approximately 2.31 meters away from the point on the wall directly opposite the camera.

Why It Matters

Trigonometry is the backbone of how computers interpret visual information, making smart technology possible. It's used in building robots that can navigate complex environments, in medical imaging to see inside the human body, and in creating realistic graphics for video games. Careers in AI/ML engineering, robotics, and game development heavily rely on these concepts.

Common Mistakes

MISTAKE: Confusing which side is opposite or adjacent to a given angle in a right-angled triangle. | CORRECTION: Always identify the hypotenuse first (opposite the 90-degree angle). Then, for the angle you are considering, the side touching it (but not the hypotenuse) is adjacent, and the side across from it is opposite.

MISTAKE: Using the wrong trigonometric ratio (e.g., using sine instead of cosine). | CORRECTION: Remember SOH CAH TOA: Sine = Opposite/Hypotenuse, Cosine = Adjacent/Hypotenuse, Tangent = Opposite/Adjacent. Carefully check which sides you know and which you need to find.

MISTAKE: Forgetting to convert angles from degrees to radians (or vice versa) when using calculators or programming tools that expect a specific unit. | CORRECTION: Always check the mode of your calculator or the requirements of the software you are using. Most Class 10 problems use degrees, but advanced computer vision often uses radians.

Practice Questions
Try It Yourself

QUESTION: A drone camera is flying at a height of 100 meters. It spots a car on the ground at an angle of depression of 45 degrees. How far is the car from the point directly below the drone? | ANSWER: 100 meters

QUESTION: A robot arm needs to pick up an object. The arm's base is at (0,0). The object is at a position where its x-coordinate is 3 units and its y-coordinate is 4 units. What is the angle (in degrees) the robot arm needs to make with the positive x-axis to reach the object? (Hint: Use tan inverse) | ANSWER: Approximately 53.13 degrees

QUESTION: A security camera is placed 5 meters above the ground. It can detect objects up to a maximum angle of depression of 60 degrees. What is the maximum horizontal distance from the base of the pole where the camera can detect an object on the ground? | ANSWER: Approximately 2.89 meters

MCQ
Quick Quiz

Which trigonometric ratio would you use to find the height of a building if you know the distance from its base and the angle of elevation to its top?

Sine

Cosine

Tangent

Cotangent

The Correct Answer Is:

C

Tangent relates the opposite side (height of the building) to the adjacent side (distance from the base). Sine and Cosine involve the hypotenuse, which is not directly given in this scenario.

Real World Connection
In the Real World

When you use Google Maps or any navigation app, trigonometry helps calculate distances and angles to show you the best route. In self-driving cars, cameras and sensors constantly use trigonometry to map out the road, detect obstacles, and understand their own position relative to other vehicles and traffic signals. This is how they 'see' and make decisions on busy Indian roads.

Key Vocabulary
Key Terms

COMPUTER VISION: Giving computers the ability to 'see' and interpret images and videos | ANGLE OF ELEVATION: The angle measured upwards from the horizontal line to an object | ANGLE OF DEPRESSION: The angle measured downwards from the horizontal line to an object | HYPOTENUSE: The longest side of a right-angled triangle, opposite the right angle | TRIGONOMETRIC RATIOS: Relationships between the angles and sides of a right-angled triangle (sine, cosine, tangent)

What's Next
What to Learn Next

Now that you understand how trigonometry helps computers see, you can explore 'Vectors and 3D Geometry'. This will show you how these angles and distances are represented in a computer's memory to build a complete 3D model of the world, which is essential for advanced computer vision applications like virtual reality.

bottom of page