panel_segmentation.panel_detection.PanelDetection.hasPanels

PanelDetection.hasPanels(test_data)[source]

This function is used to predict if there is a panel in an image or not. Note that it uses a saved classifier model we have trained and not the segmentation model.

Parameters

test_data (nparray float or int) – The satellite image. The shape should be [a,640,640,3] where ‘a’ is the number of data or (640,640,3) if it is a single image

Returns

  • boolean

  • True if solar array is detected in an image,

  • and False otherwise.