https://github.com/dyslevium/learning-opencv
https://github.com/dyslevium/learning-opencv
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dyslevium/learning-opencv
- Owner: DYSLEVIUM
- Created: 2021-11-03T18:59:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-03T19:08:00.000Z (about 4 years ago)
- Last Synced: 2025-01-20T19:27:11.155Z (11 months ago)
- Language: Python
- Size: 11.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Installation
```
$ pip install opencv-contrib-python
```
# Tutorial followed
https://youtu.be/oXlwWbU8l2o
# Rotation :
Suppose we have a point **P(x,y)** at an angle **alpha** and distance **r** from the origin as shown below. Now we rotate the point **P** about the origin by an angle **theta** in the clockwise direction. The rotated coordinates can be obtained as shown below.

So, we just need to create the transformation matrix **(M)** and then we can rotate any point as shown above. That’s the basic idea behind rotation. Now, let’s take the case with an adjustable center of rotation **O(x0, y0)**.

**Note:** The above expression is for clockwise rotation. For anti-clockwise minor changes in the sign will occur.