Giter Club home page Giter Club logo

3d-reconstruction-and-measurement's Introduction

Reference


K4aRecorder

k4arecorder.exe -l 5 D:\Knowledge\Graduation_Design\WorkSpace\Resources\output-2.mkv

Options:
  -h, --help              Prints this help
  --list                  List the currently connected K4A devices
  --device                Specify the device index to use (default: 0)
  -l, --record-length     Limit the recording to N seconds (default: infinite)
  -c, --color-mode        Set the color sensor mode (default: 1080p), Available options:
                            3072p, 2160p, 1536p, 1440p, 1080p, 720p, 720p_NV12, 720p_YUY2, OFF
  -d, --depth-mode        Set the depth sensor mode (default: NFOV_UNBINNED), Available options:
                            NFOV_2X2BINNED, NFOV_UNBINNED, WFOV_2X2BINNED, WFOV_UNBINNED, PASSIVE_IR, OFF
  --depth-delay           Set the time offset between color and depth frames in microseconds (default: 0)
                            A negative value means depth frames will arrive before color frames.
                            The delay must be less than 1 frame period.
  -r, --rate              Set the camera frame rate in Frames per Second
                            Default is the maximum rate supported by the camera modes.
                            Available options: 30, 15, 5
  --imu                   Set the IMU recording mode (ON, OFF, default: ON)
  --external-sync         Set the external sync mode (Master, Subordinate, Standalone default: Standalone)
  --sync-delay            Set the external sync delay off the master camera in microseconds (default: 0)
                            This setting is only valid if the camera is in Subordinate mode.
  -e, --exposure-control  Set manual exposure value (-11 to 1) for the RGB camera (default: auto exposure)

You can create aruco and apriltag board image at aruco board

Calibration

This extrinsic calibration is a Python implementation based on the article Extrinsic Calibration of Multiple Azure Kinect Cameras. To perform the calibration, run the following command:

python calib/calib.py

Kinect Fusion

The implementation of Kinect Fusion is referred the repository by JinWenWang. Please refer to the repository for detailed prerequisites.

Data Preparation

To obtain the open-source dataset, you can download it from TUM dataset. After downloading the raw sequences, you will need to run the pre-processing script under dataset/. For example:

python dataset/preprocess.py --config configs/fr1_desk.yaml
python dataset/preprocess.py --config configs/fr1_metallic_sphere.yaml

Run Kinect Fusion

After obtaining the processed sequence,you can simply run kinfu.py,which will perform the tracking and mapping headlessly and save the results.

For example:

python kinfu.py --config configs/fr1_desk.yaml --save_dir reconstruct/fr1_desk
python kinfu.py --config configs/fr1_metallic_sphere.yaml --save_dir reconstruct/fr1_metallic_sphere

Or if you want to visualize the tracking and reconstruction process on-the-fly. run the following command:

python kinfu_gui.py --config configs/fr1_desk.yaml

main package used:

pip install opencv-python pykinect_azure open3d pupil_apriltags imageio trimesh scikit-image

3d-reconstruction-and-measurement's People

Contributors

rollroll520 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.