Skip to main content

Harry's Toolbox is a collection of lightweight Python utilities. Each designed to simplify a basic task, such as calculating the framerate of a video feed.

Project description

Harry's Toolbox

Harry's Toolbox is a collection of lightweight Python utilities. Each designed to simplify a basic task, such as calculating the framerate of a video feed.

FPS Counter

The FPS Counter module is designed to simplify the process of monitoring the framerate of a video feed.

After creating an instance of the FPSCounter class, the module works by expanding "to string" function __str__ to measure the time since the __str__ function was last called, and uses this time difference to calculate the frame rate.

Example Usage

import time

from harrys_toolbox import FPSCounter

fps = FPSCounter()

while True:

    # Prints out the framerate of the video
    print(fps)

    # Delay to represent the processing time of each frame.
    time.sleep(0.01)

Terminal Output

FPS: 96.02

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 Distribution

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

harrys_toolbox-0.0.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file harrys_toolbox-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: harrys_toolbox-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for harrys_toolbox-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ed06d0b13961b4d54ff70c45bec5ca45c7f3f1a67d3985fcb631fc5e676ad83
MD5 2509dfadc53166971bad9ac6669c4473
BLAKE2b-256 457b933aec7c2d3f8870c73d9ef6194c72c053310be97f1f0f0305d34130ae79

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