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])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file episode_segmenter-1.0.16.tar.gz.
File metadata
- Download URL: episode_segmenter-1.0.16.tar.gz
- Upload date:
- Size: 48.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a511c3f25d8c379ce515d32a354ba98392df86df56f6f8c52ef84b776d141464
|
|
| MD5 |
e66d88feeb7b7d059927ef97cbbe2dc5
|
|
| BLAKE2b-256 |
82a7181dfbe9dd2e6827cb7f7f07e21561042ae30ba8bcc91da4a5d6b5fea5ae
|
File details
Details for the file episode_segmenter-1.0.16-py3-none-any.whl.
File metadata
- Download URL: episode_segmenter-1.0.16-py3-none-any.whl
- Upload date:
- Size: 38.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ad9c960e78df6b54ad24d004a0baa3e76bfb7a36ee86d94259a9526e0fa4556
|
|
| MD5 |
d3ac5c4c39dc660aba5d04deadc42bc0
|
|
| BLAKE2b-256 |
896c0d336d9b99e9d2cf3a89510c904fa5a8d700c687f5fa2ab0ca54d877c974
|