I am trying to run Tensorflow Lite object detection example on Android device. But I need to reconfigure this example to accommodate landscape screen orientation.
I have changed screen orientation parameter in AndroidManifest.xml to 'Landscape' but screen preview is keeping in portrait mode. The squared object detection has functioned correctly, but it seems camera view needs to be rotated.
Please see this screen capture https://ibb.co/Yftyk8P
<activity
android:name=".DetectorActivity"
android:label="@string/activity_name_detection"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Please help me how to fix this problem