Dependency Description
Dependency |
Function |
|---|---|
Tensor |
Unified input and output structure for NumPy data conversion, host/device conversion, and Python model inference. |
Image |
Input/output structure of DVPP, which can be converted into tensors. |
Model |
Used for model loading and inference. |
ImageProcessor |
Image processing class, which opens APIs for image encoding, decoding, resizing, cropping, and pasting. |
VideoDecoder |
Video decoding class, which opens video decoding APIs. |
dvpp |
Decodes, reads, and resizes DVPP images, which will be discarded soon. You are advised to use the ImageProcessor class. |
log |
Prints logs of different levels. |
post |
Contains multiple model postprocessing classes, such as ResNet-50 and YOLOv3. |
Method for using dependencies:
1 2 | from mindx.sdk import base from mindx.sdk.base import Image, Model, ImageProcessor, Size, post |
Parent topic: API Reference (Python)