简体   繁体   English

纵向模式图像被requestCameraImage保存为横向模式

[英]portrait mode image saved as landscape mode by requestCameraImage

I am using Metaio SDK 5.3 (for Android) for Instant Tracking. 我正在使用Metaio SDK 5.3(适用于Android)进行即时跟踪。

My aim - I want to capture an image on device A and want use the same image for tracking on device B. 我的目标-我想在设备A上捕获图像,并希望使用相同的图像在设备B上进行跟踪。

My approach - I have extended InstantTracking tutorial to capture an image and save it to send it across to device B using this method, 我的方法-我扩展了InstantTracking教程,以捕获图像并保存该图像,然后使用此方法将其发送到设备B,

metaiosdk.requestCameraImage(path);

And am saving the tracking XML file simultaneously, to send across to device B. 并同时保存跟踪XML文件,以发送到设备B。

Problem - When I capture an image in PORTRAIT mode, somehow, metaio saves it in landscape mode and so the resulting augmentation is 90 degrees rotated. 问题-在PORTRAIT模式下捕获图像时,metaio以某种方式将其保存为横向模式,因此所得到的增强旋转了90度。 When I capture an image in landscape mode, the augmentation is perfect. 当我以横向模式拍摄图像时,增强效果很完美。

Instant tracking initiated by "Instant 2D" button when device was in landscape mode. 设备处于横向模式时,可通过“即时2D”按钮启动即时跟踪。 Augmentation content was augmented in landscape mode, alt text 增强内容在横向模式下增加,alt文本 在此处输入图片说明

Instant tracking initiated by "Instant 2D" button when device was in portrait mode. 设备处于纵向模式时,通过“即时2D”按钮启动即时跟踪。 But this time, augmentation content was augmented in landscape mode, alt text 但是这次,扩充内容在横向模式下增加了,alt文本 在此处输入图片说明

Is there a way I can control how the captured image is saved? 有什么方法可以控制如何保存捕获的图像? Or why is metaio saving the portrait image in landscape mode? 还是为什么metaio在横向模式下保存人像图像?

Am I missing something here? 我在这里想念什么吗? Any help is much appreciated. 任何帮助深表感谢。

Thanks in advance! 提前致谢!

请在Metaio服务台上查看答案: http ://helpdesk.metaio.com/questions/33971/portrait-mode-image-saved-as-landscape-mode-by-requestcameraimage

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM