Skip to main content

An open-source computer vision framework to create and deploy computer vision applications that scale in minutes

Project description

Pipeless Core

Pipeless is a computer vision framework to quickly create and deploy applications that process real time streams. The Pipeless Core is the core component of the framework.

The Pipeless core is split into several components:

  • input: Receives the media streams, demux and decode the streams.
  • worker: Receives raw media frames, either audio or video frames, and processes them according to the user provided app
  • output: Receives the processed raw media frames, encodes and mux them into the proper container format for the output protocol provided by the user

System Dependencies

  • Gstreamer 1.20.3. Verify with gst-launch-1.0 --gst-version. Installation instructions here

Python dependencies

  • Poetry: find the installation instructions here

Installation

pip install pipeless-ai

Development

To test your changes run the following command from the project root directory:

python -m pipeless_ai.core <component> [app_file_path.py]
  • <component> can be input, worker, output, or all (default)
  • app_path is required for the worker component and must be the path to the app.py (including app.py)

For simplicity, it will load a mock configuration (hardcoded) at src/pipeless/pipeless.py that you can edit for your use case. The hardcoded configuration will only be used when launching the components with the command above, it won't affect testing with the CLI.

In order to debug, you can set the configuration log_level to DEBUG. If you find an error related to GStreamer and no useful information has been logged, try using the env var GST_DEBUG=5 to enable GStreamer to debug logs. Refer to this page for more information about GStreamer debugging.

Manual Testing

In order to test your changes, start the virtualenv:

poetry shell

After that, go to the cli directory and run poetry install to install the pipeless-ai-cli (CLI) component. Then go to the core directory and run poetry install to install the pipeless-ai module. This will override the upstream dependency from the CLI component to use your local one.

Verify your environment by ensuring the pipeless modules are pointing to your local directories instead of the PyPi public modules:

pip list | grep pipeless

With that, you should be able to run pipeless run with your changes.

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

pipeless_ai-0.1.19.tar.gz (29.6 kB view hashes)

Uploaded Source

Built Distribution

pipeless_ai-0.1.19-py3-none-any.whl (35.7 kB view hashes)

Uploaded Python 3

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