MotaDan / steganographerPY

Hides files and messages in an image file.
https://www.youtube.com/watch?v=TWEXCYQKyDc
MIT License
1 stars 0 forks source link

Update compare image function in tests #74

Open MotaDan opened 7 years ago

MotaDan commented 7 years ago

The current compare_image function in the tests results in unbounded values being returned. Every time I create a new test I have to look at the image manually to check if they are the same and then assert that based on the value that is returned by compare_image. Structural Similarity Index (SSIM) results in a 1.0 for identical images and approaches zero and they become different. How-To: Python Compare Two Images

MotaDan commented 7 years ago

The SSIM function has been deprecated. Use compare_ssim instead.

MotaDan commented 7 years ago

scikit-image is not simple to install on windows and does not play well with pip-tools. Need to figure out how to pip-compile it so it can be used on windows. May need to manually install it first from scikit-image before running pip-compile.

MotaDan commented 7 years ago

The values currently give out by compare_image are a function of the size of the data stored. Could potentially find a comparison value based on the amount of data being hidden. This would be instead of using scikit-image and all the associated packages.

MotaDan commented 7 years ago

Other possibility for comparing images. Duplicate image detection with perceptual hashing in Python dhash pybktree Found at Episode #20: Finding similar but not identical images in 128 bits via Python