Skip to main content

EpisodeSegmenter

A python library for segmenting simulation episodes of activities. This is done by detecting physical interactions, and events in the simulation. This library also integrates with NEEMPycramInterface to segment NEEM episodes as a use case.

Installation

pip install episode_segmenter

Example Usage

All below examples assume the neems are located in a 'test' database at 'localhost' which can be accessed by 'newuser' using password 'password'.

Replaying the motions of a NEEM and segmenting it:

This is done by using the PyCRAMNEEMInterface class which provides an easy way to replay the motions of a NEEM, then using the NEEMSegmenter class which implements EpisodeSegmenter to segment the motions into activities, actions, and events.

from neem_pycram_interface import PyCRAMNEEMInterface
from episode_segmenter.neem_segmenter import NEEMSegmenter

from pycram.datastructures.enums import WorldMode
from pycram.worlds.bullet_world import BulletWorld

BulletWorld(WorldMode.GUI)
pni = PyCRAMNEEMInterface('mysql+pymysql://newuser:password@localhost/test')
ns = NEEMSegmenter(pni, annotate_events=True)
ns.run_event_detectors_on_neem([15])

https://github.com/AbdelrhmanBassiouny/EpisodeSegmenter/assets/36744004/186bfd79-f30b-4b4f-ae84-03d2bcce821a

https://github.com/AbdelrhmanBassiouny/EpisodeSegmenter/assets/36744004/bb2e7c65-93cc-4f83-becb-1cb06fcf73ad

Metadata

Release files for episode-segmenter 1.0.22

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

Source distribution (sdist)

Source distribution for episode-segmenter 1.0.22
File Size Uploaded Provenance Actions
episode_segmenter-1.0.22.tar.gz 51.2 kB Without provenance Details for episode_segmenter-1.0.22.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for episode-segmenter 1.0.22
File Interpreter ABI Platform Actions
episode_segmenter-1.0.22-py3-none-any.whl Python 3 none any Details for episode_segmenter-1.0.22-py3-none-any.whl

Total release size: 92.5 kB

Release files / episode_segmenter-1.0.22.tar.gz

Download URL episode_segmenter-1.0.22.tar.gz
Size 51.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e522e47ab7eb505be037be12ae53f4446bf55119f0c92e910129cdef905c1b61
BLAKE2b-256 checksum
How to use checksums
2e9bedbc9bb94f5336bb0e30ce2005e85f771603c2e6977e56578cf26bcd3e5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / episode_segmenter-1.0.22-py3-none-any.whl

Download URL episode_segmenter-1.0.22-py3-none-any.whl
Size 41.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3531b3cb37aca2fc862b26a170bede68b3607162f02b90f67212a8252e408f17
BLAKE2b-256 checksum
How to use checksums
42b8ae829b36f8081356728fad4affb4d09ad969fe3be83594a92e340aea7e41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Security for episode-segmenter 1.0.22

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