An open API service indexing awesome lists of open source software.

https://github.com/dyslevium/learning-opencv


https://github.com/dyslevium/learning-opencv

Last synced: 5 months ago
JSON representation

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.