# US 2024/0005087 A1 · Systems and methods for automatically scoring a group of design elements

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

- Number: US 2024/0005087 A1
- Document ID: US20240005087A1
- Status: Published application
- Kind: A1
- Application number: 18/466,497
- Filed: 2023-09-13
- Published: 2024-01-04
- Earliest claimed: 2021-11-26
- Assignees: Canva Pty Ltd
- Applicants: Canva Pty Ltd
- Inventors: Tristan Lindsay Martin; Sam Luke Fancourt Parkinson
- Web page: https://patentgrep.com/patent/US20240005087A1

## CPC

- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F 40/166: Editing, e.g. inserting or deleting
- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06T 11/60: Creating or editing images; Combining images with text
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Described herein is a computer implemented method. The method includes: accessing design data defining one or more design elements of a design; determining a set of target elements, the set of target elements including one or more of the design elements; determining a set of fragments, the set of fragments including one or more primary fragments and one or more background fragments, each primary fragment being a fragment of a design element in the set of target elements, each secondary fragment being a fragment that is a background fragment to a primary fragment; calculating, by a processing unit, a set of fragment contrast scores, the set of fragment contrast scores including a fragment contrast score for each primary fragment in the set of fragments; and calculating an overall score for the set of target elements based on the set of fragment contrast scores.

## Claims

### Claim 1

A computer implemented method including:
accessing design data defining one or more design elements of a design;
determining a set of target elements, the set of target elements including one or more of the design elements;
determining a set of fragments, the set of fragments including one or more primary fragments and one or more background fragments, each primary fragment being a fragment that is directly associated with a design element in the set of target elements, each secondary fragment being a fragment that is a background fragment to a primary fragment;
calculating, by a processing unit, a set of fragment contrast scores, the set of fragment contrast scores including a fragment contrast score for each primary fragment in the set of fragments; and
calculating an overall score for the set of target elements based on the set of fragment contrast scores.

### Claim 2 (depends on 1)

The computer implemented method of claim 1, further including
comparing the overall score to a threshold score to determine whether a warning condition exists; and
in response to determining that a warning condition exists, generating a warning.

### Claim 3 (depends on 2)

The computer implemented method of claim 2, wherein generating the warning includes displaying a warning on a display.

### Claim 4 (depends on 3)

The computer implemented method of claim 3, wherein generating the warning includes visually distinguishing the one or more elements in the set of target elements.

### Claim 5 (depends on 1)

The computer implemented method of claim 1, wherein calculating the fragment contrast score for a selected primary fragment includes:
calculating a set of fragment pair contrast scores for the selected primary fragment, the set of fragment pair contrast scores for the selected primary fragment including a fragment pair contrast score in respect of each fragment that is a background fragment to the selected primary fragment; and
calculating the fragment contrast score for a selected primary fragment based on the set of fragment pair contrast scores calculated for the selected primary fragment.

### Claim 6 (depends on 5)

The computer implemented method of claim 5, wherein calculating the fragment contrast score for a selected primary fragment includes combining the set of fragment pair contrast scores for the selected primary fragment in a way that gives additional weight to a worst fragment pair contrast score in the set of fragment pair contrast scores for the selected primary fragment.

### Claim 7 (depends on 5)

The computer implemented method of claim 5, wherein calculating the fragment pair contrast score for a particular pair of fragments that includes a foreground fragment and a background fragment includes calculating the fragment pair contrast score based on a distance between a colour space value of the foreground fragment and a colour space value of the background fragment.

### Claim 8 (depends on 1)

The computer implemented method of claim 1, wherein calculating the set of fragment contrast scores includes:
calculating one or more text fragment contrast scores, each text fragment contrast score being a fragment contrast score in respect of a text fragment; and
calculating one or more non-text fragment contrast scores, each non-text fragment contrast score being a fragment contrast score in respect of a non-text fragment,
and wherein
calculating the overall contrast score includes applying a heavier weighting to the one or more text fragment contrast scores than to the one or more non-text fragment contrast scores.

### Claim 9 (depends on 8)

The computer implemented method of claim 8, wherein calculating a text fragment contrast score for a selected text fragment includes calculating a legibility penalty.

### Claim 10 (depends on 1)

The computer implemented method of claim 1, further including:
calculating a combined vector graphic luminance score; and
calculating the overall score for the set of target elements based on the combined vector graphic luminance score.

### Claim 11

A computer processing system including:
a processing unit;
a display; and
a non-transient computer-readable storage medium storing instructions, which when executed by the processing unit, cause the processing unit to perform a method including
accessing design data defining one or more design elements of a design;
determining a set of target elements, the set of target elements including one or more of the design elements;
determining a set of fragments, the set of fragments including one or more primary fragments and one or more background fragments, each primary fragment being a fragment that is directly associated with a design element in the set of target elements, each secondary fragment being a fragment that is a background fragment to a primary fragment;
calculating, by a processing unit, a set of fragment contrast scores, the set of fragment contrast scores including a fragment contrast score for each primary fragment in the set of fragments; and
calculating an overall score for the set of target elements based on the set of fragment contrast scores.

### Claim 12 (depends on 11)

The computer processing system of claim 11, further including
comparing the overall score to a threshold score to determine whether a warning condition exists; and
in response to determining that a warning condition exists, generating a warning.

### Claim 13 (depends on 12)

The computer processing system of claim 12, wherein generating the warning includes displaying a warning on a display.

### Claim 14 (depends on 13)

The computer processing system of claim 13, wherein generating the warning includes visually distinguishing the one or more elements in the set of target elements.

### Claim 15 (depends on 11)

The computer processing system of claim 11, wherein calculating the fragment contrast score for a selected primary fragment includes:
calculating a set of fragment pair contrast scores for the selected primary fragment, the set of fragment pair contrast scores for the selected primary fragment including a fragment pair contrast score in respect of each fragment that is a background fragment to the selected primary fragment; and
calculating the fragment contrast score for a selected primary fragment based on the set of fragment pair contrast scores calculated for the selected primary fragment.

### Claim 16 (depends on 15)

The computer processing system of claim 15, wherein calculating the fragment pair contrast score for a particular pair of fragments that includes a foreground fragment and a background fragment includes calculating the fragment pair contrast score based on a distance between a colour space value of the foreground fragment and a colour space value of the background fragment.

### Claim 17 (depends on 11)

The computer processing system of claim 11, wherein calculating the set of fragment contrast scores includes:
calculating one or more text fragment contrast scores, each text fragment contrast score being a fragment contrast score in respect of a text fragment; and
calculating one or more non-text fragment contrast scores, each non-text fragment contrast score being a fragment contrast score in respect of a non-text fragment,
and wherein
calculating the overall contrast score includes applying a heavier weighting to the one or more text fragment contrast scores than to the one or more non-text fragment contrast scores.

### Claim 18 (depends on 17)

The computer processing system of claim 17, wherein calculating a text fragment contrast score for a selected text fragment includes calculating a legibility penalty.

### Claim 19 (depends on 11)

The computer processing system of claim 11, further including:
calculating a combined vector graphic luminance score; and
calculating the overall score for the set of target elements based on the combined vector graphic luminance score.

### Claim 20

A non-transient storage medium storing instructions executable by processing unit to cause the processing unit to perform a method including
accessing design data defining one or more design elements of a design;
determining a set of target elements, the set of target elements including one or more of the design elements;
determining a set of fragments, the set of fragments including one or more primary fragments and one or more background fragments, each primary fragment being a fragment that is directly associated with a design element in the set of target elements, each secondary fragment being a fragment that is a background fragment to a primary fragment;
calculating, by a processing unit, a set of fragment contrast scores, the set of fragment contrast scores including a fragment contrast score for each primary fragment in the set of fragments; and
calculating an overall score for the set of target elements based on the set of fragment contrast scores.
