afrozchakure / Aadhar-OCR

This is a repository for Aadhar OCR 💳
GNU General Public License v3.0
6 stars 2 forks source link

Not detecting tilted images #6

Open afrozchakure opened 4 years ago

afrozchakure commented 4 years ago

Steps to resolve above issue:

  1. Take Original Image.
  2. Convert it to GrayScale.
  3. Apply edge detector to find the edges (Threshold)
  4. Find all the Contours present in the image.
  5. Filter and get the Biggest Contour
  6. Then use Warp Perspective to get the desired image.
  7. Apply Adaptive Threshold to get the scanned paper feel.
  8. Later we may save the image or directly feed to our Information extractor model.