panel_segmentation.panel_train.TrainPanelSegmentationModel.loadImagesToNumpyArray

TrainPanelSegmentationModel.loadImagesToNumpyArray(image_file_path)[source]

Load in a set of images from a folder into a 4D numpy array, with dimensions (number images, 640, 640, 3).

Parameters

image_file_path (string) – Path to folder where we want to process png images.

Returns

  • nparray

  • 4D numpy array with dimensions

  • (number images in folder, 640, 640, 3).