DE102019106429A1 - Device for detecting an edge in an image of an identification document - Google Patents
Device for detecting an edge in an image of an identification document Download PDFInfo
- Publication number
- DE102019106429A1 DE102019106429A1 DE102019106429.5A DE102019106429A DE102019106429A1 DE 102019106429 A1 DE102019106429 A1 DE 102019106429A1 DE 102019106429 A DE102019106429 A DE 102019106429A DE 102019106429 A1 DE102019106429 A1 DE 102019106429A1
- Authority
- DE
- Germany
- Prior art keywords
- color value
- image
- edge
- pixel
- edge pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
- 238000009826 distribution Methods 0.000 claims abstract description 54
- 238000003708 edge detection Methods 0.000 claims abstract description 14
- 238000000034 method Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 10
- 238000001514 detection method Methods 0.000 description 5
- 238000004040 coloring Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000013459 approach Methods 0.000 description 2
- 238000009795 derivation Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000013475 authorization Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
- 238000003908 quality control method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D7/00—Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
- G07D7/06—Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using wave or particle radiation
- G07D7/12—Visible light, infrared or ultraviolet radiation
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D7/00—Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
- G07D7/20—Testing patterns thereon
- G07D7/2008—Testing patterns thereon using pre-processing, e.g. de-blurring, averaging, normalisation or rotation
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D7/00—Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
- G07D7/20—Testing patterns thereon
- G07D7/2016—Testing patterns thereon using feature extraction, e.g. segmentation, edge detection or Hough-transformation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Theoretical Computer Science (AREA)
- Image Analysis (AREA)
Abstract
Die Erfindung betrifft eine Vorrichtung 100 zum Erfassen einer Kante in einem Bild eines Identifikationsdokumentes. Die Vorrichtung 100 umfasst eine erste Bestimmungseinrichtung 101, welche ausgebildet ist, eine erste Häufigkeitsverteilung von Farbwerten entlang einer ersten vorbestimmten Suchgeraden in dem Bild des Identifikationsdokumentes zu bestimmen, einen ersten mittleren Farbwert der ersten Häufigkeitsverteilung zu bestimmen, und eine erste Position eines ersten Kantenpixels entlang der ersten vorbestimmten Suchgeraden zu bestimmen. Die Vorrichtung 100 umfasst ferner eine zweite Bestimmungseinrichtung 103, welche ausgebildet ist, eine zweite Häufigkeitsverteilung von Farbwerten entlang einer zweiten vorbestimmten Suchgeraden in dem Bild des Identifikationsdokumentes zu bestimmen, einen zweiten mittleren Farbwert der zweiten Häufigkeitsverteilung zu bestimmen, und eine zweite Position eines zweiten Kantenpixels entlang der zweiten vorbestimmten Suchgeraden zu bestimmen. Die Vorrichtung 100 umfasst ferner eine Kantenerfassungseinrichtung 105, welche ausgebildet ist, die Kante in dem Bild des Identifikationsdokumentes auf der Basis der ersten Position des ersten Kantenpixels und der zweiten Position des zweiten Kantenpixels zu erfassen.The invention relates to a device 100 for detecting an edge in an image of an identification document. The device 100 comprises a first determination device 101, which is designed to determine a first frequency distribution of color values along a first predetermined search line in the image of the identification document, to determine a first mean color value of the first frequency distribution, and a first position of a first edge pixel along the first predetermined search line to be determined. The device 100 further comprises a second determination device 103 which is designed to determine a second frequency distribution of color values along a second predetermined search line in the image of the identification document, to determine a second mean color value of the second frequency distribution, and to determine a second position of a second edge pixel to determine the second predetermined search line. The device 100 further comprises an edge detection device 105 which is designed to detect the edge in the image of the identification document on the basis of the first position of the first edge pixel and the second position of the second edge pixel.
Description
Die vorliegende Erfindung betrifft das Gebiet der Mustererkennung, insbesondere der Kantenerkennung, in einem digitalen Bild.The present invention relates to the field of pattern recognition, in particular edge recognition, in a digital image.
Bei einer Vielzahl von Anwendungen, beispielsweise bei der Qualitätskontrolle während der Herstellung von Identifikationsdokumenten oder der mobilen Verifikation von Identifikationsdokumenten mittels Smartphones, ist eine perspektivische Entzerrung erfasster Bilder wünschenswert. Die perspektivische Entzerrung derartiger Bilder basiert zumeist auf der Erfassung zumindest einer Kante in dem Bild des Identifikationsdokumentes, wobei die Kante einen Rand des Identifikationsdokumentes repräsentiert.In a large number of applications, for example in quality control during the production of identification documents or mobile verification of identification documents using smartphones, perspective rectification of captured images is desirable. The perspective rectification of such images is mostly based on the detection of at least one edge in the image of the identification document, the edge representing an edge of the identification document.
Bekannte Ansätze zur Kantenerkennung sind im Allgemeinen aufwändig zu implementieren, da diese eine zuverlässige Erkennung der Kanten selbst unter schwierigsten Beleuchtungsverhältnissen sowie unterschiedlichsten Oberflächenstrukturierungen der Identifikationsdokumente gewährleisten sollen. In bestimmten Anwendungsszenarien kann jedoch davon ausgegangen werden, dass sowohl das Identifikationsdokument als auch ein etwaiger Hintergrund in dem Bild jeweils homogen erscheinen. Dies kann beispielsweise durch geeignete vorbekannte Beleuchtungsverhältnisse gewährleistet werden. Für derartige Anwendungsfälle sind die bekannten Ansätze zur Kantenerkennung typischerweise zu aufwändig und binden unnötig Rechen- bzw. Speicherressourcen.Known approaches to edge detection are generally complex to implement, since they are intended to ensure reliable detection of the edges even under the most difficult lighting conditions and the most varied of surface structures of the identification documents. In certain application scenarios, however, it can be assumed that both the identification document and any background appear homogeneous in the image. This can be ensured, for example, by suitable, previously known lighting conditions. For such applications, the known approaches to edge detection are typically too complex and unnecessarily tie up computing and memory resources.
Es ist daher eine Aufgabe der vorliegenden Erfindung, ein effizientes Konzept zum Erfassen einer Kante in einem Bild eines Identifikationsdokumentes zu schaffen.It is therefore an object of the present invention to create an efficient concept for detecting an edge in an image of an identification document.
Diese Aufgabe wird durch die Merkmale der unabhängigen Ansprüche gelöst. Vorteilhafte Weiterbildungsformen sind Gegenstand der abhängigen Patentansprüche, der Beschreibung sowie der Zeichnungen.This object is achieved by the features of the independent claims. Advantageous forms of further development are the subject matter of the dependent claims, the description and the drawings.
Die Erfindung basiert auf der Erkenntnis, dass die obige Aufgabe durch die Auswertung zweier Häufigkeitsverteilungen von Farbwerten entlang zweier Suchgeraden in dem Bild des Identifikationsdokumentes effizient gelöst werden kann. Insbesondere erlaubt die Auswertung der Häufigkeitsverteilungen eine dynamische Anpassung an die Farbdynamik des Bildes des Identifikationsdokumentes, wodurch selbst bei einer geringen Farbdynamik eine zuverlässige Erfassung der Kante ermöglicht wird. Das Konzept geeignet sich insbesondere für Anwendungsfälle, in denen die Färbung des Identifikationsdokumentes sowie die Färbung des Hintergrundes in dem Bild jeweils homogen erscheinen, d.h. innerhalb des jeweiligen Bereiches nur geringfügig schwanken.The invention is based on the knowledge that the above object can be efficiently achieved by evaluating two frequency distributions of color values along two search lines in the image of the identification document. In particular, the evaluation of the frequency distributions allows dynamic adaptation to the color dynamics of the image of the identification document, which enables reliable detection of the edge even with low color dynamics. The concept is particularly suitable for applications in which the coloring of the identification document and the coloring of the background appear homogeneous in the image, i.e. fluctuate only slightly within the respective range.
Das Identifikationsdokument kann beispielsweise eines der folgenden Identifikationsdokumente sein: Identitätsdokument, wie Personalausweis, Reisepass, Zugangskontrollausweis, Berechtigungsausweis, Unternehmensausweis, Steuerzeichen oder Ticket, Geburtsurkunde, Führerschein oder Kraftfahrzeugausweis, Zahlungsmittel, beispielsweise eine Bankkarte oder Kreditkarte. Das Identifikationsdokument kann ein- oder mehrlagig bzw. papier- und/oder kunststoffbasiert sein.The identification document can be, for example, one of the following identification documents: identity document, such as ID card, passport, access control ID, authorization ID, company ID, tax code or ticket, birth certificate, driver's license or vehicle ID, means of payment such as a bank card or credit card. The identification document can have one or more layers or be paper and / or plastic-based.
Gemäß einem ersten Aspekt betrifft die Erfindung eine Vorrichtung zum Erfassen einer Kante in einem Bild eines Identifikationsdokumentes, wobei das Bild des Identifikationsdokumentes eine Mehrzahl von Pixeln aufweist, und wobei jedem Pixel jeweils ein Farbwert zugeordnet ist. Die Vorrichtung umfasst eine erste Bestimmungseinrichtung, welche ausgebildet ist, eine erste Häufigkeitsverteilung von Farbwerten entlang einer ersten vorbestimmten Suchgeraden in dem Bild des Identifikationsdokumentes zu bestimmen, einen ersten mittleren Farbwert der ersten Häufigkeitsverteilung zu bestimmen, und eine erste Position eines ersten Kantenpixels entlang der ersten vorbestimmten Suchgeraden zu bestimmen, wobei dem ersten Kantenpixel der erste mittlere Farbwert zugeordnet ist. Die Vorrichtung umfasst ferner eine zweite Bestimmungseinrichtung, welche ausgebildet ist, eine zweite Häufigkeitsverteilung von Farbwerten entlang einer zweiten vorbestimmten Suchgeraden in dem Bild des Identifikationsdokumentes zu bestimmen, einen zweiten mittleren Farbwert der zweiten Häufigkeitsverteilung zu bestimmen, und eine zweite Position eines zweiten Kantenpixels entlang der zweiten vorbestimmten Suchgeraden zu bestimmen, wobei dem zweiten Kantenpixel der zweite mittlere Farbwert zugeordnet ist. Die Vorrichtung umfasst ferner eine Kantenerfassungseinrichtung, welche ausgebildet ist, die Kante in dem Bild des Identifikationsdokumentes auf der Basis der ersten Position des ersten Kantenpixels und der zweiten Position des zweiten Kantenpixels zu erfassen.According to a first aspect, the invention relates to a device for detecting an edge in an image of an identification document, the image of the identification document having a plurality of pixels, and each pixel being assigned a color value. The device comprises a first determination device which is designed to determine a first frequency distribution of color values along a first predetermined search line in the image of the identification document, to determine a first mean color value of the first frequency distribution, and a first position of a first edge pixel along the first predetermined one To determine search lines, the first mean color value being assigned to the first edge pixel. The device further comprises a second determination device which is designed to determine a second frequency distribution of color values along a second predetermined search line in the image of the identification document, to determine a second mean color value of the second frequency distribution, and a second position of a second edge pixel along the second to determine predetermined search line, wherein the second edge pixel is assigned to the second mean color value. The device further comprises an edge detection device which is designed to detect the edge in the image of the identification document on the basis of the first position of the first edge pixel and the second position of the second edge pixel.
Gemäß einer Ausführungsform verläuft die erfasste Kante durch den ersten Kantenpixel und durch den zweiten Kantenpixel. Dadurch wird der Vorteil erreicht, dass die Kante besonders effizient erfasst werden kann.According to one embodiment, the detected edge runs through the first edge pixel and through the second edge pixel. This has the advantage that the edge can be captured particularly efficiently.
Gemäß einer Ausführungsform verlaufen die erste vorbestimmte Suchgerade und die zweite vorbestimmte Suchgerade parallel zueinander. Dadurch wird der Vorteil erreicht, der erste Kantenpixel und der zweite Kantenpixel bei einer reinen Verkippung des Identifikationsdokumentes demselben Rand des Identifikationsdokumentes zugeordnet sind. According to one embodiment, the first predetermined search line and the second predetermined search line run parallel to one another. This achieves the advantage that the first edge pixel and the second edge pixel are assigned to the same edge of the identification document when the identification document is simply tilted.
Gemäß einer Ausführungsform weisen die erste vorbestimmte Suchgerade und die zweite vorbestimmte Suchgerade einen vorbestimmten Abstand voneinander auf. Dadurch wird der Vorteil erreicht, dass die Größe des Identifikationsdokumentes in dem Bild bei der Erfassung der Kante effizient berücksichtigt werden kann. According to one embodiment, the first predetermined search line and the second predetermined search line are at a predetermined distance from one another. This has the advantage that the size of the identification document in the image can be efficiently taken into account when the edge is detected.
Gemäß einer Ausführungsform ist die erste Bestimmungseinrichtung ausgebildet, die erste Position des ersten Kantenpixels ausgehend von der Mitte des Bildes in Richtung eines Randes des Bildes zu bestimmen, wobei die zweite Bestimmungseinrichtung ausgebildet ist, die zweite Position des zweiten Kantenpixels ausgehend von der Mitte des Bildes in Richtung des Randes des Bildes zu bestimmen. Dadurch wird der Vorteil erreicht, dass eine unterschiedliche Homogenität des Identifikationsdokumentes und eines etwaigen Hintergrundes in dem Bild effizient berücksichtigt werden können.According to one embodiment, the first determining device is designed to determine the first position of the first edge pixel starting from the center of the image in the direction of an edge of the image, the second determining device being designed to determine the second position of the second edge pixel starting from the center of the image in Determine the direction of the edge of the image. This has the advantage that a different homogeneity of the identification document and any background in the image can be efficiently taken into account.
Gemäß einer Ausführungsform ist die erste Bestimmungseinrichtung ausgebildet, die erste Position des ersten Kantenpixels ausgehend von einem Rand des Bildes in Richtung der Mitte des Bildes zu bestimmen, wobei die zweite Bestimmungseinrichtung ausgebildet ist, die zweite Position des zweiten Kantenpixels ausgehend von dem Rand des Bildes in Richtung der Mitte des Bildes zu bestimmen. Dadurch wird der Vorteil erreicht, dass eine unterschiedliche Homogenität des Identifikationsdokumentes und eines etwaigen Hintergrundes in dem Bild effizient berücksichtigt werden können.According to one embodiment, the first determining device is designed to determine the first position of the first edge pixel starting from an edge of the image in the direction of the center of the image, the second determining device being designed to determine the second position of the second edge pixel starting from the edge of the image in Determine the direction of the center of the image. This has the advantage that a different homogeneity of the identification document and any background in the image can be efficiently taken into account.
Gemäß einer Ausführungsform ist die erste Bestimmungseinrichtung ausgebildet, einen ersten minimalen Farbwert in der ersten Häufigkeitsverteilung zu bestimmen, einen ersten maximalen Farbwert in der ersten Häufigkeitsverteilung zu bestimmen, und den ersten mittleren Farbwert als Mittelwert des ersten minimalen Farbwertes und des ersten maximalen Farbwertes zu bestimmen, wobei die zweite Bestimmungseinrichtung ausgebildet ist, einen zweiten minimalen Farbwert in der zweiten Häufigkeitsverteilung zu bestimmen, einen zweiten maximalen Farbwert in der zweiten Häufigkeitsverteilung zu bestimmen, und den zweiten mittleren Farbwert als Mittelwert des zweiten minimalen Farbwertes und des zweiten maximalen Farbwertes zu bestimmen. Dadurch wird der Vorteil erreicht, dass der erste mittlere Farbwert und der zweite mittlere Farbwert effizient bestimmt werden können. Insbesondere kann eine Farbdynamik in dem Bild effizient berücksichtigt werden.According to one embodiment, the first determination device is designed to determine a first minimum color value in the first frequency distribution, to determine a first maximum color value in the first frequency distribution, and to determine the first mean color value as the mean value of the first minimum color value and the first maximum color value, wherein the second determining device is designed to determine a second minimum color value in the second frequency distribution, to determine a second maximum color value in the second frequency distribution, and to determine the second mean color value as the mean value of the second minimum color value and the second maximum color value. This has the advantage that the first mean color value and the second mean color value can be determined efficiently. In particular, color dynamics in the image can be taken into account efficiently.
Gemäß einer Ausführungsform ist einem ersten benachbarten Pixel des ersten Kantenpixels entlang der ersten vorbestimmten Suchgeraden ein Farbwert zugeordnet, welcher größer als der erste mittlere Farbwert ist, wobei einem zweiten benachbarten Pixel des ersten Kantenpixels entlang der ersten vorbestimmten Suchgeraden ein Farbwert zugeordnet ist, welcher kleiner als der erste mittlere Farbwert ist, wobei einem dritten benachbarten Pixel des zweiten Kantenpixels entlang der zweiten vorbestimmten Suchgeraden ein Farbwert zugeordnet ist, welcher größer als der zweite mittlere Farbwert ist, und wobei einem vierten benachbarten Pixel des zweiten Kantenpixels entlang der zweiten vorbestimmten Suchgeraden ein Farbwert zugeordnet ist, welcher kleiner als der zweite mittlere Farbwert ist. Dadurch wird der Vorteil erreicht, dass einzelne Pixel, welchen der erste mittlere Farbwert bzw. der zweite mittlere Farbwert zugeordnet ist, nicht als erster bzw. zweiter Kantenpixel bestimmt werden. Folglich kann die Zuverlässigkeit der Kantenerkennung erhöht werden.According to one embodiment, a first adjacent pixel of the first edge pixel along the first predetermined search line is assigned a color value which is greater than the first mean color value, a second adjacent pixel of the first edge pixel along the first predetermined search line being assigned a color value which is less than is the first mean color value, wherein a third neighboring pixel of the second edge pixel along the second predetermined search line is assigned a color value which is greater than the second mean color value, and wherein a fourth neighboring pixel of the second edge pixel along the second predetermined search line is assigned a color value which is smaller than the second mean color value. This has the advantage that individual pixels to which the first mean color value or the second mean color value is assigned are not determined as first or second edge pixels. As a result, the reliability of the edge detection can be increased.
Gemäß einer Ausführungsform überschreitet eine Differenz zwischen dem Farbwert des ersten benachbarten Pixels und dem Farbwert des zweiten benachbarten Pixels einen ersten vorbestimmten Differenzwert, wobei eine Differenz zwischen dem Farbwert des dritten benachbarten Pixels und dem Farbwert des vierten benachbarten Pixels einen zweiten vorbestimmten Differenzwert überschreitet. Dadurch wird der Vorteil erreicht, dass die Ableitung der Farbwerte entlang der ersten vorbestimmten Suchgeraden bzw. der zweiten vorbestimmten Suchgeraden einen hinreichend großen Wert aufweist. Insbesondere kann dadurch gewährleistet werden, dass die Kante in dem Bild hinreichend stark sichtbar ist.According to one embodiment, a difference between the color value of the first neighboring pixel and the color value of the second neighboring pixel exceeds a first predetermined difference value, a difference between the color value of the third neighboring pixel and the color value of the fourth neighboring pixel exceeding a second predetermined difference value. This has the advantage that the derivation of the color values along the first predetermined search line or the second predetermined search line has a sufficiently large value. In particular, it can thereby be ensured that the edge is sufficiently strongly visible in the image.
Gemäß einer Ausführungsform sind der erste vorbestimmte Differenzwert und der zweite vorbestimmte Differenzwert gleich. Dadurch wird der Vorteil erreicht, dass der der erste Kantenpixel und der zweite Kantenpixel mit erhöhter Zuverlässigkeit demselben Rand des Identifikationsdokumentes zugeordnet sind.According to one embodiment, the first predetermined difference value and the second predetermined difference value are the same. This has the advantage that the first edge pixel and the second edge pixel are assigned to the same edge of the identification document with increased reliability.
Gemäß einer Ausführungsform ist die Kantenerfassungseinrichtung ausgebildet, eine Anzahl von Pixeln entlang einer Strecke zwischen dem ersten Kantenpixel und dem zweiten Kantenpixel zu bestimmen, und die Kante in dem Bild des Identifikationsdokumentes zu erfassen, falls die Anzahl von Pixeln eine vorbestimmte Referenzpixelanzahl unterschreitet oder die Anzahl von Pixeln eine vorbestimmte Referenzpixelanzahl überschreitet. Dadurch wird der Vorteil erreicht, dass eine Plausibilität getestet werden kann, dass der erste Kantenpixel und der zweite Kantenpixel demselben Rand des Identifikationsdokumentes zugeordnet sind.According to one embodiment, the edge detection device is designed to determine a number of pixels along a path between the first edge pixel and the second edge pixel, and to detect the edge in the image of the identification document if the number of pixels falls below a predetermined number of reference pixels or the number of Pixels exceeds a predetermined number of reference pixels. This has the advantage that a plausibility can be tested that the first edge pixel and the second edge pixel are assigned to the same edge of the identification document.
Gemäß einer Ausführungsform ist das Bild des Identifikationsdokumentes ein Grauwertbild, wobei die jeweiligen Farbwerte durch jeweilige Grauwerte gebildet sind. Dadurch wird der Vorteil erreicht, dass die erste Häufigkeitsverteilung und die zweite Häufigkeitsverteilung besonders effizient bestimmt werden können.According to one embodiment, the image of the identification document is a gray value image, the respective color values being formed by respective gray values. This has the advantage that the first frequency distribution and the second frequency distribution can be determined particularly efficiently.
Gemäß einem zweiten Aspekt betrifft die Erfindung eine Verwendung der Vorrichtung zur perspektivischen Entzerrung des Bildes des Identifikationsdokumentes. Zur perspektivischen Entzerrung des Bildes des Identifikationsdokumentes können weitere Kanten in dem Bild entsprechend erfasst werden.According to a second aspect, the invention relates to a use of the device for perspective rectification of the image of the identification document. For the perspective rectification of the image of the identification document, further edges can be recorded accordingly in the image.
Gemäß einem dritten Aspekt betrifft die Erfindung ein Verfahren zum Erfassen einer Kante in einem Bild eines Identifikationsdokumentes, wobei das Bild des Identifikationsdokumentes eine Mehrzahl von Pixeln aufweist, und wobei jedem Pixel jeweils ein Farbwert zugeordnet ist. Das Verfahren umfasst ein Bestimmen einer ersten Häufigkeitsverteilung von Farbwerten entlang einer ersten vorbestimmten Suchgeraden in dem Bild des Identifikationsdokumentes, ein Bestimmen eines ersten mittleren Farbwertes der ersten Häufigkeitsverteilung, ein Bestimmen einer ersten Position eines ersten Kantenpixels entlang der ersten vorbestimmten Suchgeraden, wobei dem ersten Kantenpixel der erste mittlere Farbwert zugeordnet ist, ein Bestimmen einer zweiten Häufigkeitsverteilung von Farbwerten entlang einer zweiten vorbestimmten Suchgeraden in dem Bild des Identifikationsdokumentes, ein Bestimmen eines zweiten mittleren Farbwertes der zweiten Häufigkeitsverteilung, ein Bestimmen einer zweiten Position eines zweiten Kantenpixels entlang der zweiten vorbestimmten Suchgeraden, wobei dem zweiten Kantenpixel der zweite mittlere Farbwert zugeordnet ist, und ein Erfassen der Kante in dem Bild des Identifikationsdokumentes auf der Basis der ersten Position des ersten Kantenpixels und der zweiten Position des zweiten Kantenpixels.According to a third aspect, the invention relates to a method for detecting an edge in an image of an identification document, the image of the identification document having a plurality of pixels, and each pixel being assigned a color value. The method comprises determining a first frequency distribution of color values along a first predetermined search line in the image of the identification document, determining a first mean color value of the first frequency distribution, determining a first position of a first edge pixel along the first predetermined search line, the first edge pixel being the first mean color value is assigned, determining a second frequency distribution of color values along a second predetermined search line in the image of the identification document, determining a second mean color value of the second frequency distribution, determining a second position of a second edge pixel along the second predetermined search line, wherein the the second edge pixel is assigned the second mean color value, and detecting the edge in the image of the identification document on the basis of the first position of the first edge pixel and the second position of the second edge pixel.
Das Verfahren kann durch die Vorrichtung ausgeführt werden. Weitere Merkmale des Verfahrens resultieren unmittelbar aus den Merkmalen bzw. der Funktionalität der Vorrichtung.The method can be carried out by the device. Further features of the method result directly from the features or the functionality of the device.
Gemäß einem vierten Aspekt betrifft die Erfindung ein Computerprogramm mit einem Programmcode zum Durchführen des Verfahrens, wenn der Programmcode durch eine Vorrichtung ausgeführt wird. Die Vorrichtung, insbesondere die erste Bestimmungseinrichtung, die zweite Bestimmungseinrichtung und/oder die Kantenerfassungseinrichtung, können jeweils programmtechnisch eingerichtet sein, um den Programmcode auszuführen.According to a fourth aspect, the invention relates to a computer program with a program code for performing the method when the program code is executed by a device. The device, in particular the first determination device, the second determination device and / or the edge detection device, can each be set up in terms of program technology to execute the program code.
Die Erfindung kann in Hardware und Software realisiert werden.The invention can be implemented in hardware and software.
Weitere Ausführungsformen werden Bezug nehmend auf die beiliegenden Zeichnungen näher erläutert. Es zeigen:
-
1 ein schematisches Diagramm einer Vorrichtung zum Erfassen einer Kante in einem Bild eines Identifikationsdokumentes; -
2 ein schematisches Diagramm eines Verfahrens zum Erfassen einer Kante in einem Bild eines Identifikationsdokumentes; -
3 ein schematisches Diagramm eines Bildes eines Identifikationsdokumentes vor einem Hintergrund; -
4a ein schematisches Diagramm einer ersten Häufigkeitsverteilung von Farbwerten entlang einer ersten vorbestimmten Suchgeraden; und -
4b ein schematisches Diagramm einer zweiten Häufigkeitsverteilung von Farbwerten entlang einer zweiten vorbestimmten Suchgeraden.
-
1 a schematic diagram of a device for detecting an edge in an image of an identification document; -
2 a schematic diagram of a method for detecting an edge in an image of an identification document; -
3 a schematic diagram of an image of an identification document against a background; -
4a a schematic diagram of a first frequency distribution of color values along a first predetermined search line; and -
4b a schematic diagram of a second frequency distribution of color values along a second predetermined search line.
Das Bild
Die Färbung des Identifikationsdokumentes
Die erste Bestimmungseinrichtung ist ausgebildet, eine erste Häufigkeitsverteilung von Farbwerten entlang einer ersten vorbestimmten Suchgeraden
Die zweite Bestimmungseinrichtung ist ausgebildet, eine zweite Häufigkeitsverteilung von Farbwerten entlang einer zweiten vorbestimmten Suchgeraden
In dem gezeigten Bild
Auf der ersten vorbestimmten Suchgeraden
Sollte mehreren Pixeln entlang der ersten vorbestimmten Suchgeraden
Sollten bestimmte Pixel des Bildes
Um die Zuverlässigkeit der Kantenerkennung weiter zu erhöhen, kann die erste Bestimmungseinrichtung sicherstellen, dass einem ersten benachbarten Pixel des ersten Kantenpixels
Die Kantenerfassungseinrichtung ist ausgebildet, die Kante in dem Bild
Die erste Bestimmungseinrichtung kann ausgebildet sein, einen ersten minimalen Farbwert in der ersten Häufigkeitsverteilung
Die zweite Bestimmungseinrichtung kann ausgebildet sein, einen zweiten minimalen Farbwert in der zweiten Häufigkeitsverteilung
Zusammenfassend erlaubt das Konzept eine einfache Implementierung mit geringen Auswirkungen etwaiger Fehler, wobei selbst geringe Farbwertunterschiede für die Erfassung der Kante in dem Bild ausreichend sind. Das Konzept ist zudem einsetzbar im Bereich der mobilen Verifikation von Identifikationsdokumenten, beispielsweise bei Beleuchtung mit IR-, UV- oder Weißlicht, wobei beispielsweise die Lage eines Identifikationsdokumentes in einem Bild effizient erfasst werden kann. Insbesondere kann eine perspektivische Entzerrung des Bildes des Identifikationsdokumentes durchgeführt werden.In summary, the concept allows a simple implementation with little impact of any errors, even small color value differences being sufficient for the detection of the edge in the image. The concept can also be used in the field of mobile verification of identification documents, for example when illuminated with IR, UV or white light, whereby, for example, the position of an identification document can be efficiently captured in an image. In particular, a perspective rectification of the image of the identification document can be carried out.
Alle in Verbindung mit einzelnen Ausführungsformen beschriebenen oder gezeigten Merkmale können in beliebiger Kombination in dem erfindungsgemäßen Gegenstand vorgesehen sein, um gleichzeitig deren vorteilhafte Wirkungen zu realisieren.All features described or shown in connection with individual embodiments can be provided in any combination in the subject matter according to the invention in order to simultaneously realize their advantageous effects.
BezugszeichenlisteList of reference symbols
- 100100
- Vorrichtungcontraption
- 101101
- Erste BestimmungseinrichtungFirst destination device
- 103103
- Zweite BestimmungseinrichtungSecond determining device
- 105105
- Kantenerfassungseinrichtung Edge detection device
- 200200
- VerfahrenProcedure
- 201201
- BestimmenDetermine
- 203203
- BestimmenDetermine
- 205205
- BestimmenDetermine
- 207207
- BestimmenDetermine
- 209209
- BestimmenDetermine
- 211211
- BestimmenDetermine
- 213213
- Erfassen Capture
- 301301
- Bildimage
- 303303
- IdentifikationsdokumentIdentification document
- 305305
- Hintergrundbackground
- 307a307a
- Erste vorbestimmte SuchgeradeFirst predetermined search line
- 307b307b
- Zweite vorbestimmte SuchgeradeSecond predetermined search line
- 309a309a
- Erster KantenpixelFirst edge pixel
- 309b309b
- Zweiter Kantenpixel Second edge pixel
- 401a401a
- Erste HäufigkeitsverteilungFirst frequency distribution
- 401b401b
- Zweite HäufigkeitsverteilungSecond frequency distribution
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
DE102019106429.5A DE102019106429A1 (en) | 2019-03-13 | 2019-03-13 | Device for detecting an edge in an image of an identification document |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
DE102019106429.5A DE102019106429A1 (en) | 2019-03-13 | 2019-03-13 | Device for detecting an edge in an image of an identification document |
Publications (1)
Publication Number | Publication Date |
---|---|
DE102019106429A1 true DE102019106429A1 (en) | 2020-09-17 |
Family
ID=72240967
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
DE102019106429.5A Ceased DE102019106429A1 (en) | 2019-03-13 | 2019-03-13 | Device for detecting an edge in an image of an identification document |
Country Status (1)
Country | Link |
---|---|
DE (1) | DE102019106429A1 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE69901565T2 (en) * | 1998-07-14 | 2002-09-05 | Pe Corp Ny Foster City | AUTOMATIC MASKING OF OBJECTS IN IMAGES |
US20100046841A1 (en) * | 2008-08-22 | 2010-02-25 | Seiko Epson Corporation | Image processing apparatus, image processing method and image processing program |
-
2019
- 2019-03-13 DE DE102019106429.5A patent/DE102019106429A1/en not_active Ceased
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE69901565T2 (en) * | 1998-07-14 | 2002-09-05 | Pe Corp Ny Foster City | AUTOMATIC MASKING OF OBJECTS IN IMAGES |
US20100046841A1 (en) * | 2008-08-22 | 2010-02-25 | Seiko Epson Corporation | Image processing apparatus, image processing method and image processing program |
Non-Patent Citations (1)
Title |
---|
ERHARDT, A.: Einführung in die Digitale Bildverarbeitung, Grundlagen, Systeme und Anwendungen. 1. Aufl. Wiesbaden: Vieweg + Teubner, 2008, Kapitel 5, 8-10, S. 101-122, 144-222. - ISBN: 978-3-519-00478-3 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE102019208149A1 (en) | Nozzle Health with a neural network | |
DE102012209316A1 (en) | Method and device for processing sensor data of a stereo sensor system | |
EP2028605A1 (en) | Detection method for symmetric patterns | |
DE102014117102A1 (en) | Lane change warning system and method for controlling the lane change warning system | |
DE102015207903A1 (en) | Apparatus and method for detecting a bar-type traffic sign in a traffic sign recognition system | |
DE102015205505A1 (en) | Method and apparatus for detecting elliptical structures in an image | |
WO2006133974A1 (en) | Method and device for recognising a coin by using the embossed pattern thereof | |
DE102020120887A1 (en) | METHOD OF DETECTING A HANGING POSITION OF A SUPPORT BAR AND FLAT BED MACHINE TOOL | |
DE102018113559A1 (en) | A method of recognizing a lane mark by validating by line width; Control means; Pitch recognition system; as well as driver assistance system | |
WO2004056570A1 (en) | Method and device for the real time control of print images | |
DE102019106429A1 (en) | Device for detecting an edge in an image of an identification document | |
DE10132589B4 (en) | Method for qualitative assessment of material | |
DE102015116708A1 (en) | Document and method for verifying a document | |
EP3435056B1 (en) | Pressure inspection device for the optical inspection of a printing image of a printed object | |
DE102021001256B3 (en) | Method for recognizing an object in a search image, and use of a method for determining a position and/or orientation of a security element of a bank note | |
EP3503048B1 (en) | Method and device for testing a valuable document | |
DE102014111150B3 (en) | Apparatus, method and computer program for determining a severity measure for an image | |
DE102020007321A1 (en) | Method for detecting at least one mottled fiber of a banknote, and banknote processing device | |
DE112016003300T5 (en) | Detection of water droplets on a lens of a vehicle camera | |
DE102017104950A1 (en) | Method for detecting a ground marking in an environmental area of a motor vehicle by means of a camera, computing device, camera system and motor vehicle | |
DE60216342T2 (en) | Method and device for recognizing character frames with a voting process | |
DE102020130444A1 (en) | Device for generating a digital identifier from a copy of a printed product having at least one printed image | |
DE102019106437A1 (en) | Device for detecting a surface defect of an identification document | |
WO2016156097A1 (en) | Method for assessing an association of a detection point with an object in an area surrounding a motor vehicle, and driver assistance system | |
DE102022204545A1 (en) | Method and device for detecting disparities in two individual images captured by a camera system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
R012 | Request for examination validly filed | ||
R079 | Amendment of ipc main class |
Free format text: PREVIOUS MAIN CLASS: G07D0007120000 Ipc: G06T0007100000 |
|
R002 | Refusal decision in examination/registration proceedings | ||
R003 | Refusal decision now final |