DLHUB-LV: API Functions Overview

This article will provide a quick introduction to each LabVIEW API of DLHUB

Create.vi 

Description

Create a deep learning DLHUB object based on a frozen deep learning model.


Inputs

  • License Content: License content based on License Type to activate DLHUB functions.
  • Model Path: A frozen model file trained by DLHUB


Output

DLHUB object 

Predict.vi 

Description:

Perform deep learning prediction based on input values.


Inputs:

Input: Input data (1D)


Output:

Predicted Output: Predicted output (1D array)

Destroy.vi 

Description:

Destroy a deep learning DLHUB object and clean-up resources.

LoadImageData.vi 

Description

Load image file and convert it to input data (1D) to be used in the Predict.vi 


Inputs:

  • Input Shape: The shape of input data in the form of ( row, column, channel)
  • Input Path: The path to the image file


Outputs:

  • Data: The image data (1D) that represents the image
  • Original image: The representation of the image (for display purpose)
  • Processed image: The representation of the processed image (for display purpose)