Skip to main content

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

Depthmap toolkit Viz

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


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

depthmap_toolkit-0.1.0-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

File details

Details for the file depthmap_toolkit-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for depthmap_toolkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc9b62889c0c96f28755cc598475720ddaa866807d043ae5de54872ddce2bb30
MD5 679e474d0c04633bd8047348acd8601d
BLAKE2b-256 71c7d7671d51630977aa48168340b2963b4061026c27f4a7e288cbeddcbb0f92

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page