A method for positioning four edges of a medical bill table
The invention relates to a method for positioning four edges of a medical bill table. The method comprises the following steps: step 1, obtaining bill image data; 2, removing black edges of the bill image, wherein the color filled in the black edges of the image is the mean value of RGB three channe...
Gespeichert in:
Hauptverfasser: | , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a method for positioning four edges of a medical bill table. The method comprises the following steps: step 1, obtaining bill image data; 2, removing black edges of the bill image, wherein the color filled in the black edges of the image is the mean value of RGB three channels; Step 3, after the step 2, correcting the image through a straight line detection method; 4, after the step 3, positioning four vertexes of the table by processing a table connected domain; And 5, ending, and outputting a result. The four edges of the bill image table can be automatically positioned by adopting an image processing technology method, and a guarantee is provided for subsequently positioning the content information in the table and identifying the accuracy of characters.
本发明涉及一种定位医疗票据表格四边的方法,所述方法包括如下步骤:步骤1:获取票据图像数据;步骤2:票据图像去黑边,图像黑边填充的颜色为RGB三通道的均值;步骤3:步骤2后,通过直线检测的方法,对图像进行转正;步骤4:步骤3后,通过对表格连通域的处理来定位表格的4个顶点;步骤5:结束,输出结果。本发明采用图像处理技术的方法可自动定位票据图像表格的四边位置,为后续定位表格中的内容信息及识别字符的准确性提供了保证。 |
---|