detecting curve text in the wild: new dataset and ... - arxiv

9
Detecting Curve Text in the Wild: New Dataset and New Solution Yuliang Liu, Lianwen Jin * , Shuaitao Zhang, Sheng Zhang College of Electronic Information Engineering South China University of Technology [email protected]; * [email protected] Abstract Scene text detection has been made great progress in re- cent years. The detection manners are evolving from axis- aligned rectangle to rotated rectangle and further to quad- rangle. However, current datasets contain very little curve text, which can be widely observed in scene images such as signboard, product name and so on. To raise the con- cerns of reading curve text in the wild, in this paper, we construct a curve text dataset named CTW1500, which in- cludes over 10k text annotations in 1,500 images (1000 for training and 500 for testing). Based on this dataset, we pioneering propose a polygon based curve text detec- tor (CTD) which can directly detect curve text without em- pirical combination. Moreover, by seamlessly integrating the recurrent transverse and longitudinal offset connection (TLOC), the proposed method can be end-to-end trainable to learn the inherent connection among the position off- sets. This allows the CTD to explore context informa- tion instead of predicting points independently, resulting in more smooth and accurate detection. We also propose two simple but effective post-processing methods named non- polygon suppress (NPS) and polygonal non-maximum sup- pression (PNMS) to further improve the detection accuracy. Furthermore, the proposed approach in this paper is de- signed in an universal manner, which can also be trained with rectangular or quadrilateral bounding boxes without extra efforts. Experimental results on CTW-1500 demon- strate our method with only a light backbone can outper- form state-of-the-art methods with a large margin. By eval- uating only in the curve or non-curve subset, the CTD + TLOC can still achieve the best results. Code is available at https://github.com/Yuliang-Liu/Curve-Text-Detector. 1. Introduction Text in the wild conveys valuable information, which can be used for real-time multi-lingual translation, behavior analysis, product identification, automotive assistance, etc. Recently, the emergence of many text datasets, which are (a) Curve bounding box can avoid needless overlap. (b) Curve bounding box can reduce redundant background noise. (c) Curve bounding box is easier to recognize text. Figure 1. Comparison of quadrilateral bounding box and rectan- gular bounding box for localizing texts. Left: using quadrilateral label. Right: using polygonal label. constructed on specific tasks and scene, have contributed to great progresses of text detection and recognition meth- ods. Interestingly, it is observed that labels of text bound- ing boxes from emerging datasets also develop from rectan- gle to flexible quadrangle. For example, horizontal rectan- gular labels in ICDAR 2013 “Focus Scene Text” [17] and 1 arXiv:1712.02170v1 [cs.CV] 6 Dec 2017

Upload: others

Post on 03-Oct-2021

11 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Detecting Curve Text in the Wild: New Dataset and ... - arXiv

Detecting Curve Text in the Wild: New Dataset and New Solution

Yuliang Liu, Lianwen Jin∗, Shuaitao Zhang, Sheng ZhangCollege of Electronic Information Engineering

South China University of [email protected]; ∗[email protected]

Abstract

Scene text detection has been made great progress in re-cent years. The detection manners are evolving from axis-aligned rectangle to rotated rectangle and further to quad-rangle. However, current datasets contain very little curvetext, which can be widely observed in scene images suchas signboard, product name and so on. To raise the con-cerns of reading curve text in the wild, in this paper, weconstruct a curve text dataset named CTW1500, which in-cludes over 10k text annotations in 1,500 images (1000for training and 500 for testing). Based on this dataset,we pioneering propose a polygon based curve text detec-tor (CTD) which can directly detect curve text without em-pirical combination. Moreover, by seamlessly integratingthe recurrent transverse and longitudinal offset connection(TLOC), the proposed method can be end-to-end trainableto learn the inherent connection among the position off-sets. This allows the CTD to explore context informa-tion instead of predicting points independently, resulting inmore smooth and accurate detection. We also propose twosimple but effective post-processing methods named non-polygon suppress (NPS) and polygonal non-maximum sup-pression (PNMS) to further improve the detection accuracy.Furthermore, the proposed approach in this paper is de-signed in an universal manner, which can also be trainedwith rectangular or quadrilateral bounding boxes withoutextra efforts. Experimental results on CTW-1500 demon-strate our method with only a light backbone can outper-form state-of-the-art methods with a large margin. By eval-uating only in the curve or non-curve subset, the CTD +TLOC can still achieve the best results. Code is availableat https://github.com/Yuliang-Liu/Curve-Text-Detector.

1. IntroductionText in the wild conveys valuable information, which

can be used for real-time multi-lingual translation, behavioranalysis, product identification, automotive assistance, etc.Recently, the emergence of many text datasets, which are

(a) Curve bounding box can avoid needless overlap.

(b) Curve bounding box can reduce redundant background noise.

(c) Curve bounding box is easier to recognize text.

Figure 1. Comparison of quadrilateral bounding box and rectan-gular bounding box for localizing texts. Left: using quadrilaterallabel. Right: using polygonal label.

constructed on specific tasks and scene, have contributedto great progresses of text detection and recognition meth-ods. Interestingly, it is observed that labels of text bound-ing boxes from emerging datasets also develop from rectan-gle to flexible quadrangle. For example, horizontal rectan-gular labels in ICDAR 2013 “Focus Scene Text” [17] and

1

arX

iv:1

712.

0217

0v1

[cs

.CV

] 6

Dec

201

7

Page 2: Detecting Curve Text in the Wild: New Dataset and ... - arXiv

SVT [34]; rotated rectangular labels in MSRA-TD500 [35]and USTB-SV1K [37]; four points labels in ICDAR 2015“Incidental Text” [16], RCTW-17 [30] and recent MLTcompetition dataset [13]. Similarly, the advancements ofscene text detection methods also change from axis-alignedrectangle based to rotated rectangle based and to quadran-gle based. It was indicated in [21] that once the boundingbox becomes tighter and flexible, it can improve the detect-ing confidence, reduce the risk of being suppressed by post-processing and be beneficial to subsequent text recognition.

To recognize the scene text, it is a strong requirement thatthe text can be tightly and robustly localized in advance.However, current datasets have very little curve text, andit is defective to label such text with quadrangle let alonerectangle. For example, as showed in Figure 1, using curvebounding box has three remarkable advantages:

• Avoid needless overlap. Because the text may ap-pear in many ways, the traditional four points localiza-tion may not handle such elusive peculiarity well. Asshown in Figure 1 (a), quadrilateral bounding box cannot avoid a mass of tanglesome overlap while curvebounding box can.

• Less background noise. As shown in Figure 1 (b), iftext appear in the curve form, quadrilateral boundingbox suffers from background noise.

• Avoid multiple text lines. The recent popular recogni-tion methods [29, 28, 1, 19] all require single row textline in each bounding box. However, in some caseslike Figure 1 (c), quadrilateral bounding box can notavoid multiple text lines from disturbing with each oth-ers while curve bounding box can exquisitely solve thisproblem.

Actually, curve text are also very common in our real-world. For examples, text in most kinds of columnar ob-jects (bottles, stone piles, etc.), spherical objects, plicatedplane (clothes, streamer, etc.), coins, logos, signboard andso on. However, to our best knowledge, current methodscan not directly detect the curve text. The linking meth-ods [32, 27, 12] can detect components of the text and thengrouping them together to match the curve bounding box.But if there are many texts stack up together, in many caseslike Figure 1 (a), empirical connection rules are almost im-possible to group the tiny components properly, and some-how these methods always bring more false positives thandirect detection manners in practice.

Therefore, in this paper, we collect text from vari-ous natural scenes, websites or image library like googleopen-image [18], and constructing a new dataset namedCTW1500. This dataset contains 1500 images with over10k text annotation, and each image contains at least onecurve text. For evaluation and comparison, we split 1000

images as training set and 500 for testing. Based on our ob-servation, for all kinds of the curve text regions, a 14 pointspolygon can be sufficient to localize them as shown in Fig-ure 1 and Figure 2. By using the referenced equant lines,it doesn’t require much manpower to label as introduced inSec. 3.

Based on the proposed dataset, we propose a simple buteffective polygon based curve text detector (CTD), whichmay be a pioneering method that can directly detect thecurve text. Unlike traditional detecting methods, the CTDseparates the branches for width/height offsets predictions,which can be run below 4GB video memory with the speedof 13 FPS. In addition, the network architecture can beseamlessly integrated with a ingenious method we pro-posed, namely transverse and longitudinal offset connection(TLOC), which uses RNN to learn the inherent connectionbetween locating points, making the detection more accu-rate and smooth. The CTD is also designed as an universalmethod, which can be trained with rectangular and quadri-lateral bounding boxes without extra manual labels. Twosimple but effective post-processing methods named non-polygon suppression (NPS) and polygonal non-maximumsuppression (PNMS) are proposed to further intensify thegeneralization ability of CTD.

On the proposed dataset, the results demonstrate theCTD with a light reduced resnet-50 [9] can effectively de-tect the curve text and outperform state-of-the-art methodswith a large margin. By using TLOC, our method can re-markably improve the performance. Furthermore, we alsoevaluate our method on mere curve or non-curve test sub-set (by making the other text as not care regions), and theCTD+TLOC can still achieve the best results.

2. Related WorkIn the past dozen years, scene text detection methods

have achieved great improvement. One of the main reasonsof such unceasing progress is the evolution of the bench-mark datasets - the data become harder, the amounts be-come larger and the labels become tighter. From 2003 on,rectangular labeled datasets such as ICDAR’03 [22], IC-DAR’11 [26], ICDAR’13 [17] and COCO-Text [33] haveattracted a great number of research efforts. After 2010,the multi-oriented datasets with rotated rectangular labels(NEOCR [23], OSTD [36], MSRA-TD500 [35] and USTB-SV1K [37]) come out, which stimulate many influentialmulti-oriented detecting methods in the literatures. And in2015, the first quadrilateral labeled dataset ICDAR 2015“Incidental Scene Text” [16] appears, which unprecedent-edly attracted lots of attention according to its evaluatingwebsite [16] and many recent progress. Since then, quite afew larger and more challenge quadrilateral labeled datasetin ICDAR 2017 competition like RCTW-17 [30] (datasetfor Chinese and English text), DOST [14] (scene texts ob-

2

Page 3: Detecting Curve Text in the Wild: New Dataset and ... - arXiv

Figure 2. Examples curve text annotations of CTW1500 dataset.

served by video in the real environment) and MLT [13](dataset for multi-lingual text) seem to become the nextmainstream datasets.

Interestingly, the development of detecting manners alsoshow a similar evolution tendency with datasets. Althoughthe rectangular methods still receive interests, they seem be-coming less mainstream. Since 2011, almost every yearthere are methods with rotated rectangular bounding boxproposed. And in 2017, plentiful quadrilateral based de-tection methods [21, 27, 38, 10, 4] emerged. Basically,the quadrilateral based detection methods can also achievebest performance in rotated datasets or horizontal datasets(by evaluating the circumscribed rectangle), and they allshow a fact that they can beat horizontal manners in multi-oriented datasets (by using the circumscribed rectangle totrain and test) especially in terms of recall rate. This ismainly because the stronger supervision for quadrilaterallabeled methods can avoid much background noise, unrea-sonable suppression and information loss. The viewpointthat stronger supervision helps detection can also be foundon Mask-RCNN [8] which improves detecting results byjointly training with a branch of segmentation, and Ren etat. [20] also shows training with recognition can be con-ducive to text detection.

However, current text detection methods, even quadran-gle based methods all show disappointing performance incurve texts, which are commonly appeared in our real world

as introduced in section 1. The linking method like [27] cannot detect the strong bending text (the last image in secondrow in its Fig. 3) as well. One reason is that all currentdatasets contain very little curve text and many of the curvetext are labeled with unsatisfactory rectangles. The otherreason is that current four points based detection methodscan only loosely detect the curve text, which may causeseverely mutual interference like Figure 1 (c). Therefore, inorder to address the challenging problem of detecting curvetext in the wild, we construct a new curve text based datasetnamed CTW1500, and then propose a novel method thatcan directly detect the curve text effectively.

3. CTW1500 Dataset and Annotation

Data description. The CTW1500 dataset contains 1500images, with 10,751 bounding boxes (3,530 are curvebounding boxes) and at least one curve text per image. Theimages are manually harvested from internet, image librarylike google Open-Image [18] and our own data collected byphone cameras, which also contain lots of horizontal andmulti-oriented text. The distribution of the images is vari-ous, containing indoor, outdoor, born digital, blurred, per-spective distortion texts and so on. In addition, our datasetis multi-lingual with mainly Chinese and English text.

Annotation. The text is manually labeled by ourselfwith our labeling tool. For labeling text with horizontal or

3

Page 4: Detecting Curve Text in the Wild: New Dataset and ... - arXiv

R1 2

34

56

78

9

7

R1 2

34

56 8

9

1011 12 13

14

Referenced lines

Figure 3. Illustration of labeling curve text.

Table 1. Time cost of labeling different shapes of text.Bounding Box Horizontal Quadrilateral Curve

Labeling Time (s) 2.5 4 13

quadrilateral shape, simply two or four clicks are required.To surround the curve text, we create ten equidistant refer-enced lines to help label the extra 10 points (we practicallyfind extra 10 points are sufficient to label all kinds of curvetext as shown in Figure 2). The reason we use the equidis-tant lines is to ease the labeling effort, and reduce subjectiveinterference. To evaluate the localization performance, wesimply follow the PASCAL VOC protocol [7], which uses0.5 IoU threshold to decide true or false positive. The onlydifference is we calculate the exact intersection-over-union(IoU) between the polygons instead of axis-aligned rectan-gles.

The labeling procedure is shown in Figure 3. Firstly,we click the four vertexes marked as 1, 2, 3, 4, and thereferenced dashed line (blue) will be automatically cre-ated. Moving one of the mouse’s referenced line (horizon-tal and vertical black dashed lines) to the appropriate po-sition (intersection of two referenced lines) and then clickto determine the next point, and so on for the remanentpoints. We roughly calculate the labeling time of threeshapes of text in Table 1, which shows labeling one curvetext consumes approximately triple time than labeling withquadrangle. The CTW1500 dataset can be download athttps://github.com/Yuliang-Liu/Curve-Text-Detector.

4. Methodology

This section presents details of our curve text detector(CTD). We will first illustrate the architecture of the CTDand how we make use of the polygonal labels. After that,we will describe how a recurrent neural network (RNN)component is seamlessly connected to the CTD and subse-quently introducing the universality of this method. Finally,we will present our two simple but effective post-processingmethods that can further improve the performance.

4.1. Network Architecture

The overall architecture of our CTD is shown in Fig-ure 4, which can be divided into three parts: backbone,RPN and regression module. Backbone usually adopts thepopular models pre-trained by ImageNet [5] and then usesthe corresponding model to finetune, such as VGG-16 [31],ResNet [9] and so on. Region proposal network (RPN) andregression module are respectively connected to the back-bone; while the former generates proposals for roughly re-calling text and the latter finely adjusts the proposals tomake it tighter.

In this paper, we use a reduced ResNet-50 (simply re-move the last residual block) as our backbone, which re-quires less memory and can be faster. In the RPN stage,we use the default rectangular anchors to roughly recall thetext but we set a very loose RPN-NMS threshold to avoidpremature suppression. To detect the curve text with poly-gon, the CTD only need to modify the regression moduleby adding the curve locating points, which is inspired byDMPNet [21] and East [38] that adopting quadrilateral re-gressing branch separated with circumscribed rectangle re-gression. The rectangular branch can be easily learned bythe network and let it converses fast, which can also roughlydetect the text region in advanced and alleviate the follow-ing regression. Contrastively, the quadrilateral branch of-fers stronger supervision to guide the network being moreaccurate.

Similar to [25, 21], we also regress the relative posi-tions for each points. Unlike [21], we use the minimumx and minimum y of the circumscribed rectangle as the da-tum point. Therefore, the relative length wi and hi (i ∈1, 2, ..., 14) of every point is greater than zero, which issomehow easier to train in practice. In addition, we sepa-rately predict the offsetsw and h, which can not only reducethe parameters but more reasonable for sequential learningas introduced in the following subsection. The total numberof the regressing items is 32; while 28 are the offset of the14 points, and 4 are the x,y minimum and maximum of thecircumscribed rectangle. The parameterizations of the 14offsets (dwi

and dhi) are listed below:{

dwi=

p∗wi−pwi

wchr,

dhi =p∗hi−phi

hchr,

(i ∈ (1, 2, ..., 14)) (1)

Where, p∗ and p are ground truth and predicted offsets re-spectively. Besides, wchr and hchr are the width and heightof the circumscribed rectangle. For boundary regression,we follow the same as Faster R-CNN [25]. It is worth notic-ing that 28 values are enough to determine the position of14 points, but in relative regressing mode, 32 values canbe easier to retrieve the rest of 14 points and offer strongersupervision.

4

Page 5: Detecting Curve Text in the Wild: New Dataset and ... - arXiv

Text?

Score: 1.000

AV

EP

ooling

(1x256)Each bin is the predicted offset of .

BL

ST

M

TLOC

Each bin is the predicted offset of .

BL

ST

M

Score: 0.999

RNN

Figure 4. Overall structure of our Curve Text Detector (CTD).

4.2. Recurrent Transverse and Longitudinal OffsetConnection (TLOC)

Using recurrent connection in text detection task wasproved robust and effective by CTPN [32], which learnsthe latent sequence of tiny proposals and produces betterresults. However, CTPN is a linking based method, whichrequires empirical connection. Also, its connectionist pro-posal requires fixed images size for ensuring the fixed num-ber of input time sequences of RNN. Unlike CTPN, ourmethod can directly localize the curve region without ex-terior connection, and the number of the time sequences ofRNN is not constrained by input image size. This is be-cause the RNN is connected to the output of the position-sensitive RoI Pooling (PSROIPooling) [3], and the num-ber of the output targets are fixed (14 width offsets and 14height offsets). Basically, PSROIPooling is used to pre-dict and vote the class probabilities and localization off-sets, which evenly partitions each RoI into p × p bins toestimate position information. The dimension of the inputconvolutional layer should be (class + 1)p2, and thus thePSROIPooling can produce a p2 score map for each cate-gory. For transverse and longitudinal offset prediction, weremove the background class localization score map and usea 7×7 bin, so the input convolutional dimension is 14×7×7for height and width separately. Each value of (i; j)-th bin(0 < i; j < p− 1) is computed from the corresponding po-

sition in the (i; j)-th score map by using a average pooling:

rc(i, j|Θ)| =∑

(x,y)∈bin(i,j)

si,j,c(x+ xmin, y + ymin|Θ)

n,

(2)where, rc(i, j|Θ) is the pooled value in the (i, j)-th binfor category c, si,j,c represents a score map from the cor-responding dimension. (xmin, ymin) denotes the left-topcoordinate of a RoI, n denotes the amount of pixels in thebin, and Θ stands for all network parameters. After thePSROIPooling procedure, CTD will get the scores or theestimated offsets of each RoI via globally pooling on the p2

position-sensitive score maps: rc(Θ) =∑ rc(i,j|Θ)

p2 , whichproduces a (C + 1)-dimensional vector. The voting classscore is then computed by the softmax operation across allcategories and output the final confidence:

sc(Θ) = erc(Θ)�C∑

c′=0

erc′ (Θ). (3)

The localization offsets would be fed into the localizationloss function. During training phase, we choose the similarmulti-task loss functions for score and offsets prediction asfollow:

L(c, c∗, b, b∗, w, w∗, h, h∗) =1

N(λ× Lcls(c, c

∗)+

Lloc(b, b∗)) +

µ

Np(Lloc(h, h

∗) + Lloc(w,w∗))

(4)

5

Page 6: Detecting Curve Text in the Wild: New Dataset and ... - arXiv

where N is the amount of both positive and negative pro-posals that match specific overlapping range and Np is thenumber of positive proposals because it is not necessary torefine the negative proposals. Besides, λ and µ are balancefactors which weighs the importance among the classifica-tion and detection losses (Lcls represents classification lossfunction; Lloc is localization loss function which can besmooth-L1 loss or smooth-Ln[21] loss). Practically, we setλ to 3 or even more to balance localization loss which hasmuch more targets. Moreover, (c, b, w, h) represent the pre-dicted class, estimated bounding-box, width and height off-set respectively, and (c∗, b∗, w∗, h∗) denote the correspond-ing ground-truth.

Figure 5. Top: Detection results without TLOC. Bottom: Detec-tion results with TLOC.

To improve detection performance, we separate trans-verse and longitudinal branches to predict the offsets forlocalizing the text region. Intuitively, each point is re-stricted by the last and next points and the textual region.For example, in the case of Figure 3, the offset width ofthe sixth labeling point should larger than the fifth pointand less than the seventh point. Independently predictingeach offset may lead to unsmooth text region, and some-how it may bring more false detection. Therefore, we as-sume the width/height of each point has associated contextinformation, and using RNN to learn their latent character-istics. We name this method as recurrent transverse andlongitudinal offset connection (TLOC). The TLOC struc-ture is shown with purple patterns in Figure 4 and we alsolist some examples in Figure 5 to show the difference ofwhether adding TLOC or not. To adopt TLOC, we findthe output of PSROIPooling is suitable to encode the off-sets context information. Take the width offset branch asan example; firstly, PSROIPooling outputs 14 p2 score mapfor voting w1, ..., w14 of each proposal, and p2 bins of thei-th score map have p2 voting values from respective posi-tion, which can be encoded as the feature of wi; The RNNthan takes width offsets feature of each point as sequentialinputs, and recurrently updates the inherent state inside thehidden layers, Lt, i.e.

Lt = ϕ(Lt−1, Ot), t = 1, 2, ..., 14 (5)

where Ot ∈ <P 2

is the t-th predicting offset from the cor-responding psroi-pooling output channel. Lt is a recurrent

internal state computed from both current input (Ot) andthe last state encoded in Lt−1. The recurrence is computedby using a non-linear function ϕ, where we adopt a bi-directional long short-term memory (BLSTM) architecture[11] as our RNN. The internal state inside the RNN hid-den layer associates the sequential context information byall previous estimated offsets through the recurrent connec-tion, and we empirically use a 256D BLSTM hidden layer,thus Lt ∈ <256. Finally, the output of the BLSTM is a 14dimensional 1 × 256 vector, which is globally pooled by a(1× 256) kernel to output the final prediction.

4.3. Long Side Interpolation

As introduced in Sec. 4.1, for each bounding box, theCTD outputs offsets for 14 points. However, almost all cur-rent benchmark datasets only have labels of two or four ver-texes information. To train in these datasets, we can easilyinterpolate the equal division points in the largest side andits opposite side as shown in 6.

Figure 6. Visualization of the interpolation for 4 points boundingboxes. The 10 equal division points will be respectively inter-polated in two Red sides of each bounding box. Green meansstraight line without interpolation.

Promisingly, by simply interpolating the points in thebounding box, our CTD can be effectively trained with alltext region and it can achieve better results as demonstratedin the experiment section.

4.4. Polygonal Post Processing

Non-polygon suppression (NPS). False positive detect-ing results are one of the important reasons that restrictingthe performance of text detection. However, in CTD, somediffident false positives will appear with invalid shape (fora valid polygon, there is not any intersecting side). In addi-tion, there is hardly any scene text come out with intersect-ing side, and these invalid polygons are nearly impossibleto recognize. Therefore, we simply suppress all these in-valid polygons and we named it a non-polygon suppression(NPS), which can slightly improve the accuracy without in-fluencing the recall rate.

Polygonal non-maximum suppression (PNMS). Non-maximum suppression [24] is proved very effective for ob-ject detection task. Because of the particularity of the curvescene text, rectangular NMS is limited to handle dense

6

Page 7: Detecting Curve Text in the Wild: New Dataset and ... - arXiv

Figure 7. Detection results visualization. The fourth column lists some inferior results and the images from last column are from otherdatasets for further testing the generalization ability.

multi-oriented text as shown in Figure 1 (a) and (c). Tosolve this problem, [38] propose a locality-aware NMS and[4] devise a Mask-NMS to suppress the final output results.In this paper, we also improve the NMS by computing theoverlapping area between polygons, named polygon non-maximum suppression (PNMS), which is proved effectivein the following experiments.

5. Experiments

In this section, we carry experiments on the proposedCTW1500 dataset to test our method. The testing environ-ment is Ubuntu 16.04 64bit with single Nvidia 1080 GPU.All the text detection results are evaluated with the protocolintroduced in section 3, which exactly calculates the IoUbetween the polygons instead of axis-align rectangles. Forfair comparison, all the experiments only use the providedtraining data without any data augmentation.

Effectiveness of TLOC and PNMS. We first evaluatethe availability of proposed TLOC and PNMS, and the re-sults are given in Table 3. In this table, we can find what-ever using CTD or CTD + TLOC, the PNMS can alwaysslightly outperform the classic NMS. On the other hand, theresults also demonstrate that by simply adding TLOC, theproposed CTD can be improved about 4 percents in termsof Hmean. Note that we don’t compare NPS here becauseit is a prerequisite post-processing method for evaluatingpolygonal overlapping area, which can slightly improve theaccuracy.

Comparison with state-of-the-arts methods. For com-prehensively evaluating our method, we compare the pro-posed CTD and CTD + TLOC with several state-of-the-artand common text detection methods. Note that for East [38]and Seglink [27], we re-implement these methods basedon the unofficial source codes from github, and for faircomparison, we do not use huge synthetic data to pre-trainseglink which may reduce its performance. For DMPNet[21] and CTPN [32], we both use Caffe [15] frameworkto re-implement these methods. Besides, because none ofthese methods can be trained with curve text region, wefollow the traditional circumscribed rectangular boundingbox to make the labels trainable for them. Table 2 lists theexperimental results. The results of the whole CTW-1500test set show that the proposed CTD + TLOC can outper-form state-of-the-art methods with more than 10 percentsin terms of Hmean. To further evaluating the effectiveness,we also split the curve and non-curve text from the wholetest set by simply regarding the other kind of text as diffi-cult (not care) and making comparison. Promisingly, in thecurve subset, proposed CTD + TLOC can outperform state-of-the-art methods with at least 28 percents of Hmean, andmeanwhile, this method can also achieve the best results indetecting only non-curve texts, demonstrating its robustnessand universality. Note that for our method, the results of thesubset are both less than the whole set are because the waytreating the other text as difficult will reduce the precision.

Besides, we compare the detection speed in the last col-umn of the Table 2 and the results (13.3 or 15.2 FPS) showthat our method is the second fastest, which also proves the

7

Page 8: Detecting Curve Text in the Wild: New Dataset and ... - arXiv

Table 2. Experiments on the proposed CTW1500 test set, curve subset and non-curve subset. R: Recall. P: Precision. H: Hmean. S: Speed.Speed column evaluates the time of the forward procedure without post-processing.

Algorithm Whole set Non-curve subset Curve subset S (FPS)R (%) P (%) H (%) R (%) P (%) H (%) R (%) P (%) H (%)Seglink [27] 40.0 42.3 40.8 48.4 38.3 42.8 19.4 9.9 13.2 10.7

SWT [6] 9.0 20.7 12.5 5.8 13.4 8.1 6.4 7.0 6.7 -CTPN [32] 53.8 60.4 56.9 59.4 54.3 56.7 37.7 34.1 35.8 7.14EAST [38] 49.1 78.7 60.4 57.5 71.0 63.6 29.9 40.9 34.6 21.2

DMPNet [21] 56.0 69.9 62.2 61.7 63.9 62.7 39.3 35.5 37.3 12.3AdaBoost [2] 4.4 6.7 5.3 - - - - - - -

CTD (ours) 65.2 74.3 69.5 60.3 67.3 63.5 73.9 52.9 61.6 15.2CTD + TLOC (ours) 69.8 77.4 73.4 62.3 70.8 66.3 77.1 57.1 65.6 13.3

Table 3. Experiments to evaluate TLOC and PNMS. Here we canuse NMS is because CTD remains the circumscribed rectanglebranch, and the float number is the threshold. R: Recall rate. P:Precision. H: Hmean.

Algorithm R (%) P (%) H (%)CTD + NMS0.3 64.4 74.9 69.3

CTD + PNMS0.1 65.2 74.3 69.5CTD + TLOC + PNMS0.1 69.8 77.4 73.4CTD + TLOC + PNMS0.2 70.1 75.0 72.4CTD + TLOC + PNMS0.3 70.8 71.6 71.2CTD + TLOC + PNMS0.4 71.7 65.3 68.3CTD + TLOC + NMS0.1 63.7 78.4 70.3CTD + TLOC + NMS0.2 68.6 78.1 73.1CTD + TLOC + NMS0.3 69.7 77.1 73.2CTD + TLOC + NMS0.4 70.8 74.7 72.7

effectiveness of our method.Examples of the detection results are visualized in Figure

7. In the last column of this figure, we also use our CTD todetect the curve texts from other dataset, which qualitativelydemonstrates its powerful ability for detecting curve texts,as well as its generalization ability.

6. Conclusions and Future WorkCurve text is common in our real world but currently

few datasets or methods are aiming at curve text detection.In order to facilitate this new challenging research of read-ing curve text in the wild, in this paper, we propose a newdataset named CTW1500, which is a novel dataset mainlyconstructed by curve text. The curve text in this dataset areapproximated labeled by polygon which do not require toomuch manpower. In addition, we propose a new CTD ap-proach which may be the first attempt to directly detect thecurve texts. By devising a transverse and longitudinal off-set connection (TLOC) method, the CTD can be seamlesslyconnected with RNN, which significantly improves the de-tecting performance. We also propose a simple but effective

long side interpolation technique, which let CTD become anuniversal method that can also be trained with rectangularor quadrilateral bounding boxes without additional manualefforts. Lastly, we design two post-processing methods thatare also demonstrated effective.

In future, the propose dataset could be enlarged as acurve text based recognition dataset, because the labelingmanner seems good for recognition. Besides, although theflexible detecting manner like our CTD may be slightlyslower than an rigid rectangle based detector, the formercan solve more complicated problems like detecting curvetext and achieving better results, which should worth furtherexploration.

References[1] A. Ablavatski, S. Lu, and J. Cai. Enriched deep recurrent

visual attention model for multiple object recognition. InApplications of Computer Vision (WACV), 2017 IEEE WinterConference on, pages 971–978. IEEE, 2017.

[2] X. Chen and A. L. Yuille. Detecting and reading text in nat-ural scenes. In Computer Vision and Pattern Recognition,2004. CVPR 2004. Proceedings of the 2004 IEEE ComputerSociety Conference on, volume 2, pages II–II. IEEE, 2004.

[3] J. Dai, Y. Li, K. He, and J. Sun. R-fcn: Object detectionvia region-based fully convolutional networks. In Advancesin neural information processing systems, pages 379–387,2016.

[4] Y. Dai, Z. Huang, Y. Gao, and K. Chen. Fused text segmenta-tion networks for multi-oriented scene text detection. arXivpreprint arXiv:1709.03272, 2017.

[5] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. Imagenet: A large-scale hierarchical image database.In Computer Vision and Pattern Recognition, 2009. CVPR2009. IEEE Conference on, pages 248–255. IEEE, 2009.

[6] B. Epshtein, E. Ofek, and Y. Wexler. Detecting text in natu-ral scenes with stroke width transform. In Computer Visionand Pattern Recognition (CVPR), 2010 IEEE Conference on,pages 2963–2970. IEEE, 2010.

[7] M. Everingham, L. Van Gool, C. K. Williams, J. Winn, andA. Zisserman. The pascal visual object classes (voc) chal-

8

Page 9: Detecting Curve Text in the Wild: New Dataset and ... - arXiv

lenge. International journal of computer vision, 88(2):303–338, 2010.

[8] K. He, G. Gkioxari, P. Dollr, and R. Girshick. Mask r-cnn.Proceedings of the IEEE International Conference on Com-puter Vision, 2017.

[9] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learn-ing for image recognition. In Proceedings of the IEEE con-ference on computer vision and pattern recognition, pages770–778, 2016.

[10] W. He, X.-Y. Zhang, F. Yin, and C.-L. Liu. Deep direct re-gression for multi-oriented scene text detection. Proceedingsof the IEEE International Conference on Computer Vision,2017.

[11] S. Hochreiter and J. Schmidhuber. Long short-term memory.Neural Computation, 9(8):1735–1780, 1997.

[12] H. Hu, C. Zhang, Y. Luo, Y. Wang, J. Han, and E. Ding.Wordsup: Exploiting word annotations for character basedtext detection. Proceedings of the IEEE International Con-ference on Computer Vision, 2017.

[13] e. a. I, Bizid. “icdar2017 robust reading competition chal-lenge on multi-lingual scene text detection and script identi-fication” [online]. http://rrc.cvc.uab.es/?ch=8, 2017.

[14] M. T. M. N. S. H. I. Y. K. K. e. a. Iwamura, M. “icdar 2017robust reading challenge on omnidirectional video” [online].http://rrc.cvc.uab.es/?ch=7, 2017.

[15] Y. Jia and e. a. Shelhamer, Evan. Caffe: Convolutional ar-chitecture for fast feature embedding. In Proceedings of the22nd ACM international conference on Multimedia, pages675–678. ACM, 2014.

[16] D. Karatzas and e. a. Gomez-Bigorda, Lluis. Icdar 2015competition on robust reading. In Document Analysis andRecognition (ICDAR), 2015 13th International Conferenceon, pages 1156–1160. IEEE, 2015.

[17] D. Karatzas, F. Shafait, S. Uchida, M. Iwamura, L. G. I. Big-orda, S. R. Mestre, J. Mas, D. F. Mota, J. A. Almazn, andL. P. D. L. Heras. Icdar 2013 robust reading competition. InInternational Conference on Document Analysis and Recog-nition, pages 1484–1493, 2013.

[18] I. Krasin and e. a. Duerig, Tom. Openimages: Apublic dataset for large-scale multi-label and multi-class image classification. Dataset available fromhttps://github.com/openimages, 2017.

[19] C.-Y. Lee and S. Osindero. Recursive recurrent nets with at-tention modeling for ocr in the wild. In Proceedings of theIEEE Conference on Computer Vision and Pattern Recogni-tion, pages 2231–2239, 2016.

[20] H. Li, P. Wang, and C. Shen. Towards end-to-end text spot-ting with convolutional recurrent neural networks. arXivpreprint arXiv:1707.03985, 2017.

[21] Y. Liu and L. Jin. Deep matching prior network: Towardtighter multi-oriented text detection. Proceedings of theIEEE Conference on Computer Vision and Pattern Recog-nition, 2017.

[22] S. M. Lucas, A. Panaretos, L. Sosa, A. Tang, S. Wong, andR. Young. Icdar 2003 robust reading competitions. In Docu-ment Analysis and Recognition, 2003. Proceedings. SeventhInternational Conference on, pages 682–687. IEEE, 2003.

[23] R. Nagy, A. Dicker, and K. Meyer-Wegener. Neocr: A con-figurable dataset for natural image text recognition. In In-ternational Workshop on Camera-Based Document Analysisand Recognition, pages 150–163. Springer, 2011.

[24] A. Neubeck and L. V. Gool. Efficient non-maximum sup-pression. In International Conference on Pattern Recogni-tion, pages 850–855, 2006.

[25] S. Ren, K. He, R. Girshick, and J. Sun. Faster r-cnn: Towardsreal-time object detection with region proposal networks. InAdvances in neural information processing systems, pages91–99, 2015.

[26] A. Shahab, F. Shafait, and A. Dengel. Icdar 2011 robustreading competition challenge 2: Reading text in scene im-ages. In Document Analysis and Recognition (ICDAR), 2011International Conference on, pages 1491–1496. IEEE, 2011.

[27] B. Shi, X. Bai, and S. Belongie. Detecting oriented textin natural images by linking segments. Proceedings of theIEEE Conference on Computer Vision and Pattern Recogni-tion, 2017.

[28] B. Shi, X. Bai, and C. Yao. An end-to-end trainable neuralnetwork for image-based sequence recognition and its appli-cation to scene text recognition. IEEE transactions on pat-tern analysis and machine intelligence, 2016.

[29] B. Shi, X. Wang, P. Lyu, C. Yao, and X. Bai. Robust scenetext recognition with automatic rectification. In Proceed-ings of the IEEE Conference on Computer Vision and PatternRecognition, pages 4168–4176, 2016.

[30] B. Shi, Yao, M. Liao, Y. M., X. P., L. Cui, L. S. Serge Be-longie, and B. X. Icdar2017 competition on reading chinesetext in the wild (rctw-17). arXiv preprint arXiv:1708.09585,2017.

[31] K. Simonyan and A. Zisserman. Very deep convolutionalnetworks for large-scale image recognition. arXiv preprintarXiv:1409.1556, 2014.

[32] Z. Tian, W. Huang, T. He, P. He, and Y. Qiao. Detecting textin natural image with connectionist text proposal network.In European Conference on Computer Vision, pages 56–72.Springer, 2016.

[33] A. Veit and e. a. Matera, Tomas. Coco-text: Dataset andbenchmark for text detection and recognition in natural im-ages. arXiv preprint arXiv:1601.07140, 2016.

[34] K. Wang and S. Belongie. Word spotting in the wild. InEuropean Conference on Computer Vision, pages 591–604.Springer, 2010.

[35] C. Yao, X. Bai, W. Liu, and Y. Ma. Detecting texts of arbi-trary orientations in natural images. In Computer Vision andPattern Recognition, pages 1083–1090, 2012.

[36] C. Yi and Y. Tian. Text string detection from natural scenesby structure-based partition and grouping. IEEE Transac-tions on Image Processing, 20(9):2594–2605, 2011.

[37] X. C. Yin, W. Y. Pei, J. Zhang, and H. W. Hao. Multi-orientation scene text detection with adaptive clustering.IEEE Transactions on Pattern Analysis & Machine Intelli-gence, 37(9):1930, 2015.

[38] X. Zhou, C. Yao, H. Wen, Y. Wang, S. Zhou, W. He, andJ. Liang. East: An efficient and accurate scene text detec-tor. Proceedings of the IEEE Conference on Computer Visionand Pattern Recognition, 2017.

9