Web Analytics

kp.v1 value (Legacy Module)


class kp.v1.GenericRawBypassPreProcImageHeader(model_id=0, inference_number=0, image_buffer_size=0)

Inference descriptor for images bypass pre-processing.

get_member_variable_dict()

Represent member variables with Dict format.

property image_buffer_size(: int)

int: Inference image buffer size.

property inference_number(: int)

int: Inference sequence number.

property model_id(: int)

int: Target inference model ID.


class kp.v1.GenericRawBypassPreProcResult(buffer_size)

Generic inference raw result for bypass pre-processing.

get_member_variable_dict()

Represent member variables with Dict format.

property header(: kp.Legacy.V1.KPValue.GenericRawBypassPreProcResultHeader)

kp.GenericRawBypassPreProcResultHeader: Inference raw output descriptor for bypass pre-processing.

property raw_result(: kp.KPValue.GenericRawResultNDArray)

kp.GenericRawResultNDArray: Inference raw result buffer.


class kp.v1.GenericRawBypassPreProcResultHeader(inference_number=0, crop_number=0, num_output_node=0, product_id=0)

Inference raw output descriptor for bypass pre-processing.

property crop_number(: int)

int: Crop box sequence number.

get_member_variable_dict()

Represent member variables with Dict format.

property inference_number(: int)

int: Inference sequence number.

property num_output_node(: int)

int: Total number of output nodes.

property product_id(: int)

int: USB PID (Product ID).


class kp.v1.GenericRawImageHeader(model_id=0, resize_mode=ResizeMode.KP_RESIZE_ENABLE, padding_mode=PaddingMode.KP_PADDING_CORNER, normalize_mode=NormalizeMode.KP_NORMALIZE_KNERON, inference_number=0, inference_crop_box_list=[], width=0, height=0, image_format=ImageFormat.KP_IMAGE_FORMAT_RGB565)

Inference descriptor for images.

property crop_count(: int)

int: Number of crop box.

get_member_variable_dict()

Represent member variables with Dict format.

property height(: int)

int: Inference image height.

property image_format(: kp.KPEnum.ImageFormat)

kp.ImageFormat: Inference image format, refer to ImageFormat.

property inference_crop_box_list(: List[kp.KPValue.InferenceCropBox])

List[kp.InferenceCropBox]: Box information to crop.

property inference_number(: int)

int: Inference sequence number.

property model_id(: int)

int: Target inference model ID.

property normalize_mode(: kp.KPEnum.NormalizeMode)

kp.NormalizeMode: Inference normalization, refer to NormalizeMode.

property padding_mode(: kp.KPEnum.PaddingMode)

kp.PaddingMode: Preprocess padding mode, none or auto refer to PaddingMode.

property resize_mode(: kp.KPEnum.ResizeMode)

kp.ResizeMode: Preprocess resize mode, refer to ResizeMode.

property width(: int)

int: Inference image width.


class kp.v1.GenericRawResult(buffer_size)

Generic inference raw result.

get_member_variable_dict()

Represent member variables with Dict format.

property header(: kp.Legacy.V1.KPValue.GenericRawResultHeader)

kp.GenericRawResultHeader: Inference raw output descriptor.

property raw_result(: kp.KPValue.GenericRawResultNDArray)

kp.GenericRawResultNDArray: Inference raw result buffer.


class kp.v1.GenericRawResultHeader(inference_number=0, crop_number=0, num_output_node=0, product_id=0, hw_pre_proc_info={'img_width': 0, 'img_height': 0, 'resized_img_width': 0, 'resized_img_heig ...)

Inference raw output descriptor.

property crop_number(: int)

int: Crop box sequence number.

get_member_variable_dict()

Represent member variables with Dict format.

property hw_pre_proc_info(: kp.KPValue.HwPreProcInfo)

kp.HwPreProcInfo: Hardware preprocess info

property inference_number(: int)

int: Inference sequence number.

property num_output_node(: int)

int: Total number of output nodes.

property product_id(: int)

int: USB PID (Product ID).