Skip to main content

Simple ffmpeg wrapper for image2pipe

Project description

# Why

I need to extract frames from videos in order to feed into 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()
decoder = image2pipe.images_from_url(q, "shuttle-flip.mp4", fps="30", scale=(1000, 556))
decoder.start()

for i in range(30):
fn, img = q.get()
cv2.imshow("frame %d" % i, img)
cv2.waitKey()
cv2.destroyAllWindows()
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

image2pipe-0.1.2.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file image2pipe-0.1.2.tar.gz.

File metadata

  • Download URL: image2pipe-0.1.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for image2pipe-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1e2b2de623c6e4182bd772e2cde8a400b0c1c24d0bdabea626d1a3302318859c
MD5 2c79ae883482dea741751ca34d5677b0
BLAKE2b-256 f45b53201c3df3eb36e02ce0a1c3ec6c3c6ad3c31350080fce565cab0df0884c

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