panel_segmentation.utils.detectAzimuth#

panel_segmentation.utils.detectAzimuth(mask, number_lines=4)[source]#

This function uses a Hough transform to detect the most dominant lines in an image mask and the azimuth of the longest direction.

Parameters:
  • mask ((nparray bool)) – The mask containing the extracted solar panels set True, and other pixels set to False. Dimension: (640, 640)

  • number_lines ((int)) – This variable tells the function the number of dominant lines it should examine. Default set to 4.

Returns:

azimuth – The azimuth of the panel in the image.

Return type:

(int)