pyaesthetics.utilsΒΆ

This modules contains different utilities that are used across different modules in pyaesthetics.

Created on Fri Aug 2 10:51:17 2024 Last Edited on Wed Sep 11 18:53:30 2024

@author: Giulio Gabrieli (gack94@gmail.com)

Functions

calculate_gradient

Calculate the gradient of an image using the Sobel operator.

find_child_nodes

Find the child nodes in an 8x8 matrix given a parent node index in a 4x4 matrix.

find_neighbors

Find all neighboring cells for a given cell index in an NxN matrix.

find_parent_node

Find the parent node in a 4x4 matrix given an index in an 8x8 matrix.

runtest

This function runs a complete test to verify the integroty

sRGB2RGB

this function converts a sRGB img to linear RGB values.

tablify_results

This function converts a dictionary of results into a pandas DataFrame, where keys become column headers and values are the corresponding row data.

textdetection

This function uses pytesseract to get information about the presence of text in an image.