This project captures color data using an Arduino Nano 33 BLE Sense Lite with the APDS9960 sensor and applies delta encoding to reduce the size of transmitted data. The data is read via a serial connection in Python and updated on a web page using FastAPI WebSocket.
-
Clone the repository:
git clone https://github.com/Sebas03446/Data-Compression.git cd Data-Compression -
Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Start the FastAPI server:
fastapi run app/main.py
-
Open your web browser and navigate to
http://localhost:8000/api/v1/to access the web interface. -
Use the web interface to visualize the data compression process.
- Lee Xin Yee
- Léo Vasseur
- Jean Sebastian French