From 9f5ac11788abd83fbb935c669dce239033a67987 Mon Sep 17 00:00:00 2001 From: The Codacy Badger Date: Sat, 23 Dec 2017 12:19:29 +0000 Subject: [PATCH 1/2] Add Codacy badge --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 0c8799f..cbec96c 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # Image 2 Lines + +[![Codacy Badge](https://api.codacy.com/project/badge/Grade/b06e28bb75234b76838218c1cad86568)](https://www.codacy.com/app/Samir55/Image2Lines?utm_source=github.com&utm_medium=referral&utm_content=Samir55/Image2Lines&utm_campaign=badger) + This is a module of our project for image processing course at Cairo university. **This is a working in progress project**. From 1b24abe9c033d95012eb2a8033105a85eb8557f5 Mon Sep 17 00:00:00 2001 From: Ahmed Samir Date: Sun, 31 Dec 2017 14:46:25 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cbec96c..3863e5e 100755 --- a/README.md +++ b/README.md @@ -24,8 +24,30 @@ These are examples of the output produced from the current code. * Apply line drawing algorithm and make decissions about regions that hit the lines using Bivariate Gaussian Distribution. These is example of the output produced from the current code. ![](https://i.imgur.com/GMqsSxc.jpg) -## Tools used: -We'll use C++ and OpenCV. + +# Dependencies +* OpenCV: 3.0 or newer. + +# Build +```Console +mkdir build +cd build +cmake .. +make +``` +# Usage +```Console +./Image2Lines the_path_to_the_img +``` +the output will be: +* N final lines, each line is named 'line_i.jpg' where i is the line number. +* 'Initial_lines.jpg' : representing the initial lines drawn on the original image. +* 'Final_lines.jpg' : representing the final lines drawn on the original image. +* 'Contours.jpg' : represnting the detected contours. + +# TODO +* Improve detecting peaks and valleys function. +* Use a better binarization technique than the currrently used. (I will use my other repository named Binarization". ## Database used IAM database.