pub fn create_detector(buf: &[u8]) -> Result<Box<Detector>, io::Error> {
    let mut vec = Vec::new();
    for x in buf.iter() {
        vec.push(*x);
    }
    let model = read_model(vec)?;
    Ok(create_detector_with_model(model))
}
/// Create a face detector from model loaded to memory
Create a face detector from model loaded to memory
Create a face detector from model loaded to memory
pub fn create_detector(buf: &[u8]) -> Result<Box<Detector>, io::Error> {
    let mut vec = Vec::new();
    for x in buf.iter() {
        vec.push(*x);
    }
    let model = read_model(vec)?;
    Ok(create_detector_with_model(model))
}
pub fn create_detector ( buf : & [ u8 ] ) -> Result < Box < Detector > , io :: Error > { let mut vec = Vec :: new ( ) ; for x in buf . iter ( ) { vec . push ( * x ) ; } let model = read_model ( vec ) ? ; Ok ( create_detector_with_model ( model ) ) }
Create a face detector from model loaded to memory
Create a face detector from model loaded to memory
buf
&[u8]