Skip to main content

Add your description here

Project description

phenomate-core

Overview

phenomate-core is a Python package for processing Phenomate sensor binaries into appropriate outputs. The Phenomate platform collects data from the following sensors

  • JAI RGB camera
  • IMU - INS401
  • Lidar (2D)
  • Hyperspectral Camera

And it packs the data (typically) into Protobuffer messages as the sensors collect it. This package unpacks and and possibly transforms the data from the protobuffer files, ready for further processing.

Installation

Clone the repository and install dependencies:

git clone https://github.com/yourusername/phenomate-core.git
cd phenomate-core
make install

Installing libjpeg-turbo - Oak-d

Please see the official page for installing libjpeg-turbo for your operating system.

Installing Sickscan - 2D Lidar

The conversion code for the 2D LIDAR has the required Python code as part of this repository. If the code needs updating then it can be built from the GitHub repository:

mkdir -p ./sick_scan_ws
cd ./sick_scan_ws

git clone -b master https://github.com/SICKAG/sick_scan_xd.git

mkdir -p ./build
pushd ./build
rm -rf ./*
export ROS_VERSION=0

# specify optimisation level: -DO=0 (compiler flags -g -O0), -DO=1 (for compiler flags -O1) or -DO=2
# Install to local directory uising CMAKE_INSTALL_PREFIX=
cmake -DCMAKE_INSTALL_PREFIX=~/local -DROS_VERSION=0 -DLDMRS=0 -DSCANSEGMENT_XD=0 -G "Unix Makefiles" ../sick_scan_xd
make -j4
make -j4 install  # install locally
popd

# The output Python code can be found in:
# ~/local/include/sick_scan_xd/sick_scan_xd.py
# and can be copied to phenomate-core/phenomate_core/preprocessing/lidar

Usage

Example usage for extracting and saving images:

from phenomate_core import JaiPreprocessor

preproc = JaiPreprocessor(path="path/to/data.bin")
preproc.extract()
preproc.save(path="output_dir")

Development

  • Python 3.11+
  • Uses ruff and mypy for linting and type checking
  • Protobuf files should be compiled with protoc as needed
uv pip install protobuf
make compile-pb

Contributing

Contributions are welcome! Please open issues or pull requests for bug fixes, features, or improvements.

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

phenomate_core-0.3.0.tar.gz (49.6 kB view details)

Uploaded Source

Built Distribution

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

phenomate_core-0.3.0-py3-none-any.whl (59.8 kB view details)

Uploaded Python 3

File details

Details for the file phenomate_core-0.3.0.tar.gz.

File metadata

  • Download URL: phenomate_core-0.3.0.tar.gz
  • Upload date:
  • Size: 49.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.3

File hashes

Hashes for phenomate_core-0.3.0.tar.gz
Algorithm Hash digest
SHA256 796bd82f62c3be28eb25aae4b1b3fff7a1102f4503a468ed769ea7738403c935
MD5 2b2f333e1da7108193019f401614b9a2
BLAKE2b-256 1b7072404af98c75b96d1e6bd0797e8f7e75e3edd69df9058da3ee7f37f10f56

See more details on using hashes here.

File details

Details for the file phenomate_core-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for phenomate_core-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a4bde8f0f28357d1816c9c77e2a306df0b76fa47e9ef44feda0bb943e5cb1391
MD5 0c81bd70a5bac700c1423158cf711c3a
BLAKE2b-256 64668d795cfb61147fbf63f10a5a442e473bcf09d72732804f04d9abb836a430

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