Skip to main content

Python CLI tool for generating depth tracking overlays for your dive footage from exported dive computer logs.

Project description

depthviz: Transform your dive footage with depth tracking

License GitHub Actions Workflow Status Coveralls

[!NOTE] This project is in active development. Feel free to open an issue for any feedback or feature requests.

depthviz makes it easy to add dynamic depth tracking, giving your viewers a deeper understanding of your underwater sensation. It is a command-line tool for generating depth overlay videos from the data recorded by your dive computer. It processes your dive log and creates a video that visualizes the depth over time.

This allows you to create more informative and engaging dive videos, enriching the storytelling experience for both yourself and your audience.

Installation

Prerequisites:

  • Python 3.9 or later
  • pipx for installing Python CLI tools in isolated environments.

Installation:

pipx install depthviz

Usage

1. Download Your Data:

  • Ensure your dive computer data is exported in a CSV format with two columns:
    • Time: Represents the time elapsed since the dive start (e.g., in seconds).
    • Depth: Represents the current depth during the dive (e.g., in meters).

2. Generate the Overlay:

depthviz -i <input_file.csv> -s <sample_rate> -o <output_video.mp4>

Arguments:

  • -i, --input <input_file.csv>: Path to your CSV file containing depth data.
  • -s, --sample-rate <sample_rate>: Sample rate (in seconds) at which your dive computer recorded the data. (e.g., 0.25, 0.5, 1, etc.)
  • -o, --output <output_video.mp4>: Path or filename for the generated video with the depth overlay.

[!IMPORTANT] Sample rate is crucial for the accuracy of the depth visualization over time. Consult your dive computer manual for this information.

[!TIP] If your dive computer recorded data every 1 second, set the sample rate to 1. (i.e., 1 sample per second) If your dive computer recorded data 4 samples per second, set the sample rate to 0.25. (i.e., 1 sample every 0.25 seconds)

Example:

Here's an example of using depthviz to generate a depth overlay video named depth_tracking.mp4 with a sample rate of 0.5 seconds, using the data from my_dive.csv:

depthviz -i my_dive.csv -s 0.5 -o depth_tracking.mp4

3. Integrate with Your Footage:

Import the generated overlay video into your preferred video editing software and combine it with your original dive footage. Adjust the blending and position of the overlay to suit your video style.

Watch this tutorial on how to import an overlay video in CapCut Desktop.

Contribution

We welcome contributions to the depthviz project! If you have any ideas for improvement, bug fixes, or feature suggestions, feel free to open an issue to discuss or submit a pull request.

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.

Acknowledgements

Contact

For any inquiries, please open an issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

depthviz-0.1.0.dev3.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

depthviz-0.1.0.dev3-py3-none-any.whl (3.6 MB view details)

Uploaded Python 3

File details

Details for the file depthviz-0.1.0.dev3.tar.gz.

File metadata

  • Download URL: depthviz-0.1.0.dev3.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.10.15 Linux/6.8.0-1017-azure

File hashes

Hashes for depthviz-0.1.0.dev3.tar.gz
Algorithm Hash digest
SHA256 8a284195c3ecfdf38af643f7452b959b1b0503c423d1d06c2b2765a05f7455c1
MD5 621b7c10eaa11af129bc45d8c5d8e91e
BLAKE2b-256 26fbb60138a410a8fbdd42405077ca475bbe58ed6da045ac124809835ffed2e2

See more details on using hashes here.

File details

Details for the file depthviz-0.1.0.dev3-py3-none-any.whl.

File metadata

  • Download URL: depthviz-0.1.0.dev3-py3-none-any.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.10.15 Linux/6.8.0-1017-azure

File hashes

Hashes for depthviz-0.1.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 634afc5449719d01a4940d827d917e7341695b19414a7608e6cd5bf8a0997fd3
MD5 2219060863eb6f80a8c91abc87459d69
BLAKE2b-256 f40405cff7b129049dda6bdb1481212d41de647cbca48064628675712c549077

See more details on using hashes here.

Supported by

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