motion-saver
Easily pick out and save images which contain motion from a stream of images.
Features
Send images into the MotionSaver, and it’ll save the ones with motion.
Optionally save images from before and after motion occurs.
Easy to configure and use.
Requirements
Python 3.5 or above
Pillow 4+
Installation
pip install motion-saver
Quick start
Examples
Save a stream of images
Continuously add a stream of images to the Motion Saver. When motion is detected it will save the previous 30 seconds of images, and keep saving until 20 seconds has passed since the last motion was detected.
from datetime import datetime
from motionsaver import MotionSaver
ms = MotionSaver()
ms.motion_threshold = 0.1
ms.save_previous_seconds = 30
ms.save_post_seconds = 20
while True:
now = datetime.now()
pillow_img = get_image()
filename = '{}.jpg'.format(now.strftime('%Y%m%d-%H%M%S'))
ms.add_image(pillow_img, now, filename)
License
camgrab is free software, distributed under the MIT license.
Metadata
Release files for motion-saver 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| motion-saver-0.1.0.tar.gz | 3.2 kB | Without provenance | Details for motion-saver-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| motion_saver-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for motion_saver-0.1.0-py3-none-any.whl |
Total release size: 8.1 kB
Release files / motion-saver-0.1.0.tar.gz
| Download URL | motion-saver-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
604d281be2a1d116d45dd1cb06a3b1ab2c78106a933258c7b8f98711e0d08ac3
|
|
BLAKE2b-256 checksum How to use checksums |
2f85fda8f3d19fb5d35ad50d4355032d93ad7aa513955d7809327a939c9c4978
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / motion_saver-0.1.0-py3-none-any.whl
| Download URL | motion_saver-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fb908d8e49624176bdf28ae50f4bb371abdfee476cfdf2191fcf33f706461fe8
|
|
BLAKE2b-256 checksum How to use checksums |
895247bdc7f519a93801462b8fc3befb91436e17217cf8c30cb937fff9e24887
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for motion-saver 0.1.0
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.