by The Techy Trees
get_paper(img): Detect and extract paper in a given image
OCR code adapted from the OpenCV tutorial
OCR using ORB and brute force feature match
Helper Functions
show_img(img): Show image in a window
to_gray_scale(img): Return a grayscale image
otsu(img): Return image after OTSU threshold
sort_contours(cnts, method="left-to-right"): Return a list of sorted countours
getBoundedImg(img, boundingBox): Crop a image according to a bounding box
get_rows(img): Return a list of bounding boxes of rows of text
get_chars(img): Return a list of characters sorted in rows