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 tried to solve it all day, but I couldn't solve it, so I came to ask for help.
OS Platform and Distribution (e.g., Linux Ubuntu 20.04, WSL2):Mac OS Catalina 10.15.7
Target (e.g. desktop cpu, android arm64):desktop cpu
Bazel version:3.7.2
Python version:3.9.0
GCC/G++ version:gcc 11.2.0
Unity version:2020.3.14.f
Android NDK version (if building for Android):nothing
Xcode version (if building for iOS):nothing
SetPixels32 called with invalid number of pixels in the array
UnityEngine.Texture2D:SetPixels32 (UnityEngine.Color32[])
TextureFrame:CopyTextureFrom (UnityEngine.WebCamTexture) (at Assets/Mediapipe/Samples/Scripts/ResourceManager/TextureFrame.cs:28)
WebCamScreenController:b__25_0 (TextureFrame) (at Assets/Mediapipe/Samples/Scripts/WebCamScreenController.cs:130)
TextureFramePool/TextureFrameRequest/<>c__DisplayClass7_0:<.ctor>b__0 (TextureFrame) (at Assets/Mediapipe/Samples/Scripts/ResourceManager/TextureFramePool.cs:122)
I think this error is connected, but I have no idea where to fix it.
Since the FPS value is displayed, I think that the processing is completed, but it is not reflected on the screen.
Could you help me please..
The text was updated successfully, but these errors were encountered:
homuler
changed the title
Error in Unity (try to run Demo-sample)
Error in Unity: SetPixels32 called with invalid number of pixels in the array
Jan 10, 2022
I tried to solve it all day, but I couldn't solve it, so I came to ask for help.
OS Platform and Distribution (e.g., Linux Ubuntu 20.04, WSL2):Mac OS Catalina 10.15.7
Target (e.g. desktop cpu, android arm64):desktop cpu
Bazel version:3.7.2
Python version:3.9.0
GCC/G++ version:gcc 11.2.0
Unity version:2020.3.14.f
Android NDK version (if building for Android):nothing
Xcode version (if building for iOS):nothing
I tried to run Demo and I got 2 error.
Graphics.CopyTexture called with mismatching texture sizes (src 640x480x1 dst 1280x720x1)
UnityEngine.Graphics:CopyTexture (UnityEngine.Texture,UnityEngine.Texture)
TextureFrame:CopyTexture (UnityEngine.Texture) (at Assets/Mediapipe/Samples/Scripts/ResourceManager/TextureFrame.cs:23)
WebCamScreenController:DrawScreen (TextureFrame) (at Assets/Mediapipe/Samples/Scripts/WebCamScreenController.cs:106)
FaceDetectionGraph:RenderOutput (WebCamScreenController,TextureFrame) (at Assets/Mediapipe/Samples/Graphs/FaceDetection/Scripts/FaceDetectionGraph.cs:40)
SetPixels32 called with invalid number of pixels in the array
UnityEngine.Texture2D:SetPixels32 (UnityEngine.Color32[])
TextureFrame:CopyTextureFrom (UnityEngine.WebCamTexture) (at Assets/Mediapipe/Samples/Scripts/ResourceManager/TextureFrame.cs:28)
WebCamScreenController:b__25_0 (TextureFrame) (at Assets/Mediapipe/Samples/Scripts/WebCamScreenController.cs:130)
TextureFramePool/TextureFrameRequest/<>c__DisplayClass7_0:<.ctor>b__0 (TextureFrame) (at Assets/Mediapipe/Samples/Scripts/ResourceManager/TextureFramePool.cs:122)
I think this error is connected, but I have no idea where to fix it.
Since the FPS value is displayed, I think that the processing is completed, but it is not reflected on the screen.
Could you help me please..
The text was updated successfully, but these errors were encountered: