TheImagingSource / tiscamera

The Linux SDK for The Imaging Source cameras.
https://www.theimagingsource.com
Apache License 2.0
300 stars 148 forks source link

Gray8 #307

Closed v-prgmr closed 5 years ago

v-prgmr commented 5 years ago

Greetings,

Using the simple snap c++ example for capturing images using a DFK 33GX273. I cannot set the format to GRAY8 in cam.set_capture_format("BGRx", FrameSize{640,480}, FrameRate{30,1}); . Only BGRx works.

Anything I should watch out for?

TIS-Stefan commented 5 years ago

hello Unfortunately this is correct. Why do you want to use GRAY8?

v-prgmr commented 5 years ago

Hi. No reason for using Gray8. I was playing around the APIs and samples and stumbled upon this error. That's why decided to post it here.

TIS-Stefan commented 5 years ago

Hmmm...

I tried several pipelines, as shown at https://theimagingsource.deskpro.com/en/kb/articles/linux-set-video-formats-in-camera-and-memory and GRAY8 worked fine. At least, with my USB cameras. I just tried gst-launch-1.0 tcambin ! video/x-raw, format=GRAY8, widht=640,height=480, framerate=30/1 ! videoconvert ! ximagesink with a GigE Camera and it works fine on my machine too.

It may is possible, that the TCamCamera class does not accept this parameter.