https://github.com/ostad-ai/computer-vision-and-image-processing
A repository for topics and programs on Computer Vision and image Processing
https://github.com/ostad-ai/computer-vision-and-image-processing
computer-vision image-processing image-rotation opencv python
Last synced: 2 months ago
JSON representation
A repository for topics and programs on Computer Vision and image Processing
- Host: GitHub
- URL: https://github.com/ostad-ai/computer-vision-and-image-processing
- Owner: ostad-ai
- License: mit
- Created: 2022-11-20T17:44:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-03T13:49:35.000Z (over 3 years ago)
- Last Synced: 2025-03-17T02:45:07.481Z (over 1 year ago)
- Topics: computer-vision, image-processing, image-rotation, opencv, python
- Language: Jupyter Notebook
- Homepage:
- Size: 130 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Computer Vision and Image Processing
1. **OpenCV Tutorial, Image Rotation:** Here, a blank image is created. Then, it is filled by two rectangles using *rectangle* function. Next, the image is interactively rotated by changing the angle of rotation with a trackBar created by *createTrackbar*. Functions *getRotationMatrix2D* and *warpAffine* are used to implement the rotation around the center of the image.
 *Figure 1: A snapshot of image rotation by angle 30.*
---
2. **OpenCV Tutorial, Minimum Area Rectangle:** Using function *cv2.minAreaRect*, we find the boundign rectangle with minimum area for a set of poits. Here, points of a text are used. By pressing any key, the text image is randomly rotated. Then, we draw the computed minimum area rectangle over the image.
 *Figure 2: A snapshot of the rotated text image and its bounding rectangle.*
---