pub trait ClassificationModelTraitConst: ModelTraitConst {
fn as_raw_ClassificationModel(&self) -> *const c_void;
fn get_enable_softmax_post_processing(&self) -> Result<bool> { ... }
}
Expand description
This class represents high-level API for classification models.
ClassificationModel allows to set params for preprocessing input image. ClassificationModel creates net from file with trained weights and config, sets preprocessing input, runs forward pass and return top-1 prediction.
Required Methods
fn as_raw_ClassificationModel(&self) -> *const c_void
Provided Methods
sourcefn get_enable_softmax_post_processing(&self) -> Result<bool>
fn get_enable_softmax_post_processing(&self) -> Result<bool>
Get enable/disable softmax post processing option.
This option defaults to false, softmax post processing is not applied within the classify() function.