O'Reilly logo

Learning Salesforce Einstein by Mohith Shrivastava

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Lightning Components to recognize image

Once we have a trained model, we can use the Salesforce Lightning Component to provide a user interface to the end user accessing the Salesforce community, sales, or service cloud to upload the image, and we can use the model to automatically recognize the image.

We will be using Prediction with the image base64 String API (https://metamind.readme.io/docs/prediction-with-image-base64-string). The component can be dropped onto an App Builder or Community Builder, and it will require admins to input modelId.

The Lightning Component code can be found at https://github.com/PacktPublishing/Learning-Salesforce-Einstein/blob/master/Chapter6/SalesforceEinsteinVision/src/aura/EinsteinVisionImagePredictor/EinsteinVisionImagePredictor.cmp ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required