# US 2021/0333950 A1 · Page displaying method and apparatus, electronic device and storage medium

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

- Number: US 2021/0333950 A1
- Document ID: US20210333950A1
- Status: Published application
- Kind: A1
- Application number: 17/367,016
- Filed: 2021-07-02
- Published: 2021-10-28
- Earliest claimed: 2020-04-08
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science Technology Co., Ltd.
- Inventors: Zhen Chen; Zengyao Pang; Ge Song; Yinghao Du
- Web page: https://patentgrep.com/patent/US20210333950A1

## CPC

- G06T 7/90: Determination of colour characteristics
- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06T 11/40: Filling planar surfaces by adding surface attributes, e.g. adding colours or textures
- G06T 11/60: Creating or editing images; Combining images with text
- G09G 5/02: characterised by the way in which colour is displayed {(details of colour display specific for CRTs G09G1/28; specific for flat matrix panels other than liquid crystal displays G09G3/2003; specific for liquid crystal displays G09G3/3607)}
- G09G 5/10: Intensity circuits
- G09G 2320/0242: Compensation of deficiencies in the appearance of colours
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G09G: ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION (arrangements for transferring data between digital computers and displays G06F3/14; static indicating arrangements comprising an association of a number of separate sources or light control cells G09F9/00; static indicating arrangements comprising integral associations of a number of light sources H01J, H01K, H10H, H05B33/12; scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission, details thereof H04N1/00)

## Abstract

This application discloses a page displaying method and apparatus, an electronic device and a storage medium, relating to the technical field of computer vision, including: extracting a theme color from an image of a page to be displayed, and determining a coloration attribute of the theme color, where the coloration attribute is a chromatic attribute, or the coloration attribute is a non-chromatic attribute; and adjusting the page to be displayed according to the coloration attribute and displaying the page. Various pages are adjusted and displayed based on different coloration attributes of the theme color, thus avoiding a disadvantage related to lack of flexibility caused by filtering the theme color by a preset filtering range in related art, realizing diversity and flexibility in displaying for various pages, avoiding the disadvantage of distortion of images caused by simple filtering, and improving the reliability and accuracy of page display.

## Claims

### Claim 1

A page displaying method, comprising:
extracting a theme color from an image of the page to be displayed;
determining a coloration attribute of the theme color, wherein the coloration attribute is a chromatic attribute, or the coloration attribute is a non-chromatic attribute; and
adjusting the page to be displayed according to the coloration attribute and displaying the page.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
constructing a matrix according to a predetermined brightness range and a predetermined saturation range, the matrix being used to represent a positional relationship between the brightness range and the saturation range;
determining a color range according to the matrix and a predetermined circle center parameter; and
extracting a chromatic coordinate range from the color range according to the matrix and a predetermined white-gray division line,
wherein the determining a coloration attribute of the theme color comprises: determining the coloration attribute according to the chromatic coordinate range, and a brightness and a saturation in the theme color.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the adjusting the page to be displayed according to the coloration attribute comprises:
in response to the coloration attribute being the chromatic attribute, adjusting the brightness and the saturation in the theme color, and performing a light-dark gradient processing to the adjusted brightness and a hue in the theme color, separately;
in response to the coloration attribute being the non-chromatic attribute, performing a light-dark gradient processing to the hue and the brightness, separately.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the adjusting the brightness comprises:
determining a hue range corresponding to the hue according to a predetermined mapping relationship between the hue and a color scheme range;
determining a brightness modifier corresponding to the hue range according to a predetermined mapping relationship between the hue range and the brightness modifier;
determining an adjusted brightness according to the hue, the hue range and the brightness modifier corresponding to the hue range; and
adjusting the brightness according to the adjusted brightness.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the hue range is proportional to the brightness modifier in the predetermined mapping relationship between the hue range and the brightness modifier.

### Claim 6 (depends on 3)

The method according to claim 3, wherein the adjusting the saturation comprises:
determining an adjustment range corresponding to the saturation according to a predetermined mapping relationship between the saturation and the adjustment range;
determining an adjusted saturation according to the saturation and the adjustment range; and
adjusting the saturation according to the adjusted saturation.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the saturation is proportional to the adjustment range in the predetermined mapping relationship between the saturation and the adjustment range.

### Claim 8 (depends on 3)

The method according to claim 3, wherein the performing a light-dark gradient processing to the hue comprises:
determining a magnitude relationship between the hue and a predetermined hue split value;
determining an adjusted hue according to the hue, the magnitude relationship and a predetermined hue adjustment factor; and
adjusting the hue according to the adjusted hue.

### Claim 9 (depends on 3)

The method according to claim 3, wherein the performing a light-dark gradient processing to the brightness comprises:
determining a target brightness according to the brightness and a predetermined brightness adjustment factor; and
adjusting the brightness according to the target brightness.

### Claim 10

An electronic device, comprising:
at least one processor; and
a memory, communicatively connected to the at least one processor, wherein:
the memory stores thereon instructions that are executable by the at least one processor to enable the at least one processor to:
extract a theme color from an image of the page to be displayed;
determine a coloration attribute of the theme color, wherein the coloration attribute is a chromatic attribute, or the coloration attribute is a non-chromatic attribute; and
adjust the page to be displayed according to the coloration attribute and displaying the page.

### Claim 11 (depends on 10)

The electronic device according to claim 10, wherein the at least one processor is further enabled to:
construct a matrix according to a predetermined brightness range and a predetermined saturation range, the matrix being used to represent a positional relationship between the brightness range and the saturation range;
determine a color range according to the matrix and a predetermined circle center parameter; and
extract a chromatic coordinate range from the color range according to the matrix and a predetermined white-gray division line,
wherein the at least one processor is enabled to determine the coloration attribute according to the chromatic coordinate range, and a brightness and a saturation in the theme color.

### Claim 12 (depends on 10)

The electronic device according to claim 10, wherein the at least one processor is further enabled to:
in response to the coloration attribute being the chromatic attribute, adjust the brightness and the saturation in the theme color, and perform a light-dark gradient processing to the adjusted brightness and a hue in the theme color, separately;
in response to the coloration attribute being the non-chromatic attribute, perform a light-dark gradient processing to the hue and the brightness, separately.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein the at least one processor is further enabled to:
determine a hue range corresponding to the hue according to a predetermined mapping relationship between the hue and a color scheme range;
determine a brightness modifier corresponding to the hue range according to a predetermined mapping relationship between the hue range and the brightness modifier;
determine an adjusted brightness according to the hue, the hue range and the brightness modifier corresponding to the hue range; and
adjust the brightness according to the adjusted brightness.

### Claim 14 (depends on 13)

The electronic device according to claim 13, wherein the hue range is proportional to the brightness modifier in the predetermined mapping relationship between the hue range and the brightness modifier.

### Claim 15 (depends on 12)

The electronic device according to claim 12, wherein the at least one processor is further enabled to:
determine an adjustment range corresponding to the saturation according to a predetermined mapping relationship between the saturation and the adjustment range;
determine an adjusted saturation according to the saturation and the adjustment range; and
adjust the saturation according to the adjusted saturation.

### Claim 16 (depends on 15)

The electronic device according to claim 15, wherein the saturation is proportional to the adjustment range in the predetermined mapping relationship between the saturation and the adjustment range.

### Claim 17 (depends on 12)

The electronic device according to claim 12, wherein the at least one processor is further enabled to:
determine a magnitude relationship between the hue and a predetermined hue split value;
determine an adjusted hue according to the hue, the magnitude relationship and a predetermined hue adjustment factor; and
adjust the hue according to the adjusted hue.

### Claim 18 (depends on 12)

The electronic device according to claim 12, wherein the at least one processor is further enabled to:
determine a target brightness according to the brightness and a predetermined brightness adjustment factor; and
adjust the brightness according to the target brightness.

### Claim 19 (depends on 1)

A non-transitory computer readable storage medium, storing thereon computer instructions that are used to enable a computer to implement the method according to claim 1.

### Claim 20

A page displaying method, comprising:
determining, according to a theme color of an image of a page to be displayed, a coloration attribute corresponding to the theme color, wherein the coloration attribute is a chromatic attribute, or the coloration attribute is a non-chromatic attribute; and
adjusting the page to be displayed according to the coloration attribute and displaying the page.
