Sie sind auf Seite 1von 3

DATA RETRIEVAL USING HAND DRAWN QUERIES

A.D.M. Kushwaha1 A. Bhaskar2 M. Jain2 N. Gupta2 S. Datta2


1
Lecturer, Department of Electronics and Communication Engineering
Birla Institute of Technology, Jaipur (India)
2
Student, B.E. VIII Semester, Department of Electronics and Communication Engineering
Birla Institute of Technology, Jaipur (India)

materials from the hand-drawn sketch database by


sketching a query drawing.
ABSTRACT
2. SYSTEM DESCRIPTION

The storage and retrieval of drawings either technical or


free hand sketches, hand written notes, maps and texts is
pretty cumbersome as the database could be very large
and remembering the name of every file is close to
impossible. In this paper we propose a method to retrieve
sketches stored in the form of multiple strokes, by
extracting the shape information for each stroke and by
considering the spatial relation between the strokes. The
spatial relation between the strokes can be used to
determine the stroke correspondence between the query
sketch and the database sketch with matching score.
Important features are extracted by Edge detection
algorithm and hierarchically matched to the files in the
database.

1. INTRODUCTION

Pen-based devices such as Personal Digital Assistants Figure 1: System diagram


(PDA) and electronic whiteboards have become more
and more common to the general public. The captured
database is stored in the form of sketch which consists of 2.1 Stroke Merging
strokes that are sequences of coordinates of the points
sampled by the pen-based device. It is necessary to have A single stroke may sometimes be drawn as smaller
an efficient sketch retrieval scheme in order to allow broken strokes. In order to account for these different
users to search for relevant information from the styles, stroke merging is performed to merge broken
database. Retrieval in the sketch database is equivalent to strokes based on the proximity of the end points. A stroke
finding a stroke or multiple strokes from the database is first checked whether its two end points are close. If
that are a good match to the query stroke(s). Sketch they are not close, then that stroke is considered as open
retrieval can be applied to various applications such as stroke and it may be merged with another open stroke if
free-form hand-drawings, hand-written or printed text the end point of one stroke is close to the end point of the
and trademarks. Searching through a collection of free- other. For example, in Figure-2 (a), the two end points of
form hand-drawings [1] provides a good motivation for one of the strokes are very close thus it is not an open
sketch retrieval. The students can retrieve relevant lecture stroke and the two strokes will not be merged. On the
other hand, in Figure-2 (b), the four strokes are open
strokes and the end point of one stroke is close to the end
point of another stroke, therefore these four strokes will A bi-stroke feature consists of stroke features of a pair of
be merged to become one stroke. strokes within the same level together with the spatial
relation between them.

Figure2: Stroke merging Figure 3: Example features

2.2 Hierarchy Construction 2.5Hierarchical Matching

This module is responsible for building a stroke The similarity is evaluated in a top to bottom hierarchical
hierarchical representation for a sketch. The stroke manner i.e. the similarity scores are computed for the
hierarchy describes the structural relationship between hyper-stroke features, stroke features and the bi-stroke
the strokes in a sketch. features at each level of the query stroke hierarchy. The
final similarity score is computed as the weighted sum of
2.3 Sketch Simplification the scores from the three feature spaces and the similarity
score from the stroke hierarchical structures [2].
The process of detecting and representing the shaded area
as a single unit is called sketch simplification [2,3]. A 3. CONCLUSION
region consisting of a stroke with all its descendent
strokes is more likely to be a shaded region if the ink
density in that area is high. A second order function is This paper discusses a method for simplifying and
chosen as the decision boundary because the training data retrieving hand-drawn sketches in a hierarchical manner.
cannot be well separated by a linear function. Sketch simplification allows the shaded region to be
represented by a single hyper-stroke. Experiments show
After a region is decided as a shaded region, all those that the hierarchical matching outperforms some existing
strokes forming this region will be replaced by a single methods in terms of the retrieval performance. The
hyper-stroke keeping only features about that region in processing time can be improved by exploring other
the stroke hierarchy. possibilities of evaluating the similarity of the stroke
hierarchy structures and algorithms.
2.4 Feature Extraction
REFERENCES
Three kinds of features are extracted from a sketch. The
purpose of matching in three different feature spaces is to [1] Wing Ho Leung and Tsuhan Chen. User-Independent
consider various aspects of similarity including overall Retrieval of Free-Form Hand-Drawn Sketches. In
region similarity, stroke similarity and spatial relation Proceedings of the IEEE International Conference on
similarity [4]. Figure-3 shows the different features. Acoustics Speech and Signal Processing (ICASSP 2002),
volume 2, pages 2029–2032, Orlando, Florida, USA,
2.4.1 Hyper-Stroke Features May 2002. IEEE Press.
A hyper-stroke consists of a parent stroke with all its [2] Wing Ho Leung and Tsuhan Chen. Retrieval of
descendent strokes. Sketches Based on Spatial Relation Between Strokes. In
Proceedings of the IEEE International Conference on
2.4.2 Stroke Features Image Processing (ICIP 2002), volume 1, pages 908–
Stroke features are geometric features extracted from 911, Rochester, New York, USA, September 2002. IEEE
each stroke. Different features are used to determine the Press.
likelihood that each stroke falls in each basic shape: line, [3] D. and Tomkins A. “Temporal domain matching of
circle and polygon. hand-drawn pictorial queries”. In Proc. of the Seventh
Conf. of The Intl. Graphonomics Society, pp. 98-99.
2.4.3 Bi-Stroke Features August 1995.
[4] Leung W. H. and Chen T. “User-
Independent Retrieval of Free-Form Hand-
Drawn Sketches”. To appear in ICASSP2002,
May 2002.

Das könnte Ihnen auch gefallen