groupgets / purethermal1-uvc-capture

USB Video Class capture examples for PureThermal 1 / PureThermal 2 FLIR Lepton Dev Kit
125 stars 81 forks source link

V4l2 and get the temperature from video #55

Open MADONOKOUKI opened 2 years ago

MADONOKOUKI commented 2 years ago

Hi, I use purethermal and OK the v4l2-ctl setting. We can select the format and I wonder which format can get the temperature with video. I thought a dafault format of UYVY normalize the temperature automatically. But I want to get the actual value of temperature If I can.

ioctl: VIDIOC_ENUM_FMT Index : 0 Type : Video Capture Pixel Format: 'UYVY' Name : UYVY 4:2:2

Index : 1 Type : Video Capture Pixel Format: 'Y16 ' Name : 16-bit Greyscale

Index : 2 Type : Video Capture Pixel Format: 'GREY' Name : 8-bit Greyscale

Index : 3 Type : Video Capture Pixel Format: 'RGBP' Name : 16-bit RGB 5-6-5

Index : 4 Type : Video Capture Pixel Format: 'BGR3' Name : 24-bit BGR 8-8-8