-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set the video feed and still capture to a single channel (monochrome) #45
Comments
Hello, thank you for your question. I want to confirm your situation. (1) You are using monochrome USB camera? not usually USB camera that support RGB colors. (2) Does your monochrome USB camera is able to use this library? |
As I read your message and message in another issue, There is a 'BufferToBitmap' function in this library. So you may have to modify BuffetToBitmap function. |
Hi, thanks for the reply. Here are the links to the cameras we are using:
When I tried changing to the YUV2 format and modified the bitmap conversion to monochrome, I was able to get the grayscale feed. However, I am facing an issue with Still Pin Capture:
|
Currently, the library is not support monochrome camera. (1) let me know result of below, and which format you selected? foreach (var item in formats) Console.WriteLine(item); (2) are you define 'USBCAMERA_WPF'? 'USBCAMERA_BYTEARRAY'? (3) are you use with WinForms? WPF? (4) if possible, could you upload you modified UsbCamera.cs. |
Hi,
I am running two monochrome cameras using this code. We found that the bitmap data is being generated in RGB format. How can we set the bitmap data to a monochrome format?
I have created a new media subtype:
public static readonly Guid MEDIASUBTYPE_Y8 = new Guid("{17fd9d23-d15f-4e42-9e3e-310b1d4a209b}");
in the DsGuid class and assigned it as follows:
However, in the CreateSampleGrabber method, the getBitmap() function is returning null.
The text was updated successfully, but these errors were encountered: