using System.Collections.Generic;

namespace CrossCutting
{
    public class InterpretationResult
    {
        public byte[] RectifiedImageData { get; }
        public string RawText { get; set; }
        public IEnumerable<Rectangle> FoundRectangles { get; }


        public InterpretationResult(string rawText, IEnumerable<Rectangle> foundRectangles, IEnumerable<CharacterClassificationResult> interpretations)
        {
            FoundRectangles = foundRectangles;
            RawText = rawText;
            Interpretations = interpretations;
        }

        public InterpretationResult(
            string rawText,
            IEnumerable<Rectangle> foundRectangles,
            IEnumerable<CharacterClassificationResult> interpretations,
            byte[] rectifiedImageData)
        {
            FoundRectangles = foundRectangles;
            RawText = rawText;
            Interpretations = interpretations;
            RectifiedImageData = rectifiedImageData;
        }
        public IEnumerable<CharacterClassificationResult> Interpretations { get; set; }
    }
}

