Giter VIP home page Giter VIP logo

raspberrypi-thermal's Introduction

Adafruit_CircuitPython_MLX90640

A Python program using OpenCV and multithreading to perform thermal imaging using the Adafruit MLX90640 Thermal camera. The work has been inspired by a few public projects, mentioned in the next section. The multithreading functionalities have been added by myself, following the ideas in:

1. https://github.com/opencv/opencv/blob/master/samples/python/video_threaded.py

NOTE (17th Dec 2021): The multithreading, as of now, does not give any significant performance boosts, despite my Raspberry Pi (3b+) having a quad-core ARM CPU. This needs further investigation.

Parts List and Hardware Setup

Detailed tutorials for selecting appropriate hardware and setting them up are available in the following links:

1. https://tomshaffner.github.io/PiThermalCam/

2. https://makersportal.com/blog/2020/6/8/high-resolution-thermal-camera-with-raspberry-pi-and-mlx90640

Downloading and Installing Pre-requisites

On a linux terminal, run 'pip3 install -r requirements.txt'

Configuring for Multithreaded processing

Ensure that the field "parallel" is set to 1, in the config.json file. Otherwise the code runs in a sequential manner.

Running the Program

On a linux terminal:

1. Change to the directory containing the files. Typically, 'cd /home/.../raspberrypi_thermal'. Make sure that the config.json file is also located in the same directory.

2. type 'python3 video_processing.py' and press enter.

3. To save a screenshot from the video output, just press the S button on your keyboard when the program is running. To quit the program, press the Q button.

Screenshots

(Please note that the interpolation and colormap are fixed in this version of the code. At the moment, it has to be changed manually from the file 'helper_functions.py')

  1. Thermal Selfie

    selfie

  2. Radiator (water operated)

    radiator

raspberrypi-thermal's People

Contributors

thecomputationguy avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.