Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Solved> ArgumentOutofRangeException in unity vision demo #2

Open
RollySeth opened this issue Jan 2, 2018 · 1 comment
Open

<Solved> ArgumentOutofRangeException in unity vision demo #2

RollySeth opened this issue Jan 2, 2018 · 1 comment

Comments

@RollySeth
Copy link

After pressing 'p' and spacebar in unity vision demo, I am getting the below error. Any inputs?


ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
System.Collections.Generic.List`1[Category].get_Item (Int32 index) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:633)
FoundImageObject.GetHighestCategory () (at Assets/Scripts/FoundImageObject.cs:47)
FoundImageObject..ctor (.JSONObject cat) (at Assets/Scripts/FoundImageObject.cs:18)
ParseComputerVisionResponse.ConvertObjectToFoundImageObject (.JSONObject obj) (at Assets/Scripts/ParseComputerVisionResponse.cs:37)
ParseComputerVisionResponse.ParseJSONData (System.String respString) (at Assets/Scripts/ParseComputerVisionResponse.cs:27)
ImageToComputerVisionAPI+c__Iterator0.MoveNext () (at Assets/Scripts/ImageToComputerVisionAPI.cs:54)
UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Coroutines.cs:17)

@RollySeth
Copy link
Author

solved it. had to update my EmotionURL to
string emotionURL = "https://westcentralus.api.cognitive.microsoft.com/vision/v1.0/analyze";
as it was giving an invalid key error with the existing url.

@RollySeth RollySeth changed the title ArgumentOutofRangeException in unity vision demo <Solved> ArgumentOutofRangeException in unity vision demo Jan 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant