public VisionSearchClient(IComputerVisionClient visionClient, IImageSearchClient searchClient) { this.visionClient = visionClient; this.searchClient = searchClient; // Create a list that defines the features to be extracted from the image. visualFeatures = new List <VisualFeatureTypes> { VisualFeatureTypes.Description, }; visionDetails = new List <Details> { Details.Celebrities, Details.Landmarks }; }
public BingImageDownloader(IImageSearchClient imageClient, IFileSystem fileSystem, ILogger <BingImageDownloader> logger) { this.fileSystem = fileSystem; this.logger = logger; this.ImageSearchClient = imageClient; }