Code Monkey home page Code Monkey logo

lidardepth's Introduction

Iphone Point Cloud Generator

This was ceated to make the wwdc20 sample into a usable utility app.

Place points in the real-world using the scene's depth data to visualize the shape of the physical environment.

The old version is on the outer most folder The current version is SceneDepthPointCloud

Added Functionality

  • Basic operations (toggle scanning/sampling, toggle rgb, toggle points, clear/reset point buffer)
  • Save Scans as .ply files In ASCII or BINARY formats
  • Export/Delete previously saved scans
  • Increased Sampling rate

Data Structure

  • Header of .ply file
ply 
comment Created by SceneX (IOS)
format ascii 1.0
element vertex 326798
property float x
property float y
property float z
property uchar red
property uchar green
property uchar blue
property uchar alpha
element face 0
property list uchar int vertex_indices
end_header
  • format ascii 1.0: Encoded in ASCII

  • element <element name> <number in file>: Vertices, faces, edges, etc

  • property <data_type> <property name 1>: coordinates(x,y,z), color(RGBA)

  • Example of Data

0.13072823 -0.17935549 -0.57639885 204 190 174 255
0.116889425 -0.18985172 -0.5403765 194 178 160 255
0.09710844 -0.19442658 -0.49314854 205 189 174 255
0.05077581 -0.17531422 -0.39471784 243 230 215 255

Setup Tutorial (for trial)

  1. Make sure that you are using a device with Lidar (iPhone 12 pro & pro max+)

  2. Connect your device to Xcode Link to add physical device

    • If you got an error reads "This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibility." , Please check the iOS version of your device and download corresponding version from link to device support. Then unzip the .zip folder into path: '''diff /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ ''' Then RESTART Xcode
  3. Open the Developer Mode on your device (Settings-> Privacy & Security)

  4. Trust the bundle of our project after installing (Settings -> General -> VPN & Device management -> Developer APP)

Only supports IPhone's w/ Lidar.

lidardepth's People

Contributors

ryanphilly avatar kaiagaoqy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.