A package which connects an MLX90640 Thermal IR Camera to a Raspberry Pi for viewing or web streaming.
Project description
README
Documentation of the thermal pi cam project, which connects an MLX90640 thermal camera up to a Raspberry Pi. (Built on a Pi 4)
Setup based primarily off the article at https://makersportal.com/blog/2020/6/8/high-resolution-thermal-camera-with-raspberry-pi-and-mlx90640#thermal-cam, with additions from https://www.raspberrypi.org/products/raspberry-pi-universal-power-supply/ and flask pieces based on https://www.pyimagesearch.com/2019/09/02/opencv-stream-video-to-web-browser-html-page/. Many thanks to Joshua Hrisko, Валерий Курышев, and Adrian Rosebrock for their work in these articles.
Full details for this project are available at https://tomshaffner.github.io/PiThermalCam/, including comprehensive hardware/software setup, install, and usage instructions. A cursory overview for development purposes only is included here.
Manual Install/Setup
This section discusses software setup only, and assumes you have hardware set up, the MLX90640 correctly wired up, and the baudrate increased to 400k.
-
Install, using apt-get, the following items: libatlas-base-dev python-smbus i2c-tools
-
Install remaining requirements using either: a. pip3 install the requirements.txt or b. pip3 install the requirements_without_opencv.txt
Download, build, and install OpenCV locally (painstaking process, but results in more optimized code).
Install cmapy using --no-deps pip3 flag to avoid installing OpenCV via pip3.
Usage
Run web_server.py to set up a flask server and strean live video.
Run pi_therm_cam.py to display the video feed onscreen.
Check examples folder for sequential running approaches that are easier to track/follow (i.e. not object-oriented). These are less robust, but can be easier to understand/track/edit, particularly for those coming from a scientific background. Again, refer to the link at top for a detailed discussion.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pithermalcam-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcd06dbf0c8b51fb19f2b1cc17896977b64142f9ed583af235047df0c5ca4154 |
|
MD5 | 6366a9f01454053c24b1f8a9cf762f26 |
|
BLAKE2b-256 | b812608d20b71f4ead74093564aae507629e259da6dcf57b6ff5a29c0b5e2d2b |