Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nathancy/pokemon_instagram_opencv_border
- Owner: nathancy
- Created: 2020-09-18T07:00:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-18T07:27:48.000Z (over 4 years ago)
- Last Synced: 2024-11-15T02:05:27.549Z (3 months ago)
- Topics: instagram, opencv, opencv-python, pokemon, python
- Language: Python
- Homepage:
- Size: 41.1 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)