Skip to main content

A tool built for analysing skylight polarization patterns.

Project description

compyss

A tool built for analysing skylight polarization patterns. It aims to provide heading information from skylight angle of polarization images.

Design philosophy

compyss is designed to be as flexible as possible. It's flexibility allows it to support multiple cameras and decode methods. Once you write a decoder, it should be available for all supported cameras. See the wiki for more information.

Author

This package was written in conjuction with a study at Queen's University at Kingston. If you use this code, please cite our work. We have not published yet, but when we do I will link the citation here.

Features

  • Load LI image from camera or file.
  • Generate Stokes vector, AoLP, and DoLP from LI image.
  • Display image information in figure.
  • Read angle to solar meridian from AoLP image.

Camera SDK support

  • Lucid Vision Labs, Arena SDK

Usage

Examples are provided in the source. The general flow is

import compyss.core
from compyss.sources.file import FileSource

# create a new compass object
cmps = compyss.core.Compass(source=FileSource("path/to/file.png")
image = cmps.source.get().instrument_to_local()

image.show()

Initial setup

python -m pip install compyss

Dependencies

General dependencies are listed in the requirements.txt file and can be installed using python -m pip install -r requirements.txt or something similar.

Camera sources require specific dependencies that do not apply globally. Using the available camera sources requires installing their interface. For example, LUCID Vision cameras require the ArenaSDK to be installed. See wiki for more info.

Currently, the project uses polanalyser to do some image processing.

FAQ

For questions, open an issue or send an email to ben [dot] potter [at] queensu [dot] ca.

Projects

If you use this code, open a PR and add your project to this list. We also ask you cite our paper. See author.

Contributing

Contributions are welcome, mostly with respect to camera SDK support. If you need support for another camera SDK, reach out to me ben [dot] potter [at] queensu [dot] ca.

Potential Updates

  • Create an ImageDecoder class that standardizes decoder format. Package user should create a decoder object and pass it to the compass object similar to the ImageSource class.
  • Fix exposure settings in arena_sdk to improve execution time of that pipeline.
  • Support saving features to LUCID cameras via arena_sdk.py

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

compyss-1.1.1.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

compyss-1.1.1-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file compyss-1.1.1.tar.gz.

File metadata

  • Download URL: compyss-1.1.1.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for compyss-1.1.1.tar.gz
Algorithm Hash digest
SHA256 55e45f88f3cfa23a65ce4e00ce003a379d6ed14cfaf4a119eee326db2369251c
MD5 9a2bfa1ab4ac00116d713f20a2e8e951
BLAKE2b-256 a6ea329ec3511a944b1c77bdc196efe0100b1daf7a6aed65e78df0e74f37b484

See more details on using hashes here.

File details

Details for the file compyss-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: compyss-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for compyss-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ca0d923a4205ce59cc70611265acd228c5e8b92447379c6fa26725d6e17efe2
MD5 c12976844ffd6f939454520253b6e93e
BLAKE2b-256 39d438b1970696c70f1f52ac680bdf69891c726b747ca5dc1a090854f53af82a

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