Skip to content

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

Notifications You must be signed in to change notification settings

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 PERRET β€” GitHub

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages