# US 12,561,934 B2 · Automatic orientation correction for captured images

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

- Number: US 12,561,934 B2
- Document ID: US12561934B2
- Status: Granted
- Kind: B2
- Application number: 18/182,536
- Filed: 2023-03-13
- Published: 2024-09-19
- Granted: 2026-02-24
- Earliest claimed: 2023-03-13
- Assignees: Capital One Services, LLC
- Applicants: Capital One Services, LLC
- Inventors: Jason Pribble; Swapnil Patil; Timothy Tran
- Web page: https://patentgrep.com/patent/US12561934B2

## CPC

- G06V 10/242: {by image rotation, e.g. by 90 degrees}
- G06V 30/1463: {Orientation detection or correction, e.g. rotation of multiples of 90 degrees}
- B42D 25/23: Identity cards
- B42D 25/309: Photographs
- G06V 10/243: {by compensating for image skew or non-uniform image deformations}
- G06V 10/245: {by locating a pattern; Special marks for positioning}
- G06V 10/248: {by interactive preprocessing or interactive shape modelling, e.g. feature points assigned by a user}
- G06V 10/70: using pattern recognition or machine learning (optical pattern recognition or electronic computations therefor G06V10/88)
- G06V 10/757: {Matching configurations of points or features}
- G06V 10/759: {Region-based matching}
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 30/10: Character recognition
- G06V 30/133: {Evaluation of quality of the acquired characters}
- G06V 30/1465: {by locating a pattern (G06V30/1475 takes precedence; centring within a document with a marking G06V30/1448)}
- G06V 30/1475: {Inclination or skew detection or correction of characters or of image to be recognised}
- G06V 30/1908: {Region based matching}
- G06V 30/42: based on the type of document
- G06V 40/161: {Detection; Localisation; Normalisation}
- G06V 40/169: {Holistic features and representations, i.e. based on the facial image taken as a whole}
- G06V 40/171: {Local features and components; Facial parts (eye characteristics G06V40/18); Occluding parts, e.g. glasses; Geometrical relationships}
- G06V 10/82: using neural networks
- G06V 10/945: {User interactive design; Environments; Toolboxes}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- B42D: BOOKS; BOOK COVERS; LOOSE LEAVES; PRINTED MATTER CHARACTERISED BY IDENTIFICATION OR SECURITY FEATURES; PRINTED MATTER OF SPECIAL FORMAT OR STYLE NOT OTHERWISE PROVIDED FOR; DEVICES FOR USE THEREWITH AND NOT OTHERWISE PROVIDED FOR; MOVABLE-STRIP WRITING OR READING APPARATUS

## Abstract

In some implementations, a device may receive an image of a document, the image depicting a reference feature associated with the document, the reference feature including at least one of: a face of a person, a machine-readable code, or a text field. The device may identify a rotational angle of the reference feature as depicted in the image based on comparing the reference feature as depicted in the image to one or more orientation parameters of the reference feature associated with a display orientation associated with the document. The device may rotate the image of the document by an angle to obtain an orientated image of the document, the angle being based on the rotational angle of the reference feature as depicted in the image. The device may provide the orientated image of the document for display.

## Claims

### Claim 1

A system for automatic orientation correction for captured images, the system comprising:
one or more memories; and
one or more processors, communicatively coupled to the one or more memories, configured to:
obtain, via a user device, an image of an identification document, the identification document including a facial image depicting a face of a person associated with the identification document;
select a machine learning model, from a plurality of machine learning models, based on at least one of one or more reference features associated with the identification document or a document type associated with the identification document,
wherein the machine learning model is a facial recognition model that is trained to identify rotational angles of faces, and
wherein one of the one or more reference features is associated with a facial image;
input, to the selected machine learning model, the image of the identification document;
obtain, from the selected machine learning model, an indication of a rotational angle of the face depicted in the facial image based on inputting, to the selected machine learning model, the image of the identification document;
rotate the image of the identification document by an angle to obtain an orientated image of the identification document, the angle being based on the rotational angle of the face and a reference angle associated with a display orientation of the identification document;
provide the orientated image of the identification document for display;
receive feedback information indicating whether the oriented image has been accepted;
transmit, based on the feedback information, the oriented image or the image of the identification document to a server device for use in an authentication procedure related to the user device; and
re-train, based on the feedback information, the selected machine learning model.

### Claim 2 (depends on 1)

The system of claim 1, wherein the one or more processors are further configured to:
modify the display orientation based on the feedback information indicating that the orientated image of the identification document has been rejected.

### Claim 3 (depends on 1)

The system of claim 1, wherein the display orientation of the identification document is an orientation at which images of the identification document are to be viewed.

### Claim 4 (depends on 1)

The system of claim 1, wherein the one or more processors are further configured to:
analyze, using an optical character recognition (OCR) technique, one or more text fields as depicted in the orientated image of the identification document; and
detect whether the orientated image of the identification document is in a correct orientation based on whether text included in the one or more text fields is detectable using the OCR technique.

### Claim 5 (depends on 1)

The system of claim 1, wherein the one or more processors are further configured to:
identify an aspect ratio for a review page associated with the image of the identification document based on the orientated image of the identification document.

### Claim 6 (depends on 5)

The system of claim 5, wherein the one or more processors, to provide the orientated image of the identification document for display, are configured to:
provide the orientated image of the identification document for display in the review page having the aspect ratio.

### Claim 7 (depends on 1)

The system of claim 1, wherein the one or more processors, when re-training the selected machine learning model, are configured to:
re-train the selected machine learning model with the feedback information to identify the rotational angles of faces.

### Claim 8 (depends on 7)

The system of claim 7, wherein re-training the selected machine learning model with the feedback information improves an accuracy of rotational angle determinations.

### Claim 9

A method of automatic orientation correction for captured images, comprising:
receiving, by a device, an image of a document, the image depicting a reference feature associated with the document, the reference feature including at least one of:
a face of a person,
a machine-readable code, or
a text field;
selecting, by the device, a machine learning model, from a plurality of machine learning models, based at least on one of the reference feature or a document type associated with the document;
identifying, by the device and using the selected machine learning model, a rotational angle of the reference feature as depicted in the image based on comparing the reference feature as depicted in the image to one or more orientation parameters of the reference feature associated with a display orientation associated with the document;
rotating, by the device, the image of the document by an angle to obtain an orientated image of the document, the angle being based on the rotational angle of the reference feature as depicted in the image;
providing, by the device, the orientated image of the document for display;
receiving, by the device, feedback information indicating whether the oriented image has been accepted;
transmitting, by the device and based on the feedback information, the oriented image or the image of the document to a server device as part of an authentication procedure; and
re-training, by the device and based on the feedback information, the selected machine learning model.

### Claim 10 (depends on 9)

The method of claim 9, wherein identifying the rotational angle of the reference feature comprises:
inputting, to the selected machine learning model, the image of the document, the selected machine learning model being trained to identify rotational angles of the reference feature; and
obtaining, from the selected machine learning model, an indication of the rotational angle of the reference feature as depicted in the image based on inputting the image of the document to the machine learning model.

### Claim 11 (depends on 9)

The method of claim 9, wherein identifying the rotational angle of the reference feature comprises:
identifying a first reference point and a second reference point included in the reference feature; and
determining the rotational angle based on a difference between a first angle between the first reference point and the second reference point as depicted in the image and a second angle associated with a known orientation of the first reference point and the second reference point.

### Claim 12 (depends on 9)

The method of claim 9, wherein the reference feature includes the face of the person, the method further comprising:
analyzing, using a computer vision technique, the face of the person as depicted in the orientated image to identify one or more facial features of the face; and
determining whether the orientated image is in a correct orientation based on whether the one or more facial features of the face are in known facial positions associated with respective facial features from the one or more facial features.

### Claim 13 (depends on 9)

The method of claim 9, wherein the reference feature includes the machine-readable code, the method further comprising:
detecting one or more patterns included in the machine-readable code as depicted in the orientated image; and
determining whether the orientated image is in a correct orientation based on whether the one or more patterns are in an orientation associated with the machine-readable code.

### Claim 14 (depends on 9)

The method of claim 9, wherein re-training the selected machine learning model comprises:
re-training the selected machine learning model with the feedback information to identify rotational angles of faces.

### Claim 15

A non-transitory computer-readable medium storing a set of instructions, the set of instructions comprising:
one or more instructions that, when executed by one or more processors of a device, cause the device to:
obtain, via a user device, an image of an identification document, the identification document including a facial image depicting a face of a user associated with the identification document;
select a machine learning model, from a plurality of machine learning models, based on at least one of one or more reference features associated with the identification document or a document type associated with the identification document,
wherein the machine learning model is a facial recognition model that is trained to identify rotational angles of faces, and
wherein one of the one or more reference features is associated with a facial image;
input, to the selected machine learning model, the image of the identification document;
obtain, from the selected machine learning model, an indication of a rotational angle of the face depicted in the facial image based on inputting, to the selected machine learning model, the image of the identification document;
rotate the image of the identification document by an angle to obtain an orientated image of the identification document, the angle being based on the rotational angle of the face and a reference angle associated with a display orientation of the identification document;
provide the orientated image of the identification document for display;
receive feedback information indicating whether the oriented image has been accepted;
transmit, based on the feedback information, the oriented image or the image of the identification document to a server device as part of an authentication procedure related to the user device; and
re-train, based on the feedback information, the selected machine learning model.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the one or more instructions further cause the device to:
modify the display orientation based on the feedback information indicating that the orientated image of the identification document has been rejected.

### Claim 17 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the one or more instructions further cause the device to:
analyze one or more text fields as depicted in the orientated image of the identification document; and
detect whether the orientated image of the identification document is in a correct orientation based on whether text included in the one or more text fields is detectable.

### Claim 18 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the one or more instructions, that cause the device to provide the orientated image of the identification document for display, cause the device to:
provide the orientated image of the identification document for display in a review page having a display orientation associated with the image of the identification document based on the orientated image of the identification document.

### Claim 19 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the one or more instructions, to retrain the selected machine learning model, further cause the device to:
re-train the selected machine learning model with the feedback information to identify the rotational angles of faces.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein re-training the selected machine learning model with the feedback information improves an accuracy of rotational angle determinations.
