Class ClarifaiServiceImpl

java.lang.Object
com.cis.gorecipe.service.ClarifaiServiceImpl
All Implemented Interfaces:
ClarifaiService

@Service public class ClarifaiServiceImpl extends Object implements ClarifaiService
This service class manages all interactions with the Clarifai API
  • Constructor Details

    • ClarifaiServiceImpl

      public ClarifaiServiceImpl()
  • Method Details

    • processImage

      public List<Ingredient> processImage(String imageUrl)
      Specified by:
      processImage in interface ClarifaiService
      Parameters:
      imageUrl - the AWS S3 URL of the image to be processed
      Returns:
      the list of ingredients identified in the image by Clarifai with a confidence of >=50%