Git Product home page Git Product logo

bosonusb's Introduction

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

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

References and Credits (other than FLIR)

bosonusb's People

Contributors

andrespmt avatar jimklingshirn avatar rustyraptor 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.