Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelimza authored Mar 11, 2018
1 parent 1603e3d commit 035ba69
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
# ImageCompress
# ImageCompress

This is a project implementing lossy image compression using A machine learning algorithm (K Means)

To run it on an image (.png) follow the following steps:
1. Rename your image to 'Compress.png'.
2. Get your image directry path by right clicking->Properties->Location. Copy it.
3. Run the Run.jar.
4. Paste the path in the first field and press compress (Wait 10 seconds).
5. You should now have two new files alongside the image namely codebook.npy and compressed.png.
6. These files are the compressed form of your image.

To decompress the files follow:
1. Get the directry path of your codebook.npy and compressed.png files as previously mentioned.
2. Run the Run.jar.
3. Paste the path in the second field and press decompress.
4. You should now have a new file in the directry as compressed1.png.
5. this is the lossy compressed version of your original image.

0 comments on commit 035ba69

Please sign in to comment.