Skip to main content

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

deepframe-0.1.1-cp313-cp313-manylinux2014_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.13

deepframe-0.1.1-cp313-cp313-manylinux2014_aarch64.whl (10.9 MB view details)

Uploaded CPython 3.13

deepframe-0.1.1-cp313-cp313-macosx_11_0_arm64.whl (10.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

deepframe-0.1.1-cp313-cp313-macosx_10_9_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.13macOS 10.9+ x86-64

deepframe-0.1.1-cp312-cp312-manylinux2014_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.12

deepframe-0.1.1-cp312-cp312-manylinux2014_aarch64.whl (10.9 MB view details)

Uploaded CPython 3.12

deepframe-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (10.5 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

deepframe-0.1.1-cp312-cp312-macosx_10_9_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

deepframe-0.1.1-cp311-cp311-manylinux2014_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.11

deepframe-0.1.1-cp311-cp311-manylinux2014_aarch64.whl (10.9 MB view details)

Uploaded CPython 3.11

deepframe-0.1.1-cp311-cp311-macosx_11_0_arm64.whl (10.5 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

deepframe-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

deepframe-0.1.1-cp310-cp310-manylinux2014_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.10

deepframe-0.1.1-cp310-cp310-manylinux2014_aarch64.whl (10.9 MB view details)

Uploaded CPython 3.10

deepframe-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (10.5 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

deepframe-0.1.1-cp310-cp310-macosx_10_9_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

deepframe-0.1.1-cp39-cp39-manylinux2014_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.9

deepframe-0.1.1-cp39-cp39-manylinux2014_aarch64.whl (10.9 MB view details)

Uploaded CPython 3.9

deepframe-0.1.1-cp39-cp39-macosx_11_0_arm64.whl (10.5 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

deepframe-0.1.1-cp39-cp39-macosx_10_9_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

File details

Details for the file deepframe-0.1.1-cp313-cp313-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp313-cp313-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9c5bcaadc4eb1bae2a12aca75ad465313d9f84e2ae47637250bc4032057b3e90
MD5 b568ef7ebfdad989e4e545a85fc80819
BLAKE2b-256 9cb28a0c8edd2af79445a08371aef4f47db6d39fc901ab6a4092cdb2093ab78b

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp313-cp313-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp313-cp313-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 87654204d6180e2d497574674b3bf1e9187af03c9ec5b75bdbf7db16506059c1
MD5 1d11214e4091315d2a5f1712ad9a24c1
BLAKE2b-256 97316c66cb1743943f8c8d570a96e5ae3caec3f8edd97056d0a1b3275798c42f

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e60d80c7f1e252de5eb4817e05260a9a3db096cab4d26eb421c5bb9bea8c57a1
MD5 1ab925c3e55a1330347d9f4ffedd1007
BLAKE2b-256 0dec382d00f12db0aa5683b88035d79497b4ef9de36a044459d31767938976cd

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp313-cp313-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp313-cp313-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7eb84addc1ad71fb1025a40cb5f38094b62859c66d0041864304cae326c42ecb
MD5 49b6dd77b529d45bc15930be9897e167
BLAKE2b-256 300d4eecc5a93c572e3fff0bf9c880a011ec94a75189f5d7dafb71ead055af64

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp312-cp312-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp312-cp312-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5b6d332399d5a1049d00b0872bba87abbede21127b3bab585f49829f38fd28b3
MD5 da7ec653b9b4725745104ab5ea309853
BLAKE2b-256 a2b109785d4e1c76b6015333ffa624d6bf180776d48a8c54c66a9c6b2bdc0614

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp312-cp312-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp312-cp312-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d7880cc83d27c4c98d3221c4eba7d7962651d960fa89d522b6e947dc7620bab8
MD5 c705effb4f6e10920c1b89379245d8a3
BLAKE2b-256 57ee5b75a16ffc13f5904f4d985ec639daeb88618253303a68e079afa904dfbf

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b794191d6884b37cb469e3c3d03d11bf9546057572011b737e8745e864e9d766
MD5 676a75a9fc29b83ab4e9ef20db7a1875
BLAKE2b-256 65335467ed4fc8cb42182a5539c61c2e05d71c89d4b283856bcc2452d15118cf

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 42768420757cfd3d1bf3740fda602ebc8b3d6c00dcf2fd0fff64c18f3d764877
MD5 70387504aaae9e1eb7667f56aec89a2f
BLAKE2b-256 7aa3b1d11af165123420c4ffd2d5c7cc75760025273e3c2a340b7a3697fca7e8

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp311-cp311-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp311-cp311-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1ba7791242a93fcdb97d814cc91029f03abdfa008abdb3dc11051e1c8d827911
MD5 525e67583c9d2dab0bcfe9025054008f
BLAKE2b-256 8dc92059ed3e506682f07246275bfe0fa5cc8ad4262e495029e04ef3c4594cd5

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp311-cp311-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp311-cp311-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e3d93032c2c0e17426ee7dce6944b6d62cdebb93a4a0dbdc1caf4cc669309c63
MD5 c0eebea116d0e8b72373c9de76fed872
BLAKE2b-256 96df62db026a3da1fbf6952f734d22b040e8146c30851c32cd5e9c3d71b1de86

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2fbbea0c5b01b794f5dbcaf69d5f66eefe6f64d0fa26d0011f3f6f360cf0248
MD5 b02b30e9db3b07907c9f411243c9472f
BLAKE2b-256 73b9a4984c5223d072248c297a4544eab47320a5357e901283f3c42f36cf71f5

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9595167af89d303236b67a4b9b522bfa2c437b48611fee72d35ae3b774439420
MD5 135aaba7062ab3a7bbc3175afdb66b2d
BLAKE2b-256 eb1045b60a5640f97de665172a2f86aaa3553ea56569db3187790b4d3e9207da

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp310-cp310-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp310-cp310-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce105b854b73dba68680b3ed36e10e9d0a87f5d800363f06fc6471942ea006fc
MD5 6778f479d3587bfb797c12e302622b26
BLAKE2b-256 09fe52f7b86f373c13d211ce68387e48f578212a85046f13a8329148915172a7

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp310-cp310-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp310-cp310-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 27c3251a30ff507151262db910a27b45f55a69eb9c25fbda877ff0111ca8572c
MD5 d93e21e0f9e82395e71f27fbffd67551
BLAKE2b-256 9c801bf7ce1c71e84d7b86e53abd6030e79d8a899677805b6690dcceaadb2a83

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d5a77cdcc260369f1fff50578608283513b75631782fd4547ba35f0c23137f4
MD5 242b1435c7391a6c74537d639f8d745c
BLAKE2b-256 d0dc3d837aa1263bc1909c94d3d834255aca65619554a7077dd95fcc226ab9df

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 03513f374672571436f7ba238f061c221ad59ed2bc9f235da7f1fcab9b88094b
MD5 5cc3b31fd02ab78a29b1ed7c90773375
BLAKE2b-256 9bba624698b5230e215d79debd84aa8758bc9af2fafdfa289d035486498fbb78

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp39-cp39-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp39-cp39-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ea81747993c0d1d1b32b91b150585ae3d8ef3485a703ea14a87eaff10fbf3c28
MD5 0b6ba774b50380b63eb5eae770a85b44
BLAKE2b-256 9b7a3eecb9e36a0bbf6c5f7b9e72305861eb25e819c98dffd26b638598ac515f

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp39-cp39-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp39-cp39-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 303a114095b3046eea6a50bbec7ef07732699a45362afc39acada148fb68cee5
MD5 daf960043b0aa57ce1f8deee25ea16f1
BLAKE2b-256 f8ccd243f9dd07afc3aecf9f54dd8020f8e9526dbd3b8ee1b23eb985b75272ce

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 075073a47fccebb07d0dcd4e55719c92efb86b104caa5d274f1dc24a50bc649f
MD5 32fd82d7892223fb34b292c097dd33e4
BLAKE2b-256 4044913043fcc09ad0e268f0b2d02c93719f754a4fc1a4a7ffa06918e2fbaa0c

See more details on using hashes here.

File details

Details for the file deepframe-0.1.1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for deepframe-0.1.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 57fea98e2fc5c46c37793e07a43b411b30e16a4e8b3736f0e97f303a354ba934
MD5 fa53a0bd80a18008d3d6342cc4b1bb6d
BLAKE2b-256 11b5e0386165656fda52a18ce709401c116c3737ea7dab2c414eaa41701d36f8

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