Space recognition method and device in text line, electronic equipment and storage medium

The invention discloses a space recognition method and device in a text line, electronic equipment and a storage medium, and relates to the technical field of image processing. The method comprises the steps of acquiring a text grey-scale map, wherein the text grey-scale map only comprises a single-...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: SHANG TAIZHANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a space recognition method and device in a text line, electronic equipment and a storage medium, and relates to the technical field of image processing. The method comprises the steps of acquiring a text grey-scale map, wherein the text grey-scale map only comprises a single-line text; calculating the sum of pixel values of each row of pixel points in a preset direction inthe text grey-scale map, wherein the preset direction is a direction perpendicular to a character arrangement direction in the single-row text; and taking a connected domain formed by the pixel pointscorresponding to the sum of the pixel values in the first pixel value interval as a space in the single-row text, the first pixel value interval being an interval in which the sum of the pixel valuescorresponding to the space in the text grey-scale map is located. According to the technical scheme, the space in the single-row text can be determined. 本申请公开了一种文本行中的空格识别方法、装置、电子设备及存储介质,涉及图像处理技术领域。其中,该方法包括:获取文本灰度图,所述文本灰度图中仅包括单