opencv::dnn

Function read_net_from_darknet_def

Source
pub fn read_net_from_darknet_def(cfg_file: &str) -> Result<Net>
Expand description

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.

§Note

This alternative version of read_net_from_darknet function uses the following default values for its arguments:

  • darknet_model: String()