Skip to main content

1.Overview

💡 Introduction for BeginnersCompared to general image search and OCR, by loading specifically trained models, you can easily achieve more powerful and versatile image recognition and object detection capabilities.

API List

2.Load ONNX Model

Load the specified ONNX model file, start an independent inference process, and return the unique identifier (onnxId) of the model. 💡 Hardware Acceleration This API automatically detects whether the host machine supports CUDA. If not supported, it defaults to CPU inference without manual configuration.

API Description

API Type

Parameters

Response Payload

Returns a string type model ID (onnxId) in the format: onnx_ + random string

Basic Usage

Performance Recommendations

  1. Unload as needed - For models that are not frequently used, unload them promptly after completing tasks
  2. Reasonable allocation - Limited by host performance, don’t load too many models

3.Unload ONNX Model

Unload the specified ONNX model, terminate related processes and release system resources.

API Description

API Type

Parameters

Response Payload

No return value (void)

Basic Usage

4.Predict Model

Model Inference

Use the loaded ONNX model to perform AI inference prediction on the specified device and return the model’s inference results.

API Description

API Type

Parameters

Response Payload

Returns the model’s inference results.

Basic Usage