No project description provided
Project description
DeepFrame
Python module to extract frames from a video file.
Installation
pip install deepframe
API
Package provides a simple API to get video frames from a video file. The frames are returned as buffer view objects which can be converted to numpy arrays.
import deepframe
import numpy as np
# Extract whole video as a buffer view
buffer_view = deepframe.extract_frames('path/to/video.mp4')
frames = np.asarray(buffer_view)
import deepframe
import numpy as np
# Extract first 100 frames from a video file
buffer_view = deepframe.extract_frames('path/to/video.mp4', slice(0, 100))
frames = np.asarray(buffer_view)
import deepframe
import numpy as np
# Extract each 10th frame from a video file
buffer_view = deepframe.extract_frames('path/to/video.mp4', slice(0, None, 10))
frames = np.asarray(buffer_view)
C++ Build
Requirements
- vcpkg
You also need to install python requirements.
pip install -r requirements-dev.txt
VCPkg Setup
VCPkg is installed via a git repository which a VCPKG_ROOT environment variable points to. The VCPKG_ROOT can be whatever location on your machine you want.
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
export VCPKG_ROOT=`pwd`
./bootstrap-vcpkg.sh
echo "export VCPKG_ROOT=$VCPKG_ROOT" >> ~/.zshrc # or path to your shell config file
echo "export PATH=$PATH:$VCPKG_ROOT" >> ~/.zshrc # or path to your shell config file
Build
Debug and Release modes are supported. From project root run:
python scripts/build.py debug
python scripts/build.py release
After the build you can find the python package in ./build/{mode} or the latest one is always available in ./deepframe/ which is used to run the tests.
Test
For testing we use pytest. To run all tests simply call from project root.
pytest
Build wheel
From project root call
python -m build
Once the run finishes you will find the files under ./dist/ directory.
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 Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepframe-0.1.2-cp313-cp313-manylinux2014_x86_64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp313-cp313-manylinux2014_x86_64.whl
- Upload date:
- Size: 10.9 MB
- Tags: CPython 3.13
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08d36d47cf1bb96a3ecbb072f8afef745bb20abc719bea6659f8df5d2ae7a00c
|
|
| MD5 |
d1eb41aea1980997ec9b503713eef23d
|
|
| BLAKE2b-256 |
1bebbd74d05a5743c6222c57627ac4bc45f75cc32eebab942e1157492131cefe
|
File details
Details for the file deepframe-0.1.2-cp313-cp313-manylinux2014_aarch64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp313-cp313-manylinux2014_aarch64.whl
- Upload date:
- Size: 11.2 MB
- Tags: CPython 3.13
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f62e1668cd69aa936a9a1e6e98e7805de40fcc142b4754ba2766236d8e34b538
|
|
| MD5 |
a00357cf51637a66ba17fc6e6337ff41
|
|
| BLAKE2b-256 |
757d3a4fd9ad000dfaac9ccbb8eff27f4b69d2fcc960cf3696faf0d7899c21b7
|
File details
Details for the file deepframe-0.1.2-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 10.4 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23c302f2c6994432c34895ff3d59328e87e711b9da76df6514ef57588d9ccdb7
|
|
| MD5 |
a028bd5eb4d8c134fd64c67116d18b65
|
|
| BLAKE2b-256 |
82b5332d9506bb32aa7436e3680cf49ed9aedb6b92a389b0e9231d70f0bf23f6
|
File details
Details for the file deepframe-0.1.2-cp312-cp312-manylinux2014_x86_64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp312-cp312-manylinux2014_x86_64.whl
- Upload date:
- Size: 10.9 MB
- Tags: CPython 3.12
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d913321bc174bc49eacc63ef2aaa7cef5cc3a0cbedc73ee63bda00080396c96
|
|
| MD5 |
0de09f107b371c6de0397ce98ce80dfc
|
|
| BLAKE2b-256 |
b21832d1b0defd8417a0232189218966b002656d06fed91c4c6e9d0c01d50b80
|
File details
Details for the file deepframe-0.1.2-cp312-cp312-manylinux2014_aarch64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp312-cp312-manylinux2014_aarch64.whl
- Upload date:
- Size: 11.2 MB
- Tags: CPython 3.12
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad694bdb45fc1a62d54dc03f8666790c8aed02b10576ee0c9ae480ffaeb2ad9e
|
|
| MD5 |
b37a1e4d28189abb14424f96530c910f
|
|
| BLAKE2b-256 |
f81b7d2dde434ef04f142596632cd89e4fe709489cfcc9770297bbbc0416f3e3
|
File details
Details for the file deepframe-0.1.2-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 10.4 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
650011ea62f6360537c6806ed42f0223f42b1cdf70ee0c3f9b509042ddb7cd92
|
|
| MD5 |
39491d89fe2048b1908219a5d6f66631
|
|
| BLAKE2b-256 |
3d6d3bbefa8897ff56091a19aad3fb39068ca83d8d827baf1ca54c09eb7c9db6
|
File details
Details for the file deepframe-0.1.2-cp311-cp311-manylinux2014_x86_64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp311-cp311-manylinux2014_x86_64.whl
- Upload date:
- Size: 10.9 MB
- Tags: CPython 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3d705ddb0340aeb3bd6c8b9d6d8efaf0a2e272c1a18f6943e36dd9fd9574049
|
|
| MD5 |
e5e37f506ac54310cff43c7d034f864a
|
|
| BLAKE2b-256 |
792732896e1f1cf0f99ad16b40ed0bbe7b0049cb4858c9cb0bfc5b48148ad56c
|
File details
Details for the file deepframe-0.1.2-cp311-cp311-manylinux2014_aarch64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp311-cp311-manylinux2014_aarch64.whl
- Upload date:
- Size: 11.2 MB
- Tags: CPython 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c8f9b7be7f71000765c2801fcf71b2a1584ce0484c61d23aef68020fffa404d
|
|
| MD5 |
73d3f62d83e3f91857cd2df5bb4e098b
|
|
| BLAKE2b-256 |
d7e9fe1bb90a478ec5794f6ae0621efee82a46f91640d17fa9bc99290944e4b3
|
File details
Details for the file deepframe-0.1.2-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 10.4 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80f2b75aeaeb2492c18bc0f44ee525f7bb5947fb89ffaeaec7825fba3ee0c9c1
|
|
| MD5 |
8895645093086555a1bdc0d4da0ac30a
|
|
| BLAKE2b-256 |
1e592cf18741ec40099efaa15bed3edbebe0bd82dde8998580728e74ec2738d5
|
File details
Details for the file deepframe-0.1.2-cp310-cp310-manylinux2014_x86_64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp310-cp310-manylinux2014_x86_64.whl
- Upload date:
- Size: 10.9 MB
- Tags: CPython 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d49437e25d81e98c5c36f45bb643d73e8625dab6a2333b61940e9eee06722fd
|
|
| MD5 |
c2aa9f8c30fac322f41083208fcaffd7
|
|
| BLAKE2b-256 |
a83eacf06b7a6de145762b64ea65b42e40bac279d71f9a85f74d5d0acbf82e00
|
File details
Details for the file deepframe-0.1.2-cp310-cp310-manylinux2014_aarch64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp310-cp310-manylinux2014_aarch64.whl
- Upload date:
- Size: 11.2 MB
- Tags: CPython 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f3056941a40aadea098b9f8b62ca2158903e889a600b8ce882e456fabc95995
|
|
| MD5 |
362e9fc1560393f7ee6a24107ee02876
|
|
| BLAKE2b-256 |
6c5ff6f46fc13c90c7f4c85f7656d5c9aad5a1743d5fdabc2d5ec773159ceee8
|
File details
Details for the file deepframe-0.1.2-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 10.4 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
268cd75eb990c6485a36cadf9d1465e14011e765523e3135d5b9ccc4128d714d
|
|
| MD5 |
3827085213ff5fccd6a0ce7667b877ae
|
|
| BLAKE2b-256 |
f11487b26b6522bc724ee49fd34052e89e6ac266d9d5b319fbdc8e110675ddb4
|
File details
Details for the file deepframe-0.1.2-cp39-cp39-manylinux2014_x86_64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp39-cp39-manylinux2014_x86_64.whl
- Upload date:
- Size: 10.9 MB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
100fdf9c3845d40cc012b0c11f243eb66b6b60f53ff20acbbc275403b6073805
|
|
| MD5 |
22bde992cfcd3da1b579dc01aa090d1a
|
|
| BLAKE2b-256 |
f85ee45faeaca846599461a610e1276eaf4ac4ab2b2f6855820c9d87587b0c22
|
File details
Details for the file deepframe-0.1.2-cp39-cp39-manylinux2014_aarch64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp39-cp39-manylinux2014_aarch64.whl
- Upload date:
- Size: 11.2 MB
- Tags: CPython 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
767489f23256abc4e8715cfe4b77161438cab410e9eb6bd9031ccd49b65cd99a
|
|
| MD5 |
0fb495b13c3b8c116dd589cbe2bca41d
|
|
| BLAKE2b-256 |
1c81a15f56e2d14479ae8a305ea4b93c1f8ad0e331eec0ac5f3711dc35be026a
|
File details
Details for the file deepframe-0.1.2-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: deepframe-0.1.2-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 10.4 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e131585a5f718bf8908278d5387849480d86bea99bc2cc491c4555bb4b1250c
|
|
| MD5 |
f9da1ba0b4c45cb53abb9f707f1575b3
|
|
| BLAKE2b-256 |
930aaf5a6fb84014b69ff5dd028ac29e3d66a00414fb65842d1b2701ccab2f5c
|