experiment binary fix
This commit is contained in:
@@ -21,7 +21,7 @@ fn main() {
|
|||||||
let name = file.file_name().into_string().expect("Issue with filename");
|
let name = file.file_name().into_string().expect("Issue with filename");
|
||||||
if !map.contains_key(&name) {
|
if !map.contains_key(&name) {
|
||||||
let img = image::open(file.path()).expect("Unable to open file");
|
let img = image::open(file.path()).expect("Unable to open file");
|
||||||
let phash = desc.describe(img);
|
let phash = desc.describe(&img);
|
||||||
map.insert(name, phash);
|
map.insert(name, phash);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user