This project involves a Raspberry Pi 4 with an MLX90640 thermal camera, capable of live plotting and displaying thermal images. The script provided is for capturing, processing, and visualizing thermal data in real-time.
- Raspberry Pi 4
- MLX90640 thermal camera module
- Python 3.x
- Libraries: numpy, matplotlib, scipy, adafruit_mlx90640
-
Enable I2C on Raspberry Pi: Use
raspi-config
to enable the I2C interface. -
Install Python Libraries: Run
pip install numpy matplotlib scipy adafruit-circuitpython-mlx90640
.
Execute the script to start capturing and displaying thermal data. The script initializes the camera, sets up the live display, and enters a loop for real-time data processing and visualization.
- Live thermal image plotting.
- Data interpolation for enhanced clarity.
- Real-time and averaged thermal view modes.
- Frame rate monitoring for performance checks.
Run the script in a Python environment. The live thermal feed will display in real-time, and the system will periodically capture and display an averaged thermal image.
Note: Ensure all connections and configurations are correctly set before running the script. Loose wires can cause dropped frames and crashes