You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having this same issue. I have adjusted the preview to rotate 90 degrees however when running demos the augmented object do not currently appear. For example when looking at he "Placing objects Demo 2" the augmented object does not appear to move. The way i changed to 90 degrees preview was I added a check in "setPreviewAccordingToScreenOrientation" to check if the device is a tablet.
if(!EventManager.isTabletDevice){
if (rotation == Surface.ROTATION_0) {
parameters.setPreviewSize(height, width);
setDisplayOrientation(90);
} else if (rotation == Surface.ROTATION_90) {
parameters.setPreviewSize(width, height);
setDisplayOrientation(0);
} else if (rotation == Surface.ROTATION_180) {
parameters.setPreviewSize(height, width);
setDisplayOrientation(0);
} else if (rotation == Surface.ROTATION_270) {
parameters.setPreviewSize(width, height);
setDisplayOrientation(180);
}
}else{
//TODO:
if(rotation == Surface.ROTATION_0){
Log.e("ROTATION", "ITS A TABLET SETING ROTATION from " + rotation + " to something");
parameters.setPreviewSize(height, width);
setDisplayOrientation(-90);
}
}
Hi I'm trying the demo in a tablet device. When the activity starts the camera is flipped 90 degrees. The layout seems fine.
The text was updated successfully, but these errors were encountered: