to 2 which affects VRI scores. Thus, by estimating
the line width and trimming primitives we expect to
improve our VRI scores.
Figure 3: Arcs intersection from vectorized image ”3”.
Based on the figure 4, we see that our algo-
rithm estimate the upper arc better than the ASKME
method and middle circles better than Hilaire-Tombre
method. To summarize, our algorithm outperforms
previous work and shows promising results. How-
ever, it needs an algorithm to unify primitives and es-
timate their width.
Figure 4: Visual comparision: (a) original image (b)
ASKME algorithm De et al. (2016) (c) Hilaire-Tombre Hi-
laire and Tombre (2006) (d) Our Method.
5 CONCLUSION AND
PERSPECTIVE
In this paper, we have presented a vectorization al-
gorithm to convert raster images into vectors. The
method is based on junction detection and genetic al-
gorithm. Our algorithm outperforms previous works
based on the VRI average score. Nevertheless, an al-
gorithm to estimate line width and solving primitives
overlapping is needed.
For the perspective of this work, we aim first to
implement an algorithm unifying detected primitives.
Furthermore, we are looking to classify primitives and
estimate their width. Moreover, we aim to separate
dimension tools from graphics.
REFERENCES
Arganda-Carreras, I., Fern
´
andez-Gonz
´
alez, R., Mu
˜
noz-
Barrutia, A., and Ortiz-De-Solorzano, C. (2010). 3d
reconstruction of histological sections: application to
mammary gland tissue. Microscopy research and
technique, 73(11):1019–1029.
Chen, Y., Langrana, N. A., and Das, A. K. (1996). Perfect-
ing vectorized mechanical drawings. Computer Vision
and Image Understanding, 63(2):273–286.
C¸ ıc¸ek, A. and G
¨
ulesın, M. (2004). Reconstruction of 3d
models from 2d orthographic views using solid extru-
sion and revolution. Journal of materials processing
technology, 152(3):291–298.
De, P., Mandal, S., Bhowmick, P., and Das, A. (2016).
Askme: adaptive sampling with knowledge-driven
vectorization of mechanical engineering drawings.
International Journal on Document Analysis and
Recognition (IJDAR), 19(1):11–29.
di Baja, G. S. (1994). Well-shaped, stable, and reversible
skeletons from the (3, 4)-distance transform. Jour-
nal of visual communication and image representa-
tion, 5(1):107–115.
Dori, D. (1997). Orthogonal zig-zag: an algorithm
for vectorizing engineering drawings compared with
hough transform. Advances in Engineering Software,
28(1):11–24.
ELLIMAN, D. (2002). Tif2vec, an algorithm for arc seg-
mentation in engineering drawings. Lecture notes in
computer science, pages 350–358.
GREC-Dataset (2003). Grec’03 dataset. http:
//www.cs.cityu.edu.hk/
∼
liuwy/ArcContest/
test-images-2003.zip. Accessed: 2018-07-16.
Hilaire, X. and Tombre, K. (2006). Robust and accu-
rate vectorization of line drawings. IEEE Transac-
tions on Pattern Analysis and Machine Intelligence,
28(6):890–904.
Lee, H. and Han, S. (2005). Reconstruction of 3d interact-
ing solids of revolution from 2d orthographic views.
Computer-Aided Design, 37(13):1388–1398.
Liu, J. and Ye, B. (2005). New method of 3d reconstruction
from mechanical engineering drawings based on en-
gineering semantics understanding. In International
Conference GraphiCon’2005.
Liu, W. (2003). Report of the arc segmentation contest.
In International Workshop on Graphics Recognition,
pages 364–367. Springer.
Lutton, E. and Martinez, P. (1992). A genetic algorithm for
the detection of 2D geometric primitives in images.
PhD thesis, INRIA.
Mandal, S., Das, A. K., and Bhowmick, P. (2010). A fast
technique for vectorization of engineering drawings
using morphology and digital straightness. In Pro-
ceedings of the Seventh Indian Conference on Com-
puter Vision, Graphics and Image Processing, pages
490–497. ACM.
Song, J., Lyu, M. R., and Cai, S. (2004). Effective mul-
tiresolution arc segmentation: Algorithms and perfor-
mance evaluation. IEEE transactions on pattern anal-
ysis and machine intelligence, 26(11):1491–1506.
Detection of Primitives in Engineering Drawing using Genetic Algorithm
281