OutOfMemoryError generated due to camera preview
问题 I managed to open the Android camera using opencv. but when i use the code that fixes the camera orientation -"see the code mentioned below in the onCameraFrame(..) method"- the App crashes after few seconds and the logcat generates the belwo posted messages in the "logcat section". To solve this issue: i tried to use SystemClock.sleep to force the App to dely for a while but this was not a good solution because it delays the camera preview i tried to minimize the frame size as much as i can,