pub fn read_net_from_darknet_str(buffer_cfg: &str, len_cfg: size_t, buffer_model: &str, len_model: size_t) -> Result<crate::dnn::Net> {
	string_arg!(buffer_cfg);
	string_arg!(buffer_model);
	unsafe { sys::cv_dnn_readNetFromDarknet_const_charX_size_t_const_charX_size_t(buffer_cfg.as_ptr(), len_cfg, buffer_model.as_ptr(), len_model) }.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
/// * bufferCfg: A buffer contains a content of .cfg file with text description of the network architecture.
/// * lenCfg: Number of bytes to read from bufferCfg
/// * bufferModel: A buffer contains a content of .weights file with learned network.
/// * lenModel: Number of bytes to read from bufferModel
/// ## Returns
/// Net object.
/// 
/// ## C++ default parameters
/// * buffer_model: NULL
/// * len_model: 0
Reads a network model stored in Darknet model files.
Reads a network model stored in Darknet model files .
pub fn read_net_from_darknet_str(buffer_cfg: &str, len_cfg: size_t, buffer_model: &str, len_model: size_t) -> Result<crate::dnn::Net> {
	string_arg!(buffer_cfg);
	string_arg!(buffer_model);
	unsafe { sys::cv_dnn_readNetFromDarknet_const_charX_size_t_const_charX_size_t(buffer_cfg.as_ptr(), len_cfg, buffer_model.as_ptr(), len_model) }.into_result().map(|ptr| unsafe { crate::dnn::Net::from_raw(ptr) })
}
pub fn read_net_from_darknet_str ( buffer_cfg : & str , len_cfg : size_t , buffer_model : & str , len_model : size_t ) -> Result < crate :: dnn :: Net > { string_arg ! ( buffer_cfg ) ; string_arg ! ( buffer_model ) ; unsafe { sys :: cv_dnn_readNetFromDarknet_const_charX_size_t_const_charX_size_t ( buffer_cfg . as_ptr ( ) , len_cfg , buffer_model . as_ptr ( ) , len_model ) } . 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 .
None
buffer_cfg
&str
len_cfg
size_t
buffer_model
&str
len_model
size_t
c++ default parameters
NULL
len_model: 0
NULL len_model : 0