actfw's additional components for Jetson series
Project description
actfw-jetson
actfw's components for Jetson series. actfw is a framework for Actcast Application written in Python.
Installation
sudo apt-get update
sudo apt-get install -y python3-pip python3-pil
# Install GStreamer dependencies (some components in actfw-jetson uses GStreamer in implementation)
sudo apt-get install -y libgstreamer1.0-dev libgirepository1.0-dev ibgstreamer-plugins-base1.0-dev libglib2.0-dev libcairo2-dev
pip3 install actfw-jetson
Document
Usage
See actfw-core for basic usage.
Since actfw-jetson uses GStreamer to implement some components, an application using actfw-jetson may have to initialize GStreamer library before using actfw-jetson's components.
if __name__ == '__main__':
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst
Gst.init(None)
main()
actfw-jetson provides:
actfw_jetson.Display
: Display usingnvoverlaysink
element in NVIDIA's Accelerated GStreamer.
Example
example/hello_jetson
: The simplest application example for Jetson- Use HDMI display as 1280x720 area
- Generate 1280x720 single-colored image
- Draw "Hello, Actcast!" text
- Display it as 1280x720 image
- Notice message for each frame
- Support application heartbeat
- Support "Take Photo" command
- Depends: fonts-dejavu-core
Development Guide
Installation of dev requirements
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
poetry install
Running tests
poetry run nose2 -v
Running examples
hello_jetson
Displays a red rectangle and greeting text on it on HDMI display.
Run on a Jetson Nano connected to HDMI display:
apt-get install fonts-dejavu-core
poetry run python example/hello_jetson
camera_display
Displays camera input on HDMI display.
Run on a Jetson Nano with CSI camera and HDMI display:
poetry run python example/camera_display
Releasing package & API doc
CI will automatically do. Follow the following branch/tag rules.
- Make changes for next version in
master
branch (via pull-requests). - Update
version
field inpyproject.toml
with new version inmaster
branch. - Create Git tag from
master
branch's HEAD namedrelease-<New version>
. E.g.release-1.4.0
. - Then CI will build/upload package to PyPI & API doc to GitHub Pages.
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
Built Distribution
Hashes for actfw_jetson-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddae698dd5c1b89f1955a7b1835de5d198e27af6a358b8d731202f9b91e23a6c |
|
MD5 | 15b909858c85929a3c5b432a37d24589 |
|
BLAKE2b-256 | 6c1b6dd7169ec28306a2efa23f8fc650e6ddee5dbbe21d8498048186458eca24 |