View XMLProcessing.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
namespace XMLProcessing | |
{ | |
class Program | |
{ | |
public static void Main(string[] args) | |
{ |
View IsEverythingFine.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static bool IsEverythingFine(List<SubPicture> subPictures) | |
{ | |
const int tolerance = 100; | |
var labels = subPictures.Where(sp => sp.Label.Contains("label")).ToList(); | |
var maxItemY = subPictures.Except(labels).Min(i => i.TopLeft.Y); | |
foreach (var label in labels.ToArray()) | |
{ | |
if (label.TopLeft.Y < maxItemY) |
View JsonParser.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection.Emit; | |
using System.Threading.Tasks; | |
using Newtonsoft.Json; | |
using Recognize_TextSdk; |
View TextExtractor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.CognitiveServices.Vision.ComputerVision; | |
using Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models; | |
namespace Recognize_TextSdk | |
{ | |
public static class TextExtractor |