-
Notifications
You must be signed in to change notification settings - Fork 59
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
Inconsistent Image Quality When Saving Still Capture Monochrome Sensor Data as BMP #31
Comments
Hello, thank you for your information.
// get video format.
var cameraIndex = 0;
var formats = UsbCamera.GetVideoFormat(cameraIndex);
// select the format you want.
foreach (var item in formats) Console.WriteLine(item); |
Thank you for your prompt response.
4 & 5. Please find the relevant information in the attachments. Note: When attempting to obtain the video feed using your code, we initially encountered an error stating that it was unable to create a filter. To address this, I commented out the code as shown below (1st way): // To show the preview, there are 3 ways. we are using this |
Hi, For 6) we are using 55 CUG Camera , videoFormat[3] Format: For 7th question share the above screenshot |
At first I thought it was because of biBitCount was 8. Now you are using videoFormat[3]. |
Tried both VideoInfo and VideoInfo2, but both are giving same quality. Attached the saved images for reference and here is the code which saves the still capture image `try
Do you think the code which is saving still capture is causing the issue? |
StillImageCapture works fine in my environment. The GetBitmap function and StillImageCapture call the same function. One possibility, I want to confirm. To save bitmap instance to file, please see code below. camera.StillImageCaptured += bmp =>
{
bmp.Save(path, System.Drawing.Imaging.ImageFormat.Bmp);
}; |
Thanks for the response , we used the above code but still we are having quality issues , I am attaching image where left is reference image and right is the image we got from above code , Still i feel the left image have more quality Issue #2 |
We are experiencing a discrepancy in the image quality when saving Still capture from a monochrome sensor as an 8-bit BMP file. The output image does not match the expected quality and format, differing significantly from a reference BMP image known to be of high quality.
The text was updated successfully, but these errors were encountered: