Skip to content

SEEK thermal compact camera driver supporting the thermal compact and thermal compact pro

License

Notifications You must be signed in to change notification settings

fnoop/libseek-thermal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

SEEK thermal compact camera driver supporting the thermal compact and thermal compact pro

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.3%
  • CMake 5.1%
  • Makefile 2.9%
  • C 1.7%