https://github.com/ncdev2015/python-fish-eye-effect
Fish eye effect from an image
https://github.com/ncdev2015/python-fish-eye-effect
Last synced: over 1 year ago
JSON representation
Fish eye effect from an image
- Host: GitHub
- URL: https://github.com/ncdev2015/python-fish-eye-effect
- Owner: ncdev2015
- Created: 2025-03-21T00:26:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-21T03:02:33.000Z (over 1 year ago)
- Last Synced: 2025-03-21T03:29:28.494Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 662 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Python Fish Eye Effect
## Overview
This project implements a fish-eye effect on a stitched panorama created from multiple images. It utilizes OpenCV for image processing, NumPy for numerical operations, and Matplotlib for displaying the results. The main functionalities include stitching images together to form a panorama, applying a fish-eye lens effect, and visualizing the output.
## Installation
To run this project, you need to have Python installed on your machine. You also need to install the required libraries. You can do this using pip:
```bash
pip install opencv-python numpy matplotlib
```
## Usage
1. Place your image files in the `images` directory. You can use any number of images, but ensure they are suitable for stitching (i.e., overlapping regions).
2. Modify the `image_files` list in `main.py` to include the names of your images. The default example includes:
- image1.jpg
- image2.jpg
- image3.jpg
- image4.jpg
- image5.jpg
- image6.jpg
- image7.jpg
3. Run the application:
```bash
python main.py
```
4. The program will stitch the images, apply the fish-eye effect, and display the results. The output images will be saved in the `images` directory as `panorama.jpg` and `fisheye_panorama.jpg`.
## Directory Structure
```
python-fish-eye-effect
├── images # Directory for input images and output results
├── main.py # Main application file
└── README.md # Project documentation
```
## Contributing
Feel free to contribute to this project by submitting issues or pull requests. Your feedback and suggestions are welcome!
## License
This project is open-source and available under the MIT License.