pyaesthetics.linesdetectionΒΆ

This module contains functions to evaluate the amount of straight and curved lines in an image. This is a very experimental feature; usage is not recommended.

Created on Wed Jul 31 11:49:45 2024 Last edited on Fri Aug 2 11:46:24 2024

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

Functions

analyse_lines

Analyze an image to determine the ratio of the total length of straight lines to the total length of curved lines.

calculate_distance

Calculate the distance between two points (x1, y1) and (x2, y2).

get_curved_lines

Detect curved lines (contours) in an image.

get_lines_ratio

Calculate the ratio of the total length of straight lines to the total length of curved lines in an image.

get_straight_lines

Detect straight lines in an image using the Hough Line Transform.