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.2.tar.gz (95.0 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.2-py3-none-any.whl (113.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyzm-2.0.2.tar.gz
  • Upload date:
  • Size: 95.0 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.2.tar.gz
Algorithm Hash digest
SHA256 69e48bcbb7f322387f70ae1113438870ccb21fc27747ebca7ddfd354437b9ba8
MD5 191d20e2fdb201485060185252750e92
BLAKE2b-256 c3281af19e1d30af520cf9ab234bf4ab9920d8e2de52cb095fc866a255ef0a46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyzm-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 113.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04a57ea301377e1a0770afec3180fa4fd60d7b2cc6d82fc2fd9034860d4784ff
MD5 5f771b5fa270be76865467f98a6c000e
BLAKE2b-256 863ee991395ae9ebaf10eadf4f42ae3e0c777f063e254741e776e9e42b33fc58

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