Program kompresi gambar dengan memanfaatkan algoritma SVD dalam bentuk website lokal sederhana. Website mampu menerima file gambar beserta input tingkat kompresi gambar berupa jumlah nilai singular yang ingin digunakan. Website mampu menampilkan gambar input, output, runtime algoritma, dan persentase hasil kompresi gambar. File output hasil kompresi dapat diunduh melalui website. Program ini merupakan Tugas Besar untuk mata kuliah IF2123 Aljabar Linier dan Geometri.
KELOMPOK 51 SVDED | ||
No. | Nama | NIM |
1. | Flavia Beatrix Leoni A. S. | 13520051 |
2. | Lyora Felicya | 13520073 |
3. | Angelica Winasta Sinisuka | 13520097 |
Libraries
- Numpy
- Pillow
Make sure to have Python 3 installed already in your computer
For Windows
- open cmd
- go inside src directory then type commands below :
py -m venv env
env\Scripts\activate
pip install Flask
- go inside flaskprototype folder by typing
cd flaskprototype
, then run the command below :
set FLASK_APP=app.py
flask run
- Copy the URL provided and run it in your browser. Make sure to have all the libraries listed up top.
For Debian/Ubuntu/MacOS
- open terminal
- go inside src directory then type commands below :
python3 -m venv env
source env/bin/activate
pip install Flask
- go inside flaskprototype folder by typing
cd flaskprototype
, then run the command below :
export FLASK_APP=app.py
flask run
- Copy the URL provided and run it in your browser. Make sure to have all the libraries listed up top.
- Masukkan banyaknya nilai singular yang ingin digunakan.
- Pilih gambar untuk dikompres.
- Tekan tombol Compress Now dan tunggu beberapa saat.
- Hasil kompres akan muncul, untuk melihat detailnya silakan tekan tulisan image details.
- Tekan tombol Download untuk mengunduh gambar ke komputer Anda.
Algeo02-20051
├── src/flaskprototype # berisi source code dari program image compressor
│ ├── __pycache__ # berisi python3 bytecode yaang sudah dicompile dan dieksekusi
│ ├── static # berisi file-file static
│ │ ├── css # berisi desain dari halaman 1 dan halaman 2
│ │ │ ├── image.css # template style image.html
│ │ │ └── image2.css # template style image2.html
│ │ ├── processed # hasil gambar yang telah diproses
│ │ └── uploads # hasil gambar yang diinput pengguna
│ ├── templates # berisi layout website
│ │ ├── image.html # tampilan halaman pertama
│ │ └── image2.html # tampilan halaman kedua
│ ├── app.py # aplikasi flask
│ └── svd.py # file svd untuk mencompress image
├── test # berisi images untuk dites
├── doc # berisi file laporan algeo
└── README.md