GithubHelp home page GithubHelp logo

signaturerecogitionknn's Introduction

Signature recognition

A signature classifier is implemented in this repository, using Tensorflow, as a part of a subject project in my master degree.

The employed process

The images are normalized before being processed, following these steps:

  1. Rescale the images to 250x250
  2. Convert the images to a gray-scale
  3. Get the percentage of occupation in the signature (% of black)
  4. Get the vertical and horizontal projections (% of black per column and row)
  5. Get the grid values. In 10x10 grids, the minimum color value is taken, as the representative of the grid. If there are any part of the signature trace, the black will be taken, otherwise, the white.
  6. A vector of characteristics is created with all this data.

K-nearest Neighbors is used as a method to train the classifier.

The data

The signatures folder is not included in this project. The used signatures folder has the following structure:

pXX
   pXXsYY.png

There are 58 classes (XX) and 20 signatures per class (YY).

The signatures images have not the same size and the same color.

Once executed the code, the folders

  • signatures_normalized
  • signatures_normalized_model

are generated. The first one contains the preprocessed signatures, the second one, the preprocessed signatures in csv files, that are used to train the model.

signaturerecogitionknn's People

Contributors

dnchia avatar

Watchers

 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.