Skip to main content

Stupid lib to extract gravity from pycolmap reconstructions (or just numpy arrays)

Project description

easy-gravity

A naive way to extract gravity from poses

See here for some alternative methods

Method

Assume cameras are not in plane rotated. This means that gravity must lie on the "pointing/up" plane for each camera. For any vector $x$ we can easily compute the squared distance to this plane as $x \cdot \hat{n}$. The normals of the plane is simply the x-direction of the camera. Differentiate this sum and solve for 0 you get an eigenvalue eq. Solve for smallest eigenvalue.

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

easy_gravity-0.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

easy_gravity-0.2-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file easy_gravity-0.2.tar.gz.

File metadata

  • Download URL: easy_gravity-0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for easy_gravity-0.2.tar.gz
Algorithm Hash digest
SHA256 5d1c2ae098006034a9dab3a829893e79c1fc294bce0aa97373f3b711bb662fd4
MD5 9f974e01b3bad5af9cffe4bcb4502fb4
BLAKE2b-256 40b4aa3d205245067d8f6733778e0be1143bd8e6df82654b8ab0f026e7e421d2

See more details on using hashes here.

File details

Details for the file easy_gravity-0.2-py3-none-any.whl.

File metadata

  • Download URL: easy_gravity-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for easy_gravity-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b223b406bce92225ca2ee6641ca4525bfbf31845c8547d980ec9c2de084e330f
MD5 41f4964545a189c95b27cac81c46520e
BLAKE2b-256 8ec8af047eaaa55c1b79af784dbd007052706d0972046724c6a5612c8f58ea71

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