Skip to main content

Three60Cube

A Package to project a 360 x 180 image onto a cube.

Installation

pip install three60cube

Usage

Creation of projection template:

from three30cube import Three60Cube

# create instance
transf = Three60Cube()

# open image
transf.open_image("/Users/casperkaandorp/Desktop/streetview/Abstede_1.JPG")

# calculate a projection for one side
transf.get_pane(pane=1, dim=512)

# save transformation template
transf.save_cache("/Users/casperkaandorp/Desktop/streetview/templ.pickle")

With the saved transformation template you can perform new projections without calculating the transformation:

# create instance with transformation template
transf = Three60Cube("/Users/casperkaandorp/Desktop/streetview/templ.pickle")

# open image
transf.open_image("/Users/casperkaandorp/Desktop/streetview/Abstede_2.JPG")

# perform projection, write image to HDD
transf.save_pane("/Users/casperkaandorp/proj_2.JPG", pane=2, dim=512)

Panes 0 through 3 are taken from the left to right side of the 360 image. Pane 4 is the top of the cube and pane 5 is the bottom part. The dim parameter refers to dimension of the output image; a dim of 500 will produce a 500 x 500px image.

To do: testing and meaningful messages when filepaths are incorrect

Metadata

Release files for three60cube 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for three60cube 0.0.9
File Size Uploaded Provenance Actions
three60cube-0.0.9.tar.gz 4.4 kB Without provenance Details for three60cube-0.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for three60cube 0.0.9
File Interpreter ABI Platform Actions
three60cube-0.0.9-py3-none-any.whl Python 3 none any Details for three60cube-0.0.9-py3-none-any.whl

Total release size: 9.1 kB

Release files / three60cube-0.0.9.tar.gz

Download URL three60cube-0.0.9.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
47b173eaa9c63d15cb3800b5b78a8c8105d0b5a6712e415a70aebb50b56bbcb4
BLAKE2b-256 checksum
How to use checksums
86b7e8f4daccaee1a5b8a8fff063ff18ecc463ed41db4cc199119b89422c4a61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / three60cube-0.0.9-py3-none-any.whl

Download URL three60cube-0.0.9-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c3db69cf5d3eaf33ff026b766547ad8a7749cf51f3f77b62b03861ee0d6a548
BLAKE2b-256 checksum
How to use checksums
4394cf6dc69dc4f2cda7b5c96b950de925257194572b8e4f417c70b79c9cdc4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Security for three60cube 0.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page