image_utils.ImageData, contains raw image data, width, height
and channels info.
is_from_numpy_array
boolean, whether image_data is loaded from
numpy array. if False, it means that image_data is loaded from
stbi_load** function in C++ and need to free the storage of ImageData in
the destructor.
Attributes
buffer
Gets the numpy array that represents self.image_data.
numpy array with dtype=uint8. Its shape should be either (h, w, 3)
or (1, h, w, 3) for RGB images, either (h, w) or (1, h, w) for GRAYSCALE
images and either (h, w, 4) or (1, h, w, 4) for RGBA images.
Returns
TensorImage object.
Raises
ValueError if the dytype of the numpy array is not uint8 or the
dimention is not the valid dimention.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-08 UTC."],[],[]]