pyaesthetics.linesdetection.get_lines_ratio¶
- pyaesthetics.linesdetection.get_lines_ratio(lines, curves)¶
Calculate the ratio of the total length of straight lines to the total length of curved lines in an image.
- Parameters:
lines (list of numpy.ndarray or None) – List of detected straight lines.
curves (list of numpy.ndarray) – List of detected contours.
- Returns:
The ratio of total straight line length to total curved line length. Returns NaN if division by zero occurs.
- Return type:
float