Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
/ BosonUSB Public archive
forked from FLIR/BosonUSB

Tool to capture Boson USB video in Linux

License

Notifications You must be signed in to change notification settings

eva-tech/BosonUSB

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FLIR SYSTEMS, INC
2018-Nov
MIT License

Description:

This is an example of capturing Boson Video (USB) using V4L2 (Video for Linux 2) and OpenCV to display the video. Boson USB has two modes, AGC-8 bits and RAW-16bits.

Video in 16 bits is not paintable so a linear transformation needs to happen before displaying the image. We call this process AGC, and in this example we use the most basic one (LINEAR). Then we use stardard call to paint in GREY. Video is 8 bits is directly paintable, linear transformation happens inside the camera, not further actions need to happen in SW.

To Display Boson data we are using OpenCV to convert from YUV to RGB.

How to use it:

BosonUSB [r/y/a/b/z/f/t] [0..9] 
	r    : raw video
	y    : 8 bits
	z    : zoom mode to 640x480
	f<name>    : record TIFFS in Folder <NAME>
	t<video_frames> : record a certain number of frames being <video_frames> default sets to 0 which sets no limit
	s[b,B] : b=boson320, B=boson640   
	[0..9]: video port

./BosonUSB    ->  opens Boson320 /dev/video0  in RAW16 mode
./BosonUSB r  ->  opens Boson320 /dev/video0  in RAW16 mode
./BosonUSB y  ->  opens Boson320 /dev/video0  in AGC-8bits mode
./BosonUSB sB 1   ->  opens Boson640 /dev/video1  in RAW16 mode
./BosonUSB sB y 2 ->  opens Boson640 /dev/video2  in AGC-8bits mode
./BosonUSB fcap -> Captures RAW16 frames and stores them as TIFF files in 'cap' folder.
		   If in RAW16 mode then RAW16 and Linear_AGC are captured per frame
		   If in AGC-8 mode then YUV TIFF only are captured per frame
./BosonUSB fcap t100 -> Captures RAW16 frames and stores them as TIFF files in 'cap' folder and only captures 100 frames

Prerequisites

sudo apt install build-essential cmake libopencv-dev

To compile

This SW uses some libraries as v4l2 and OpenCv, they need to be installed first in the PC. They are not part of this package

cmake .
make

(if CMakeCache.txt exists remove it first time)

How to clean the full project

make clean
rm -rf CMakeFiles
rm CMakeCache.txt
rm cmake_install.cmake
rm Makefile

How to install

make install

References and Credits (other than FLIR)

About

Tool to capture Boson USB video in Linux

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 98.3%
  • CMake 1.7%