文字偵測:針對模糊文字放大解析重新偵測
Zooming In for Text Detection with Blurry Text
摘要
近年來,基於分割的方法的場景文本檢測逐漸受到關注。分割結果可有效預測各種形狀的文本,例如大多數場景之中常見的不規則文本。然而在處理不規則文本仍然存在兩個挑戰:1)在大解析度的圖像偵測小的文本實例; 2)手持裝置所拍出的模糊圖像。在本文中,我們提出了可以解決這兩個挑戰的網絡。
首先,我們使用BiFPN模組來改善不同尺寸特徵圖其之間的相關性。此模組將自下而上和從上而下的特徵圖融合在一起使得不同尺寸的特徵圖能夠豐富其幾何以及語意上的意義並且將輸入的特徵圖透過可學習參數融合在一起,而不是傳統使用的相加或連接。
其次,我們提出了一個放大模組,該模組根據標準分割的預測得到有文字反映最大的坐標,並使用這些坐標對輸入圖像進行裁剪,然後利用裁剪後的圖像再次進行預測以獲得更好的結果。
第三,我們設計了一個集成模塊,以融合來自標準分段和放大模塊的預測,因為在極少數情況下,來自放大模塊的預測可能比來自標準預測的預測要差。在訓練階段,我們使用模糊的文本來訓練數據,這在以前的研究中經常被忽略。模糊文本通常會混淆模型(無論是否為文本),因此先前的作品會忽略此資料以獲取更好的效果。我們的模型以較高的準確性給出了文本區域的描述,並在評估中實現了更好的效果。在具有挑戰性的數據集上進行的實驗驗證了我們提出的方法在模糊文本實例中的表現優於先前的工作。
首先,我們使用BiFPN模組來改善不同尺寸特徵圖其之間的相關性。此模組將自下而上和從上而下的特徵圖融合在一起使得不同尺寸的特徵圖能夠豐富其幾何以及語意上的意義並且將輸入的特徵圖透過可學習參數融合在一起,而不是傳統使用的相加或連接。
其次,我們提出了一個放大模組,該模組根據標準分割的預測得到有文字反映最大的坐標,並使用這些坐標對輸入圖像進行裁剪,然後利用裁剪後的圖像再次進行預測以獲得更好的結果。
第三,我們設計了一個集成模塊,以融合來自標準分段和放大模塊的預測,因為在極少數情況下,來自放大模塊的預測可能比來自標準預測的預測要差。在訓練階段,我們使用模糊的文本來訓練數據,這在以前的研究中經常被忽略。模糊文本通常會混淆模型(無論是否為文本),因此先前的作品會忽略此資料以獲取更好的效果。我們的模型以較高的準確性給出了文本區域的描述,並在評估中實現了更好的效果。在具有挑戰性的數據集上進行的實驗驗證了我們提出的方法在模糊文本實例中的表現優於先前的工作。
Recently, scene text detection with segmentation-based methods has been receiving more and more attention. The segmentation results can be used to efficiently predict scene texts of various shapes, such as irregular text in most scene text images. However, there are two challenges: 1) the large scale image with tiny text instances; 2) the blurry images with a handheld device. In this thesis, we propose a network that can solve these two challenges. First, we use the BiFPN module to improve the correlation of feature maps of different scales. This module fuses the feature bottom-up and top-down with the learnable parameters for the input features instead of adding or concatenating the features to each other as what have been done in previous works. Second, we propose a zooming in module, which gets the coordinate with the largest response according to the prediction from standard segmentation and uses these coordinates to crop the input image and then uses the cropped image to make prediction again to obtain a better result. Third, we design an integrating module to fuse the predictions from standard segmentation and zooming in module. We train the data with blurry text, which is often ignored in previous works. Our model gives descriptions of text regions with higher accuracy and achieves better performance in evaluation. The experiment on the challenging datasets verifies that the method we proposed outperform previous works in the blurry text instances.