Code Monkey home page Code Monkey logo

algeo02-20051's Introduction

SVD Image Compression Website

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.

Daftar Anggota Kelompok

KELOMPOK 51 SVDED
No.NamaNIM
1.Flavia Beatrix Leoni A. S.13520051
2.Lyora Felicya13520073
3.Angelica Winasta Sinisuka13520097

Requirements

Libraries

  • Numpy
  • Pillow

How to Run

Make sure to have Python 3 installed already in your computer

For Windows

  1. open cmd
  2. go inside src directory then type commands below :
py -m venv env
env\Scripts\activate
pip install Flask
  1. go inside flaskprototype folder by typing cd flaskprototype, then run the command below :
set FLASK_APP=app.py
flask run
  1. Copy the URL provided and run it in your browser. Make sure to have all the libraries listed up top.

For Debian/Ubuntu/MacOS

  1. open terminal
  2. go inside src directory then type commands below :
python3 -m venv env
source env/bin/activate
pip install Flask
  1. go inside flaskprototype folder by typing cd flaskprototype, then run the command below :
export FLASK_APP=app.py
flask run
  1. Copy the URL provided and run it in your browser. Make sure to have all the libraries listed up top.

Cara Menggunakan Website

  1. Masukkan banyaknya nilai singular yang ingin digunakan.
  2. Pilih gambar untuk dikompres.
  3. Tekan tombol Compress Now dan tunggu beberapa saat.
  4. Hasil kompres akan muncul, untuk melihat detailnya silakan tekan tulisan image details.
  5. Tekan tombol Download untuk mengunduh gambar ke komputer Anda.

Screenshots

Screenshot (2334)

Screenshot (2336)

Project Structure

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

algeo02-20051's People

Contributors

leoniantoinette avatar yoshibeside avatar lyorafelicya avatar

Watchers

 avatar

Forkers

lyorafelicya

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.