APP API

The APP inference functions provide sophisticated functionaly for differnt applications.

Differnt set of APP inference APIs would need different models to make it work.

Include Header File: kdp2_app.h


Functions

kdp2_app_tiny_yolo_v3_receive

send image for tiny yolo v3 inference

int kdp2_app_tiny_yolo_v3_receive(
    kdp2_device_t device
    uint32_t *inference_number
    uint32_t *box_count
    kdp2_bounding_box_t boxes[]
)

Parameters:

device                    a connected device handle.
inference_number          a return value, inference sequence number used to sync with image send function.
box_count                 a return value, indicating number of bounding boxes
boxes                     an input array of type kdp2_bounding_box_t.

Returns:

refer to KDP2_API_RETURN_CODE.


kdp2_app_tiny_yolo_v3_send

send image for tiny yolo v3 inference

int kdp2_app_tiny_yolo_v3_send(
    kdp2_device_t device
    uint32_t inference_number
    uint8_t *image_buffer
    uint32_t width
    uint32_t height
    kdp2_image_format_t format
)

Parameters:

device                    a connected device handle.
inference_number          inference sequence number used to sync result receive function.
image_buffer              image buffer.
width                     image height.
format                    image format, refer to kdp2_image_format_t.

Returns:

refer to KDP2_API_RETURN_CODE.