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

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.1.tar.gz (94.3 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.1-py3-none-any.whl (112.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyzm-2.0.1.tar.gz
  • Upload date:
  • Size: 94.3 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.1.tar.gz
Algorithm Hash digest
SHA256 a9d3b01d965e86ad7df37725c4951446b2b8ad92b675d1f220ab0cbe9054e3c9
MD5 2ac72f922932ddd9bd6568aa011f06aa
BLAKE2b-256 093c39763524f826e0a900e3a8e94d1e7ecb55164384d4a6c535c1d6e3ddd9be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyzm-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 112.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a116e0612e83ac0637598de765c754c5430a73d812600c5141350d6b81c4487b
MD5 0e90ff4d298fccfa0c2b1d01c87588df
BLAKE2b-256 bd03e1c8551e055bbee62e103f60210bf47afda27e2accbc6ccd4c5bccc6b674

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