public static AzureOcrLine FromDynamic(dynamic line)
        {
            AzureOcrLine azureOcrLine = new AzureOcrLine();

            azureOcrLine.BoundingBox = line.boundingBox;
            azureOcrLine.Words       = new List <AzureOcrWord>();
            foreach (var word in line.words)
            {
                azureOcrLine.Words.Add(AzureOcrWord.FromDynamic(word));
            }
            return(azureOcrLine);
        }
        public static AzureOcrRegion FromDynamic(dynamic region)
        {
            AzureOcrRegion azureOcrRegion = new AzureOcrRegion
            {
                BoundingBox = region.boundingBox,
                Lines       = new List <AzureOcrLine>()
            };

            var ceapa = azureOcrRegion.BoundingBox.Split(',');

            foreach (dynamic line in region.lines)
            {
                azureOcrRegion.Lines.Add(AzureOcrLine.FromDynamic(line));
            }
            return(azureOcrRegion);
        }