Skip to main content

Omega-Prime-Visibility

This packages uses VisiLibity1 through visilibity (LGPL) to comptue the visibility of MovingObjects of omega-prime-Recordings. For every object it computes the visibilty as a float (1.0 for fully visible and 0.0 for not visible) (assuming 2D-brids-eye-view geometries) from the point of view of one object (assumed as a point in the center of the object). In addition the objects occluding the view (occluders) are computed.

This package also provides the computation of visibility as an omega-prime Metric: from omega_prime_visibility import visibility.

The example file highway_merge.mcap is taken from omega-prime and derived from esmini and is under MPL-2.0 license.

License

This python package is distributed under MIT license but the linked libraries visilibity and VisiLibity1 are under the GNU Lesser General Public License (LGPL).

Requirements

You need to have installed swig, boost and cython to be able to install visilibity

On windows you need to additonally install Buildtools:

  1. Download Buildtools für Visual Studio 2022
  2. Select C++ Tools for Linux Development and install

Installation

pip install omega-prime-visibility

Usage

See ./tutorial.ipynb for detailed instructions.

from omega_prime_visibility import get_visibility_df
import omega_prime
import shapely

r = omega_prime.Recording.from_file('highway_merge.mcap', compute_polygons=True)

obstruction_poly = shapely.Polygon([
    [-220,10],
    [-120,10],
    [-120,-0],
    [-220,-0],
])
df = get_visibility_df(r._df, ego_idx=0, static_occluder_polys=[obstruction_poly])

returns

frame idx occluder_idxs static_occluder_idxs visibility
0 1 [] [0] 0.42
0 2 [] [0] 0
0 3 [] [0] 0
0 4 [] [0] 0
0 5 [3] [0] 0
1 1 [] [0] 0.53
1 2 [] [0] 0
1 3 [] [0] 0
1 4 [] [0] 0
1 5 [3] [0] 0
2 1 [] [0] 0.63
2 2 [] [0] 0
2 3 [] [0] 0
2 4 [] [0] 0
2 5 [3] [0] 0
3 1 [] [0] 0.74
... ... ... ... ...
432 3 [] [] 1
432 4 [1 2 5] [] 0
432 5 [1 2] [] 0

Notice

Metadata

Release files for omega-prime-visibility 0.1.0

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

Source distribution (sdist)

Source distribution for omega-prime-visibility 0.1.0
File Size Uploaded Provenance Actions
omega_prime_visibility-0.1.0.tar.gz 369.1 kB Without provenance Details for omega_prime_visibility-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omega-prime-visibility 0.1.0
File Interpreter ABI Platform Actions
omega_prime_visibility-0.1.0-py3-none-any.whl Python 3 none any Details for omega_prime_visibility-0.1.0-py3-none-any.whl

Total release size: 375.9 kB

Release files / omega_prime_visibility-0.1.0.tar.gz

Download URL omega_prime_visibility-0.1.0.tar.gz
Size 369.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d68982e6cf5a988408c832aeb8da442ed0a06ca4b174ef622e0c68d66c1658b9
BLAKE2b-256 checksum
How to use checksums
0b1c06bca5e6cafe83aff0ff4afd6bafb63eed8005050fc5898a14e0632274f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.11

Release files / omega_prime_visibility-0.1.0-py3-none-any.whl

Download URL omega_prime_visibility-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b19df20aa663397a63a944d6ba4ade65d35fbb49722bb5880621fbbc7c6633be
BLAKE2b-256 checksum
How to use checksums
35a25d39eb9e8b6a23985630ac87a9a207e982ed6795c549ebee5955cf7fd0c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.11

Security for omega-prime-visibility 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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