diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..96fd819 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,4 @@ +[root] +name = "perceptual_image_hashing" +version = "0.1.0" + diff --git a/Cargo.toml b/Cargo.toml index 8a64e1f..af787d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,4 @@ [package] -name = "Perceptual-Image-Hashing" +name = "perceptual_image_hashing" version = "0.1.0" authors = ["Drew Short "] diff --git a/README.md b/README.md index b2c6fa3..159f40e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,15 @@ # Perceptual Image Hashing +The goal of this library is to offer a utility for calculating perceptual hashes of images for the purpose of comparing images for similarity + +# Examples + +To Be Added + +# FFI binding for non-rust usage + +To Be Added + # License Perceptual Image Hashing is licensed under the MIT license. See the LICENSE file in this directory for more information. diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..531ce48 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,10 @@ +// Copyright 2015 Drew Short . +// +// Licensed under the MIT license. +// This file may not be copied, modified, or distributed except according to those terms. + +pub fn hello(mut result: String) -> String { + let helloworld = "Hello, World!"; + result.push_str(helloworld); + result +} diff --git a/src/main.rs b/src/main.rs index e7a11a9..aa8211b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,12 @@ +// Copyright 2015 Drew Short . +// +// Licensed under the MIT license. +// This file may not be copied, modified, or distributed except according to those terms. + +extern crate perceptual_image_hashing; + fn main() { - println!("Hello, world!"); + let mut string = String::new(); + string = perceptual_image_hashing::hello(string); + println!("{}",string); } diff --git a/starter_file.rs b/starter_file.rs new file mode 100644 index 0000000..1aa3f5f --- /dev/null +++ b/starter_file.rs @@ -0,0 +1,4 @@ +// Copyright 2015 Drew Short . +// +// Licensed under the MIT license. +// This file may not be copied, modified, or distributed except according to those terms. diff --git a/target/debug/.fingerprint/Perceptual-Image-Hashing-839b6cba425a783b/dep-lib-Perceptual-Image-Hashing b/target/debug/.fingerprint/Perceptual-Image-Hashing-839b6cba425a783b/dep-lib-Perceptual-Image-Hashing new file mode 100644 index 0000000..8b9ae32 Binary files /dev/null and b/target/debug/.fingerprint/Perceptual-Image-Hashing-839b6cba425a783b/dep-lib-Perceptual-Image-Hashing differ diff --git a/target/debug/.fingerprint/Perceptual-Image-Hashing-839b6cba425a783b/lib-Perceptual-Image-Hashing b/target/debug/.fingerprint/Perceptual-Image-Hashing-839b6cba425a783b/lib-Perceptual-Image-Hashing new file mode 100644 index 0000000..0ceeb82 --- /dev/null +++ b/target/debug/.fingerprint/Perceptual-Image-Hashing-839b6cba425a783b/lib-Perceptual-Image-Hashing @@ -0,0 +1 @@ +321910a51ef628c0 \ No newline at end of file diff --git a/target/debug/.fingerprint/Perceptual_Image_Hashing-a7ed8d93327dd2a5/bin-Perceptual_Image_Hashing b/target/debug/.fingerprint/Perceptual_Image_Hashing-a7ed8d93327dd2a5/bin-Perceptual_Image_Hashing new file mode 100644 index 0000000..2375c34 --- /dev/null +++ b/target/debug/.fingerprint/Perceptual_Image_Hashing-a7ed8d93327dd2a5/bin-Perceptual_Image_Hashing @@ -0,0 +1 @@ +0a89fe6635033f90 \ No newline at end of file diff --git a/target/debug/.fingerprint/Perceptual_Image_Hashing-a7ed8d93327dd2a5/dep-bin-Perceptual_Image_Hashing b/target/debug/.fingerprint/Perceptual_Image_Hashing-a7ed8d93327dd2a5/dep-bin-Perceptual_Image_Hashing new file mode 100644 index 0000000..16fa82d Binary files /dev/null and b/target/debug/.fingerprint/Perceptual_Image_Hashing-a7ed8d93327dd2a5/dep-bin-Perceptual_Image_Hashing differ diff --git a/target/debug/.fingerprint/Perceptual_Image_Hashing-a7ed8d93327dd2a5/dep-lib-Perceptual_Image_Hashing b/target/debug/.fingerprint/Perceptual_Image_Hashing-a7ed8d93327dd2a5/dep-lib-Perceptual_Image_Hashing new file mode 100644 index 0000000..8b9ae32 Binary files /dev/null and b/target/debug/.fingerprint/Perceptual_Image_Hashing-a7ed8d93327dd2a5/dep-lib-Perceptual_Image_Hashing differ diff --git a/target/debug/.fingerprint/Perceptual_Image_Hashing-a7ed8d93327dd2a5/lib-Perceptual_Image_Hashing b/target/debug/.fingerprint/Perceptual_Image_Hashing-a7ed8d93327dd2a5/lib-Perceptual_Image_Hashing new file mode 100644 index 0000000..7cda010 --- /dev/null +++ b/target/debug/.fingerprint/Perceptual_Image_Hashing-a7ed8d93327dd2a5/lib-Perceptual_Image_Hashing @@ -0,0 +1 @@ +a6d6ed6fb8fcdaed \ No newline at end of file diff --git a/target/debug/.fingerprint/perceptual_image_hashing-7e46c428cdf25a57/bin-perceptual_image_hashing b/target/debug/.fingerprint/perceptual_image_hashing-7e46c428cdf25a57/bin-perceptual_image_hashing new file mode 100644 index 0000000..a94b464 --- /dev/null +++ b/target/debug/.fingerprint/perceptual_image_hashing-7e46c428cdf25a57/bin-perceptual_image_hashing @@ -0,0 +1 @@ +474bac8a6f506f47 \ No newline at end of file diff --git a/target/debug/.fingerprint/perceptual_image_hashing-7e46c428cdf25a57/dep-bin-perceptual_image_hashing b/target/debug/.fingerprint/perceptual_image_hashing-7e46c428cdf25a57/dep-bin-perceptual_image_hashing new file mode 100644 index 0000000..6c68139 Binary files /dev/null and b/target/debug/.fingerprint/perceptual_image_hashing-7e46c428cdf25a57/dep-bin-perceptual_image_hashing differ diff --git a/target/debug/.fingerprint/perceptual_image_hashing-7e46c428cdf25a57/dep-lib-perceptual_image_hashing b/target/debug/.fingerprint/perceptual_image_hashing-7e46c428cdf25a57/dep-lib-perceptual_image_hashing new file mode 100644 index 0000000..81f570c Binary files /dev/null and b/target/debug/.fingerprint/perceptual_image_hashing-7e46c428cdf25a57/dep-lib-perceptual_image_hashing differ diff --git a/target/debug/.fingerprint/perceptual_image_hashing-7e46c428cdf25a57/lib-perceptual_image_hashing b/target/debug/.fingerprint/perceptual_image_hashing-7e46c428cdf25a57/lib-perceptual_image_hashing new file mode 100644 index 0000000..c11250a --- /dev/null +++ b/target/debug/.fingerprint/perceptual_image_hashing-7e46c428cdf25a57/lib-perceptual_image_hashing @@ -0,0 +1 @@ +b42c6e3992418ac4 \ No newline at end of file diff --git a/target/debug/Perceptual_Image_Hashing b/target/debug/Perceptual_Image_Hashing new file mode 100755 index 0000000..26af7cd Binary files /dev/null and b/target/debug/Perceptual_Image_Hashing differ diff --git a/target/debug/libPerceptual_Image_Hashing.rlib b/target/debug/libPerceptual_Image_Hashing.rlib new file mode 100644 index 0000000..ecc1de0 Binary files /dev/null and b/target/debug/libPerceptual_Image_Hashing.rlib differ diff --git a/target/debug/libperceptual_image_hashing.rlib b/target/debug/libperceptual_image_hashing.rlib new file mode 100644 index 0000000..de9ea5d Binary files /dev/null and b/target/debug/libperceptual_image_hashing.rlib differ diff --git a/target/debug/perceptual_image_hashing b/target/debug/perceptual_image_hashing new file mode 100755 index 0000000..5217869 Binary files /dev/null and b/target/debug/perceptual_image_hashing differ