Im using camera plugin to capture images, but it produces images in landscape orientation even though I keep the phone in portrait orientation.
I tried rotating the images after capturing using a different package, but that was very inefficient as the process takes too long to complete.
Can someone tell why is it happening and is there any solution.
How I initialize the controller
controller = CameraController(
widget.cameras[1],
ResolutionPreset.medium,
imageFormatGroup: ImageFormatGroup.jpeg,
);
and I listen to the controllers imageStream.
Device: Mi Poco F1 | Android version: 10
I need to capture a minimum of 10 frames per second and push it to a web socket continuously for 30 seconds.
So, even though the solutions in the first 2 comments actually work, they are inefficient for my requirement as they cause the UI to freeze.