minor changes in Documentary

This commit is contained in:
Felix Müller 2023-06-17 22:07:07 +02:00
parent 6b140e0978
commit 4c28cf52a9
1 changed files with 4 additions and 2 deletions

View File

@ -7,8 +7,9 @@
//! to generate a database you need a vector of paths of picture that you want to save and search in it. //! to generate a database you need a vector of paths of picture that you want to save and search in it.
//! You also need a Vector of Feature generator functions that generates the feature of every image //! You also need a Vector of Feature generator functions that generates the feature of every image
//! //!
//!
//!``` //!```
//! # use std::path::{PathBuf}; //! # use std::path::{Path, PathBuf};
//! # use imsearch::image::Image; //! # use imsearch::image::Image;
//! # use imsearch::search_index; //! # use imsearch::search_index;
//! use imsearch::search_index::FeatureGenerator; //! use imsearch::search_index::FeatureGenerator;
@ -16,7 +17,8 @@
//! let path: Vec<PathBuf> = Vec::new(); //! let path: Vec<PathBuf> = Vec::new();
//! let features: Vec<FeatureGenerator> = Vec::new(); //! let features: Vec<FeatureGenerator> = Vec::new();
//! //!
//! let Database = search_index::Database::new(&path, features ); //! let mut database = search_index::Database::new(&path, features );
//! database.add_image(Path::new("testpath"));
//! ``` //! ```
//! //!
//! //!