Osef file/stream tools.
Project description
OSEF library
Library containing utilities to read and parse a live or recorded stream from an Outsight Augmented Lidar Box (ALB). The stream is in the OSEF format (Outsight SErialization Format): it's an Outsight-defined serialisation binary format used to encode data streaming out of the ALB. It is based on TLV-encoding.
Full documentation: https://docs.outsight.ai/software/osef
Installation
Install from PyPi using pip:
pip install osef
Usage
Open and parse an osef file or stream:
import osef
osef_path = "path/to/my/file.osef"
# or osef_path="tcp://192.168.2.2:11120"
with osef.parser.OsefStream(osef_path) as osef_stream:
tlv_iterator = osef.parser.get_tlv_iterator(osef_stream)
for index, tlv in tlv_iterator:
tree = osef.parser.build_tree(tlv)
frame_dict = osef.parser.parse_to_dict(tree)
tracked_objects = frame_dict["timestamped_data"]["scan_frame"]["tracked_objects"]
A shorter version:
import osef
osef_path = "path/to/my/file.osef"
# or osef_path="tcp://192.168.2.2:11120"
frame_iterator = osef.parser.parse(osef_path)
for frame_dict in frame_iterator:
tracked_objects = frame_dict["timestamped_data"]["scan_frame"]["tracked_objects"]
See more examples: https://gitlab.com/outsight-public/alb-software-package/-/tree/master/software-utilities/python
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
osef-0.2.1.tar.gz
(11.2 kB
view hashes)
Built Distribution
osef-0.2.1-py3-none-any.whl
(11.6 kB
view hashes)