Python3 Implementation for 'Visual Rhythm and Beat' SIGGRAPH 2018
Project description
visbeat3
This is a migration of visbeat from Python2 to Python3. Head over to an example notebook on Colab!
This work presents a visual analogue for musical rhythm derived from an analysis of motion in video, and shows that alignment of visual rhythm with its musical counterpart results in the appearance of dance. You can visit the official project page and demos for more infos.
Install
$ pip3 install visbeat3
Usage
import os
import time
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import visbeat3 as vb
source_video = vb.PullVideo(name='video', source_location='./data/01.mp4')
# You can also directly specify an audio
# source_audio = vb.Audio('./data/all star.mp3')
source_audio = vb.PullVideo(name='audio', source_location='./data/02.mp4')
synch_video_beat = 0
synch_audio_beat = 0
nbeats = 32
output_path = './result.mp4'
# If source_audio is from an audio file, use target=source_audio
warped = vb.Dancify(source_video=source_video,
target=source_audio.getAudio(),
synch_video_beat=synch_video_beat,
synch_audio_beat=synch_audio_beat,
force_recompute=True,
warp_type='quad',
nbeats=nbeats,
output_path=output_path)
Used By
video-bgm-generation: video background music generation.
Reference
@inproceedings{davis2018visual,
title={Visual rhythm and beat},
author={Davis, Abe and Agrawala, Maneesh},
booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops},
pages={2532--2535},
year={2018}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file visbeat3-1.0.1.tar.gz.
File metadata
- Download URL: visbeat3-1.0.1.tar.gz
- Upload date:
- Size: 22.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07ddc82948d3dd25e0692809904f18bdb1c6044f1d6047cf2b0399c76c43d42e
|
|
| MD5 |
1cb5077ecfa3cf38ea7cf3c12c30c92c
|
|
| BLAKE2b-256 |
a9d4db4bbdfce0d698733fb9d74b3b5b567645968ae2a2d506c3a2e25f287b95
|
File details
Details for the file visbeat3-1.0.1-py3-none-any.whl.
File metadata
- Download URL: visbeat3-1.0.1-py3-none-any.whl
- Upload date:
- Size: 333.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44f3e47ef8d05dd52430755dc044f3c325476c823ace54043d9b878424a7d7d9
|
|
| MD5 |
772082aa2712faff2ae1a0b05306d163
|
|
| BLAKE2b-256 |
24c24c83a54ff549a30e71b762fb311c3b529f54768095240fb1fe0585ee3235
|