productSearch method

Future<ProductSearchResults?> productSearch(
  1. JsonImage jsonImage, {
  2. int maxResults = 10,
})
inherited

Run Product Search.

Implementation

Future<ProductSearchResults?> productSearch(
  JsonImage jsonImage, {
  int maxResults = 10,
}) async {
  final annotatedResponses = await detection(
    jsonImage,
    AnnotationType.productSearch,
    maxResults: maxResults,
  );

  return annotatedResponses.productSearchResults;
}