-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat]: Support for devices whose MountAngle is not general #73
Comments
Hi there, I have the feeling that there was on issue with the orientation, but it is a really painfull subject 🧠 Best regards, |
As the preview and the stream are 2 different things, there might be 2 issues. |
Hello. The combination of device orientation and camera mount angle is a headache. The patch I created focuses only on the stream. A simple test... This is also difficult. |
Sorry I haven't had much time to do this.... I tried to build a simple environment.
The report says "YT9213AJ supports external usb camera and it returns 0 camera sensor orientation > ". So,
However, I do not have an external usb camera at hand, Thank you. |
Hi,
Agreed! It is not clear at all. I will try to test with an android emulator and an external USB camera. Thanks for the information. In the meantime, I reworked the management of the orientation. It is not going to fix your issue but it might be easier to debug. |
Just did the test with my webcam and sensor orientation is also 90 degrees... |
Hi
I apologize that it did not behave as expected. I will conduct further investigation on my end as well. From a technical point, I believe it is possible to build an emulator image with Angle other than 90 from AOSP. However, I consider that as a last resort.. |
Version
2.5.2 (or commit: 3a9af52)
Environment that reproduces the issue
Pixel4 - AOSP 10 (Rooted, Custom OS)
Root is required because the
MountAngle
incamera_config.xml
, which is the ReadOnly configuration file of the OS, needs to be rewritten.This can be reproduced by changing the angle to 0 or 180.
Use case description
Thanks for this project, it has been very helpful as I was trying to implement SRT. Thank you very much.
After using the demo and libraries of this project, I found that
It seems that devices with camera angles where the MountAngle is 0 or 180 are not oriented correctly.
MountAngle
incamera_config.xml
is the value ofSENSOR_ORIENTATION
inCameraCharacteristics
.e.g. https://github.com/LineageOS/android_device_bq_sdm660-common/blob/lineage-16.0/configs/camera/camera_config.xml
For example, if you request
Size(1280, 720)
, thenA camera with
MountAngle=90
will preview and deliver a 1280 x 720 image with the correct proportions.However, with a camera with
MountAngle=0
, the captured video with 1280 horizontal and 720 vertical will be distorted, as if it were scaled down or enlarged to 1280 vertical and 720 horizontal.The following is a capture of the distorted image.
(Android preview screen and the image distributed by SRT)
After applying my patch (please check alternative solutions.)
Proposed solution
No response
Alternative solutions
I have created a patch to work with the less common MountAngle devices.
Here is the Dirty code. Sry.
The text was updated successfully, but these errors were encountered: