Skip to main content

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:

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.

  1. Make changes for next version in master branch (via pull-requests).
  2. Update version field in pyproject.toml with new version in master branch.
  3. Create GitHub release from master branch's HEAD.
    1. Draft a new release.
    2. Create new tag named release-<New version> (e.g. release-1.4.0) from Choose a tag pull down menu.
    3. Write title and description.
    4. Publish release.
  4. Then CI will build/upload package to PyPI & API doc to GitHub Pages.

Metadata

Release files for actfw-jetson 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for actfw-jetson 0.1.3
File Size Uploaded Provenance
actfw-jetson-0.1.3.tar.gz 5.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for actfw-jetson 0.1.3
File Interpreter ABI Platform
actfw_jetson-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / actfw-jetson-0.1.3.tar.gz

Download URL actfw-jetson-0.1.3.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
07c537c65c0f7a87ff73d6eb86973f7d0dabde7375c473a292e7afd7f9b1c862
BLAKE2b-256 checksum
How to use checksums
3b9314acb9b1b3708780459c146edd4eec07d2864cd2002c47a3497ea21181a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-1021-aws

Release files / actfw_jetson-0.1.3-py3-none-any.whl

Download URL actfw_jetson-0.1.3-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58444edd0e6dfb2b5ea5bd21b117c5a69ecef282511ff4788008e016b845c0cd
BLAKE2b-256 checksum
How to use checksums
708430a2aed1c64d5ffe9a49b521a2396cfd355609d00efbe0ca007012ce83a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.4 Linux/5.13.0-1021-aws

Security for actfw-jetson 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page