• No results found

Text extraction from invariant complex image

N/A
N/A
Protected

Academic year: 2020

Share "Text extraction from invariant complex image"

Copied!
17
0
0

Loading.... (view fulltext now)

Full text

(1)

TEXT EXTRACTION FROM INVARIANT COMPLEX IMAGE

NOURI ALI AL MABROUK AL HASHI

(2)

v

ABSTRACT

Great progress has been made in Optical Character Recognition (OCR) technology. Most current OCRs, however, can only read characters printed on sheets of paper according to some rigid format restrictions. For that, the detection and extraction of text regions in an image are well known problems in Computer Vision research area. The goal of this project is to extract and recognize the text from an image by using the edge-based and fuzzy logic algorithm respectively. The algorithms are implemented and evaluated by using a set of images of natural scenes that vary along its’ size, scale and orientation. Various kernels can be used for this operation ,the whole set of 8 kernels is produced by taking one of kernels and rotating its coefficient circularly and edge-detection operator is calculated by forming matrix centered on pixel chosen as center of matrix area, then Localization involves further enhancing regions by eliminating non-text regions. Edge-detection works quite well for digital image corrupted with multi-scale and multi-orientation whereas its performance of this operator cannot be used in practical image which generally corrupted other types and edge-detection for detection of edge in digital image is that image should contain sharp intensity transition and low noise of the type is present. Moreover the image is colored image .Then, edge detect at eight edges and convolve with Gaussian after that select the strong edge was suitable of detect the text. As known be the project in complex image by using eight kernels to accomplish the task .Then, we used identified pixel of determine the character with use fuzzy logic.

(3)

vi

ABSTRAK

kemajuan yang pesat telah berkembang dalam teknologi pengenalan wojah optic(OCR). Kebangakkan OCR kini hanga boleh mengenapasti wajah yang dihadkan untuk itu ,pengecanan dan mengeluarkan esbahagian format kawasan danpada imej adalah salah sutu musalah yang masih dibuat kajjan dalan system komputer .Projek ini bertujuan untuk mengeuarkan dan mengenalpasti teks daripada imej menggunakan kaedah teras-sisi dan algoritma logik fuzzy .Algorithma ini telah digunakan dan dinilai menggunakan beberapa set imej yg dan bersifat semulajdi yang berbeza dari segi saiz, skala dan kedudukan. Operator kompas teloh digunakan dimang ia menganchingi lopan isirong yg digunakan untuk mengesun 8 arah berlainon selepasitu,setiap sisi dikumpulkan bersama mengunakan tingkatan sisi menegan. Kaedah ini adalah sangaf penting untuk menentukan cirri pergerakan dan juga perabahun setiap pemanjangan jugu nemberi perubahan juga kepada cirri ketinggian yg berkaltan penempatan juga terlibut untuk mempertingkatkan kawasan dengan menghpuskan kanan bukan teks. Imej ini adalah imej yg bewaran.Kwmudiank sisi akan aikesun mengyunkgn pengesan pada lapan sisi dan menggulung dengan kaedan cuussian selepas sisi yang kuat dipilih bersesuaien dengan pengesan teks sepert yang diketahui imej yang kompleks akan menggunakan lapon isirong untuk mengempumakan tugas ini .Kemudian ,pengesan piksel digunakan untuk mendapatkan cirri yang dikehendaki menggunakon logic fuzzy

(4)

vii

TABLE OF CONTENTS

CHAPTER TITLE PAGE

DECLARATION ii

DEDICATION iii

ACKNOWLEDGEMENT iv

ABSTRACT v

ABSTRAK vi

TABLE OF CONTENTS vii

LIST OF TABLES xi

LIST OF FIGURES xii

LIST OF SYMBOLS xv

LIST OF APPENDICES xvii

1 INTRODUCTION 1

1.1 Introduction

1.2 Problem Background 1.3 Problem Statement 1.4 Project Objectives 1.5 Scope of the Project 1.6 Significant of the Study 1.7 Report Organization

(5)

viii

2 LITERATURE REVIEW 8

2.1 Introduction 8

2.2 Segmentation Categories 9 2.2.1. Threshold Based Segmentation 9 2.2.2. Clustering Techniques

2.2.3. Matching

2.2.4. Edge Based Segmentation 2.2.5. Region Based Segmentation 2.3 Categories of Variance Text

2.3.1. Lighting Variance 2.3.2. Scale Variance 2.3.3. Orientation Variance 2.4 Recognition Text

2.4.1. Text Detection

2.4.2. Text Area Identification 2.4.3. Text Region Localization

2.4.4. Text Extraction and Binary Image 2.5 Analytic Segmentation

2.5.1. Pattern Recognition

2.5.2. Statistical Pattern Recognition 2.5.3. Data Clustering

2.5.4. Fuzzy Logic 2.5.5. Neural Networks

2.5.6. Structural Pattern Recognition 2.5.7. Syntactic Pattern Recognition

2.5.8. Approximate Reasoning Approach to Pattern Recognition

2.5.9. Application of Support Vector Machine (SVM)

2.6 Pattern Recognition System

2.6.1. The Structure of Pattern Recognition

(6)

ix 2.6.2. Application of Pattern Recognition

2.6.3. Character Recognition 2.7 Run-Length Coding Algorithm

2.7.1. Neighbors 2.7.2. Path

2.7.3. Foreground 2.7.4. Connectivity

2.7.5. Connected Component 2.7.6. Background

2.7.7. Boundary 2.7.8. Interior 2.7.9. Surrounds

2.7.10. Component Labeling 2.8 Properties Text

2.8.1. Removing the Borders 2.8.2. Divide the Text into Rows

2.8.3. Divide the Row “Lines” into the Words 2.8.4. Divide the Word into Characters 2.9 Identify Character

2.10 Fuzzy Logic

2.10.1. What Fuzzy Logic?

2.10.2. What is the Fuzzy Logic Toolbox? 2.10.3. Fuzzy Sets

2.10.4. Membership Function 2.10.5. If-Then Rules

2.10.6. Fuzzy Inference System 2.10.7. Rule Review

(7)

x

3 METHODOLOGY 44

3.1. Introduction

3.2. Problem Statement and Literature Review 3.3. System Development

3.4. Performance Evaluation

3.5. General Steps of Proposed Techniques

3.6. Proposed Algorithm for Edge Based Text Region Extraction

3.7. Detection

3.8. Feature Map and Candidate Text Region Detection

3.8.1. Directional Filtering 3.8.2. Edge Selection

3.8.3. Feature Map Generation 3.8.4. Localization

3.8.5. Character Extraction 3.9. Connection Component 3.10. Fuzzy Logic 3.11. Summary 44 46 46 47 47 48 49 55 55 55 58 59 59 60 65 67

4 IMPLEMENTATION 68

4.1. Introduction 4.2. Input Image

4.3. Complement Edge Detect with them 4.4. Eight Edge Detection

4.5. Image Localization

4.6. Separate Text From Background 4.7. Reduce Size

4.7.1. Determine Borders 4.7.2. Divide Text into Rows 4.8. Determine Character by Run-Length

(8)

xi

5 RESULTS DISCUSION 95

5.1. Introduction 95

5.2. Discussion on Results

5.3. Experimental results and discussion

96 98

5.4. Project Advantage 108

5.5. Suggestion and Future Works 109

5.6. Conclusion 110

6 CONCLUSION 111

REFERENCES 113-115

(9)

CHAPTER I

INTRODUCTION

1.1 Introduction

During the past years, recent studies in the field of computer vision and pattern recognition showed a great amount of interest in content retrieval from images and videos. This content can be in form of objectives, colors, textures and shapes as well as a relationship between them.

(10)

2 background. Commercially, OCR engines cannot yet detect and recognize text embedded in complex background directly.

Extraction of text from images has been relied upon mainly on the properties of text. In the past few years, it was witnessed rapid growth in a number and variety of applications using fuzzy logic. Fuzzy logic is a logical system which is an extension of multi-value logic. It was used to identify the character after extracting text from an image. (Kongqiao and Jari, 2003b) proposed character recognition that comprises a character boundaries operation for invariance of multi-scale and multi-orientation.

Finally, it is expected that results will present the success of text extraction and recognition process from a complex image.

1.2 Problem Background

(11)

3 (Jagath and Xiaoqing, 2006b) their algorithm which can use edge-based text extraction algorithm which is robust with respect to font sizes, color, intensity, orientation, effects of illumination, reflection, shadows, perspective distortion and the complexity of image background can quickly and effectively localize and extract text from real scenes.

(Kongqiao and Jari, 2003b) they proposed connected-component based (CC-based) method which combines color clustering, a black adjacency graph (BAG) , an aligning –and-merging-analysis (AMA) scheme and a set of heuristic rules together to detect text in the application of sign recognition such as street indicators and billboards . (Rainer and Axel, 2002c) proposed a feed-forward neural network to localize and segment the text from complex images; it is designed specifically for horizontal text with at least two characters. (Yuzhong, kallekearu and anil, 1995) proposed hybrid of CC-based and texture-based method to extract text. Although experimental results show that the combination of these two methods perform better, the monochrome constraint used also fails to detect touching characters. (Kwang, Keechul and Jin, 2003c) combined a Support Vector Machine (SVM) and continuously adaptive mean shift algorithm (CAMSHIFT) to detect and identify text regions. Datong, (Herve and Jean, 2001) they used a SVM to identify text lines from candidates .However, experimental results show that both methods above are mainly designed for video captions.

(12)

4 extracted from an image through edge extraction, enhancement and labeling. Matsuo, (Ueda and Michio, 2002d) proposed a text extraction algorithm from image scenes after an identification stage of local target area and adaptive thresholding. (Xilin, Jie, Jing and Alex, 2003e) proposed a framework for automatic detection of signs from natural scenes .This framework considers critical challenges in sign extraction and can extract signs robustly under different conditions .

Based on these studies, this project attempts to propose extraction strategy relies on the edge-detection of text and characters in conjunction with fuzzy logic to recognize characters.

1.3 Problem Statement

This study that utilizes effective extraction method may provide significant improvement of multi-orientation and multi-scale recognition performance .To reach good recognition performance, it is important to solve explicit extraction problems such as different scale and different orientation.

(13)

5

1. How the recent extraction approach has done? 2. How system might improve extraction approach?

3. How to evaluate and to measure the proposed extraction and recognition character performance?

1.4 Project Objectives

Based on the problem statement above, this project encompasses a set of objectives that is associated with milestones of the project process. The project objectives are mentioned below.

1. To develop an improved extraction method based on edge detection and fuzzy logic.

(14)

6 1.5 Scope of the Project

In order to accomplish the objective of this study, it is important to identify the scope which covers the following aspects:

This research is concerned with the extraction of text from image and recognition of characters by using fuzzy logic.

1. This research is concerned with invariant complex image.

2. Dilation and erosion are used to remove noise and touching between characters 3. Fuzzy logic that is used for identifying the characters.

1.6 Significance of the Study

This study is carried out with the main objective of extracting text. Based on the results obtained, it is hoped that this is able to achieve the following:

1. To give exposure on another promising technique of extraction that could offer better or at least same performance as the existing techniques.

2. To solve the extraction problem such as complex background, different style, font etc.

(15)

113

REFERENCES

Alasdir,2004.Introduction to Digital Image Processing with Mathlab. Springer-Verlag Berlin Heidelberg 2007

Chunmei, Chunheng, Ruwei, (2005).Text Detection in Image Based on Unsupervised Classification of Edge-Based Features.IEEE. 0-7520-5263. Proceedings of the Eight International Conference on Document Analysis and Recognition. china.2005

Chengjie, Jie and Trac, 2002b.Adaptive Runlenght Coding .IEEE.0-7803-7622-6.Baltimore MD 21218

Datong,Herve and Jean, 2001. text identification n complex background using SVM.IEEE.0-7695-1272-0.Dalle molle insitiute for perceptual artificial intelligence,Switzerland .UTM.2001.

Ezaki, Bulacu and Schomaker,(2004).Text Detection from Natural scene Images:T owards a System for Sisually Smpaired Sersons. In Sroceedings of the Snternational Sonference on Sattern Secognition (ICPR’04).pp.683-686.2004. Fuzzy Logic Toolbox User’s Guide” The MathWorks, Inc. 2006f

Gatos, Pratikakis, Kepene and J.perantonis(2005a). Text dectection in indoor/outdoor scene images. Proceedings to National center for scientific research “Demokritos”, GR-153 10 Agia Paraskevi, Athens, Greece

Holland JH,(1975) . Adaption in Natural and Artificial systems. University of MICHIGAN press, Ann Arbor, 1975

(16)

114 Jagath, and Xiaoqing .(2006b). An Edge-Based Text Region Extraction Algorithm for in Door Mobile Robot Navigations. International Journal of Signal Processing 3;4. Western Ontario, London, ON., N6A 5B9, Canada

Jie ,Jigui and Shengsheng,(2006d). Pattern Recognition: An overview. Proceedings to IJCSNS International Journal of Computer Science and Network Security, VOL.6 No.6. 130012 Changchun, China June 2006

Jiang and Jie,2000. An Adaptive Algorithm for Text Detection from Natural Scenes. University Pittsburgh. 2000

Kofi, Andrew, Patrick and Jonathan, (2007b).Run-Length Based Connected Component Algorithm for FPGA Implementation.University of Lincoln.England.2007

Kongqiao and Jari,(2003b).Character Location in Scene Images from Digitalcamera.Pattern Recognition. Proceedings to journal of the pattern recognition.Tampere,Finland.2003

Kwang,Keechul and Jin,2003c .Texture-Based Approach for Text Detection in Image Using Support Vector Machine and Continuously Adaptive Mean Shift Algorithm. IEEE Transtion On Pattern Analysis and Machine Intelligence, Vol. 25, No. 12, December2003

Kim ,Byun, Song, Choi, Chi and .chung, (2004).Scene Text Extraction Scene Images Using Hierarchical Feature Combining and Verification .IEEE . 1051-4651/04 . Proceedings of the 17th International Conference on Pattern Recognition

Mohanad and Mohammad, 2006e. Text Detection AND Character Recognition Using Fuzzy Image Processing. Proceedings to Journal of Electrical Engineering.Vol.57,No.5. Jordan. 2006

Matsuo,Ueda and Michio,2002d .Sxtraction of Sharacter String from Scene Smage Binarizing Local Target Aarea.Transaction of the Anstitute of Electrical Engineers.122-c(2).232-241 Japan.2004.

Pavilidis,(1977)., Structural Pattern Recognition, Springer-Verlag,New York, 1977. Qixiang, Wen, Weiqiang and Wei (2003a).Roust text detection algorithm in images and

video frames.IEEE.0-7803-8185-8.School of Chinese academy of scienes,China Qixiang, Qingming, Wen and Debin,2005b .Fast and Robust Text Detection in Images

(17)

115 Roshanak and Shohreh(2005c).text segmentation from image with textured and colored

background. Proceedings to Sharif University of Technology, Tehran, Iran Rabbani and Chellappan,(2007a).Fast and New Approach to Gradient Edge Detection.

Proceedings to International Journal of Soft Computing 2(2):325-330.india.2007 Rainer and Axel, (2002c). Localizing and Segmenting Text in Images and Videos. University Pittsburgh.2002

Sivanandam, Deepa and Sumathi,2007.Introduction to Fuzzy Logic Using Mathlab. Tsai, Chen, Fang (2006c).A Comprehensive motion videotext detection localization and

extraction method.IEEE.0-7803-9584-0.Taoyuan County 320,Taiwan P.R.C Takuma, Yasuaki and Minoru, 2003d. Digit Classification on Signboards for Telephone

Number Recognition .IEEE. 0-7695-1960-1. Proceedings of the Seventh International Conference on Document Analysis and Recognition. Japan.2003 Victor,Raghavan and Edward,(1999).Textfinder:an Automatic System to Detect and

Recognize Text in Image.IEEE Tansaction on Pattern Analysis and Machine Intelligence,vol.21, no.11, Novermber 1999.Amherst

Xiaoqing and Jagath,.(2006a).Multiscale Edge-Based Text Extraction from Complex Image..IEEE.1-4244-0367-7.London, Ontario, N6A 5B9, Canada

Xilin, Jie, Jing and Alex, (2003e). Automatic Detection of Signs with Affine Transformation. University Mobile Technologies.2003

References

Related documents

(Although basic math facts include addition, subtraction, multiplication, and division, this study tested multiplication only.) The students’ fluency was then related to their

The relationship between surface electrolyte content, presented as moles per gram of treated cotton (mol/g), and single fiber friction as measured by the Rotorring for

In the study presented here, we selected three rep- resentative pathogenic PV mAbs cloned from 3 different PV patients: F706, an anti-Dsg3 IgG4 isolated by heterohybridoma, F779,

Commercial aircraft programs inventory included the following amounts related to the 747 program: $448 of deferred production costs at December 31, 2011, net of previously

c+c%+c'ccc#c c Œou shouldn¶t go to India without visiting the ajMahal.c Oo deberías ir a la India sin visitar el TajGahal.c I¶minterested in studyingpsychology.c!c@stoy interesado

Intervention effects with respect to ‘ PTA ’ , ‘ INFO ’ , ‘ SAFED ’ , clinical patient outcomes, and health-related quality of life were estimated using general- ised

In order to provide our readers with timely access to new content, papers accepted by the American Journal of Tropical Medicine and Hygiene are posted online ahead of print

Global forces, including the United States as regional hegemon, along with transnational corporations (TNCs), international drug cartels, global arms dealers, transnational