Algorithmix.Forensics.OCR.IsEmpty C# (CSharp) Method

IsEmpty() public static method

Determines runs OCR and determines if a shred is empty or not
public static IsEmpty ( Shred shreds ) : void
shreds Shred A list of Shred Objects
return void
        public static void IsEmpty(Shred[] shreds)
        {
            // Get Images from Shreds
            Bitmap[] images = new Bitmap[shreds.Length];

            for (int ii = 0; ii < shreds.Length; ii++)
            {
                images[ii] = new Bitmap(shreds[ii].Filepath);
            }

            // Run Fast Recognition
            OcrData[] datas = ParallelRecognize(images, images.Length, Accuracy.Low);
            for (int ii = 0; ii < datas.Length; ii++)
            {
                shreds[ii].AddOcrData(datas[ii]);
            }
        }