# US 2021/0281771 A1 · Video processing method, electronic device and non-transitory computer readable medium

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

- Number: US 2021/0281771 A1
- Document ID: US20210281771A1
- Status: Published application
- Kind: A1
- Application number: 17/328,202
- Filed: 2021-05-24
- Published: 2021-09-09
- Earliest claimed: 2018-11-27
- Assignees: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Applicants: Guangdong Oppo Mobile Telecommunications Corp., Ltd.
- Inventors: Hai YANG
- Web page: https://patentgrep.com/patent/US20210281771A1

## CPC

- H04N 21/4325: {by playing back content from the storage medium (reproduction of recorded television signals H04N5/76; reproduction of recorded television signals H04N9/79)}
- G06F 3/0482: Interaction with lists of selectable items, e.g. menus
- G06F 3/0488: using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F 3/04883: for inputting data by handwriting, e.g. gesture or text
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- G06T 5/70: Denoising; Smoothing
- G06T 5/73: Deblurring; Sharpening
- G06T 7/20: Analysis of motion (motion estimation for coding, decoding, compressing or decompressing digital video signals H04N19/43, H04N19/51)
- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 10/26: Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
- G06V 10/75: Organisation of the matching processes, e.g. simultaneous or sequential comparisons of image or video features; Coarse-fine approaches, e.g. multi-scale approaches; using context analysis; Selection of dictionaries
- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- G11B 27/031: Electronic editing of digitised analogue information signals, e.g. audio or video signals
- H04N 5/265: Mixing
- H04N 5/772: {the recording apparatus and the television camera being placed in the same enclosure}
- H04N 5/783: Adaptations for reproducing at a rate different from the recording rate
- H04N 7/0127: {by changing the field or frame frequency of the incoming video signal, e.g. frame rate converter}
- H04N 21/42653: {for processing graphics}
- H04N 21/440263: {by altering the spatial resolution, e.g. for displaying on a connected PDA}
- H04N 21/440281: {by altering the temporal resolution, e.g. by frame skipping (television signal recording using magnetic recording on tape for reproducing at a rate different from the recording rate H04N5/783)}
- H04N 21/443: OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N 25/60: Noise processing, e.g. detecting, correcting, reducing or removing noise
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20192: Edge enhancement; Edge preservation
- G06T 2207/20212: Image combination
- G06T 2207/30232: Surveillance
- G06V 2201/07: Target detection
- H04N 7/18: Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N 21/4728: for selecting a Region Of Interest [ROI], e.g. for requesting a higher resolution version of a selected region
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G11B: INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER (recording measured values in a way that does not require playback through a transducer G01D9/00; recording or playback apparatus using mechanically marked tape, e.g. punched paper tape, or using unit records, e.g. punched or magnetically marked cards G06K; transferring data from one type of record carrier to another G06K1/18; circuits for coupling output of reproducer to radio receiver H04B1/20; gramophone pick-ups or like acoustic electromechanical transducers or circuits therefor H04R)

## Abstract

Provided is a video processing method, electronic device and computer-readable medium, relating to the technical field of video processing. A target frame of a video file is acquired by a central processing unit. a target area in the target frame is determined by the central processing unit. First image data corresponding to the target area is sent to a graphics processing unit, and the graphics processing unit is instructed to perform video enhancement processing on the first image data. Second image data corresponding to an area in the target frame except the target area is combined with the video-enhanced first image data to form an image to-be-displayed.

## Claims

### Claim 1

A video processing method for an electronic device, wherein the electronic device comprises a central processing unit and a graphics processing unit, and the method executed by the central processing unit comprises:
acquiring a target frame of a video file;
determining a target area in the target frame;
sending first image data corresponding to the target area to the graphics processing unit, and instructing the graphics processing unit to perform video enhancement processing on the first image data, wherein the video enhancement processing is configured to perform parameter optimization processing on an image in the video file; and
combining second image data corresponding to an area in the target frame except the target area with the video-enhanced first image data, and forming an image to-be-displayed.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining a target area in the target frame comprises:
acquiring, from the video file, a plurality of frames within a specified time period before the target frame;
acquiring a plurality of moving objects in the plurality of frames;
determining a target moving object from the plurality of moving objects; and
determining an area corresponding to the target moving object in the target frame as the target area.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the determining a target moving object from the plurality of moving objects comprises:
acquiring a reference picture, and acquiring a target object in the reference picture;
searching, from the plurality of moving objects, for a moving object matching the target object; and
determining the matched moving object as the target moving object.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the determining a target area in the target frame comprises:
detecting a touch gesture on a screen of the electronic device;
determining a time duration of the touch gesture, in response to detecting the touch gesture;
determining, based on the touch gesture, a target object selected from the target frame in response to determining the time duration of the touch gesture is greater than a preset time duration; and
determining an area corresponding to the target object as the target area.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the sending first image data corresponding to the target area to the graphics processing unit, and instructing the graphics processing unit to perform video enhancement processing on the first image data, comprises:
acquiring first image data corresponding to the target area;
determining an optimization strategy for the first image data; and
sending the first image data and the optimization strategy to the graphics processing unit, and instructing the graphics processing unit to perform, according to the optimization strategy, the video enhancement processing on the first image data.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the determining an optimization strategy for the first image data comprises:
acquiring resolution of the first image data; and
determining, according to the resolution of the first image data, an optimization strategy for the first image data.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the determining, according to the resolution of the first image data, an optimization strategy for the first image, comprises:
determining the optimization strategy for the first image data includes denoising and edge sharpening, in response to determining the resolution of the first image data is less than a preset resolution; and
determining the optimization strategy for the first image data includes saturation enhancement, in response to determining the resolution of the first image data is greater than or equal to the preset resolution.

### Claim 8 (depends on 5)

The method according to claim 5, wherein the determining an optimization strategy for the first image data comprises:
acquiring a type of the first image data; and
determining, based on the type of the first image data, the optimization strategy for the first image data.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the sending the first image data corresponding to the target area to the graphics processing unit, and instructing the graphics processing unit to perform video enhancement processing on the first image data, comprises:
acquiring the first image data corresponding to the target area;
storing the first image data to an off-screen rendering buffer; and
instructing the graphics processing unit to perform the video enhancement processing on the first image data in the off-screen rendering buffer.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the combining second image data corresponding to an area in the target frame except the target area with the video-enhanced first image data, and forming an image to-be-displayed, comprises:
acquiring second image data corresponding to an area in the target frame except the target area;
acquiring the video-enhanced first image data sent from the graphics processing unit; and
combining the second image data with the video-enhanced first image data and forming the image to-be-displayed, and storing the image to-be-displayed to a frame buffer.

### Claim 11 (depends on 10)

The method according to claim 10, further comprising:
after combining the second image data with the video-enhanced first image data and forming the image to-be-displayed, and storing the image to-be-displayed to a frame buffer, acquiring, based on a screen refresh rate, the image to-be-displayed from the frame buffer; and
displaying the image to-be-displayed on a screen of the electronic device.

### Claim 12 (depends on 1)

The method according to claim 1, wherein the sending the first image data corresponding to the target area to the graphics processing unit, and instructing the graphics processing unit to perform video enhancement processing on the first image data, comprises:
acquiring a frame size of the video file;
sending the first image data corresponding to the target area to the graphics processing unit, and instructing the graphics processing unit to perform the video enhancement processing on the first image data, in response to determining the frame size satisfies a specified condition; and
performing the video enhancement processing on the first image data by the central processing unit, in response to determining the frame size does not satisfy the specified condition.

### Claim 13 (depends on 1)

The method according to claim 1, further comprising:
before acquiring a target frame of a video file, acquiring a video frame rate of the video file; and
performing frame dropping processing on the video file, in response to determining the video frame rate is greater than a preset frame rate.

### Claim 14 (depends on 1)

The method according to claim 1, wherein the acquiring a target frame of a video file, comprises:
acquiring a video playing request sent from a client, the video playing request comprising identity information of the video file to-be-played;
searching, based on the identity information of the video file, for the video file; and
acquiring the target frame of the video file.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the acquiring the target frame of the video file comprises:
decoding the video file to obtain a plurality of frames; and
determining, as the target frame, a frame currently to-be-processed from the plurality of frames.

### Claim 16 (depends on 1)

The method according to claim 1, wherein the video enhancement processing comprises at least one of exposure enhancement, denoising, edge sharpening, contrast enhancement, or saturation enhancement.

### Claim 17

An electronic device, comprising:
a central processing unit and a graphics processing unit;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be performed by the central processing unit, the one or more application programs are configured to cause the central processing unit to perform operations comprising:
acquiring a frame currently to-be-processed from a video file;
determining a target area in the frame currently to-be-processed;
sending first image data corresponding to the target area in the frame currently to-be-processed to the graphics processing unit, and instructing the graphics processing unit to perform video enhancement processing on the first image data; and
combining second image data corresponding to an area in the frame currently to-be-processed except the target area with the video-enhanced first image data processed by the graphics processing unit, and forming an image to-be-displayed.

### Claim 18 (depends on 17)

The electronic device according to claim 17, wherein the sending first image data corresponding to the target area in the frame currently to-be-processed to the graphics processing unit, and instructing the graphics processing unit to perform video enhancement processing on the first image data, comprises:
acquiring first image data corresponding to the target area in the frame currently to-be-processed;
determining an optimization strategy for the first image data; and
sending the first image data and the optimization strategy to the graphics processing unit, and instructing the graphics processing unit to perform, according to the optimization strategy, the video enhancement processing on the first image data.

### Claim 19 (depends on 17)

The electronic device according to claim 17, wherein the sending first image data corresponding to the target area in the frame currently to-be-processed to the graphics processing unit, and instructing the graphics processing unit to perform video enhancement processing on the first image data, comprises:
acquiring first image data corresponding to the target area in the frame currently to-be-processed;
storing the first image data to an off-screen rendering buffer; and
instructing the graphics processing unit to perform the video enhancement processing on the first image data in the off-screen rendering buffer.

### Claim 20

A non-transitory computer-readable medium, wherein the non-transitory computer-readable storage medium stores program codes therein, the program codes are capable of being invoked by a central processing unit processor to cause the central processing unit to perform operations comprising:
acquiring a target frame of a video file;
sending first image data corresponding to a first pixel area in the target frame to a graphics processing unit, and instructing the graphics processing unit to perform video enhancement processing on the first image data; and
combining second image data corresponding to a second pixel area in the target frame, with the video-enhanced first image data, and forming an image to-be-displayed, wherein the second pixel area is an area in the target frame except the first pixel area.
