Video Frameserver for Numpy
Project description
Vidsrc is a Python library to read frames from video files as numpy arrays via the DirectShow IMediaDet interface.
- Author:
- Organization:
Laboratory for Fluorescence Dynamics. University of California, Irvine
- License:
BSD 3-Clause
- Version:
2021.6.6
Requirements
Microsoft Visual Studio (build)
DirectX 9.0c SDK (build)
DirectShow BaseClasses include files (build)
DirectShow STRMBASE.lib (build)
Revisions
- 2021.6.6
Remove support for Python 3.6 (NEP 29). Fix compile error on PyPy3.
- 2020.1.1
Remove support for Python 2.7 and 3.5.
Notes
The DirectShow IMediaDet interface is deprecated and may be removed from future releases of Windows (https://docs.microsoft.com/en-us/windows/desktop/directshow/imediadet).
To fix compile error C2146: syntax error: missing ';' before identifier 'PVOID64', change typedef void * POINTER_64 PVOID64; to typedef void * __ptr64 PVOID64; in winnt.h.
Example
>>> from vidsrc import VideoSource >>> video = VideoSource('test.avi', grayscale=False) >>> len(video) # number of frames in video 48 >>> video.duration # length in s 1.6016 >>> video.framerate # frames per second 29.970089850329373 >>> video.shape # frames, height, width, color channels (48, 64, 64, 3) >>> frame = video[0] # access first frame >>> frame = video[-1] # access last frame >>> for frame in video: ... pass # do_something_with(frame)
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
Built Distributions
Hashes for vidsrc-2021.6.6-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c04d5caaa60b9e526cc09e999f269da16fd20615458883b3a6405b317402d725 |
|
MD5 | 77212300aef2a7471a286df91dd2c5bc |
|
BLAKE2b-256 | 483238f0fa411ae0c82f4a70cccb4901f29ae922faa3d499683917cd0ff41b3f |
Hashes for vidsrc-2021.6.6-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bf6f70dd10ef3fa58fb227fd834c28afba142b988a73b155b5bbe15e7e812d3 |
|
MD5 | a43bc0ba4283675a77560475a1556f28 |
|
BLAKE2b-256 | 39cec1cd43971b4ea3f8a938b7fce095a49f0b5693646d1601d7350668637448 |
Hashes for vidsrc-2021.6.6-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4c52533314ee81f8fde366fd848a3c1e0c5ec0a2678aeaff4cdb255016b0c51 |
|
MD5 | 211f9b73f6777ac78b3d76887b64e6fb |
|
BLAKE2b-256 | f9ea83ddc2719b0b22a5f4bfa671d53122e20bc7fcb94fa3eed3d64e7ff49edb |
Hashes for vidsrc-2021.6.6-cp310-cp310-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed03dee62e4077ecf76487ea820cc6b908ffc943e7b2ee9d7a0e17893d072bf7 |
|
MD5 | c4fd8088a90670b2e65db7749594dbc1 |
|
BLAKE2b-256 | b8eb4b328571445b87da60f57df23f898f3551b8bd205d871752f637ee0f52fd |
Hashes for vidsrc-2021.6.6-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c91bee636ab721f1ffcbd38ea7819c39e2e2981a5a12e0311e19867dbfc9fc0c |
|
MD5 | 24c393642ba09d96f2778b00e1b002b8 |
|
BLAKE2b-256 | 9a44dbf87c6c4e440e30ab74386cff1c7635c4a3e7c53e6fd76f21520b8f3fec |
Hashes for vidsrc-2021.6.6-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed9dc4382ba3a8bce64bc3f67d93881216756dcea603e4cc04057a46aca6f83b |
|
MD5 | e945799253a8598b1933cdb513928442 |
|
BLAKE2b-256 | f270728330b5a64211132e07d8f23086cae01c852f93b0f35e54b2e296da6e67 |
Hashes for vidsrc-2021.6.6-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db19abc60244c81d3fd1b296c190ba112a4e3667f24aacae26aa63fb33dacdc7 |
|
MD5 | 05a8e10b1f941509a3cf210df7b28e1d |
|
BLAKE2b-256 | 5af21567a8bcbcb52aaeb1fce036790b026471508156df0b65ade89b0cb74c70 |
Hashes for vidsrc-2021.6.6-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 928d83a04c5a4a3691c223d60c76967c28fd38abe3191b774fad863a3e9ce251 |
|
MD5 | 900e4083a1bd734497c6d9e1b23bf379 |
|
BLAKE2b-256 | f426552791ebf7dedd6c36c2db5fde5bda7ad8039487831cb72a9360f874bf20 |
Hashes for vidsrc-2021.6.6-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7244aa00a3f74cb79d793b144f855f31e29f05c1816e25117ddd12e1d5a7de16 |
|
MD5 | c6be430b565974d1fc1e353492ddd3de |
|
BLAKE2b-256 | cdc738ab4d19f753050eca33a0dbbe26cc9e6997202fb6bc1c24ea15c3939b90 |
Hashes for vidsrc-2021.6.6-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c6638fb7365c15023560ceff5b7884dde3068acd700144236050541a9c5a0d8 |
|
MD5 | 36a3fb92e72293e1a613a145c96263f5 |
|
BLAKE2b-256 | 4d7e261737f3fa5720444eb55e6f6ab0dcbddd9614f3ed3f806926a787cd2102 |