# US 2025/0166244 A1 · Method and apparatus for processing effect image, 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 2025/0166244 A1
- Document ID: US20250166244A1
- Status: Published application
- Kind: A1
- Application number: 18/832,857
- Filed: 2023-01-11
- Published: 2025-05-22
- Earliest claimed: 2022-01-24
- Applicants: Lemon Inc.
- Inventors: Xu CHEN; Yahan LIANG; Siyao YANG
- Web page: https://patentgrep.com/patent/US20250166244A1

## CPC

- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06T 11/00: Two-dimensional [2D] image generation
- G06T 11/23: using straight lines or curves
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Provided in the embodiments of the present disclosure are a method and apparatus for processing an effect image, and an electronic device and a storage medium. The method comprises: obtaining an image to be processed; determining a brush model to be rendered that corresponds to the image to be processed; and rendering, according to a drawing parameter, a line to be rendered in the brush model to be rendered, and obtaining the effect image corresponding to the image to be processed.

## Claims

### Claim 1

A method for processing an effect image, comprising:
obtaining an image to be processed;
determining a brush model to be rendered that corresponds to the image to be processed; and
rendering, according to a drawing parameter, a line to be rendered in the brush model to be rendered, and obtaining the effect image corresponding to the image to be processed.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining a brush model to be rendered that corresponds to the image to be processed comprises:
determining, according to the image to be processed and a target contrast view, the brush model to be rendered.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the determining a brush model to be rendered that corresponds to the image to be processed comprises:
taking a drawn trajectory on a display interface as the image to be processed; and
obtaining two adjacent pause points in the drawn trajectory, and determining, according to attributes of the pause point and the image to be processed, the brush model to be rendered;
wherein the attributes of the pause point comprise pause duration and a pause instant at the pause point.

### Claim 4 (depends on 1)

The method according to claim 1, further comprising:
determining a line width change rate according to width information of the line in the brush model to be processed;
determining a Fresnel value of a pixel according to a normal vector of the pixel in the brush model to be processed and a camera normal vector corresponding to the brush model to be processed;
determining, according to the Fresnel value of the pixel and a corresponding width change rate, gray information of the pixel in the brush model to be processed; and
determining the drawing parameter according to the gray information.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the determining, according to the Fresnel value of the pixel and a corresponding width change rate, gray information of the pixel in the brush model to be processed comprises:
determining the gray information of a corresponding pixel through a scalar multiplication operation on the width change rate and a corresponding Fresnel value.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the determining the drawing parameter according to the gray information comprises:
determining a dark color area and a light color area according to a gray value, and obtaining a first predetermined drawing parameter to be fused that corresponds to the dark color area and a second predetermined drawing parameter to be fused that corresponds to the light color area; and
processing the first drawing parameter to be fused and the second drawing parameter to be fused based on an interpolation operation, and determining the drawing parameter corresponding to a respective gray value.

### Claim 7 (depends on 6)

The method according to claim 6, further comprising:
determining reflected light quantity information corresponding to gray information under different illumination parameters; and
updating, based on the reflected light quantity information, the drawing parameter corresponding to respective gray information.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the drawing parameter comprises a drawing paint and a paint parameter, the drawing paint is a liquid paint, the liquid paint comprises ink or syrup, and the paint parameter comprises a paint depth of the liquid paint and a reflected light quantity of the paint consistent with the reflected light quantity information.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the rendering, according to a drawing parameter, a line to be rendered in the brush model to be rendered, and obtaining the effect image corresponding to the image to be processed comprise:
determining a gray value of a pixel in the line to be rendered and an illumination parameter corresponding to the image to be processed;
retrieving a corresponding drawing paint and a corresponding paint parameter according to the gray value and the illumination parameter; and
rendering a corresponding pixel based on the drawing paint and the paint parameter, and obtaining the effect image.

### Claim at position 10

10-18. (canceled)

### Claim 19

An electronic device, comprising:
a processor; and
a memory configured to store a program, when executed by the processor, causing the processor to:
obtain an image to be processed;
determine a brush model to be rendered that corresponds to the image to be processed; and
render, according to a drawing parameter, a line to be rendered in the brush model to be rendered, and obtain the effect image corresponding to the image to be processed.

### Claim 20

A non-transitory computer-readable medium, comprising computer-executable instructions, wherein the computer-executable instructions when executed by a computer processor, cause the computer processor to:
obtain an image to be processed;
determine a brush model to be rendered that corresponds to the image to be processed; and
render, according to a drawing parameter, a line to be rendered in the brush model to be rendered, and obtain the effect image corresponding to the image to be processed.

### Claim 21 (depends on 19)

The electronic device of claim 19, wherein the program further causes the processor to:
determine, according to the image to be processed and a target contrast view, the brush model to be rendered.

### Claim 22 (depends on 19)

The electronic device of claim 19, wherein the program further causes the processor to:
take a drawn trajectory on a display interface as the image to be processed; and
obtain two adjacent pause points in the drawn trajectory, and determine, according to attributes of the pause point and the image to be processed, the brush model to be rendered;
wherein the attributes of the pause point comprise pause duration and a pause instant at the pause point.

### Claim 23 (depends on 19)

The electronic device of claim 19, wherein the program further causes the processor to:
determine a line width change rate according to width information of the line in the brush model to be processed;
determine a Fresnel value of a pixel according to a normal vector of the pixel in the brush model to be processed and a camera normal vector corresponding to the brush model to be processed;
determine, according to the Fresnel value of the pixel and a corresponding width change rate, gray information of the pixel in the brush model to be processed; and
determine the drawing parameter according to the gray information.

### Claim 24 (depends on 22)

The electronic device of claim 22, wherein the program further causes the processor to:
determine the gray information of a corresponding pixel through a scalar multiplication operation on the width change rate and a corresponding Fresnel value.

### Claim 25 (depends on 22)

The electronic device of claim 22, wherein the program further causes the processor to:
determine a dark color area and a light color area according to a gray value, and obtain a first predetermined drawing parameter to be fused that corresponds to the dark color area and a second predetermined drawing parameter to be fused that corresponds to the light color area; and
process the first drawing parameter to be fused and the second drawing parameter to be fused based on an interpolation operation, and determine the drawing parameter corresponding to a respective gray value.

### Claim 26 (depends on 24)

The electronic device of claim 24, wherein the program further causes the processor to:
determine reflected light quantity information corresponding to gray information under different illumination parameters; and
update, based on the reflected light quantity information, the drawing parameter corresponding to respective gray information.

### Claim 27 (depends on 19)

The electronic device of claim 19, wherein the drawing parameter comprises a drawing paint and a paint parameter, the drawing paint is a liquid paint, the liquid paint comprises ink or syrup, and the paint parameter comprises a paint depth of the liquid paint and a reflected light quantity of the paint consistent with the reflected light quantity information.

### Claim 28 (depends on 26)

The electronic device of claim 26, wherein the program further causes the processor to:
determine a gray value of a pixel in the line to be rendered and an illumination parameter corresponding to the image to be processed;
retrieve a corresponding drawing paint and a corresponding paint parameter according to the gray value and the illumination parameter; and
render a corresponding pixel based on the drawing paint and the paint parameter, and obtain the effect image.

### Claim 29 (depends on 20)

The non-transitory computer-readable storage medium of claim 20, wherein the computer-executable instructions further cause the computer processor to:
determine, according to the image to be processed and a target contrast view, the brush model to be rendered.
