-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1603e3d
commit 035ba69
Showing
1 changed file
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |