ImageFromXamarinUI
ImageFromXamarinUI copied to clipboard
Should this work on CommunityToolkit.CameraView? It produces a black image.
I found your project while struggling to automatically feed camera input to some sort of image processor at regular time intervals. As I had terrible issues with CameraView.Shutter() becoming prone to crashing in combination with threads, I started to explore a way to take a screenshot of the camera preview directly from the screen instead of requesting it from the camera.
So here I have a working CameraView control that streams images to a page. However, CameraView.CaptureImageAsync() returns a completely transparent image (black when seen as JPEG), while other calls like Button.CaptureImageAsync() render the control indeed.
Is this how it should be? Are there any possible workarounds?
Thank you.