Please note: This repo is no longer actively maintained.
Code for the two tutorials on how to make an object detection app with a SwiftUI-based interface. Both tutorials exist as posts and videos.
PreviewLayer which presents a live camera feed. Post | video.
The code is in the tag previewLayer.
Adding an object detection model. Post | video.
The code is in the tag detector.
Since the code for the detector in part 2 is based on the one for the previewLayer in part 1, you can access part 1 and 2 with tags. If you are not familiar with tags here's how to do it.
In Github click on the branches tab and then select Tags.
In git, first make sure you have all tags locally after you cloned this repository:
git fetch --all
Then, use
git checkout previewLayer
to see the code for part 1 for example.