public IActionResult Compute(IFormFile file)
        {
            var image  = Image.FromStream(file.OpenReadStream());
            var result = DocumentAngelNet.Compute(image);

            return(File(result.ToByteArray(), "image/jpeg", "test"));
        }
        public void Test(TestRequestDto request)
        {
            var imgPaths = Directory.GetFiles(request.PathFrom, "*.jpg", SearchOption.AllDirectories);
            var i        = 0;

            foreach (var path in imgPaths.Take(300))
            {
                try
                {
                    var img    = new Bitmap(path);
                    var result = DocumentAngelNet.Compute(img);

                    result.Save($"{request.PathTo}/{i}.jpg");
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                }

                i++;
            }
        }