Color Video #123
-
Hello everyone. I have a script that is collecting video from a webcam and collecting voltage values from a DAQ. For this specific project it would be helpful to collect the video in full color. I made a class based on the 'Webcam' class except it does not convert the image color space to gray scale in the 'get_image' function. Despite this I am still getting saved images that are in grayscale. Any advice or tips on this would be greatly appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi ! Can you please share the script you're running ? And also the custom Camera class that you wrote ? |
Beta Was this translation helpful? Give feedback.
I played a bit with my own webcam, and I was able to reproduce your bug.
Basically, several backends are supported in Crappy to save images: SimpleITK, Pillow, OpenCV, and Numpy. This is because depending on the target image format, their performance can vary significantly. Also, back when Crappy was created (about 10 years ago already !), installing Python packages was not as easy as now so having a fallback backend was sometimes necessary.
In your script you do not specify a backend, so by default Crappy will check for the availability of
SimpleITK
,PIL
, andcv2
modules in this order, and pick the first one available.numpy
is always available in case none of the three others are as it'…