I'm trying to get images to the highest resolution.
In this way:
var result = await cameraView.StartCameraAsync(cameraView.Camera.AvailableResolutions.OrderByDescending
(size => size.Width * size.Height).FirstOrDefault());
if (result != CameraResult.Success)
{
ResultLabel.Text = "Error starting camera";
return;
}
cameraView.ForceAutoFocus();
Stream stream = cameraView.SnapShotStream;
My phone (Samsung S23) can take photo 4080x3060, but I take stream 1650x1050.
When I change the dimension of cameraview in my xaml file, the stream changes resolution.
Actually I have this xaml:
Today I realized something. The actual resolution is the (cv:CameraView) resolution multiplied by 3.
1650x1050 = (550x350) * 3
Anyone have an idea?
Thanks.
I'm trying to get images to the highest resolution. In this way:
My phone (Samsung S23) can take photo 4080x3060, but I take stream 1650x1050. When I change the dimension of cameraview in my xaml file, the stream changes resolution. Actually I have this xaml:
Where do I make the mistake? Thanks.