Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nathancy/pokemon_instagram_opencv_border

Add a 200px white border to PSA card images using Python OpenCV so you don't need to crop on Instagram
https://github.com/nathancy/pokemon_instagram_opencv_border

instagram opencv opencv-python pokemon python

Last synced: 27 days ago
JSON representation

Add a 200px white border to PSA card images using Python OpenCV so you don't need to crop on Instagram

Awesome Lists containing this project

README

        

# Pokemon Instagram OpenCV border

Add a 200px whitespace border to the card in order to prevent forced cropping on Instagram.

[https://www.instagram.com/coffeewin_/](https://www.instagram.com/coffeewin_/)

## Usage

Put all `.jpg` card images inside the same directory as the `add_border.py` script then run the script.

```
python add_border.py
```

Alternatively, you can run the `add_border_to_card.exe` binary executable. It will create a `/done` directory with all the processed cards inside.

Command to create `.exe`

```
pyinstaller --onefile --windowed --name="add_border_to_card" --icon="pikachu_face.ico" .\add_border.py
```

## Result

Before `->` After

![](docs/example.png)