Popularity
7.3
Stable
Activity
6.2
-
1,152
45
96

Programming language: Swift
License: MIT License
Tags: Hardware     Camera    

iOS-Depth-Sampler alternatives and similar libraries

Based on the "Camera" category.
Alternatively, view iOS-Depth-Sampler alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of iOS-Depth-Sampler or a related project?

Add another 'Camera' Library

README

iOS-Depth-Sampler

Platform Language License Twitter

Code examples of Depth APIs in iOS

Requirement

Use devices which has a dual camera (e.g. iPhone 8 Plus) or a TrueDepth camera (e.g. iPhone X)

How to build

Open ARKit-Sampler.xcworkspace with Xcode 10 and build it!

It can NOT run on Simulator. (Because it uses Metal.)

Contents

Real-time Depth

Depth visualization in real time using AV Foundation.

[](README_resources/depth_1.gif)

Real-time Depth Mask

Blending a background image with a mask created from depth.

[](README_resources/blend.gif)

Depth from Camera Roll

Depth visualization from pictures in the camera roll.

Plaease try this after taking a picture with the Camera app using the PORTRAIT mode.

Portrait Matte

Background removal demo using Portrait Effect Matte (or Portrait Effect Matte).

[](README_resources/portraitmatte.gif)

Plaease try this after taking a picture of a HUMAN with PORTRAIT mode.

Available in iOS 12 or later.

ARKit Depth

Depth visualization on ARKit. The depth on ARKit is available only when using ARFaceTrackingConfiguration.

[](README_resources/arkit-depth.gif)

2D image in 3D space

A demo to render a 2D image in 3D space.

[](README_resources/3d.gif)

AR occlusion

[WIP] An occlusion sample on ARKit using depth.

Author

Shuichi Tsutsumi

Freelance iOS programmer from Japan.


*Note that all licence references and agreements mentioned in the iOS-Depth-Sampler README section above are relevant to that project's source code only.