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
- Host: GitHub
- URL: https://github.com/ahmed-kamal2004/imagecompressingproject
- Owner: ahmed-kamal2004
- License: mit
- Created: 2024-05-02T20:25:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-10T14:03:29.000Z (over 1 year ago)
- Last Synced: 2025-03-01T07:48:30.853Z (8 months ago)
- Topics: api, compression, compression-algorithm, dct, dct2, fastapi, fourier-transform, matplotlib, numpy, opnecv, python3
- Language: Jupyter Notebook
- Homepage:
- Size: 14.2 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)