Native C++ app for the Topdon TC-001 and the Infiray P2 and similar thermal image USB cameras that use the Infiray Tiny1-B Micro LWIR Thermal Module.
Tested on:
Licensed under GPL2.0
Requirements: In summary, OpenCV and libV4Linux.
libv4l2-dev libopencv-dev libopencv-core libopencv-imgproc libopencv-highgui libopencv-codecs libopencv-imgcodecs
To build:
mkdir build
cd build
cmake ..
make
TODO - Not tested.
Set the width and height of your screen in ./config/screen_resolution.txt
. By default it is 720 1440
.
The file ./icons/yombir.desktop
can be changed to suit your username, install location and camera device.
It launches ./yombir.sh
, which makes use of gnome-session-inhibit
to disable screen sleep during camera use.
./yombir [camera device path] [r[9]]
By default the device is /dev/video0
If 'r' is specified, screen is rotated 180º (only for realtime display, not on recorded files). If 'r9' is specified, a rotation of 90º CCW is done instead.
When running, the app will display the thermal image in fullscreen. The first two seconds will display noise while it stabilizes.
Control keys:
When recording, a blinking red circle will appear. Recordings are saved to ./captures
folder with .t16 extension (from "Thermal 16 bpp")
Each file is just the captured raw frames at 16 bpp, one after the another at 24 FPS (about 2 MB/second). Resolution is 256x192.
See ./utils/README.md on how to convert the recorded .t16 files to .mp4 videos.
I don't set any parameters via USB. Perhaps for this reason the camera sometimes readjusts the range or the optics by itself making an audible clic, and stopping transmitting for less than a second.
People at eevblog.com forums for the reverse engineering of the camera's video format.
The libv4l2cpp library at Github (public domain)