ailia  1.4.0.0
Classes | Public Member Functions | Static Public Attributes | List of all members
ailia.AiliaClassifier Class Reference

Classes

class  AILIAClassifierClass
 

Public Member Functions

static int ailiaCreateClassifier (ref IntPtr classifier, IntPtr net, UInt32 format, UInt32 channel, UInt32 range)
 Create an identification object. More...
 
static void ailiaDestroyClassifier (IntPtr classifier)
 Destroy the identification object. More...
 
static int ailiaClassifierCompute (IntPtr classifier, IntPtr src, UInt32 src_stride, UInt32 src_width, UInt32 src_height, UInt32 src_format, UInt32 max_class_count)
 Object identification. More...
 
static int ailiaClassifierGetClassCount (IntPtr classifier, ref UInt32 cls_count)
 Get the number of recognition results. More...
 
static int ailiaClassifierGetClass (IntPtr classifier, [In, Out] AILIAClassifierClass obj, UInt32 cls_idx, UInt32 version)
 Retrieve recognition results. More...
 

Static Public Attributes

const Int32 AILIA_CLASSIFIER_CLASS_VERSION = (1)
 

Member Function Documentation

◆ ailiaClassifierCompute()

static int ailia.AiliaClassifier.ailiaClassifierCompute ( IntPtr  classifier,
IntPtr  src,
UInt32  src_stride,
UInt32  src_width,
UInt32  src_height,
UInt32  src_format,
UInt32  max_class_count 
)

Object identification.

Parameters
classifierDistinguished object pointer
srcvideo data
src_strideBytes per line
src_widthImage width
src_heightImage height
src_formatImage format(AILIA_IMAGE_FORMAT_*)
max_class_countMaximum number of recognition results
Returns
If successful, returns AILIA_STATUS_SUCCESS, otherwise returns an error code.

◆ ailiaClassifierGetClass()

static int ailia.AiliaClassifier.ailiaClassifierGetClass ( IntPtr  classifier,
[In, Out] AILIAClassifierClass  obj,
UInt32  cls_idx,
UInt32  version 
)

Retrieve recognition results.

Parameters
classifierDistinguished object pointer
clsClass Information
cls_idxclass index
versionailia_classifier_class_version
Returns
If successful, returns AILIA_STATUS_SUCCESS, otherwise returns an error code.

If ailiaPredict() has never been executed, then AILIA_STATUS_INVALID_STATE is returned. Recognition results are sorted in order of probability.

◆ ailiaClassifierGetClassCount()

static int ailia.AiliaClassifier.ailiaClassifierGetClassCount ( IntPtr  classifier,
ref UInt32  cls_count 
)

Get the number of recognition results.

Parameters
classifierDistinguished object pointer
cls_countNumber of classes
Returns
If successful, returns AILIA_STATUS_SUCCESS, otherwise returns an error code.

◆ ailiaCreateClassifier()

static int ailia.AiliaClassifier.ailiaCreateClassifier ( ref IntPtr  classifier,
IntPtr  net,
UInt32  format,
UInt32  channel,
UInt32  range 
)

Create an identification object.

Parameters
classifierPointer to identification object pointer
netNetwork object pointer
formatImage format of the network (AILIA_NETWORK_IMAGE_FORMAT_*)
channelImage channel of the network (AILIA_NETWORK_IMAGE_CHANNEL_*)
rangeImage range of the network (AILIA_NETWORK_IMAGE_RANGE_*)
Returns
Returns AILIA_STATUS_SUCCESS if successful, otherwise returns error code.

Create an identification object

◆ ailiaDestroyClassifier()

static void ailia.AiliaClassifier.ailiaDestroyClassifier ( IntPtr  classifier)

Destroy the identification object.

Parameters
classifierDistinguished object pointer

Member Data Documentation

◆ AILIA_CLASSIFIER_CLASS_VERSION

const Int32 ailia.AiliaClassifier.AILIA_CLASSIFIER_CLASS_VERSION = (1)
static

The documentation for this class was generated from the following file: