Git Product home page Git Product logo

mlx90640_serial_processing_python's Introduction

MLX90640_Serial_Processing_Python

Fast Python Processing script for serial data from an MLX90640 running on a Teensy 4.0

This is a Python version of MLXHeatCam.pde from https://github.com/sparkfun/SparkFun_MLX90640_Arduino_Example

I have the MLX90640 wired to a Teensy 4.0 running the original sparkfun "Output to Processing" script (edited, to give us 16FPS) This effectively gives us a little high speed Thermal camera with serial out.

Screenshot

MLXHeatcam (Processing software) is a little slow because of use of filter(BLUR,7); which is CPU heavy I believe and I didn't really want to fire up an IDE to use the camera, so I rolled my own processing script in Python ad OpenCV.

Serial Data is received by displaythermal.py (in src). This reads in the serial data, turns it into a numpy array and does some processing in OpenCV. Thermal data is cubic interpolated to give an impression of a higher resolution. The sensor is only 32 by 24 and is scaled to 320 by 240.

readthermal.py just shows raw numpy data in the console, if that is what you need!

Screenshot

This should run on a RPi just fine (not tested yet) (It does NOT run well on the RPi (You will see why shortly...), but updated code which does run is coming!) I intend to combine frames from the Picam as I did in onther project shortly!

Note: Both scripts assume the Teesny enumerates as: /dev/ttyACM0 You may have to change this!

mlx90640_serial_processing_python's People

Contributors

leswright1977 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.