Development Workflow
Process Description
Figure 1 API development process
Key Steps
- Initialize Vision SDK APIs before using them to develop applications.
- Perform media data processing/model inference.
- Media data processing includes image encoding and decoding, cropping, resizing, and padding.
- Model inference, including object recognition and image classification, consists of the following steps.
- Before model inference, prepare a proper OM model. You can also convert other pre-trained models into OM models. For details, see CANN ATC Instructions.
- Load the prepared model to the system as a file or through memory.
- Optional: Perform media data processing. Before model inference, operations can be performed on the input media data, including image decoding, cropping, resizing, and padding.
- Run model inference to implement functions such as image classification and target recognition.
- Optional: Perform postprocessing on the data output after model inference. The inference result is processed based on user requirements. For example, it can be processed as a specific result that is readable. Model postprocessing supports the following ways:
- (Recommended) Select a model postprocessing mode by yourself.
- Call the Vision SDK APIs.
- Perform deinitialization by calling mx_deinit().
Parent topic: Development Using APIs (Python)