Beispiel #1
0
        public void Read(JToken json)
        {
            if (json["age"] != null)
            {
                Age = json["age"]["value"].ToObject <int>();
            }

            if (json["blur"] != null)
            {
                Blur = new BlurData(json["blur"]);
            }

            if (json["ethnicity"] != null)
            {
                Ethnicity = json["ethnicity"]["value"].ToString();
            }

            if (json["eyestatus"] != null)
            {
                EyeStatus = new EyeStatus(json["eyestatus"]);
            }

            if (json["gender"] != null)
            {
                Gender = FaceManager.ParseGenger(json["gender"]["value"].ToString());
            }

            if (json["facequality"] != null)
            {
                FaceQuality = new ThresholdValue(json["facequality"]);
            }

            if (json["headpose"] != null)
            {
                Headpose = new Headpose(json["headpose"]);
            }

            if (json["smile"] != null)
            {
                Smiling = new ThresholdValue(json["smile"]);
            }
        }
Beispiel #2
0
 public void Read(JToken json)
 {
     Blurness     = new ThresholdValue(json["blurness"]);
     GaussianBlur = new ThresholdValue(json["gaussianblur"]);
     MotionBlur   = new ThresholdValue(json["motionblur"]);
 }