protected IEnumerable <LabelConfidence> Process(byte[] image, TensorFlowPredictionSettings settings)
        {
            var(model, labels) = LoadModelAndLabels(settings.ModelFilename, settings.LabelsFilename);
            var imageTensor = LoadImage(image);

            IEnumerable <LabelConfidence> labelsToReturn =
                Eval(model, imageTensor, settings.InputTensorName, settings.OutputTensorName, labels)
                .Where(c => c.Probability >= settings.Threshold)
                .OrderByDescending(c => c.Probability);

            return(labelsToReturn);
        }
 public TensorFlowInceptionPrediction()
 {
     modelSettings = Settings;
 }