Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lmcgartland/polaroid-digital-processor
Extract Polaroids from scans using OpenCV
https://github.com/lmcgartland/polaroid-digital-processor
Last synced: about 2 months ago
JSON representation
Extract Polaroids from scans using OpenCV
- Host: GitHub
- URL: https://github.com/lmcgartland/polaroid-digital-processor
- Owner: lmcgartland
- Created: 2021-12-14T03:36:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T07:15:11.000Z (11 months ago)
- Last Synced: 2024-10-17T10:20:56.703Z (2 months ago)
- Language: Python
- Size: 3.17 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### This is a work in progress!
After scanning hundreds of Polaroids manually and doing lightweight post-processing in the photos app (rotation/crop/sharpening), I figured it was time to automate the process. This script is my first try at utilizing OpenCV to automatically extract the Polaroids from a single scanned image file. If you have any issues, please open an issue on Github and I'll do my best to help resolve it. PRs are also welcome!## Getting started
**Requirements: Python 3**Create virtual environment
`python3 -m venv env`
Activate virtual env
`source env/bin/activate`Install deps
`pip install -r requirements.txt`Note on M1 Mac I was only able to get OpenCV installed using:
`arch -arm64 python3 -m pip install --no-cache --force-reinstall opencv-python`### Usage
Use a flatbed scanner to scan Polaroids at 400dpi. Replace hardcoded path to file in script to your file.Run script `python3 main.py`
Your individual images should appear in the `/out` directory
## Future
- Rewrite using OpenCV JS for deployment to browser and make tool more accessible.
- CLI interface