# shu223/iOS-Depth-Sampler

Code examples for Depth APIs in iOS

Repository: https://github.com/shu223/iOS-Depth-Sampler
Canonical: https://ross.abutalabs.com/products/ios-depth-sampler
Language: Swift
License: MIT
License Family: permissive
Last push: 2023-11-04T14:31:53+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2919, "days_push": 1033, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1220, forks 104 (observed 2026-08-28T04:04:01.963700+00:00)

## What it is
A collection of Swift code examples demonstrating iOS Depth APIs, including real-time depth visualization, depth masks, Portrait Effect Matte, and ARKit depth. It is a sample app built with Xcode that runs on devices with dual or TrueDepth cameras.

## Use cases
- learn how to visualize camera depth in real time on iOS
- implement background removal using Portrait Effect Matte
- render depth data from portrait-mode photos in the camera roll
- explore ARKit face-tracking depth visualization
- blend a background image with a depth-based mask
- render a 2D image in 3D space using depth

## When to choose
- you are an iOS developer learning to work with depth data from AV Foundation, TrueDepth, or ARKit
- you need working Swift sample code for portrait matte or depth masking features
- you want a reference for Metal-based depth visualization on iPhone

## When to avoid
- you need a production-ready library or SDK rather than demo code
- you want to run on the iOS Simulator or on devices without dual/TrueDepth cameras
- your project targets platforms other than iOS

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: image-processing, computer-vision, graphics, developer-tools
- domain: mobile-development, computer-vision, image-processing, tutorials
- platform: -
- tags: depth-api, arkit, avfoundation, portrait-matte, sample-code, metal, camera, ios, swift, mobile

## Member repositories
- shu223/iOS-Depth-Sampler (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:01.963700+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:16:10.211756+00:00, confidence not recorded.
  - readme: https://github.com/shu223/iOS-Depth-Sampler (fetched 2026-08-28T04:04:01.963700+00:00, sha 63c122b854df)
- Data as of 2026-08-30T08:39:29.467469+00:00.
