简体   繁体   English

Sony ToFAR:如何将默认前置 ToF 摄像头分辨率更改为 640x480

[英]Sony ToFAR: How to change the default front ToF camera resolution to 640x480

  • OS: macOS 12.4操作系统:macOS 12.4
  • Unity Version: 2020.3.36f1统一版本:2020.3.36f1
  • ToFAR V1.1.0 ToFAR V1.1.0
  • iPad pro 11 gen2 iPad pro 11 gen2

I am developing with ToFAR, recently released by sony.我正在使用索尼最近发布的 ToFAR 进行开发。 https://developer.sony.com/us/develop/tof-ar/download https://developer.sony.com/us/develop/tof-ar/download

I would like to change the default setting for the resolution of the ToF front camera at startup.我想在启动时更改 ToF 前置摄像头分辨率的默认设置。 I have tried several things and have yet to solve the problem.我已经尝试了几件事,但还没有解决问题。

The default front camera resolution is 640x360, but I want to change it to 640x480.默认前置摄像头分辨率为640x360,但我想将其更改为640x480。

What I have tried我试过的

  • "use front camera asdefault" = True “默认使用前置摄像头”= True
  • Edited, TofAr/V0/Resources/DeviceProfiles/ipad_pro11_gen2_v1.0.0.json已编辑,TofAr/V0/Resources/DeviceProfiles/ipad_pro11_gen2_v1.0.0.json

"defaultDepthResolutionWidth": "640", "defaultDepthResolutionWidth": "640",
"defaultDepthResolutionHeight": "480" // default is 360 "defaultDepthResolutionHeight": "480" // 默认为 360

enter image description here在此处输入图像描述

enter image description here在此处输入图像描述

Thank you谢谢

Thank you for your inquiry about ToF AR.感谢您咨询 ToF AR。

The current version of ToF AR does not support the default configuration change of the front camera. ToF AR当前版本不支持前置摄像头默认配置更改。

Set ToFARTofManager.autoStart to false, specify the desired Configuration with ToFARTofManager.StartStream(CameraConfigurationProperty,Voolean)from the script, and start Stream.将 ToFARTofManager.autoStart 设置为 false,从脚本中使用 ToFARTofManager.StartStream(CameraConfigurationProperty,Voolean) 指定所需的配置,然后启动 Stream。

For details, please refer to the ToF AR reference.有关详细信息,请参阅 ToF AR 参考。

https://developer.sony.com/develop/tof-ar/development-guides/reference-api-en/reference/api/TofAr.V0.Tof.TofArTofManager.html#TofAr_V0_Tof_TofArTofManager_autoStart https://developer.sony.com/develop/tof-ar/development-guides/reference-api-en/reference/api/TofAr.V0.Tof.TofArTofManager.html#TofAr_V0_Tof_TofArTofManager_autoStart

https://developer.sony.com/develop/tof-ar/development-guides/reference-api-en/reference/api/TofAr.V0.Tof.TofArTofManager.html#TofAr_V0_Tof_TofArTofManager_StartStream_TofAr_V0_Tof_CameraConfigurationProperty_System_Boolean _ https://developer.sony.com/develop/tof-ar/development-guides/reference-api-en/reference/api/TofAr.V0.Tof.TofArTofManager.html#TofAr_V0_Tof_TofArTofManager_StartStream_TofAr_V0_Tof_CameraConfigurationProperty_System_Boolean_

Yours truly,敬上,

ToF AR support Team ToF AR支持团队

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

相关问题 Xamarin Android Camera2Api“ GetOutputSizes”始终返回最大640x480 - Xamarin Android Camera2Api “GetOutputSizes” always returns largest of 640x480 如何在c#中为Windows Phone 7创建大小为480 * 640的相机UI部分? - How To create camera UI part of size 480*640 size in c# For Windows Phone 7? 使Windows Mobile 6应用程序形式可以推广到所有分辨率[480 * 640]和[320 * 320]? - Making windows mobile 6 application forms generalized to all resolution [480*640] and [320*320]? 如何使用按钮切换/更改前后 Vuforia AR 相机? - How to Switch/Change Front and back Vuforia AR Camera using a button? Windows Phone 8.1:如何更改前置摄像头的旋转角度? - Windows Phone 8.1: how to change front camera rotation? 如何在Windows Phone 8,8.1中更改默认视频捕获分辨率 - how to change the default video capture resolution in windows phone 8,8.1 如何调整Webbrowser内容的大小以适合480 x 800 - How to resize Webbrowser content to fit 480 x 800 带C#的Sony Camera API - Sony Camera API with C# 如何在 wpf helix 工具包中更改默认相机方向 - how can i change default camera direction in wpf helix toolkit 如何在MediaCapture Windows Phone 8.1 RT上更改Camera的默认设置? - How to change the default settings of Camera on MediaCapture Windows Phone 8.1 RT?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM