Comments (6)
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.
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.
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.
Hi
Ok, No Problem.
Thanks
Shruti
from android-yolo-v2.
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.
Hi
Thanks for helping me.
Thanks
from android-yolo-v2.
Related Issues (20)
- About misjudgment measures HOT 6
- Black Screen HOT 2
- Do you have no intention of making android-yolo-v3? HOT 2
- Crashing when using yolo v2 HOT 1
- How do I convert my yolov3 weights file to .pb? HOT 2
- java.lang.StackOverflowError: stack size 8MB
- App crash on the simulator HOT 2
- GPU support for android HOT 1
- .tflite HOT 1
- Not getting predictions for custom model. HOT 1
- use new pb file problem.
- Unable to load the pb file from Custom training model HOT 16
- Node Output does not exist in model HOT 4
- different input size not working HOT 1
- The problem about app‘s interface HOT 5
- Is there any way to use it for Yolov3 till now in 2020? HOT 1
- Unable to locate .pb file in custom model
- Can't Compile it
- Unable to find method 'org.gradle.api/Lorg/gradle/api/tasks/TaskInputs;'.
- Add more feature for Camera Capture HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-yolo-v2.