Trait opencv::prelude::NormalBayesClassifier
source · [−]pub trait NormalBayesClassifier: NormalBayesClassifierConst + StatModel {
fn as_raw_mut_NormalBayesClassifier(&mut self) -> *mut c_void;
}
Required Methods
fn as_raw_mut_NormalBayesClassifier(&mut self) -> *mut c_void
Implementations
sourceimpl dyn NormalBayesClassifier + '_
impl dyn NormalBayesClassifier + '_
sourcepub fn create() -> Result<Ptr<dyn NormalBayesClassifier>>
pub fn create() -> Result<Ptr<dyn NormalBayesClassifier>>
Creates empty model Use StatModel::train to train the model after creation.
sourcepub fn load(
filepath: &str,
node_name: &str
) -> Result<Ptr<dyn NormalBayesClassifier>>
pub fn load(
filepath: &str,
node_name: &str
) -> Result<Ptr<dyn NormalBayesClassifier>>
Loads and creates a serialized NormalBayesClassifier from a file
Use NormalBayesClassifier::save to serialize and store an NormalBayesClassifier to disk. Load the NormalBayesClassifier from this file again, by calling this function with the path to the file. Optionally specify the node for the file containing the classifier
Parameters
- filepath: path to serialized NormalBayesClassifier
- nodeName: name of node containing the classifier
C++ default parameters
- node_name: String()