CurvSurf FindSurface™ GUIDemo for iOS (Swift)
This demo app demonstrates a real-time application using FindSurface to search point clouds, which ARKit provides, for geometry shapes.
FindSurfaceFramework is required to build the source code into a program. Download the framework here and refer to here for an instruction about how to setup your project to build it with the framework.
This demo app requires the LiDAR sensor to get a point cloud from ARKit.
- Apple iPad Pro LiDAR
- Apple iPhone 12 Pro
- Apple iPhone 12 Pro Max
- Apple iPhone 13 Pro
- Apple iPhone 13 Pro Max
Compared to the basic demo, the gui demo has the following features:
- Real-time detection of surfaces in camera scenes;
- Using input point cloud data provided by ARKit;
- Detected surfaces rendered in overlay (AR rendering);
- GUI interfaces to manipulate the app’s settings (e.g., confidence, smoothed depth, feature types).
- Feature types of surfaces to detect.
- Hide/show the point cloud on the screen.
- Confidence levels to filter point cloud (e.g., the “Medium” option means filter out the points having “low” confidence).
- Point cloud scanning mode.
- “Fixed” means that FindSurface takes about 20k points from ARKit as an input for each frame.
- “Accumulate” means it takes about 500 points from ARKit as an input for each frame and accumulates them into a 500k points-sized buffer in a FIFO manner. The points are not accumulated unless the camera has a movement.
- Switch between smoothed scene depths and scene depths (ARKit option).
- Enable/disable FindSurface to start searching geometric shapes.
- Keep a snapshot of the currently found geometric shape.
- Undo the latest snapshot.
- Remove all snapshots.
- Radius indicators.
- Points shown on the screen are the visualization of the points provided by ARKit, of which colors indicate confidence levels (green, blue, and red mean high, medium, and low, respectively).
A sphere is detected
Points are hidden