This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
import imutils | |
def find_rectangle_corners(image_path, flip_image=False): | |
# Read the image | |
image = cv2.imread(image_path) | |
# Convert the image to grayscale |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tesseract --help-extra | |
Usage: | |
tesseract --help | --help-extra | --help-psm | --help-oem | --version | |
tesseract --list-langs [--tessdata-dir PATH] | |
tesseract --print-parameters [options...] [configfile...] | |
tesseract imagename|imagelist|stdin outputbase|stdout [options...] [configfile...] | |
OCR options: | |
--tessdata-dir PATH Specify the location of tessdata path. | |
--user-words PATH Specify the location of user words file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Find functions without proper comments | |
def.+\):\n[^"]+?\n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
from pandas import DataFrame | |
# Replace with your file names | |
read_file = 'debug.log' | |
write_file = 'output.csv' | |
# Utility vars | |
count = [] | |
message = [] |