subhash2000 / iOS_3D_Scanner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Source iOS_3D_Scanner

Description

The first mobile 3D scanner for iOS. Application to help building 3D models for better user experineces. With this app you can capture 3D models of yourself, friends or family members and share the results afterwards. This is a research project to explore the 3D scan with free libraries. Feel free to use it for experiments, modify and adapt it to new devices and contribute new features or ideas.

This project has been developed in Objective C and Swift language.

Demo

https://drive.google.com/file/d/1JV31JDEigUFneveZ2wdAGNVl03qwEngv/view?usp=drivesdk

Requirements

  1. Xcode version > 10.0
  2. PCL library(Visit http://www.pointclouds.org>
  3. Cmake GUI

Installation of PCL using Homebrew

Prerequisites

You will need to have Homebrew installed. If you do not already have a Homebrew installation, see the Homebrew homepage for installation instructions.

The PCL formula is in the Homebrew official repositories. This will automatically install all necessary dependencies and provides options for controlling which parts of PCL are installed.

$ brew install pcl
$ brew options pcl

Compiling and running the project

Using command line CMake

Step 1

$ cd /PATH/TO/MY/GRAND/PROJECT
$ mkdir build
$ cd build
$ cmake ..

You will something like this
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done

-- Found PCL_IO: /usr/local/lib/libpcl_io.so
-- Found PCL: /usr/local/lib/libpcl_io.so (Required is at least version "1.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /PATH/TO/MY/GRAND/PROJECT/build

Step 2

$ make

You will something like this
Scanning dependencies of target pcd_write_test
[100%] Building CXX object
CMakeFiles/pcd_write_test.dir/pcd_write.cpp.o
Linking CXX executable pcd_write_test
[100%] Built target pcd_write_test

The project is now ready to test
Step 3

$ ./pcd_write_test

Final result will be like this
Saved 5 data points to test_pcd.pcd.
0.352222 -0.151883 -0.106395
-0.397406 -0.473106 0.292602
-0.731898 0.667105 0.441304
-0.734766 0.854581 -0.0361733
-0.4607 -0.277468 -0.916762

About


Languages

Language:C++ 98.0%Language:CMake 1.1%Language:C 0.4%Language:Makefile 0.3%Language:Cuda 0.1%Language:Swift 0.0%Language:M4 0.0%Language:Perl 0.0%Language:Batchfile 0.0%Language:Shell 0.0%Language:Ruby 0.0%