Skip to main content

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

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for deepframe 0.1.2
File
deepframe-0.1.2-cp313-cp313-manylinux2014_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details
deepframe-0.1.2-cp313-cp313-manylinux2014_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ ARM64 Details
deepframe-0.1.2-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
deepframe-0.1.2-cp312-cp312-manylinux2014_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details
deepframe-0.1.2-cp312-cp312-manylinux2014_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details
deepframe-0.1.2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
deepframe-0.1.2-cp311-cp311-manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
deepframe-0.1.2-cp311-cp311-manylinux2014_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details
deepframe-0.1.2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
deepframe-0.1.2-cp310-cp310-manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
deepframe-0.1.2-cp310-cp310-manylinux2014_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details
deepframe-0.1.2-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details
deepframe-0.1.2-cp39-cp39-manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
deepframe-0.1.2-cp39-cp39-manylinux2014_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details
deepframe-0.1.2-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details

Total release size: 162.8 MB

Release files / deepframe-0.1.2-cp313-cp313-manylinux2014_x86_64.whl

Download URL deepframe-0.1.2-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
08d36d47cf1bb96a3ecbb072f8afef745bb20abc719bea6659f8df5d2ae7a00c
BLAKE2b-256 checksum
How to use checksums
1bebbd74d05a5743c6222c57627ac4bc45f75cc32eebab942e1157492131cefe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp313-cp313-manylinux2014_aarch64.whl

Download URL deepframe-0.1.2-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
f62e1668cd69aa936a9a1e6e98e7805de40fcc142b4754ba2766236d8e34b538
BLAKE2b-256 checksum
How to use checksums
757d3a4fd9ad000dfaac9ccbb8eff27f4b69d2fcc960cf3696faf0d7899c21b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp313-cp313-macosx_11_0_arm64.whl

Download URL deepframe-0.1.2-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
23c302f2c6994432c34895ff3d59328e87e711b9da76df6514ef57588d9ccdb7
BLAKE2b-256 checksum
How to use checksums
82b5332d9506bb32aa7436e3680cf49ed9aedb6b92a389b0e9231d70f0bf23f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp312-cp312-manylinux2014_x86_64.whl

Download URL deepframe-0.1.2-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
0d913321bc174bc49eacc63ef2aaa7cef5cc3a0cbedc73ee63bda00080396c96
BLAKE2b-256 checksum
How to use checksums
b21832d1b0defd8417a0232189218966b002656d06fed91c4c6e9d0c01d50b80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp312-cp312-manylinux2014_aarch64.whl

Download URL deepframe-0.1.2-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
ad694bdb45fc1a62d54dc03f8666790c8aed02b10576ee0c9ae480ffaeb2ad9e
BLAKE2b-256 checksum
How to use checksums
f81b7d2dde434ef04f142596632cd89e4fe709489cfcc9770297bbbc0416f3e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp312-cp312-macosx_11_0_arm64.whl

Download URL deepframe-0.1.2-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
650011ea62f6360537c6806ed42f0223f42b1cdf70ee0c3f9b509042ddb7cd92
BLAKE2b-256 checksum
How to use checksums
3d6d3bbefa8897ff56091a19aad3fb39068ca83d8d827baf1ca54c09eb7c9db6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp311-cp311-manylinux2014_x86_64.whl

Download URL deepframe-0.1.2-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
d3d705ddb0340aeb3bd6c8b9d6d8efaf0a2e272c1a18f6943e36dd9fd9574049
BLAKE2b-256 checksum
How to use checksums
792732896e1f1cf0f99ad16b40ed0bbe7b0049cb4858c9cb0bfc5b48148ad56c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp311-cp311-manylinux2014_aarch64.whl

Download URL deepframe-0.1.2-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
0c8f9b7be7f71000765c2801fcf71b2a1584ce0484c61d23aef68020fffa404d
BLAKE2b-256 checksum
How to use checksums
d7e9fe1bb90a478ec5794f6ae0621efee82a46f91640d17fa9bc99290944e4b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp311-cp311-macosx_11_0_arm64.whl

Download URL deepframe-0.1.2-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
80f2b75aeaeb2492c18bc0f44ee525f7bb5947fb89ffaeaec7825fba3ee0c9c1
BLAKE2b-256 checksum
How to use checksums
1e592cf18741ec40099efaa15bed3edbebe0bd82dde8998580728e74ec2738d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp310-cp310-manylinux2014_x86_64.whl

Download URL deepframe-0.1.2-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
0d49437e25d81e98c5c36f45bb643d73e8625dab6a2333b61940e9eee06722fd
BLAKE2b-256 checksum
How to use checksums
a83eacf06b7a6de145762b64ea65b42e40bac279d71f9a85f74d5d0acbf82e00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp310-cp310-manylinux2014_aarch64.whl

Download URL deepframe-0.1.2-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
6f3056941a40aadea098b9f8b62ca2158903e889a600b8ce882e456fabc95995
BLAKE2b-256 checksum
How to use checksums
6c5ff6f46fc13c90c7f4c85f7656d5c9aad5a1743d5fdabc2d5ec773159ceee8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp310-cp310-macosx_11_0_arm64.whl

Download URL deepframe-0.1.2-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
268cd75eb990c6485a36cadf9d1465e14011e765523e3135d5b9ccc4128d714d
BLAKE2b-256 checksum
How to use checksums
f11487b26b6522bc724ee49fd34052e89e6ac266d9d5b319fbdc8e110675ddb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp39-cp39-manylinux2014_x86_64.whl

Download URL deepframe-0.1.2-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
100fdf9c3845d40cc012b0c11f243eb66b6b60f53ff20acbbc275403b6073805
BLAKE2b-256 checksum
How to use checksums
f85ee45faeaca846599461a610e1276eaf4ac4ab2b2f6855820c9d87587b0c22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp39-cp39-manylinux2014_aarch64.whl

Download URL deepframe-0.1.2-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
767489f23256abc4e8715cfe4b77161438cab410e9eb6bd9031ccd49b65cd99a
BLAKE2b-256 checksum
How to use checksums
1c81a15f56e2d14479ae8a305ea4b93c1f8ad0e331eec0ac5f3711dc35be026a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release files / deepframe-0.1.2-cp39-cp39-macosx_11_0_arm64.whl

Download URL deepframe-0.1.2-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
7e131585a5f718bf8908278d5387849480d86bea99bc2cc491c4555bb4b1250c
BLAKE2b-256 checksum
How to use checksums
930aaf5a6fb84014b69ff5dd028ac29e3d66a00414fb65842d1b2701ccab2f5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.1.2 This release

15 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page