pycognaize.common.utils
Functions
Cleans the ocr data |
|
Given the word and coordinates of the area, computes area of intersection :type word: |
|
If the input is a string representation of a number (with or without a %), convert it into float. |
|
Detect what python shell is being used - Standard Interpreter, Jupyter Notebook, Interactive shell or other |
|
Computes hash of directory summary |
|
Filters out nested html text lines |
|
Detect the coordinates of the first occurrence |
|
Group sequence into list example -> test_list = [1, 2, 3, 8, 15, 23, 24, 25, 10, 11, 13, 15] sequence_list = [[1, 2, 3], [23, 24, 25], [10, 11]] :type list_of_integers: :param list_of_integers: list of integers :return: list of grouped integers |
|
Convert image bytes into numpy array |
|
Convert a bytestring into a numpy array with opencv |
|
Image to only black and white image |
|
Infer row coordinates by class crop (table, column, row) |
|
Given the word and coordinates of the area, |
|
Check if the string value is a valid number. |
|
Join multiple path parts into a single path, optionally converting it to an S3-style path |
|
Preview the given image in a window |
|
Stick boxes with OpenCV |
Classes