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:
2020.1.1
Requirements
Microsoft Visual Studio (build)
DirectX 9.0c SDK (build)
DirectShow BaseClasses include files (build)
DirectShow STRMBASE.lib (build)
Revisions
- 2020.1.1
Remove support for Python 2.7 and 3.5. Update copyright.
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
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
vidsrc-2020.1.1.tar.gz
(146.5 kB
view hashes)
Built Distributions
Close
Hashes for vidsrc-2020.1.1-pp37-pypy37_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba44017d91afd2eca9cb5fc88055093a6b2a00bcfcba169eb4f6a8cba02ba1ff |
|
MD5 | 1f37dc3a21c7852888be0d7ef363ddba |
|
BLAKE2b-256 | 93c087d0029b220310b600448f398b40affb54e30940eb0bff3c86b57521594d |
Close
Hashes for vidsrc-2020.1.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d93ed961cc292b883c473bc1632262ebf3f9ad6d4ab61602dd0eab01cdf35422 |
|
MD5 | f8582aec43a544e0fbad920c43e333f0 |
|
BLAKE2b-256 | 93d661dc0e2edc5eed964eae0521bdbe4d366d0aa307aa73aad840b2ea8152ca |
Close
Hashes for vidsrc-2020.1.1-cp38-cp38-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db38e28e334aa9bb282304d0cfdccf1d66d2eda13f8c5f80e0debf487dc15a64 |
|
MD5 | 4aea63314d4fc65ed8b6f485b1769c11 |
|
BLAKE2b-256 | 7246b55647efaad93b75061989236c62a43de8b6c9b4722dc65ce60d0d567aae |
Close
Hashes for vidsrc-2020.1.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 762a64ec234c1eac16023c7b02d34ed83ef665014f2f2c7babe40f91db71e570 |
|
MD5 | 358a977a2443332fc1fc3bd757a5a948 |
|
BLAKE2b-256 | 2e29c9af7806041fb4abf004d795bff072d77a4d2b2bde825d50fc4ee13da952 |
Close
Hashes for vidsrc-2020.1.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00d18da0f3f4f89d6bc3feee12cdec164de673eef2eda45bd3ad01c14f90ad68 |
|
MD5 | 2cb4603f0daea92db8960117b5d8f4df |
|
BLAKE2b-256 | e82ad0e5190fb5fc5952bb2fcf27626ca394f0c2789c0d762673abf057198cdc |
Close
Hashes for vidsrc-2020.1.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e96f830de62a995ea0d270655a421798c7a3fa1f203210921038482bb34e0e62 |
|
MD5 | 5f1feafb0041065db10576460a8fb6aa |
|
BLAKE2b-256 | cea8393acafb014b7a7169e778a7cc3b35d1269288740c1fb3d99ccd1c8da371 |
Close
Hashes for vidsrc-2020.1.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c70afb502a2b0673c2aefd5753fe74ccd23225bff375723c446be9ddcfa0df1 |
|
MD5 | b65a0b50a739c5e3cca003451a940698 |
|
BLAKE2b-256 | db1a78f0fe13983ebdb4a0363a3b73dd26fa8a24cb93cfbcf84acebd651bf539 |