Code for loading and processing depthmaps collected by CGM app
Project description
Depthmap toolkit
Depthmap toolkit is an utility to convert and visualise the data captured by cgm-scanner.
Overview
CGM-Scanner currently captures the data as depthmaps. Depthmap is our own format developed for high compressed data.
Tools
Visualisation of depthmaps
- The tool accepts only the data captured by cgm-scanner. The data could be captured by any ARCore/AREngine device supporting ToF sensor. Tool could be opened by following command:
python toolkit.py depthmap_dir calibration_file
- The
depthmap_dir
folder has to contain subfolder depth containing one or more depthmap files. - By arrows "<<" and ">>" you can switch to next or previous depthmap in the folder.
- Export pointcloud will export the data into PLY file in export folder.
- Export textured mesh will triangulate and texturize the data and export in into OBJ file in export folder.
- Export poisson mesh will triangulate and extrapolate the data and export in into OBJ file in export folder.
- All exported data data will be reoriented using depthmap pose (if available)
calibration_file
is the txt file with calibration for the device.
Visualisation types
The tool generates 5 different visualisations (from left-to-right order):
- Depth image - this is a most raw visualisation of depthmap
- World-oriented normals - green value indicates a horizontal surface, blue and red a vertical surface (supported from scan type v1.0)
- Metrical segmentation visualisation - repeating pattern mapped on surfaces based on world-oriented normals, the pattern repeats every 10 centimeters (this might help ML models to calibrate measures captured by different devices, supported from scan type v1.0), blue is the detected floor, yellow is the detected child/object
- Confidence map - amount of IR light reflected into ToF receiver, this information might vary a lot (every sensor uses a different amount of IR light) and it is not recommended to use it for ML training
- RGB photo - captured photo (if available)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file depthmap_toolkit-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: depthmap_toolkit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc9b62889c0c96f28755cc598475720ddaa866807d043ae5de54872ddce2bb30 |
|
MD5 | 679e474d0c04633bd8047348acd8601d |
|
BLAKE2b-256 | 71c7d7671d51630977aa48168340b2963b4061026c27f4a7e288cbeddcbb0f92 |