Skip to main content

Contains 2 different video processing algorithims using OpenCV and numpy libraries for implementing said algo's

Project description

FlowDetect

FlowDetect is a program for your command line that looks at motion in video files. It tracks movement and finds moments with high action. This tool uses Python and provides a simple way to use it.

Description

This program offers two main ways to processs video.

Track Specific Points

This method finds and tracks specific strong points, such as corners, across video frames. It is very useful for making shaky videos smoother or keeping a moving subject in the center.

Detect High Action Moments

This method calculates the movement of every single pixel in the video frame. It requires more computer power but allows the system to find big energy changes, such as a crowd cheering or sudden fast movement.

Installation

You can install this software package using a Python installer like uv or pip.

Using uv:

uv tool install flowdetect

Using pip:

pip install flowdetect

Usage

After you install the software, you can run the program from your terminal using the flowdetect command.

To view the main help page and see available commands, run:

flowdetect --help

Track Specific Points

Use the track-sparse command to follow clear features in your video.

flowdetect track-sparse my_video.mp4

You can change the behavior of the tracking process by providing extra settings. If you do not provide these settings, the tool will use default values.

Checklist of available settings for tracking points:

  • --max-corners: Maximum number of corners to track (Default is 100).

  • --quality-level: Lowest accepted quality of image corners (Default is 0.3).

  • --min-distance: Minimum possible space between returned corners (Default is 7).

  • --block-size: Size of the block for calculating the values (Default is 7).

  • --win-size: Size of the search window (Default is 15).

  • --max-level: Maximum image scaling level (Default is 2).

Detect High Action Moments

Use the detect-dense command to scan the video for moments of high overall movement. The application will print a timestamp whenever the average motion goes above your set limit.

flowdetect detect-dense my_video.mp4

Checklist of available settings for overall motion detection:

  • --threshold or -t: The motion limit required to log a highlight. Lower numbers are more sensitive to movement (Default is 5.0).

Project details


Download files

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

Source Distribution

flowdetect-0.2.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

flowdetect-0.2.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file flowdetect-0.2.3.tar.gz.

File metadata

  • Download URL: flowdetect-0.2.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for flowdetect-0.2.3.tar.gz
Algorithm Hash digest
SHA256 af5ba4271e89f135d17cb0d605b3f628275cdbacb2a9afaf060cc67655215b86
MD5 6ed5963710707288c62804f668e6e8f4
BLAKE2b-256 d5c33bd12ce1700b66a09696e66e769cbd8a103ced55687ff50428a739215e89

See more details on using hashes here.

File details

Details for the file flowdetect-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: flowdetect-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for flowdetect-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6d9031a95c909b5f5110ab5344d7d6ef6088fb61ece34c8f36906acc1a9dffd2
MD5 05c233a4d0bb09dbb3bdb6d6ddd791c7
BLAKE2b-256 ad2350543dde1e074776200e1ee46234f8cd9b5c3225f6a96e1c1e3f77210bc4

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