Table of Contents

Method LoadParameters

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

LoadParameters(string)

Load a file containing the configuration parameters of the class.

public virtual int LoadParameters(string filepath)

Parameters

filepath string

The location of the .YAML file containing the configuration parameters.

Returns

int

1 if the path is not empty and the program loaded the parameters successfully. 0 if the path is empty and the program loaded default parameters. -1 if the file location is not valid or the program could not open the file and loaded default parameters from defaults.hpp.