Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.
/ AVDP Public archive

Babes Bolyai University - Audio & Video Data Processing course (project)

Notifications You must be signed in to change notification settings

Burbon13/AVDP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AVDP

The project consists in a JPEG encoder and decoder 📷.

The encoder does the following:

  • Reads a PPM-3 format image
  • Divides the image into 8x8 pixels blocks
  • DCT (Discrete Cosine Transform) on the 8X8 pixels blocks
  • Quantization on the 8X8 pixels blocks
  • Entropy Encoding (only ZigZag parsing and run-length encoding, NOT Huffman encoding)

The decoder does the oposite steps of the encoder in reversed order (Entropy Decoding, inverse Quantization, etc.).

The JPEG image is kept only in memory during the program execution. At the end, a PPM-3 image is saved as a result of the decoding. The result image clearly shows how the quality of an image deteriorates when using JPEG.

Before (left) and after (right) the encoding & decoding process.

Dog Dog

How to run

Open a terminal inside the src folder and just execute the following command:

python main.py

The decoded image will be saved in /res/images/processing/decoded_rgb.ppm.

In order to change the image to be processed, change the file_name variable inside src/main.py (line 3) to the path which is pointing to the desired image.


More details regarding the project can be found here.

The project was developed with Python ❤️.

About

Babes Bolyai University - Audio & Video Data Processing course (project)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages