Code Monkey home page Code Monkey logo

note-dataset's Introduction

Crotchet Note Dataset

This repository contains key scripts used to develop my Undergraduate Major Project, as well as the complete dataset used for object detection training for my final artefact.

About This Project

The goal of this project is to produce an application capable of basic OMR (Optical Music Recognition). The application will be deployed on Android and should be able to detect, as a proof-of-concept, 8 different crotchet (quarter) notes denoting the notes C3 to C4 (in treble clef) in still and moving images.

Python Scripts

Below is a list of Python scripts (written in Google Colab) that have been used in the project.

  • create_pascal_voc.ipynb: A script written to produce Pascal-VOC style XML files for each image in the dataset from the CSV containing all bounding boxes for the dataset.
  • dataset_to_tfrecord.py: Parses the XML file in this respository and creates corresponding testing and training TFRecord files for model training. Through research, the script places 10% of bounding boxes into the test file and the rest into the training file.

The Dataset

The dataset was originally put together for object detection, but may also be used for image classification if that's the intention. A CSV file is provided that contains all 3020 bounding boxes for the dataset. The CSV file does not have a header row, but the columns are as follows:

class_name, xmin, ymin, xmax, ymax, filename, width, height

Class Names

Dataset class names can be used to classify images as note names or crotchet notes in general. If classifying as crotchet notes, the only available class is note, and there are 3020 bounding boxes in total for this class.

If classifying as note names, there are 8 classes in total: LC, D, E, F, G, A, B, HC, where LC refers to the note C3 and HC refers to the note C4. Across the images, these classes are somewhat more irregular and a breakdown of bounding boxes can be found below:

  • LC: 123 bounding boxes
  • D: 170 bounding boxes
  • E: 224 bounding boxes
  • F: 265 bounding boxes
  • G: 789 bounding boxes
  • A: 636 bounding boxes
  • B: 509 bounding boxes
  • HC: 304 bounding boxes

The Images

There are a total of 18 images used for the dataset, with data augmentation performed on each one to produce 30 additional images for every image (resulting in 558 unique images). The 18 images are named as follows:

LC, D, E, F, G, A, B, HC, XA, XB, XC, XD, XE, XF, XG, XH, XI, XJ

The original image will be named, for example XD.jpeg and augmentations produce files with a suffix. For example A_12.jpeg or XF_30.jpeg.

Images LC through to HC are of one note corresponding to the image's name and have one bounding box associated with it. The images XA through to XJ are images containing multiple different notes, and therefore have multiple bounding boxes per image.

note-dataset's People

Contributors

jamie228 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.