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

https://github.com/ethand91/opencv-cartoon-filter

Simple Opencv + Python example showing cartoon filter
https://github.com/ethand91/opencv-cartoon-filter

computer-vision opencv python sample tutorial

Last synced: 14 days ago
JSON representation

Simple Opencv + Python example showing cartoon filter

Awesome Lists containing this project

README

          

# Introduction

Simple opencv + python example showing how to cartoonize an image.

---

## How to Use

Install The Requirements

```bash
python3 -m venv env
source env/bin/activate

pip install -r requirements.txt
```

Run the sample

```bash
python main.py -i [imageFile]
```

Output will be saved in the local directory.

## Samples

### HDR Filter

![HDR Filter](https://i.ibb.co/qJvhY2h/hdrImage.jpg)

### Pencil Sketch

![Pencil Filter](https://i.ibb.co/B3cSG5Z/pencil.jpg)

### Sepia

![Sepia Filter](https://i.ibb.co/GtdBKnG/sepia.jpg)

### Sharpen

![Sharpen Filter](https://i.ibb.co/4g3VV0W/sharper.jpg)

### Brightness

![Brightness Filter](https://i.ibb.co/fY1q23V/brighter.jpg)

### Darkness

![Darkness Filter](https://i.ibb.co/ygB7cgY/darker.jpg)

### Greyscale

![Greyscale Filter](https://i.ibb.co/DbHHHds/grayscale.jpg)

### Invert

![Inverted Filter](https://i.ibb.co/y6vr0Xw/inverted.jpg)