Use Core ML Library in swift 3 (for iOS 11)


Core ML

Core ML provide the Various facility which is based on Machine learning , Here We are implementing related to Image , with the help of this we can search the image name or can get the name  of product.

Here is Link:

For configuring in App , here we are taking the example of camera and after taking the image CoreML will provide the prediction name of image.

1: Take the permission in info.plist

To access your camera and photo library, there is still one last thing you must do. Go to your Info.plist and two entries: Privacy – Camera Usage Description and Privacy – Photo Library Usage Description. Starting from iOS 10, you will need to specify the reason why your app needs to access the camera and photo library.

2: Now go to this Sites:

and Download  “Inception v3”  Model

3: Now drag and copy to target folder.

4: let’s add the model in our code. Go back to ViewController.swift. First, import the CoreML framework at the very beginning:

5: Now create outlet of Image View and label where we show the messages:

6:  Now on click the button:

7: On Select Image there delegate method will call:


8: Here “prediction.classLabel” this will return the prediction name of image.









. . .

Leave a Comment

Your email address will not be published. Required fields are marked*

Be the first to comment.


We've bought a Shopware Extension which is a hybrid App, which we can now offer in the Google Play Store and the IOS App Store. I'am still impressed how fast and how sharp the support team leads us through every process of the App-Store clarification. Very fast and useful response.

Markus Walter

Markus Walter

Founder, Das Apartment Living

Talk to Sales


Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home