You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] CommunityToolkit.Maui.Camera preview on Windows 11 blinks and is on greyscale #2547
- CommunityToolkit.Maui.Camera: 2.0.2
- OS: Windows 11 (latest as of this writing).
- .NET MAUI: (latest)
Anything else?
Camera.Glitch.mp4
Linked is a short capture of MyPal showing a piece of a table and a keyboard. The camera preview is in greyscale and blinking. Might have something to do with camera parameters (exposure?). I was using Logitech Brio 4k and it it had red light blinking, indicating the IR light is in use.
Activity
dotMorten commentedon Feb 20, 2025
If it is indeed using the IR camera, I'm guessing Maui just picks the wrong camera stream? My guess is this code just needs a little tweaking:
Maui/src/CommunityToolkit.Maui.Camera/Providers/CameraProvider.windows.cs
Lines 25 to 38 in 337cbf6
TheCodeTraveler commentedon Feb 20, 2025
Interesting! Thanks @dotMorten!!
Do you have experience with this on Windows? Any chance you could open up a PR to help us out?
bijington commentedon Feb 20, 2025
I have a laptop with an IR camera. I could take a look if it helps
dotMorten commentedon Feb 20, 2025
I also have the specific camera and I could try it if you can't reproduce. I have a little bit of experience with these APIs yes.
dotMorten commentedon Feb 21, 2025
I can reproduce, and I see this camera is detectable: