- In the Xcode project directory, with a
Terminal
runpod install
. - Open
iPad_TrueDepth_Issue_App.xcworkspace
in Xcode. - If there are any issues with dependency resolution, use
pod update
in the project directory orpod install
if any Pods are missing.
- Build and run the application on the iPhone device.
- In the main screen, 2 modes of operation is displayed,
Record
andDepth Overlay
. - The main screen also provides a button
Clear Data
, to clear previously recorded app data.
A dataset can be recorded by tapping on Start
inside the Record
mode.
The number of images and delay between images can be set.
There are buttons to switch between AVSession
and ARKit
.
Additional meta data read from the corresponding API is shown directly on the screen.
Because apple devices have a very restricted, sandboxed environment, it is not easy to access the files and varies based on the OS being used: (NOTE: WiFi method involves compressing the datasets into a single file. Direct transfer method, if available, is better)
The iPhone must be connected to the Mac through USB.
- In Xcode, select the menu item
Windows
, selectDevices and Simulators
. This will show a list of applications installed on the iPhone. - Click on
iPad_TrueDepth_Issue_App
, and then click the gear (or settings) icon below the list of applications. ClickDownload Container..
and select a location. - Once downloaded, right click on the
xcappdata
file, clickShow Package Contents
. - Navigate to
AppData -> Documents -> AppData
. The datasets will be stored in this location.
The iPhone must be connected to the Mac through USB.
- Open Finder, in the sidebar open the iPhone device under
Locations
group. - Select the
Files
tab. ExpandiPad_TrueDepth_Issue_App
application (triangle icon). - The saved files will be displayed. Drag and drop the appropriate file/folder into another Finder location.
- There should be a common network.
- A server is hosted on the iPhone.
The URL of the server is shown by a label at the bottom of the application (
Server running on http://ip_address:port
) - Visit this URL, click on
Download the Datasets
. An archive containing all the datasets will be served.
The iPhone must be connected to the Windows through USB.
- Open iTunes. Click on the iPhone icon on the top left of the window (to the right of drop down selection).
- Click on
File Sharing
. UnderApps
, clickiPad_TrueDepth_Issue_App
, select the file to be copied. - Click
Save...
below the list of files. Select the appropriate folder and save the file.
- There should be a common network.
If not, you can create a
Mobile hotspot
on your Windows 10 system and connect the iPhone to this network. - A server is hosted on the iPhone.
The URL of the server is shown by a label at the bottom of the application (
Server running on http://ip_address:port
) - Visit this URL, click on
Download the Datasets
. An archive containing all the datasets will be served.
The WiFi method works similar to Windows Method 2 - WiFi, provided that there's a common network or the machine supports hotspot creation.
Some metadata information is captured from the iPhone device and stored with each dataset:
- DepthMetadata.json and CameraMetadata.json files contain information relating to the depth and rgb camera, respectively. The files contain JSON arrays of metadata, where each data element was recorded when the respective depth-rgb image was captured.
- There are some instructions to help running macOS as a VM in Windows (& probably Linux).
- Building IPA from the existing Xcode workspace.
- Instructions for using
AltServer
to install IPAs using Windows.
- WiFi needs to be enabled for using the web server in iPhone.
- WiFi method for transferring dataset can cause the app to crash if the total size of the datasets exceeds ~50-70% of the device's RAM.
To contribute you must sign the ZEISS CLA depending if your are acting as an individual or represent a company.