JsonSerializationException when called CustomVisionPredictionClient.DetectImage
zachwalkergames
21
Reputation points
Hello! Currently trying to build a UWP app for Hololens in Unity. I'm getting a JsonSerializationException on the Hololens when calling this code
ImagePrediction result = CustomVisionPredictionClient.DetectImage(projectID, modelName, testImage);
I have all the dependencies installed, except my NewtonSoft.Json package is version 12.X, instead of the recommended 10.X. Because of this, I have disabled "Assembly Version Validation" in the Unity PlayerSettings. Anyone know why this error might be thrown, is it the package version?
Sign in to answer