pub fn read_net_from_darknet(cfg_file: &str, darknet_model: &str) -> Result<crate::dnn::Net> {
	string_arg!(cfg_file);
	string_arg!(darknet_model);
	unsafe { sys::cv_dnn_readNetFromDarknet_const_StringX_const_StringX(cfg_file.as_ptr(), darknet_model.as_ptr()) }.into_result().map(|ptr| unsafe { crate::dnn::Net::from_raw(ptr) })
}
/// Reads a network model stored in <a href="https://pjreddie.com/darknet/">Darknet</a> 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()
Reads a network model stored in Darknet model files.
Reads a network model stored in Darknet model files .
pub fn read_net_from_darknet(cfg_file: &str, darknet_model: &str) -> Result<crate::dnn::Net> {
	string_arg!(cfg_file);
	string_arg!(darknet_model);
	unsafe { sys::cv_dnn_readNetFromDarknet_const_StringX_const_StringX(cfg_file.as_ptr(), darknet_model.as_ptr()) }.into_result().map(|ptr| unsafe { crate::dnn::Net::from_raw(ptr) })
}
pub fn read_net_from_darknet ( cfg_file : & str , darknet_model : & str ) -> Result < crate :: dnn :: Net > { string_arg ! ( cfg_file ) ; string_arg ! ( darknet_model ) ; unsafe { sys :: cv_dnn_readNetFromDarknet_const_StringX_const_StringX ( cfg_file . as_ptr ( ) , darknet_model . as_ptr ( ) ) } . into_result ( ) . map ( | ptr | unsafe { crate :: dnn :: Net :: from_raw ( ptr ) } ) }
Reads a network model stored in <a href="https://pjreddie.com/darknet/">Darknet</a> model files.
Reads a network model stored in <a href = " https : // pjreddie . com / darknet / " > Darknet< / a > model files .
Network object that ready to do forward, throw an exception in failure cases.
Network object that ready to do forward throw an exception in failure cases .
None
cfg_file
&str
darknet_model
&str
c++ default parameters
None