Skip to content
📱 Real-Time Custom Object Detection with Core ML
Branch: master
Clone or download
bourdakos1 Merge pull request #1 from codeherk/master
Update Setup instructions
Latest commit e52d35a Apr 13, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
Core ML Object Detection.xcodeproj initial commit Feb 22, 2019
Core ML Object Detection make bounding boxes prettier Feb 22, 2019
.gitignore initial commit Feb 22, 2019
LICENSE Initial commit Feb 22, 2019 Update Setup instructions Apr 12, 2019

Object Detection iOS App

You can find an in depth walkthrough for training a Core ML model here.


git clone the repo and cd into it by running the following command:

git clone
cd object-detection-ios

Add your model files to the project

Copy the model_ios directory generated from the classification walkthrough and paste it into the object-detection-ios/Core ML Object Detection folder of this repo.

Install Xcode

In order to develop for iOS we need to first install the latest version of Xcode, which can be found on the Mac App Store

Open the project with Xcode

Launch Xcode and choose Open another project...

Then in the file selector, choose object-detection-ios.

Test the application in the simulator

Now we’re ready to test! First we’ll make sure the app builds on our computer, if all goes well, the simulator will open and the app will display.

To run in the simulator, select an iOS device from the dropdown and click run.

Or run the app on an iOS device

Since the simulator does not have access to a camera, and the app relies on the camera to test the classifier, we should also run it on a real device.

  1. Select the project editor (The name of the project with a blue icon)
  2. Under the Signing section, click Add Account
  3. Login with your Apple ID and password
  4. You should see a new personal team created
  5. Close the preferences window

Now we have to create a certificate to sign our app with

  1. Select General
  2. Change the bundle identifier to com.<YOUR_LAST_NAME>.Core-ML-Vision
  3. Select the personal team that was just created from the Team dropdown
  4. Plug in your iOS device
  5. Select your device from the device menu to the right of the build and run icon
  6. Click build and run
  7. On your device, you should see the app appear as an installed appear
  8. When you try to run the app the first time, it will prompt you to approve the developer
  9. In your iOS settings navigate to General > Device Management
  10. Tap your email, tap trust

Now you're ready to run the app!

You can’t perform that action at this time.