Struct darknet::Meta
[−]
[src]
pub struct Meta { /* fields omitted */ }Metadata.
Methods
impl Meta[src]
pub fn new<P: AsRef<Path>>(filename: P) -> Result<Self, Error>[src]
Load a new metadata.
pub fn num_classes(&self) -> i32[src]
Return the number of classes.
pub fn class_name(&self, i: usize) -> &str[src]
Return the class name identified by the classification index.
Trait Implementations
impl Debug for Meta[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more