Skip to content

automatically extract scores from youtube music videos

Notifications You must be signed in to change notification settings

mattyonweb/sheet-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

sheet-extractor.sh

An advanced recurrent neural network (RNN) implemented in bash, mainly useful to extract scores from Youtube music videos.

Installation

To run this advanced Artificial Intelligence, you will need to install the following:

Installing sheet-extractor.sh is as simple as cloning this repo on your local machine.

Usage example

./sheet-extractor.sh https://youtu.be/cUkHdt2im6M

This will:

  • Download the video (using youtubedl)
  • Extract a number of frames from the video (using ffmpeg)
  • Discard similar frames (using findimagedupes)
  • Merge the remaining frames in a single pdf (using imagemagick)

The resulting file will be the following: TODO

It may happen that some the resulting PDF has duplicate pages. In that case, I would advise you to modify the accuracy of findimagedupes like this:

./sheet-extractor.sh 90% https://youtu.be/cUkHdt2im6M

98% accuracy means that two frames are considered the same only when they are 98% equal. The correct accuracy largely depends on the video downloaded; the default is set to 95%.

Caveats

This AI is trained to work best when the video is made of still images only. It may still work when there is a moving line indicating the current position in the score, but only if the score doesn't scroll too.

Do not use this to download copyrighted scores. Use this small script ethically.

About

automatically extract scores from youtube music videos

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages