Skip to content
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

M300RTK 图像显示有横向拉伸 #123

Open
tqtxwysse opened this issue Apr 26, 2021 · 9 comments
Open

M300RTK 图像显示有横向拉伸 #123

tqtxwysse opened this issue Apr 26, 2021 · 9 comments

Comments

@tqtxwysse
Copy link

有明显的横向拉伸,不管把父控件大小调成什么大小,拉伸都存在。但精灵4RTK就不存在这个问题,请问题是什么原因导致的。

@tqtxwysse
Copy link
Author

image

@tqtxwysse
Copy link
Author

导致本来120度的角被拉伸成130多度

@tqtxwysse
Copy link
Author

image
本来圆形的轮毂也变成椭圆形了,但录像模式就不会有这个问题,只有在拍照模式下会有拉伸

@dji-dev
Copy link
Contributor

dji-dev commented Apr 27, 2021

Agent comment from William Wong in Zendesk ticket #47009:

尊敬的开发者,
您好,感谢您联系DJI 大疆创新。

拍出的照片是否也有问题,把build.gradle中的exclude module: 'library-anti-distortion'注释掉试试,这个是去除畸变矫正功能。如果连这样都解决不了,我比较怀疑的是UXSDK的FPV视图控件的问题。

希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快!
Best Regards,
DJI 大疆创新SDK技术支持

added by Git-Zen

@tqtxwysse
Copy link
Author

非常感谢你的回答。
拍出的照片没有问题,中间轮毂是圆的。
我们因为业务需求,要规划航线,所以要在拍照前得到叶片角度。
但是发现前置的掩膜图怎么转都没法同时对上三个叶片,经过分析才发现是因为图像被横向拉伸了。
所以我们尝试去解决这个问题,首先想到的是去找sdk接口,但没有找到相关设置长宽的地方。
然后我们通过控制控件的长宽比为照片的长宽比,也就是4:3。
最终结果画面的长宽虽然被控制住了,但里面的图像依然是被横向拉伸的,同时左右应该是有被裁剪。

@dji-dev
Copy link
Contributor

dji-dev commented Apr 27, 2021

Agent comment from William Wong in Zendesk ticket #47009:

尊敬的开发者,
您好,感谢您联系DJI 大疆创新。

这个应该是你使用FPV控件的时候有裁剪,你不使用UXSDK的控件,直接用安卓自己的textview渲染看看有没有这个问题。
Link:https://github.com/DJI-Mobile-SDK-Tutorials/Android-VideoStreamDecodingSample

希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快!
Best Regards,
DJI 大疆创新SDK技术支持

added by Git-Zen

@tqtxwysse
Copy link
Author

好的,我们这就去尝试。问题的原因有没有可能是UXSDK没有对M300的挂载长宽做适配呢,我们挂的相机是H20

@dji-dev
Copy link
Contributor

dji-dev commented Apr 28, 2021

Agent comment from William Wong in Zendesk ticket #47009:

尊敬的开发者,
您好,感谢您联系DJI 大疆创新。

如果想要确认这个问题,你得换个负载试试,不过后续我们没有人力更新UXSDK了,只能你用开源版本自己去继续开发。

希望我们的解决方案能够帮到您,感谢您的邮件,祝您生活愉快!
Best Regards,
DJI 大疆创新SDK技术支持

°°°

@DJI-William
Copy link
Contributor

@liweibinGIT 这个问题解决了吗?你用lens(0).setPhotoAspectRatio调整画面比例,可以改变画面拉伸的问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants