Skip to content

ericperret/photo

Repository files navigation

📸 Photo

License: MIT Pure HTML/JS Image Processing

Perspective correction and image alignment tool for OCR and AI preprocessing.

Screenshot

🚀 Features

  • 4-Point Perspective Correction — Select corners, straighten documents
  • Automatic Edge Detection — Smart document boundary detection
  • Rotation & Deskew — Fix tilted scans
  • Crop & Export — Save corrected images
  • Real-time Preview — See results before applying
  • Touch Support — Works on tablets

🛠️ Tech Stack

  • Pure HTML/CSS/JavaScript
  • Canvas-based image manipulation
  • Homography transformation
  • No external dependencies

📖 Usage

  1. Open `index.html` in your browser
  2. Load an image (drag & drop or file picker)
  3. Click the 4 corners of the document
  4. Adjust if needed
  5. Export the corrected image

🎓 Use Cases

  • OCR Preprocessing — Straighten documents before text recognition
  • AI Input — Normalize images for machine learning
  • Document Scanning — Fix perspective from phone photos
  • Archive Digitization — Correct old scanned documents

📄 License

MIT

👤 Author

Eric PERRETGitHub

About

Perspective correction and image alignment tool for OCR/AI preprocessing. Straighten skewed documents. Pure HTML/JS.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages