Ejemplo n.º 1
0
        public Task <ICarNumberIdentifyResult> IdentifyAsync(IImage inputImage)
        {
            var result = new IdentifyIdentifyResult();

            var imageClone = inputImage.Clone();
            var segments   = _segmentationAlgoritm.ProcessImage(imageClone);

            var selectedAreas = _segmentFindAnalyzer.Find(segments);

            _findResultDrawer.DrawFindResults(inputImage, selectedAreas);
            result.ProcessedImage = inputImage;

            return(Task.FromResult((ICarNumberIdentifyResult)result));
        }
        public Task<ICarNumberIdentifyResult> IdentifyAsync(IImage inputImage)
        {
            var result = new IdentifyIdentifyResult();

            var imageClone = inputImage.Clone();
            var segments = _segmentationAlgoritm.ProcessImage(imageClone);

            var selectedAreas = _segmentFindAnalyzer.Find(segments);

            _findResultDrawer.DrawFindResults(inputImage, selectedAreas);
            result.ProcessedImage = inputImage;

            return Task.FromResult((ICarNumberIdentifyResult)result);
        }