An open API service indexing awesome lists of open source software.

https://github.com/ahmed-kamal2004/imagecompressingproject


https://github.com/ahmed-kamal2004/imagecompressingproject

api compression compression-algorithm dct dct2 fastapi fourier-transform matplotlib numpy opnecv python3

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# Image Compressing and Decompressing project 💫

### RGB Image Compression Using Discrete Cosine Transform Algorithm
The main objective of this work is to compress an image 📸 using the **Discrete Cosine Transform (DCT)** applied on a two-dimensional numerous blocks of 8*8 pixels.
, after compressing, the image reconstruction phase using **Inverse DCT** of each block.

### Libraries & functions

#### functions
#### libraries

At the beginning, I used "dct" & "idct" functions with the norm of ortho type.
```
from scipy.fftpack import dct, idct
```
later for better code and improvement, I used "dctn" & "idctn" with the nrom of ortho type.
```
from scipy.fftpack import dctn, idctn
```

**for contact** 📧 [ahmedkamal200427@gmail.com](mailto:ahmedkamal200427@gmail.com)