Giter VIP home page Giter VIP logo

Comments (6)

shruti-techindustan avatar shruti-techindustan commented on June 26, 2024 1

Hi
Yes, I have tried to support in landscape mode too.

I have only change
sensorOrientation = rotation+screenOrientation;
to
sensorOrientation = screenOrientation;
and Its working.

But in landscape, I want to show the preview of the camera in full screen So I have changed the
DESIRED_PREVIEW_SIZE =new Size(screenWidth,screenHeigth)
and comment the chooseOptimalSize() function
In that case It's not working. Please help me

from android-yolo-v2.

szaza avatar szaza commented on June 26, 2024

Hi,
At the moment this example application supports only the portrait mode, however by modifying the code the landscape support can be easily added. Did you tried to add the landscape support?
If yes, how did you tried?
Regards,
Zoltan

from android-yolo-v2.

szaza avatar szaza commented on June 26, 2024

Hi,

This weekend I'll be very busy, however hopefully on Sunday I'll have some time to check the problem.
I hope it will not be to late for you.

Thanks for your understanding,
Zoltan

from android-yolo-v2.

shruti-techindustan avatar shruti-techindustan commented on June 26, 2024

Hi

Ok, No Problem.

Thanks
Shruti

from android-yolo-v2.

szaza avatar szaza commented on June 26, 2024

Hi,
I created a branch called landscape-mode: https://github.com/szaza/android-yolo-v2/tree/feature/landscape-mode; Here I pushed some workarounds for your problem.
To comment out the chooseOptimalSize() is not a good idea, however you can change the preview size by replacing the return value of the chooseOptimaSize method. To keep it simple, I replaced the texture.setAspectRatio method in the CameraConnectionFragment.java to textureView.setAspectRatio(1920, 1080);

from android-yolo-v2.

shruti-techindustan avatar shruti-techindustan commented on June 26, 2024

Hi

Thanks for helping me.

Thanks

from android-yolo-v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.