Updated on 2022-03-13 GMT+08:00

Overview

Artificial intelligence pre-processing (AIPP) involves image resizing (including cropping and padding), color space conversion (CSC), and subtracting the mean value and multiplying a factor (pixel changing). All these functions are implemented by the AI Core.

For dynamic AIPP, the AIPP mode is only set to dynamic during model conversion, when different AIPP parameters can be used. Before model inference, however, the dynamic AIPP parameter values must be set in the code of the inference engine. To set the dynamic AIPP parameter values in the code of the inference engine, the AIPP configuration APIs provided in this section must be called. These APIs are defined in ai_tensor.h.