Skip to main content

Video Frameserver for Numpy

Project description

Read frames from video file as numpy array via DirectShow IMediaDet interface.

Author:

Christoph Gohlke

Organization:

Laboratory for Fluorescence Dynamics. University of California, Irvine

Version:

2018.8.15

Requirements

  • CPython 2.7 or 3.5+

  • Numpy 1.14

  • Microsoft Visual Studio (build)

  • DirectX 9.0c SDK (build)

  • DirectShow BaseClasses include files (build)

  • DirectShow STRMBASE.lib (build)

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).

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


Download files

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

Source Distribution

vidsrc-2018.8.15.tar.gz (146.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vidsrc-2018.8.15-cp37-cp37m-win_amd64.whl (13.0 kB view details)

Uploaded CPython 3.7mWindows x86-64

vidsrc-2018.8.15-cp37-cp37m-win32.whl (11.9 kB view details)

Uploaded CPython 3.7mWindows x86

vidsrc-2018.8.15-cp36-cp36m-win_amd64.whl (12.8 kB view details)

Uploaded CPython 3.6mWindows x86-64

vidsrc-2018.8.15-cp36-cp36m-win32.whl (11.8 kB view details)

Uploaded CPython 3.6mWindows x86

vidsrc-2018.8.15-cp35-cp35m-win_amd64.whl (12.8 kB view details)

Uploaded CPython 3.5mWindows x86-64

vidsrc-2018.8.15-cp35-cp35m-win32.whl (11.8 kB view details)

Uploaded CPython 3.5mWindows x86

vidsrc-2018.8.15-cp34-cp34m-win_amd64.whl (9.3 kB view details)

Uploaded CPython 3.4mWindows x86-64

vidsrc-2018.8.15-cp34-cp34m-win32.whl (9.4 kB view details)

Uploaded CPython 3.4mWindows x86

vidsrc-2018.8.15-cp27-cp27m-win_amd64.whl (9.3 kB view details)

Uploaded CPython 2.7mWindows x86-64

vidsrc-2018.8.15-cp27-cp27m-win32.whl (9.5 kB view details)

Uploaded CPython 2.7mWindows x86

File details

Details for the file vidsrc-2018.8.15.tar.gz.

File metadata

  • Download URL: vidsrc-2018.8.15.tar.gz
  • Upload date:
  • Size: 146.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for vidsrc-2018.8.15.tar.gz
Algorithm Hash digest
SHA256 6f4b6270884571427109766e1c1375c14fb92cada7d182cc9b2fde14d065a345
MD5 089bd2696c5e02b9a7d3858583cf7481
BLAKE2b-256 91f8d036ec93df67e037193eddbfe542744ee7a9f61210afabe6b64fbbd6536c

See more details on using hashes here.

File details

Details for the file vidsrc-2018.8.15-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: vidsrc-2018.8.15-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for vidsrc-2018.8.15-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 14c9df111da7f31472e88d6659825530bdb23c505b783d28f7410921242e594b
MD5 a78dd440510d36a9de533c5c1fd7a861
BLAKE2b-256 64edf3c87562c8fc8b8bbccc52ea64769596ab7c59ec982f096759e19d22b6cb

See more details on using hashes here.

File details

Details for the file vidsrc-2018.8.15-cp37-cp37m-win32.whl.

File metadata

  • Download URL: vidsrc-2018.8.15-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for vidsrc-2018.8.15-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 125107474e7c8208701d5d220234bf43dd550e482715172b20dfc98cfe7aeb47
MD5 7d55819490fc2c4851cca57698edaaa2
BLAKE2b-256 b32742a37b707aada178f250f3e1d4eecac0685229f7a6b64f037e903e3df3fe

See more details on using hashes here.

File details

Details for the file vidsrc-2018.8.15-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: vidsrc-2018.8.15-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for vidsrc-2018.8.15-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 5dd1d9f29cc6be84075ffc4684d0679b6959ede86bdf51773b11a46ad632a563
MD5 c75956c709700f64525e4543c51e1c67
BLAKE2b-256 f1f717de32ac8408650d476f89825a390fdb33d3cca8a5933100b68ea5ae340d

See more details on using hashes here.

File details

Details for the file vidsrc-2018.8.15-cp36-cp36m-win32.whl.

File metadata

  • Download URL: vidsrc-2018.8.15-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for vidsrc-2018.8.15-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 25b1e9b3ca338649f6b4d59cb121256ad25185d72955a0964f9f6a9eed35b75d
MD5 7fa19de9e006b632e9ae3ed85e191e02
BLAKE2b-256 6dad25aa805be9148e999e1ce279f56d5f12e0770f8bb00c133cd2b327379af5

See more details on using hashes here.

File details

Details for the file vidsrc-2018.8.15-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: vidsrc-2018.8.15-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for vidsrc-2018.8.15-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 0ab82d3fca81d695d475b04f10f635bf588b170752b5007fe8239281db617c28
MD5 3b4005a84aa194cfe0c2827a34ef0551
BLAKE2b-256 2578b9487388494001b79c3100498df28dc5c262342e1ebf998ef68a4905adb0

See more details on using hashes here.

File details

Details for the file vidsrc-2018.8.15-cp35-cp35m-win32.whl.

File metadata

  • Download URL: vidsrc-2018.8.15-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for vidsrc-2018.8.15-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 b5cb84c2af20278e232067a4d5359ffd24e209422e16398fe81914e53df12582
MD5 1aa9dbc2434e91408a6fc3b762d6bd5f
BLAKE2b-256 57437994232fcfbe8963a648ae4e015872a6372542c6e9e045b7b566d097f256

See more details on using hashes here.

File details

Details for the file vidsrc-2018.8.15-cp34-cp34m-win_amd64.whl.

File metadata

  • Download URL: vidsrc-2018.8.15-cp34-cp34m-win_amd64.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: CPython 3.4m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for vidsrc-2018.8.15-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 e6c9e1091b35fd72cebecc143997aade804f7e0e4b58c334ddd7eed42ec52501
MD5 108c72ea0f0054d3dcce1eaa087ae28f
BLAKE2b-256 e9f2c66dfed5a9ead9e689a90c388a0a642bce97e8334942a4dea424842f2a4b

See more details on using hashes here.

File details

Details for the file vidsrc-2018.8.15-cp34-cp34m-win32.whl.

File metadata

  • Download URL: vidsrc-2018.8.15-cp34-cp34m-win32.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: CPython 3.4m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for vidsrc-2018.8.15-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 d325887f818d143be72497ec5ce30a9b395e5dc6bcd87bb6c398690615498c47
MD5 d51b8e54fedbdd4d83d00ce4710fb1d2
BLAKE2b-256 42dbfc70e4ecf2efe46bd53029249000648939d2031c269936efc269fbd568f8

See more details on using hashes here.

File details

Details for the file vidsrc-2018.8.15-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: vidsrc-2018.8.15-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for vidsrc-2018.8.15-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 3dce21ce1fc9835bebc7178822c201522df3d4f4384bfd5a5fdb167e6e0c6d4d
MD5 b3db484c24ff9ef25d2f5b77fd7d1024
BLAKE2b-256 82d40f65172bb9c8c9e814333e0e6d2434074e80821b811ac330071427105091

See more details on using hashes here.

File details

Details for the file vidsrc-2018.8.15-cp27-cp27m-win32.whl.

File metadata

  • Download URL: vidsrc-2018.8.15-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.6

File hashes

Hashes for vidsrc-2018.8.15-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 3dd2223019a91cedd55a2dc3a56e16354102bf0c3a83a24e240f471c1050bec4
MD5 5b8431b4eef13acea68cb65b741dd6f3
BLAKE2b-256 0e2959e28ced862f1589032d6007eaa2298ec01b8d4ee1250cc8c08abf1bf03d

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