Skip to content

a4-object-detection-Elshan-Projects created by GitHub Classroom

Notifications You must be signed in to change notification settings

ADA-GWU/a4-object-detection-Elshan-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

  • The notebook containing my solution: Assignment_5_NB.ipynb
  • The image used for the experiments is at: Original_Images/Image_1.jpeg
  • Dependencies: pip install opencv-python numpy easyocr matplotlib

Border Detection

Border detection is done by initially detecting the edges with opencv's Canny and then a rectangular contour is recognized to be displayed on top of the original image.

Perpective transform

Perspective transform is also done with opencv by transforming the rectangular contour from the "Border Detection" stage into 4 corner points. The resulting image is saved in the folder named "Results_Folder" under the name _"image_name"+"Perspective" and displayed with matplotlib.

Text Recognition

Text Recognition was carried out with MSER where the detected text was highlighted with red. The resulting image is saved in the folder named "Results_Folder" under the name "image_name"+"_MSER" and displayed with matplotlib.

Image to Text conversion With a Pre-trained Model

A pre-trained CRNN model was loaded via the "easyocr" library which extracted the text from the "highlighted_image" array from the "Text Recognition" stage to be printed and saved in the "Results_Folder" under the name "image_name"+"Text" in txt format.

About

a4-object-detection-Elshan-Projects created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published