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.
Metadata
Release files for deepframe 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 228.0 MB
Release files / deepframe-0.1.3-cp315-cp315-manylinux2014_x86_64.whl
| Download URL | deepframe-0.1.3-cp315-cp315-manylinux2014_x86_64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | CPython 3.15 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
dab584fb7aaa266f44bafc86951b96b1faa27c6eeed330d138b19a55658e2915
|
|
BLAKE2b-256 checksum How to use checksums |
e16249878863006f54af9de46c18a76eefac0628c63dcfe6d0f26326b9f07e17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp315-cp315-manylinux2014_aarch64.whl
| Download URL | deepframe-0.1.3-cp315-cp315-manylinux2014_aarch64.whl |
|---|---|
| Size | 11.2 MB |
| Tags | CPython 3.15 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
8a7527da0965d4820d8e39ea2a9a6f292fc1182c9e96f3ae7594ead6d5c096e5
|
|
BLAKE2b-256 checksum How to use checksums |
6de722bdc3eb0e3d58cd8d225bed2021c7ed5124c58ab06922e2a62e451c5756
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp315-cp315-macosx_11_0_arm64.whl
| Download URL | deepframe-0.1.3-cp315-cp315-macosx_11_0_arm64.whl |
|---|---|
| Size | 10.4 MB |
| Tags | CPython 3.15 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a3686552748f6d755bf0893b79051761c0084bd954f7d765e84d8f604c4ca5c9
|
|
BLAKE2b-256 checksum How to use checksums |
be0a94faf647eca4ef5e957994dbdf3756cf6015be2d046b4f611bc2939631f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp314-cp314-manylinux2014_x86_64.whl
| Download URL | deepframe-0.1.3-cp314-cp314-manylinux2014_x86_64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
4c6220cb524b449795c464d6484ec257c311ed58030e46cf81d28315e65abaf1
|
|
BLAKE2b-256 checksum How to use checksums |
f7ea2da34d83dcb31d1d620120dded038d71e83edb672c19acc0c13ac4443bc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp314-cp314-manylinux2014_aarch64.whl
| Download URL | deepframe-0.1.3-cp314-cp314-manylinux2014_aarch64.whl |
|---|---|
| Size | 11.2 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
c26d2488463caf1904c6ec3e05ff1ac6470e6a678d103ef3c5c0087b15c760ab
|
|
BLAKE2b-256 checksum How to use checksums |
f4b46a1f1c55a865011bd8934f332fd40847cdd6e49b02efe5cc05ab3abef37a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | deepframe-0.1.3-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 10.4 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
0fc9321203e09265c601b6b4617cdb0c2600d5b5f89507164fbdd223a79c94e1
|
|
BLAKE2b-256 checksum How to use checksums |
569ab7b783e8e933a0490cbdf8a486c36990fb50df44bfa82e971162ec9ec5d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp313-cp313-manylinux2014_x86_64.whl
| Download URL | deepframe-0.1.3-cp313-cp313-manylinux2014_x86_64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
4fa47696ca6de2a34e1e8db1233e270bfc099d3a0882c0991a4759b673139d82
|
|
BLAKE2b-256 checksum How to use checksums |
50bb153ea25dd4c2c9f9e00a9484f986d7b35f6cfb7cd0d751a498433b8829b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp313-cp313-manylinux2014_aarch64.whl
| Download URL | deepframe-0.1.3-cp313-cp313-manylinux2014_aarch64.whl |
|---|---|
| Size | 11.2 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
c4715e7fbbb797d895a80615926b54386a19b3da3ab6e0cfc6cb1b2a6c3c5e14
|
|
BLAKE2b-256 checksum How to use checksums |
aeef36f8dcc8862b88db78925716cd9258dfb6fd39a306e24cb7d3539316d551
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | deepframe-0.1.3-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 10.4 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8989ac49dd47b2be1814b8d5f5bdb9a75205abf6278949b82d1ee35750f54b04
|
|
BLAKE2b-256 checksum How to use checksums |
1858ba0de7b20c581695ce7f06dc421a6019197d8039b353ddf95da2ea380a31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp312-cp312-manylinux2014_x86_64.whl
| Download URL | deepframe-0.1.3-cp312-cp312-manylinux2014_x86_64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
13ac5d977818a9ae6b2b3cec1b76242badeb2046e745bf8fa92986359babec27
|
|
BLAKE2b-256 checksum How to use checksums |
b700119300facd213e38e19550d72c454826d221451d772ebcbbc7bc16f65daf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp312-cp312-manylinux2014_aarch64.whl
| Download URL | deepframe-0.1.3-cp312-cp312-manylinux2014_aarch64.whl |
|---|---|
| Size | 11.2 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
7221f0fc642d6a81fce904c6892c31d8cd3486caaf2ecc3396285007cd8528cc
|
|
BLAKE2b-256 checksum How to use checksums |
9acbd904b8d06adf5e9b5ded5394db47e3f91a2dc15c93d69e5c66fabe4154b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | deepframe-0.1.3-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 10.4 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
6db2af161e1989dc48f3c062f9bef1bb34ebf1253da5dd5e5df60acd6fc567e4
|
|
BLAKE2b-256 checksum How to use checksums |
954cbdc26541eb032fc1096ddc238a6ddec2fb3c92ea6ef70ab2eed86e17fa61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp311-cp311-manylinux2014_x86_64.whl
| Download URL | deepframe-0.1.3-cp311-cp311-manylinux2014_x86_64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
41d2927e2f27d1b77d22589433acad3f144014e8918022fb13d1453818897e1b
|
|
BLAKE2b-256 checksum How to use checksums |
322d458902dd15728f1db5788b78c3308d8b083cacdbaa02b0c10230da69526a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp311-cp311-manylinux2014_aarch64.whl
| Download URL | deepframe-0.1.3-cp311-cp311-manylinux2014_aarch64.whl |
|---|---|
| Size | 11.2 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
808c4bf58dc861868d7af94a97757d4a0955738e6d2d82ff70af65a0d53862de
|
|
BLAKE2b-256 checksum How to use checksums |
b6256c06143ad96fc5e058d5001ee62302f5296a8791fa6f5d7a1c628493505e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | deepframe-0.1.3-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 10.4 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3edcec83fe414294ce4a46417f87b2eb543f122cd6533a9f7722527b83f1db5c
|
|
BLAKE2b-256 checksum How to use checksums |
6dc1472aed066595947b5fdcd480f189b1a92c7e6c3293385ef7805e9a7c80dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp310-cp310-manylinux2014_x86_64.whl
| Download URL | deepframe-0.1.3-cp310-cp310-manylinux2014_x86_64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
4f5346647ddcb4c0a718c391ace64729d7e20c4452fa632667cefefe76be7fad
|
|
BLAKE2b-256 checksum How to use checksums |
0af140afaca89af0a11f3e6fb194088f04e018a06752d3a95ecd9f36da27e516
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp310-cp310-manylinux2014_aarch64.whl
| Download URL | deepframe-0.1.3-cp310-cp310-manylinux2014_aarch64.whl |
|---|---|
| Size | 11.2 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
e9996755b20b8ffecb554c7615af46083f226d6912da821cf446998ee8e545b9
|
|
BLAKE2b-256 checksum How to use checksums |
e32cb3dd105f7e31f03ffd4e9fb5529c8a7da4867de4c1d89c05091f8dc57bca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | deepframe-0.1.3-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 10.4 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4af4ea34db8ed1c43494a02e6db65e01521bb870cbac71e55c07dbf19f326ff0
|
|
BLAKE2b-256 checksum How to use checksums |
2ce2cb81332cb8d2f38a96e5126e77a71c276202deb83811cc4855c97b33e700
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp39-cp39-manylinux2014_x86_64.whl
| Download URL | deepframe-0.1.3-cp39-cp39-manylinux2014_x86_64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
a2e7a1ccc053fac419e3669202474f5134a7a9739bf18ac20ff3b9e4f8c609bb
|
|
BLAKE2b-256 checksum How to use checksums |
5bc1ec7171517671c1ec74b61a09b6e191f665fdf285e0ef96fde238e2ababc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp39-cp39-manylinux2014_aarch64.whl
| Download URL | deepframe-0.1.3-cp39-cp39-manylinux2014_aarch64.whl |
|---|---|
| Size | 11.2 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ ARM64 |
|
SHA-256 checksum How to use checksums |
c8301ff04faa3e46964ba32ce90d1ec98b6166358c6d823140fde1435be5fc51
|
|
BLAKE2b-256 checksum How to use checksums |
541b6b0e7f30f8b2361853e846711710af03ab78357b2b56713d1b5ef996f5cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / deepframe-0.1.3-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | deepframe-0.1.3-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 10.4 MB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
15a0ca1592641c4563cd51b46c149dde48f527a0b4091d33202526249a73534e
|
|
BLAKE2b-256 checksum How to use checksums |
29277cfd70df787125437a1126e19ccbcbb081811246acc90e849384752c8854
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for deepframe 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.