Code Monkey home page Code Monkey logo

libseek-thermal's Introduction

libseek-thermal

Build Status master

Build Status development

Description

libseek-thermal is a user space driver for the SEEK thermal camera series built on libusb and libopencv.

Supported cameras:

Seek Thermal CompactPRO example:

Alt text

NOTE: The library does not support absolute temperature readings since we don't know how. Any pull requests to fix this are welcome!

Credits

The code is based on ideas from the following repo's:

Build

Dependencies:

  • cmake
  • libopencv-dev (>= 2.4)
  • libusb-1.0-0-dev
  • libboost-program-options-dev

NOTE: you can just 'apt-get install' all libs above

cd libseek-thermal
mkdir build
cd build
cmake ../
make

Install shared library, headers and binaries:

sudo make install
sudo ldconfig       # update linker runtime bindings

For more build options (debug/release, install prefix, opencv install dir, address sanitizer, debug verbosity) run

cmake-gui ../

Getting USB access

You need to add a udev rule to be able to run the program as non root user:

Udev rule:

SUBSYSTEM=="usb", ATTRS{idVendor}=="289d", ATTRS{idProduct}=="XXXX", MODE="0666", GROUP="users"

Replace 'XXXX' with:

  • 0010: Seek Thermal Compact/CompactXR
  • 0011: Seek Thermal CompactPRO

or manually chmod the device file after plugging the usb cable:

sudo chmod 666 /dev/bus/usb/00x/00x

with '00x' the usb bus found with the lsusb command

Running example binaries

./examples/seek_test       # Minimal Thermal Compact/CompactXR example
./examples/seek_test_pro   # Minimal Thermal CompactPRO example
./examples/seek_viewer     # Example with more features supporting all cameras, run with --help for command line options

Or if you installed the library you can run from any location:

seek_test
seek_test_pro
seek_viewer

Some example command lines:

seek_viewer --camtype=seekpro --colormap=11 --rotate=0                     # view color mapped thermal video
seek_viewer --camtype=seekpro --colormap=11 --rotate=0 --output=seek.avi   # record color mapped thermal video

Linking the library to another program

After you installed the library you can compile your own programs/libs with:

g++ my_program.cpp -o my_program -lseek `pkg-config opencv --libs`

Using the following include:

#include <seek/seek.h>

Apply additional flat field calibration

To get better image quality, you can optionally apply an additional flat-field calibration. This will cancel out the 'white glow' in the corners and reduces spacial noise. The disadvantage is that this calibration is temperature sensitive and should only be applied when the camera has warmed up. Note that you might need to redo the procedure over time. Result of calibration on the Thermal Compact pro:

Without additional flat field calibration With additional flat field calibration
Alt text Alt text

Procedure:

  1. Cover the lens of your camera with an object of uniform temperature
  2. Run:
# when using the Seek Thermal compact
seek_create_flat_field -c seek seek_ffc.png

# When using the Seek Thermal compact pro
seek_create_flat_field -c seekpro seekpro_ffc.png

The program will run for a few seconds and produces a .png file.

  1. Provide the produced .png file to one of the test programs:
# when using the Seek Thermal compact
seek_test seek_ffc.png
seek_viewer -t seek -F seek_ffc.png

# When using the Seek Thermal compact pro
seek_test_pro seekpro_ffc.png
seek_viewer -t seekpro -F seekpro_ffc.png

libseek-thermal's People

Contributors

fnoop avatar maartenvds avatar

Stargazers

 avatar

Watchers

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