Ask Your Question

Revision history [back]

Actually, you need rotate your input video by 90 degree , flip is not enough,

As you noticed, many camera apps in Android devices only support landscape mode, fairly support protraint mode.

First, you can make your activity not to be a fullscreen app, I mean, remain the title bar or status bar. These UI elements will help you to know the real orientation of you activity.

Second, adjust your camera view suit for approperity activity oritentation. If you activity is portrait mode, you should do nothing. If you activity is landscape mode, you should rotate your input video by 90 degree ( transpose+flip ) , so you should detect the faces in portrait oritentaion.