Skip to main content

Helper library for interacting with Landing AI LandingLens

Project description

LandingLens code sample repository

This repository contains LandingLens development library and running examples showing how to integrate LandingLens on a variety of scenarios. All the examples show different ways to acquire images from multiple sources and techniques to process the results. Jupyter notebooks focus on ease of use while Python apps include more robust and complete examples.

example description language
Company logo identification This notebook can run directly in Google collab using the web browser camera to detect Landing AI logo Jupyter Notebook Colab
Door monitoring for home automation This notebook uses an object detection model to determine whether a door is open or closed. The notebook can acquire images directly from an RTSP camera Jupyter Notebook
Streaming capture service (WIP) This application shows how to do continuous acquisition from an image sensor using RTSP. Python application

Install the library

pip install landingai

Running examples locally

All the examples in this repo can be run locally.

Here is an example to show you how to run the rtsp-capture example locally in a shell environment:

NOTE: it's recommended to create a new Python virtual environment first.

  1. Clone the repo to local: git clone https://github.com/landing-ai/landingai-python-v1.git
  2. Install the library: pip install landingai
  3. Run: python landingai-python-v1/examples/rtsp-capture/run.py

Building the LandingLens library locally (for developers and contributors)

Most of the time you won't need to build the library since it is included on this repository and also published to pypi.

But if you want to contribute to the repo, you can follow the below steps:

Install poetry

See more from the official doc.

For Linux, macOS, Windows (WSL):

curl -sSL https://install.python-poetry.org | python3 -

NOTE: you can switch to use a different Python version by specifying the python version:

curl -sSL https://install.python-poetry.org | python3.10 -

or run below command after you have installed poetry:

poetry env use 3.10

Install all the dependencies

poetry install --with test

Run tests

poetry run pytest tests/

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

landingai-0.0.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

landingai-0.0.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file landingai-0.0.3.tar.gz.

File metadata

  • Download URL: landingai-0.0.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.11 Darwin/21.1.0

File hashes

Hashes for landingai-0.0.3.tar.gz
Algorithm Hash digest
SHA256 20b23c9d168a5b400938d9c637c11e0cda25affaa18b254afd801cb4885680d6
MD5 e014164478d419d56b92e115d6d7446f
BLAKE2b-256 696df459653356894d3e29d63e47610b6cedb8943e306781d231dc7c856100ed

See more details on using hashes here.

File details

Details for the file landingai-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: landingai-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.11 Darwin/21.1.0

File hashes

Hashes for landingai-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 308ae160403e422094261a2bfe3fa835053bc3c25635c27e32d10f767ce5c3ed
MD5 6dc00f236890c0c49658a6ad266e2d11
BLAKE2b-256 447647940af301a799927aafad5939598eb0139f58c78fb2526e0b76618f4f94

See more details on using hashes here.

Supported by

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