Skip to content

cloud-annotations/object-detection-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object Detection iOS App

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

Setup

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

git clone https://github.com/cloud-annotations/object-detection-ios.git
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!

About

📱 Real-Time Custom Object Detection with Core ML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages