Certificate area positioning method and device

The invention provides a certificate area positioning method and device, and the method comprises the steps: obtaining a to-be-processed image which comprises a certificate image; performing binarization processing on the to-be-processed image to obtain an edge detection image including an edge line...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: HUANG ZEHAO, XIONG DONGGEN
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 provides a certificate area positioning method and device, and the method comprises the steps: obtaining a to-be-processed image which comprises a certificate image; performing binarization processing on the to-be-processed image to obtain an edge detection image including an edge line; identifying lines in the edge detection image; grouping the lines according to the types and positions of the lines to obtain four groups of lines; selecting one line from each group of lines in the four groups of lines to obtain four lines; and determining an area corresponding to the four linesas the area of the certificate image. By implementing the method, the certificate positioning precision can be improved, and subsequent image processing is facilitated. 本申请提出一种证件区域定位的方法及装置,该方法包括:获取待处理图像,所述待处理图像包含证件图像;对所述待处理图像进行二值化处理,得到包括边缘线的边缘检测图像;识别所述边缘检测图像中的线条;按照线条的类型和线条的位置对所述线条进行分组,得到四组线条;从所述四组线条中的每组线条选取一条线条,得到四条线条;将所述四条线条对应的区域确定为所述证件图像的区域。实施本申请,可以提升证件定位精度,方便后续的图像处理。