Skip to main content

ZoneMinder API, Logger and other base utilities for python programmers

Project description

What

Pythonic ZoneMinder wrapper

  • API
  • Event Server
  • Logger
  • Memory
  • Machine Learning Modules

Installation

See the installation guide on ReadTheDocs.

Documentation & Examples

Latest documentation is available here. The documentation includes a full example.

Features

  • API auth using tokens or legacy (manages refresh logins automatically)
  • Monitors
  • Events with filters
  • States
  • Configs
  • EventNotification callbacks
  • Mapped Memory access
  • Direct access to ML algorithms
  • Remote ML detection server (pyzm.serve) — run models on a GPU box, detect from anywhere
  • Amazon Rekognition support for object detection

Testing

pyzm has two test tiers:

Unit / integration tests (no hardware required):

pip install pytest
python -m pytest tests/ -m "not e2e" -v

End-to-end tests (require real ML models on disk):

# Requires models in /var/lib/zmeventnotification/models/
# and the test image at tests/test_e2e/bird.jpg (included in repo)
python -m pytest tests/test_e2e/ -v

# Skip the slower remote-serve tests:
python -m pytest tests/test_e2e/ -v -m "not serve"

# Run only remote-serve tests:
python -m pytest tests/test_e2e/ -v -m serve

The e2e suite covers every objectconfig feature: pattern matching, zone/polygon filtering, size filtering, min_confidence, disabled models, match strategies, frame strategies, pre_existing_labels, match_past_detections (aliases, ignore_labels, per-label overrides), Detector.from_dict, StreamConfig.from_dict, lazy/eager pipeline loading, remote pyzm.serve (health, detect, /models, --models all, auth, gateway mode), and more.

Limitations

  • Only for Python3

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

pyzm-2.0.3.tar.gz (95.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyzm-2.0.3-py3-none-any.whl (113.9 kB view details)

Uploaded Python 3

File details

Details for the file pyzm-2.0.3.tar.gz.

File metadata

  • Download URL: pyzm-2.0.3.tar.gz
  • Upload date:
  • Size: 95.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyzm-2.0.3.tar.gz
Algorithm Hash digest
SHA256 ab3d62dded5baf639fe071ae9fbcbd08c3d2e1b6decce38d184c29589ae81415
MD5 7ad5f2252952b9ac3348e3cb7ef01484
BLAKE2b-256 5ee58319a934db801a5c63b3e5199aec03415ac42e139671894badf2048a0921

See more details on using hashes here.

File details

Details for the file pyzm-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyzm-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 113.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyzm-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7336a8d9db9d17093af6028bc7523e91526cc2ae3749cad0681deeea05130309
MD5 fc0c9e3231cd2966d9d6300476cf4683
BLAKE2b-256 18290a1ec4e9543108eade5bcb2f5c4314e532eb9c4d26f84bb146f7ae2a526c

See more details on using hashes here.

Supported by

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