9 #ifndef __NATIVE_VPU_API_H__ 10 #define __NATIVE_VPU_API_H__ 31 #define MAX_DEV_NUM (2) 37 #define MAX_PIPELINE_NUM (6) 134 unsigned char path[8];
146 unsigned int reserved[11];
163 unsigned int reserved[9];
196 char model_path[128];
Definition: native_vpu_api.h:123
AI Meta frame with header and data, get back from ncc device after finished one frame AI inference...
Definition: native_vpu_api.h:155
int actual_size
Definition: native_vpu_api.h:160
int async_process(NccPipeHandle_t *handle, NccPipeInput_t *input)
Inference function,Asynchronous non blocking operation. When the device inference is completed...
Definition: native_vpu_api.h:72
Inference engine handle. After the user initializes the model file information, the SDK will automat...
Definition: native_vpu_api.h:191
Definition: native_vpu_api.h:81
< planar YUV422 8 bit
Definition: native_vpu_api.h:98
Definition: native_vpu_api.h:63
FRAMETYPE
The list of the image format which ncc camera supported.
Definition: native_vpu_api.h:94
int ncc_dev_init(char *fw_path, int dev_num)
Initialize ncc device,if your device don't have flash on it,need download the firmware.
void ncc_free(NccPipeInput_t *buff)
ncc sdk free memory block
int ncc_dev_start(int dev_id)
Start all the pipelines on the device with specified serial number.
< H.264
Definition: native_vpu_api.h:99
unsigned int seqNo
Definition: native_vpu_api.h:158
float elapsed_time
Definition: native_vpu_api.h:162
Definition: native_vpu_api.h:87
Definition: native_vpu_api.h:75
METATYPE
The list of the AI meta format which ncc camera supported.
Definition: native_vpu_api.h:110
PROCESS_MODE
The list of the AI inference mode which ncc camera supported.
Definition: native_vpu_api.h:121
unsigned char length
Definition: native_vpu_api.h:133
Definition: native_vpu_api.h:21
< U8
Definition: native_vpu_api.h:113
usb_error
The list of the usb error code.
Definition: native_vpu_api.h:43
Definition: native_vpu_api.h:45
int sync_process(NccPipeHandle_t *handle, NccPipeInput_t *input, NccPipeOutput_t *output, unsigned int timeout_ms)
Synchronous inference function,blocking operation. return when the device inference is completed...
void * parent
Definition: native_vpu_api.h:193
int ncc_pipe_id_get(NccPipeHandle_t *handle)
Get the pipe index of this NccPipeHandle_t on the device. Generally speaking this pipe index is autom...
< AI modle config file
Definition: native_vpu_api.h:103
Definition: native_vpu_api.h:57
Definition: native_vpu_api.h:124
int ncc_dev_number_get(void)
scan all the ncc devices connected with the Host
int alloc_size
Definition: native_vpu_api.h:161
NccPipeInput_t * ncc_malloc(int size)
ncc sdk malloc memory block
Definition: native_vpu_api.h:60
int dim
Definition: native_vpu_api.h:205
Definition: native_vpu_api.h:54
int ncc_dev_id_get(NccPipeHandle_t *handle)
Get index of device handle according to handle.
int ncc_output_tensor_descriptor_get(NccPipeHandle_t *handle, NccTensorSpec_t *output_tensor)
Gets the output tensor information of the current pipeline.
< FP16
Definition: native_vpu_api.h:114
Definition: native_vpu_api.h:112
Definition: native_vpu_api.h:66
METATYPE type
Definition: native_vpu_api.h:157
Definition: native_vpu_api.h:48
int ncc_input_tensor_descriptor_get(NccPipeHandle_t *handle, NccTensorSpec_t *input_tensor)
Gets the input tensor information of the current pipeline.
< AI model file for openvino
Definition: native_vpu_api.h:102
Definition: native_vpu_api.h:78
Definition: native_vpu_api.h:51
void * output
Definition: native_vpu_api.h:164
Definition: native_vpu_api.h:23
Definition: native_vpu_api.h:69
int ncc_pipe_queue_read(NccPipeHandle_t *handle, NccPipeOutput_t *pbuf, int time_out)
Gets the output tensor information of the current pipeline.
Definition: native_vpu_api.h:22
LOG_LEVEL
Definition: native_vpu_api.h:19
< planar YUV4:2:0 format
Definition: native_vpu_api.h:97
int ncc_pipe_create(NccPipeHandle_t *handle, PROCESS_MODE mode)
Initialize the inference engine, read the parameters from the JSON file and .
Definition: native_vpu_api.h:24
void set_log_level(LOG_LEVEL level)
set level of log print
< MJPEG
Definition: native_vpu_api.h:100
Definition: native_vpu_api.h:96
< AI Meta data
Definition: native_vpu_api.h:101
Tensor structure.
Definition: native_vpu_api.h:204
USB port information to query device serial number.
Definition: native_vpu_api.h:131
int ncc_dev_serial_number_get(NccUsbPortSpec_t *port, char *string, int size)
Get serial number of device according to usb port.