Issue with Camera Orientation
Hi,
I'm new on OpenCV and I want to change the camera orientation from landscape to portrait. I found some solutions that involve pixel manipulation in onCameraFrame method (rotate and flip the mat), but all these decrease significantly the fps.
Is there a way to fix this bug remaining on 30fps?
if resolution is not main concern u can resize the every frame to small and do rotate-flip then resize back the frame to its desired size..This rotate-flip on small image may saves time.we can use affine transform also for orientations
I think transpose and flip is quicker than the one affine transform you would need.
If I use transpose and flip the fps decrease to 15, instead of 30, that is a significantly loss.
Well, then stick with the affine transform. You should be able to do it in one transformation. I'll take a look at it over the weekend and find the fastest way and make a function for it. People need the 90 degree rotations way too often for it not to be built in.
To be clear, that's the whole rotation and any flips you need, all as one transformation. Flips can be gotten by adding a negative to the appropriate parameters in the affine.
Is it necessary to use opencv here .Because loading of mats ,,calling libs may slags the time.. cant we do these operations on frames without opencv..?