Skip to content

Commit

Permalink
fix: width <-> height
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Nov 29, 2020
1 parent 9d386dc commit 62e4fb5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
7 changes: 2 additions & 5 deletions Assets/MediaPipe/Examples/Scenes/DesktopCPU.unity
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 842caaa3595af5affbad9424323d3133, type: 3}
m_Name:
m_EditorClassIdentifier:
DefaultHeight: 640
DefaultWidth: 480
DefaultWidth: 640
DefaultHeight: 480
FPS: 30
focalLengthPx: 2
--- !u!64 &496037460
Expand Down Expand Up @@ -1192,7 +1192,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 2fda073a1f847adffae1d745c3f44b31, type: 3}
m_Name:
m_EditorClassIdentifier:
helloWorldGraph: {fileID: 0}
faceDetectionGraph: {fileID: 180253633339373783, guid: 234d91f7c8fa82a4a8e47b60023e8d57,
type: 3}
faceMeshGraph: {fileID: 5162072812703337941, guid: 99dbd193a1c29da7e97aa549bb5f64ff,
Expand All @@ -1201,8 +1200,6 @@ MonoBehaviour:
type: 3}
handTrackingGraph: {fileID: 675775105168490772, guid: 960ce8811f93477e38b461f05b8fa161,
type: 3}
multiHandTrackingGraph: {fileID: 7664826976962761858, guid: 50d43cff30debe51781e5c6df83865be,
type: 3}
poseTrackingGraph: {fileID: 2633288188356736957, guid: 47232e3cbf15f0dbf8323926a7d6b7eb,
type: 3}
hairSegmentationGraph: {fileID: 0}
Expand Down
6 changes: 2 additions & 4 deletions Assets/MediaPipe/Examples/Scenes/DesktopGPU.unity
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 842caaa3595af5affbad9424323d3133, type: 3}
m_Name:
m_EditorClassIdentifier:
DefaultHeight: 640
DefaultWidth: 480
DefaultWidth: 640
DefaultHeight: 480
FPS: 30
focalLengthPx: 2
--- !u!64 &496037460
Expand Down Expand Up @@ -1200,8 +1200,6 @@ MonoBehaviour:
type: 3}
handTrackingGraph: {fileID: 6942115883526269425, guid: 731f293a753aacb7fb2a463e77999973,
type: 3}
multiHandTrackingGraph: {fileID: 2049382192924603273, guid: 0de25789197f23cdea7e3edb16daf326,
type: 3}
poseTrackingGraph: {fileID: 2128668153064451319, guid: 5d2913f213c90c73e8299fec12f0b535,
type: 3}
hairSegmentationGraph: {fileID: 2037604842797791001, guid: 23ff6b39a3225ee19970690d46a4fba2,
Expand Down
6 changes: 3 additions & 3 deletions Assets/MediaPipe/Examples/Scripts/WebCamScreenController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
using UnityEngine;

public class WebCamScreenController : MonoBehaviour {
[SerializeField] int DefaultHeight = 640;
[SerializeField] int DefaultWidth = 480;
[SerializeField] int DefaultWidth = 640;
[SerializeField] int DefaultHeight = 480;
[SerializeField] int FPS = 30;
[SerializeField] float focalLengthPx = 2.0f;

Expand All @@ -19,7 +19,7 @@ public class WebCamScreenController : MonoBehaviour {

if (device == null) return;

webCamTexture = new WebCamTexture(device?.name, DefaultHeight, DefaultWidth, FPS);
webCamTexture = new WebCamTexture(device?.name, DefaultWidth, DefaultHeight, FPS);

try {
webCamTexture.Play();
Expand Down

0 comments on commit 62e4fb5

Please sign in to comment.