Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

IImageSearchService.cs 993 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  1. namespace SimilarProducts.Services
  2. {
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Threading.Tasks;
  6. /// <summary>
  7. /// An interface that defines the contract with the image search service.
  8. /// </summary>
  9. internal interface IImageSearchService
  10. {
  11. /// <summary>
  12. /// Gets a list of visually similar products from an image stream.
  13. /// </summary>
  14. /// <param name="stream">The stream to an image.</param>
  15. /// <returns>List of visually similar products' images.</returns>
  16. Task<IList<ImageResult>> GetSimilarProductImagesAsync(Stream stream);
  17. /// <summary>
  18. /// Gets a list of visually similar products from an image URL.
  19. /// </summary>
  20. /// <param name="url">The URL of an image.</param>
  21. /// <returns>List of visually similar products' images.</returns>
  22. Task<IList<ImageResult>> GetSimilarProductImagesAsync(string url);
  23. }
  24. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...