Exemple #1
0
        public AsyncOCR(SImage image, OCRCallback callback = null)
        {
            this.image    = image.Copy();
            this.callback = callback;

            if (image == null)
            {
                _bigBox     = null;
                _smallBoxes = new OCRBox[0];
                _timeStamp  = "[empty]";
                isDone      = true;
                this.callback?.Invoke(this);
            }
            else
            {
                task = Task.Run(DoOCR);
            }
        }