GithubHelp home page GithubHelp logo

ocr's Introduction

Optical Character Recognition in Chinese Manuscripts

Description

This project implements OCR (Optical Character Recognition) for chinese manuscripts. OCR in general is a popular research problem in image processing and pattern recognition. In particular, chinese letters make it even more complex by their high amount of variation in rotation, scale, line strength and several other features. The goal of this project was to determine whether two manuscripts were written by the same author. Solving this problem, the algorithm first performs several morphological transformation which then are folllowed by aligned intensity projections in order to obtain a reliable segmentation of letters. Afterwards, 10-dimensional feature vectors for all detected letters are computed and classified regarding their similarity by a slightly modified version of the k-Nearest-Neighbor algorithm modeling a dual-likelihood classification. Ultimately, the majority vote of detected matching letters among all gives rise to the confidence rate of two manuscripts being written by the same author. The project was implemented using Visual Studio with C++ and the OpenCV framework. It was part of the Master's course "Image Processing" at the University of Hamburg and has been awarded as the most robust, adaptive and accurate approach.

The pictures below illustrate the segmentation and detection process, followed by a recognition for writer-similarity identification.

Demo

#1 - Start WINDOWS (or anything that can execute .exe)

#2 - Open cmd and navigate to the OCR.exe folder

#3 - Type: OCR.exe

#4 - imagepath1 & imagepath2 -> paths to your .jpg manuscript

#5 - k -> parameter for kNN classification

#6 - sigma -> parameter for kNN decision-confidence threshold

#7 - output -> 0 or 1 0 if you only want to see the results 1 if you also want to see the processing steps and probability distributions

#8 - Example: OCR.exe front/3.jpg back/3.jpg 50 0.25 1

ocr's People

Contributors

sebastianstarke avatar

Watchers

 avatar  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.