lharri73 / thermal_imaging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Infrared Thermal Imaging

In this project, we create a low-cost thermal monitoring system using a Raspber Pi, a NoIR camera, and a FLIR Lepton thermal imaging sensor. We use OpenCV and Python to fuse these two image modalities, and allow the user to specify regions of interest to monitor within the image. This project features a basic web interface that displays the 6 most recent images, allows the user to specify regions of interest, and shows the min, max, and mean temperature of each region. The max temperature of each region is stored within a databse, hosted locally on the Raspberry pi, and can easily be connected to a larger data monitoring system.

Setup

If this has been run on the raspberry-pi before, then you can skip this step.

  1. Install system prerequisites:

    sudo apt-get install python-opencv python-numpy
  2. Enable the spi on the raspberry pi.

    1. Run sudo raspi-config
    2. Navigate to "Interface Options"->"SPI"
    3. Select "Yes"
    4. Select "Finish"
  3. Increase the bufsize of the spi device Edit the file /boot/cmdline.txt (make sure to use sudo)

    Add spidev.bufsiz=131072 to the end of the file. Make sure that everything is on one line. It should look like this:

    console=tty1 root=PARTUUID=336afa3f-02 rootfstype=ext4 fsck.repair=yes rootwait spidev.bufsiz=131072
    
  4. Reboot the device

  5. Install python requirements:

    python3 -m pip install -r requirements.txt
  6. Setup the database

    mysql -u root < database/init.sql
  7. Start the server!

    cd web && ./start.sh

    The webserver will be available at port 8000 of the device running the start.sh script.

About


Languages

Language:Python 51.2%Language:JavaScript 34.8%Language:CSS 8.1%Language:HTML 5.7%Language:Shell 0.2%