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.
-
Attributes
get_member_variable_dict()
Represent member variables with Dict format.
-
Returns
- ret :
dict
Represent member variables in Dict format.
- ret :
-
Return type
property image_buffer_size(: int)
int: Inference image buffer size.
-
Return type
property inference_number(: int)
int: Inference sequence number.
-
Return type
property model_id(: int)
int: Target inference model ID.
-
Return type
class kp.v1.GenericRawBypassPreProcResult(buffer_size)
Generic inference raw result for bypass pre-processing.
-
Attributes
-
header
:kp.GenericRawBypassPreProcResultHeader
kp.GenericRawBypassPreProcResultHeader: Inference raw output descriptor for bypass pre-processing.
-
raw_result
:kp.GenericRawResultNDArray
kp.GenericRawResultNDArray: Inference raw result buffer.
-
get_member_variable_dict()
Represent member variables with Dict format.
-
Returns
- ret :
dict
Represent member variables in Dict format.
- ret :
-
Return type
property header(: GenericRawBypassPreProcResultHeader)
kp.GenericRawBypassPreProcResultHeader: Inference raw output descriptor for bypass pre-processing.
-
Return type
GenericRawBypassPreProcResultHeader
property raw_result(: GenericRawResultNDArray)
kp.GenericRawResultNDArray: Inference raw result buffer.
-
Return type
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.
-
Attributes
property crop_number(: int)
int: Crop box sequence number.
-
Return type
get_member_variable_dict()
Represent member variables with Dict format.
-
Returns
- ret :
dict
Represent member variables in Dict format.
- ret :
-
Return type
property inference_number(: int)
int: Inference sequence number.
-
Return type
property num_output_node(: int)
int: Total number of output nodes.
-
Return type
property product_id(: int)
int: USB PID (Product ID).
-
Return type
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.
-
Attributes
-
model_id
:int
, default=0int: Target inference model ID.
-
resize_mode
:kp.ResizeMode
, default=kp.ResizeMode.KP_RESIZE_ENABLEkp.ResizeMode: Preprocess resize mode, refer to ResizeMode.
-
padding_mode
:kp.PaddingMode
, default=kp.PaddingMode.KP_PADDING_CORNERkp.PaddingMode: Preprocess padding mode, none or auto refer to PaddingMode.
-
normalize_mode
:kp.NormalizeMode
, default=kp.NormalizeMode.KP_NORMALIZE_KNERONkp.NormalizeMode: Inference normalization, refer to NormalizeMode.
-
inference_number
:int
, default=0int: Inference sequence number.
-
inference_crop_box_list
:List
[kp.InferenceCropBox
], default=[]List[kp.InferenceCropBox]: Box information to crop.
-
width
:int
, default=0int: Inference image width.
-
height
:int
, default=0int: Inference image height.
-
image_format
:kp.ImageFormat
, default=kp.ImageFormat.KP_IMAGE_FORMAT_RGB565kp.ImageFormat: Inference image format, refer to ImageFormat.
-
property crop_count(: int)
int: Number of crop box.
-
Return type
get_member_variable_dict()
Represent member variables with Dict format.
-
Returns
- ret :
dict
Represent member variables in Dict format.
- ret :
-
Return type
property height(: int)
int: Inference image height.
-
Return type
property image_format(: ImageFormat)
kp.ImageFormat: Inference image format, refer to ImageFormat.
-
Return type
property inference_crop_box_list(: List[InferenceCropBox])
List[kp.InferenceCropBox]: Box information to crop.
-
Return type
property inference_number(: int)
int: Inference sequence number.
-
Return type
property model_id(: int)
int: Target inference model ID.
-
Return type
property normalize_mode(: NormalizeMode)
kp.NormalizeMode: Inference normalization, refer to NormalizeMode.
-
Return type
property padding_mode(: PaddingMode)
kp.PaddingMode: Preprocess padding mode, none or auto refer to PaddingMode.
-
Return type
property resize_mode(: ResizeMode)
kp.ResizeMode: Preprocess resize mode, refer to ResizeMode.
-
Return type
property width(: int)
int: Inference image width.
-
Return type
class kp.v1.GenericRawResult(buffer_size)
Generic inference raw result.
-
Attributes
-
header
:kp.GenericRawResultHeader
kp.GenericRawResultHeader: Inference raw output descriptor.
-
raw_result
:kp.GenericRawResultNDArray
kp.GenericRawResultNDArray: Inference raw result buffer.
-
get_member_variable_dict()
Represent member variables with Dict format.
-
Returns
- ret :
dict
Represent member variables in Dict format.
- ret :
-
Return type
property header(: GenericRawResultHeader)
kp.GenericRawResultHeader: Inference raw output descriptor.
-
Return type
GenericRawResultHeader
property raw_result(: GenericRawResultNDArray)
kp.GenericRawResultNDArray: Inference raw result buffer.
-
Return type
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.
-
Attributes
-
inference_number
:int
, default=0int: Inference sequence number.
-
crop_number
:int
, default=0int: Crop box sequence number.
-
num_output_node
:int
, default=0int: Total number of output nodes.
-
product_id
:int
, default=0int: USB PID (Product ID).
-
hw_pre_proc_info
:kp.HwPreProcInfo
, default=kp.HwPreProcInfo()kp.HwPreProcInfo: Hardware preprocess info
-
property crop_number(: int)
int: Crop box sequence number.
-
Return type
get_member_variable_dict()
Represent member variables with Dict format.
-
Returns
- ret :
dict
Represent member variables in Dict format.
- ret :
-
Return type
property hw_pre_proc_info(: HwPreProcInfo)
kp.HwPreProcInfo: Hardware preprocess info
-
Return type
property inference_number(: int)
int: Inference sequence number.
-
Return type
property num_output_node(: int)
int: Total number of output nodes.
-
Return type
property product_id(: int)
int: USB PID (Product ID).
-
Return type