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

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

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.
![A snapshot of OpenCV Tutorial: Image Rotation](Media/opencv-tutorial-image-rotation.jpg) *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.
![A snapshot of OpenCV Tutorial: Minimum Area Rectangle](Media/opencv-tutorial-minimum-area-rectangle.jpg) *Figure 2: A snapshot of the rotated text image and its bounding rectangle.*
---