Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Status = "Analyzing picture...";
- var tags = await CrossImageClassifier.Current.ClassifyImage(new MemoryStream(_imageBytes));
- var description = "";
- foreach(var tag in tags.Where(t => t.Probability > .70))
- description += $"{tag.Tag} - {tag.Probability.ToString("P")}, ";
- if (string.IsNullOrWhiteSpace(description))
- description = "No tags found";
- Status = description.Trim().TrimEnd(',');
Add Comment
Please, Sign In to add comment