panel_segmentation.utils.plotEdgeAz#
- panel_segmentation.utils.plotEdgeAz(mask, no_lines=4, save_img_file_path=None, plot_show=False)[source]#
Draws the Hough line in the dominant (longest) direction on a segmentation mask.
- 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. We currently inspect the top 4 lines.
save_img_file_path ((string or None)) – Optional field where, if set, the assocaited output image is saved under the given path
plot_show ((boolean)) – Show the generated output plot in the console.
- Return type:
Plot is generated in console or saved, based on params passed