Skip to main content

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)

Source distribution for image2pipe 0.1.11
File Size Uploaded
image2pipe-0.1.11.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for image2pipe 0.1.11
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.11 This release

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page