PhotoSelectionClassifier icon indicating copy to clipboard operation
PhotoSelectionClassifier copied to clipboard

This is a sample app to create a photo selection classifier using CreateML on an iOS Device.

trafficstars

PhotoSelectionClassifier

This is a sample app to create a photo selection classifier using CreateML on an iOS Device.

Demo

In the demo video below, we are selecting only hamburger photos and share to album.

As a result, a trained photo selection classifier auto-selects hamburger photos.

(photos quoted from: https://unsplash.com/)

PhotoSelectionClassifierDemo

Requirements

  • Xcode 13 beta 4
  • Swift 5.0+
  • iOS 15.0+

Important

It can only be built on an actual device (not simulator) because of CreateML framework.

Sequence Diagram

image

References

  • https://developer.apple.com/videos/play/wwdc2021/10037
  • https://developer.apple.com/videos/play/wwdc2020/10156
  • https://developer.apple.com/documentation/createml/creating_an_image_classifier_model
  • https://developer.apple.com/documentation/coreml/core_ml_api/downloading_and_compiling_a_model_on_the_user_s_device
  • https://developer.apple.com/documentation/vision/classifying_images_with_vision_and_core_ml