Share 'OpenCV4Android - Displaying Preview in Portrait Mode'
Normally OpenCV for Android displays the preview in landscape mode. For STEMbot1 and STEMbot2 I needed to display the preview in a portrait mode.
Here is the code I came up with.
In your manifest file change the orientation from landscape to portrait.
In the onCameraViewStarted() method add:
public void onCameraViewStarted(int width, i…
You can share this blog post in two ways…
Share this link:
Send it with your computer's email program: Email this