pytorch / android-demo-app

PyTorch android examples of usage in applications
1.45k stars 596 forks source link

How to change portrait to landscape on camera view in Object Detection App ? #278

Open aravinthk00 opened 1 year ago

AnnaKholkina commented 1 year ago

Try to comment matrix.postRotate(90.0f) in MainActivity.java

aravinthk00 commented 1 year ago

I tried that comments but nothing change in app. Please anyone assist me ...

Thanks in advace :-)

aravinthk00 commented 1 year ago

I did this ### android:rotation="270" in texture_view.xml file changes portait to landscape on camera view. But I can't fix camera for fit window and detection issue in bounding boxes . Screenshot_20221128_102029 How to fix this issue , anyone assist me for resolve ...

NeighborhoodCoding commented 1 year ago

did you import rotation packages? seems there is something wrong in the rotation API.