[−][src]Function opencv::dnn::read_net_from_darknet
pub fn read_net_from_darknet(cfg_file: &str, darknet_model: &str) -> Result<Net>
Reads a network model stored in Darknet model files.
Parameters
- cfgFile: path to the .cfg file with text description of the network architecture.
- darknetModel: path to the .weights file with learned network.
Returns
Network object that ready to do forward, throw an exception in failure cases.
Returns
Net object.
C++ default parameters
- darknet_model: String()