Skip to main content

Annotates activitiy episodes represented by meshes moving in a 3D environment with the corresponding events, actions and activities.

Project description

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

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

episode_segmenter-1.0.18.tar.gz (50.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

episode_segmenter-1.0.18-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

Details for the file episode_segmenter-1.0.18.tar.gz.

File metadata

  • Download URL: episode_segmenter-1.0.18.tar.gz
  • Upload date:
  • Size: 50.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for episode_segmenter-1.0.18.tar.gz
Algorithm Hash digest
SHA256 0a1f7dbb820ebef4d3573e2d2f2bced4d339aa5824e7595cc1cffe27b92ffec0
MD5 1cabe2d500f6654eec4405fe5686481d
BLAKE2b-256 94ed3d56ad135777e81816a3c02b39177a5904841792ab8a32c8f256df10663c

See more details on using hashes here.

File details

Details for the file episode_segmenter-1.0.18-py3-none-any.whl.

File metadata

File hashes

Hashes for episode_segmenter-1.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 1cc8f5fd5945e7b4048afa61f641726e9377a9a8329d0763a24f6784fecaa237
MD5 5d9bac80d72ff82d14ec2df514c395c9
BLAKE2b-256 3e66736e5d33f4d2fd5ea3b743c9a5905dc4fb21c9be59bc1a76f3c1dc97b3b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page