# US 2024/0203150 A1 · Systems and methods for document authentication

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0203150 A1
- Document ID: US20240203150A1
- Status: Published application
- Kind: A1
- Application number: 18/535,412
- Filed: 2023-12-11
- Published: 2024-06-20
- Earliest claimed: 2022-12-15
- Assignees: Idemia Identity & Security France
- Applicants: Idemia Identity & Security France
- Inventors: Rein-Lien Hsu; Brian Martin; Alexandru Bogdan
- Web page: https://patentgrep.com/patent/US20240203150A1

## CPC

- G06V 30/418: Document matching, e.g. of document images
- G06F 18/23213: with fixed number of clusters, e.g. K-means clustering
- G06T 5/40: using histogram techniques
- G06T 7/90: Determination of colour characteristics
- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 10/467: {Encoded features or binary features, e.g. local binary patterns [LBP]}
- G06V 10/56: relating to colour
- G06V 10/751: {Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching}
- G06V 30/148: Segmentation of character regions
- G06V 30/18105: {related to colour}
- G06V 30/19013: {Comparing pixel values or logical combinations thereof, or feature values having positional relevance, e.g. template matching (specially adapted for image segmentation G06T7/10; specially adapted for the analysis of motion G06T7/20; specially adapted for image alignment G06T7/30; specially adapted for the calculation of depth from stereo images G06T7/50; specially adapted for position determination G06T7/70)}
- G06V 30/42: based on the type of document
- G07D 7/12: Visible light, infrared or ultraviolet radiation
- G07D 7/206: Matching template patterns
- G06T 2207/10024: Color image
- G06V 10/507: {Summing image-intensity values; Histogram projection analysis}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G07D: HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING

## Abstract

A system for authenticating a subject identification document includes a memory section storing computer-executable instructions and a memory section storing an enrolled document template, ROI information, and a codebook representing partitions of a [Cb, Cr] color plane. The system includes a processor in communication with the memory. The processor executes the instructions that, when executed, cause the processor to receive an image of the document, the image depicting, in a RGB color space, the document. The processor transforms the image of the document to a second image of the document in a YCbCr color space. The processor assigns pixels within a ROI in the second image corresponding to the ROI information to the partitions of the codebook. The processor generates a template based on respective counts of the pixels assigned to the partitions of the codebook. The processor compares the template to the enrolled document template to authenticate document.

## Claims

### Claim 1

A system for authenticating a subject identification document, the system comprising:
a memory comprising a first memory section storing computer-executable instructions and a second memory section storing:
an enrolled document template including at least one enrolled document color profile descriptor;
region of interest (ROI) information; and
a codebook representing partitions of a color space;
a processor in communication with the memory and configured to execute the computer-executable instructions that, when executed, cause the processor to:
receive a first image of the subject identification document, the first image depicting, in a red-green-blue (RGB) color space, the subject identification document;
transform the first image of the subject document to a second image of the subject identification document in a YcbCr color space;
assign pixels within a ROI in the second image corresponding to the ROI information to the partitions of the codebook;
generate a subject document color profile descriptor based on respective counts of the pixels assigned to the partitions of the codebook;
compare the subject document color profile descriptor to the enrolled document color profile descriptor to determine whether the subject identification document is authentic.

### Claim 2 (depends on 1)

The system of claim 1, wherein the computer-executable instructions, when executed, further cause the processor to assign the pixels within the ROI to the partitions of the codebook by:
representing the pixels within the ROI as a plurality of (cb, cr) points in a [Cb, Cr] color plane;
computing respective distances between each of the plurality of (cb, cr) points and each of respective centroids in the [Cb, Cr] color plane corresponding to the partitions of the codebook; and
assigning each of the plurality of (cb, cr) points to a nearest partition based on the respective distances.

### Claim 3 (depends on 1)

The system of claim 1, wherein the computer-executable instructions, when executed, further cause the processor to generate a matching score for the subject document color profile descriptor by:
representing a first histogram for the enrolled document color profile descriptor as a first vector;
representing a second histogram for the subject document color profile descriptor as a second vector having elements corresponding to the respective counts of the pixels assigned to the partitions of the codebook; and
computing a cosine distance between the first vector and the second vector, the cosine distance being the matching score.

### Claim 4 (depends on 1)

The system of claim 1, wherein the computer-executable instructions, when executed, further cause the processor to assign the pixels within the ROI to a nearest one of N partitions of the codebook, wherein N is between 32 and 48, inclusively.

### Claim 5 (depends on 1)

The system of claim 1, wherein the computer-executable instructions, when executed, further cause the processor to generate the codebook by:
computing N random points in the color space, the N random points representing centroids of N partitions of the color space; and
executing a k-means algorithm to:
assign discrete points in the color space to the N partitions based on a distance between the discrete points and the centroids of the N partitions; and
recomputing the centroids of the N partitions as the discrete points are assigned;
wherein codebook comprises the centroids of the N partitions.

### Claim 6 (depends on 5)

The system of claim 5, wherein the second memory section stores the codebook representing the partitions of the color space for use in authenticating all documents of a document type corresponding to the enrolled document color profile descriptor.

### Claim 7 (depends on 5)

The system of claim 5, wherein the computer-executable instructions, when executed, further cause the processor to generate the enrolled document color profile descriptor by:
receiving a first image of a corresponding enrollment document, the first image depicting, in the RGB color space, the enrollment document;
transforming the first image of the enrollment document to a second image of the enrollment document in the YcbCr color space;
assigning pixels within the ROI in the second image of the enrollment document corresponding to the ROI information to the partitions of the codebook; and
generating the enrolled document color profile descriptor based on respective counts of the pixels within the ROI of the enrollment document assigned to the partitions of the codebook.

### Claim 8 (depends on 1)

The system of claim 1, wherein the second memory section stores the ROI information for identifying the ROI in all documents of a document type corresponding to the enrolled document color profile descriptor.

### Claim 9 (depends on 1)

The system of claim 1, wherein the ROI information includes a size, a shape, and a location of one or more ROI on the subject identification document.

### Claim 10 (depends on 1)

The system of claim 1, wherein the codebook representing partitions of the color space comprises a plurality of centroids representing the partitions.

### Claim 11 (depends on 1)

The system of claim 1, wherein the codebook representing partitions of the color space comprises a plurality of angular sectors into which a [Cb, Cr] color plane is divided, and wherein the subject document color profile descriptor comprises the respective counts of the pixels assigned to the partitions of the codebook.

### Claim 12

A non-transitory, computer readable storage medium having a first memory section storing an enrolled document template including an enrolled document color profile descriptor, region of interest (ROI) information, and a codebook, and a second memory section having instructions stored thereon that, in response to execution by a processor, cause the processor to:
receive a first image of a subject identification document, the first image depicting, in a red-green-blue (RGB) color space, the subject identification document;
transform the first image of the subject document to a second image of the subject identification document in a YCbCr color space;
assign pixels within a ROI in the second image corresponding to the ROI information to partitions of the [Cb, Cr] color plane defined in the codebook;
generate a subject document color profile descriptor based on respective counts of the pixels assigned to the partitions of the codebook;
compare the subject document color profile descriptor to the enrolled document color profile descriptor to determine whether the subject identification document is authentic.

### Claim 13 (depends on 12)

The non-transitory, computer readable storage medium of claim 12, wherein the instructions further cause the processor to assign the pixels to the partitions of the codebook by:
representing the pixels within the ROI as a plurality of (cb, cr) points in the [Cb, Cr] color plane;
computing respective distances between each of the plurality of (cb, cr) points and each of respective centroids in the [Cb, Cr] color plane corresponding to the partitions of the codebook; and
assigning each of the plurality of (cb, cr) points to a nearest partition based on the respective distances.

### Claim 14 (depends on 12)

The non-transitory, computer readable storage medium of claim 12, wherein the instructions further cause the processor to generate a matching score for the subject identification document by:
representing a first histogram for the enrolled document color profile descriptor as a first vector;
representing a second histogram for the subject document color profile descriptor as a second vector having elements corresponding to the respective counts of the pixels assigned to the partitions of the codebook; and
computing a cosine distance between the first vector and the second vector, the cosine distance being the matching score.

### Claim 15 (depends on 12)

The non-transitory, computer readable storage medium of claim 12, wherein the instructions further cause the processor to generate the codebook by:
computing N random points in the [Cb, Cr] color plane, the N random points representing centroids of N partitions of the [Cb, Cr] color plane; and
executing a k-means algorithm to:
assign discrete points in the [Cb, Cr] color plane to the N partitions based on a distance between the discrete points and the centroids of the N partitions; and
recomputing the centroids of the N partitions as the discrete points are assigned;
wherein codebook comprises the centroids of the N partitions.

### Claim 16 (depends on 15)

The non-transitory, computer readable storage medium of claim 15, wherein the first memory section stores the codebook representing the partitions of the [Cb, Cr] color plane for use in authenticating all documents of a document type corresponding to the enrolled document color profile descriptor.

### Claim 17 (depends on 12)

The non-transitory, computer readable storage medium of claim 12, wherein the instructions further cause the processor to generate the enrolled document color profile descriptor by:
receiving a first image of a corresponding enrollment document, the first image depicting, in the RGB color space, the enrollment document;
transforming the first image of the enrollment document to a second image of the enrollment document in the YCbCr color space;
assigning pixels within the ROI in the second image of the enrollment document corresponding to the ROI information to the partitions of the codebook; and
generating the enrolled document color profile descriptor based on respective counts of the pixels within the ROI of the enrollment document assigned to the partitions of the codebook.

### Claim 18 (depends on 17)

The non-transitory, computer readable storage medium of claim 17, wherein the second memory section stores the ROI information for identifying the ROI in all documents of a document type corresponding to the enrolled document color profile descriptor.

### Claim 19

A computer-implemented method for authenticating a subject identification document, the method implemented using an authentication system including (i) a memory storing an enrolled document template, region of interest (ROI) information, and a codebook representing partitions of a [Cb, Cr] color plane, and (ii) a processor in communication with the memory, the method comprising:
receiving a first image of the subject identification document, the first image depicting, in a red-green-blue (RGB) color space, the subject identification document;
transforming the first image of the subject document to a second image of the subject identification document in a YCbCr color space;
assigning pixels within a ROI in the second image corresponding to the ROI information to the partitions of the codebook;
generating a subject document template based on respective counts of the pixels assigned to the partitions of the codebook;
comparing the subject document template to the enrolled document template to determine whether the subject identification document is authentic.

### Claim 20 (depends on 19)

The computer-implemented method of claim 19 further comprising generating the codebook, including:
computing N random points in the [Cb, Cr] color plane, the N random points representing centroids of N partitions of the [Cb, Cr] color plane; and
executing a k-means algorithm to:
assign discrete points in the [Cb, Cr] color plane to the N partitions based on a distance between the discrete points and the centroids of the N partitions; and
recomputing the centroids of the N partitions as the discrete points are assigned;
wherein codebook comprises the centroids of the N partitions.

### Claim 21 (depends on 20)

The computer-implemented method of claim 20, wherein assigning the pixels comprises:
representing the pixels within the ROI as a plurality of (cb, cr) points in the [Cb, Cr] color plane;
computing respective distances between each of the plurality of (cb, cr) points and each of respective centroids in the [Cb, Cr] color plane corresponding to the partitions of the codebook; and
assigning each of the plurality of (cb, cr) points to a nearest partition based on the respective distances.
