Why
I need to extract decoded frames from videos in order to feed DNN pipeline.
This is the answer package.
Install
pip install image2pipe
Usage
from multiprocessing import Queue
import logging
import cv2
import image2pipe
logging.basicConfig()
q = Queue(maxsize=4)
decoder = image2pipe.images_from_url(q, "shuttle-flip.mp4", fps="30", scale=(1000, 556))
decoder.start()
for pair in yield_from_queue(q):
fn, img = pair
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
cv2.imshow("gray", gray)
cv2.waitKey()
cv2.destroyAllWindows()
Metadata
Release files for image2pipe 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| image2pipe-0.1.11.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| image2pipe-0.1.11-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 11.6 kB
Release files / image2pipe-0.1.11.tar.gz
| Download URL | image2pipe-0.1.11.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c181b1758857dea42ec6654a9a6e789e2aced2ebf9829dd19bfb096964c6a6af
|
|
BLAKE2b-256 checksum How to use checksums |
cfb580546782cd79b804b0c9cea308afa480f05bde6a62a0f2f4d8f7b1214633
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|
Release files / image2pipe-0.1.11-py2.py3-none-any.whl
| Download URL | image2pipe-0.1.11-py2.py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4333622ab8fb45ab40b69e3632eecfc82b15214909469593d5b6caeb2f65a333
|
|
BLAKE2b-256 checksum How to use checksums |
22fc0063fce2c4df3a34194d9d5614c2c972751540e811da0221409a5fd39d9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|