Exemplo n.º 1
0
        public async Task <IActionResult> ClassifyImage()
        {
            var    files  = Request.Form.Files;
            string output = await _classificationService
                            .ClassifyImageCharacters(files[0]);

            bool isDrug = await
                          _drugRegistryService
                          .IsDrug(output);

            ClassificationResult result =
                new ClassificationResult(output, isDrug);

            return(Ok(result));
        }