FLIR / BosonUSB

Tool to capture Boson USB video in Linux
MIT License
64 stars 26 forks source link

Output is Grayscale #16

Closed ahmedosama9777 closed 3 years ago

ahmedosama9777 commented 3 years ago

I am using the 8-bit mode. and my output is a grayscale image, is cvtcolor not working?

ghost commented 3 years ago

should be working. We had an issue where color planes where swapped but got fixed. Basically if you open in YUV mode ( not RAW ) then if Boson is configured to use color LUTs you will see them ....

ghost commented 3 years ago

./BosonUSB y -> opens Boson320 /dev/video0 in AGC-8bits mode

AGC mode will display colors if Boson does. Let us know.

ahmedosama9777 commented 3 years ago

That’s what I am using. I get a .tiff file that is grayscale, what’s weird is that the .tiff file has 3 channels, and they are all equal to each other when I separate them.

ghost commented 3 years ago

I have tested it and it works, i am getting the TIFFs colorized. What i have done.

The commands i use: sudo ./rawBoson -p/dev/ttyACM0 -b921600 c000B0001 x0 x0 x0 x1 ( this is to activate colormap ) sudo ./rawBoson -p/dev/ttyACM0 -b921600 c000B0003 x0 x0 x0 x4 ( to activate one of the maps ) ./BosonUSB sB y ftest ( to display AGC mode while recording ) eog Boson_640_yuv_0.tiff ( to open the file )

Video and files are colorized. rawBoson is at Github as well : github.com/FLIR/rawBoson

ahmedosama9777 commented 3 years ago

Thank you!

All sorted now.