LightlyEdge Python SDK#
Welcome!#
LightlyEdge Python SDK is a Python library for smart data selection not only on edge devices.
Primary use cases are in automotive, robotics, video analytics or visual inspection industries. LightlyEdge can identify data with the most signal when only a small subset of what is observed can be processed. A typical example is data selection for machine learning with a constrained annotation budget. LightlyEdge identifies the data directly at the point of collection, saving data transfer and storage costs.
Features#
LightlyEdge allows you to pass in camera frames one-by-one. For each frame, LightlyEdge:
Enriches the frame with information obtained by running ML models.
Decides whether the frame should be selected based on your configuration.
Supported features are:
Similarity Search: Select frames matching a text description or a known image.
Diversity Selection: Select frames which are visually different from previously selected frames.
Adaptive Diversity Selection: Select frames based on expected ratio of the frames to select.
Object Detection: Select frames containing objects from a predefined set of classes. Our current detector was trained on automotive classes.

LightlyEdge architecture overview.#
Note
We are glad to have you try LightlyEdge! It is under active development, your feedback is welcome.
Why LightlyEdge#
LightlyEdge is tailored for resource-limited environments:
Our custom models have low footprint and can be used on hardware where large open-source models would use too much memory or be too slow.
Having speed in mind, LightlyEdge processes images in real-time. It is built in Rust with C++ and Python bindings.
For ease of integration, LightlyEdge supports multiple platforms and handles GPU inference calls for you.
We provide models tailored for automotive industry trained in-house on highly curated data. For other domains, please reach out to us.
Requirements#
Operating System: Linux / Windows / MacOS
Architecture: x86 / ARM CPU
GPU: Not required. Support for NVIDIA GPUs.
Disk space:
CPU version: 20MB SDK + 450MB (small models) / 900MB (large models)
GPU version: 700MB SDK + 450MB (small models) / 900MB (large models)
Memory: 500MB (small models) / 1GB (large models)
Internet connection: Not used.
Python 3.8 or higher
We provide ready-made packages for these configurations:
Ubuntu 20 or higher, x86 64bit CPU
MacOS 14 or higher, ARM 64bit CPU
Getting Started#
If you are new to LightlyEdge please follow our Getting started guide.
API Reference#
For interface documentation refer to the API reference. A good starting point is lightly_edge_sdk.LightlyEdge.