Skip to main content

A library for creating side-by-side video and data visualizations.

Project description

VideoDataAnimation

VideoDataAnimation is a Python library designed for creating synchronized visualizations of video data and corresponding time-series data. It allows users to visualize changes in data alongside video frames, making it ideal for applications in research, data analysis, and educational purposes where visual context is crucial.

Features

  • Synchronized Visualization: Seamlessly integrate video playback with real-time data plots, ensuring synchronized visualizations that enhance understanding and analysis.
  • Interactive Plotting: Utilize interactive plotting features to zoom, pan, or hover over data points for detailed inspection, providing a deeper analysis of the data alongside video content.
  • Flexible Data Integration: Easily integrate various data sources by supporting multiple data formats, including CSV, Excel, and direct data frames, facilitating hassle-free data visualization.
  • Region of Interest Cropping: Focus on specific areas within your videos by defining regions of interest, allowing for detailed analysis of targeted video segments.
  • Customizable Visual Styles: Personalize your visualizations with customizable plot styles, including color schemes, line styles, and marker options, to match your presentation or branding requirements.
  • Dynamic Windowing: Adjust the data viewing window dynamically, either by specifying a fixed number of data points or by setting a time window, to focus on specific segments of your data over time.
  • Annotation and Labeling: Enhance your visualizations with annotations and labels, providing context and insights directly on your plots and video frames, making complex data more accessible.
  • Multiple Export Formats: Export your synchronized video and data visualizations to a variety of formats such as MP4, AVI, GIF, or even as interactive HTML files, ensuring compatibility across different platforms and devices.
  • Batch Processing Support: Automate the processing of multiple video and data pairs with batch processing capabilities, saving time and ensuring consistency across large datasets.
  • Extensive Documentation and Examples: Get up and running quickly with comprehensive documentation, including detailed setup instructions, usage examples, and troubleshooting tips.
  • Community and Support: Join an active community of users and contributors for support, to share ideas, and to collaborate on new features, making VideoDataAnimation not just a tool but a growing ecosystem.

Installation

To install VideoDataAnimation, simply use pip:

pip install VideoDataAnimation

Quick Start

from VideoDataAnimation import VideoDataAnimation

Initialize the VideoDataAnimation with your video and CSV file paths··

vda = VideoDataAnimation(
csv_path='./comp_APP.csv',
video_path='./comp_APP.avi',
labels=['$m_{x}$', '$m_{y}$', '$m_{z}$'],
crop_region=(145, 300, 1000, 400),
window_size=None)

Load the data, set up video capture, and prepare the plot

vda.load_data()
vda.setup_video_capture()
vda.setup_plot()

Save the animation to an MP4 file, adjusting the playback speed with the slow_factor··

vda.save_animation('mp4', slow_factor=2)

Release resources after saving the animation··

vda.release_resources()

For questions or support, please contact m.bendra22@gmail.com

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

VideoDataAnimation-0.3.2.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

VideoDataAnimation-0.3.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file VideoDataAnimation-0.3.2.tar.gz.

File metadata

  • Download URL: VideoDataAnimation-0.3.2.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.2

File hashes

Hashes for VideoDataAnimation-0.3.2.tar.gz
Algorithm Hash digest
SHA256 09d427cf7703edc9e38b110135791e06df4c15a2b5803fc1e12fd40be7d7d0e1
MD5 faf533daf6cac51460d051a86c1e20f3
BLAKE2b-256 3bad3dd67699da5a31f54ba636fbbcd85ccc9689cbc05c1afd0307c2f483e57f

See more details on using hashes here.

File details

Details for the file VideoDataAnimation-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for VideoDataAnimation-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ee66a221198816fe342a09c402b4bd52bf0a040e6c8e9731748a41ae70b40d4
MD5 01559fe1ec6af7938614feb498525b17
BLAKE2b-256 95ab88c003d3d05cadfbc18c7696fe4ead0484eb4a36024dac3c7a67352bb0df

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