You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use a portrait resolution for the camera on Android and iOS.
By default, it looks like only landscape resolutions are included in the list.
Therefore, I added new resolutions to AppSettings.asset and AppSettings.cs.
However, this doesn’t seem to work internally.
Is there a way to support portrait resolutions?
Code to Reproduce the issue
I’m trying to use a vertical (portrait) resolution, but it’s not working properly. Here’s what I’ve tried:
Created a new Unity project and imported MediaPipeUnity.0.15.0.unitypackage.
Opened Assets/MediaPipeUnity/Samples/Scenes/Face Landmark Detection/Face Landmark Detection.unity.
In AppSettings.asset (/Assets/MediaPipeUnity/Samples/Scenes/AppSettings.asset), I added the 720x1280 resolution.
In AppSettings.cs (/Assets/MediaPipeUnity/Samples/Common/Scripts/AppSettings.cs), I added:
new ImageSource.ResolutionStruct(720, 1280, 30),
In the Unity Editor’s Game view, I clicked the camera icon, selected 720x1280 under Image Source Settings > Resolution, and pressed Exit to apply the changes.
I selected Main Canvas/Container Panel/Body/Annotatable Screen, double-clicked on the Raw Image/Texture field, and checked the camera resolution in the Default UI Material.
Even though the chosen resolution is 720x1280, the internal resolution shown in the Default UI Material ends up being something random like 800x600.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Does the camera you are using support the specified resolution?
If you simply want to place a horizontally-oriented camera vertically, you may want to specify (hardcode) the RotationAngle (e.g. RotationAngle.Rotation90).
Plugin Version or Commit ID
v0.15.0
Unity Version
2022.3.6f1
Your Host OS
Windows11 Home
Target Platform
UnityEditor, Windows Standalone, Android
Description
I want to use a portrait resolution for the camera on Android and iOS.
By default, it looks like only landscape resolutions are included in the list.
Therefore, I added new resolutions to AppSettings.asset and AppSettings.cs.
However, this doesn’t seem to work internally.
Is there a way to support portrait resolutions?
Code to Reproduce the issue
I’m trying to use a vertical (portrait) resolution, but it’s not working properly. Here’s what I’ve tried:
Created a new Unity project and imported MediaPipeUnity.0.15.0.unitypackage.
Opened Assets/MediaPipeUnity/Samples/Scenes/Face Landmark Detection/Face Landmark Detection.unity.
In AppSettings.asset (/Assets/MediaPipeUnity/Samples/Scenes/AppSettings.asset), I added the 720x1280 resolution.
In AppSettings.cs (/Assets/MediaPipeUnity/Samples/Common/Scripts/AppSettings.cs), I added:
new ImageSource.ResolutionStruct(720, 1280, 30),
In the Unity Editor’s Game view, I clicked the camera icon, selected 720x1280 under Image Source Settings > Resolution, and pressed Exit to apply the changes.
I selected Main Canvas/Container Panel/Body/Annotatable Screen, double-clicked on the Raw Image/Texture field, and checked the camera resolution in the Default UI Material.
Even though the chosen resolution is 720x1280, the internal resolution shown in the Default UI Material ends up being something random like 800x600.
Additional Context
No response
The text was updated successfully, but these errors were encountered: