# US 2025/0148791 A1 · Image processing method, 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 2025/0148791 A1
- Document ID: US20250148791A1
- Status: Published application
- Kind: A1
- Application number: 19/005,493
- Filed: 2024-12-30
- Published: 2025-05-08
- Earliest claimed: 2022-06-28
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Shizhuo Liu; Xiaobing Wang; Zhezhu Jin
- Web page: https://patentgrep.com/patent/US20250148791A1

## CPC

- G06V 20/49: {Segmenting video sequences, i.e. computational techniques such as parsing or cutting the sequence, low-level clustering or determining units such as shots or scenes}
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- 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/42: Global feature extraction by analysis of the whole pattern, e.g. using frequency domain transformations or autocorrelation
- G06V 10/44: Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06V 10/50: by performing operations within image blocks; by using histograms, e.g. histogram of oriented gradients [HoG]; by summing image-intensity values; Projection analysis
- G06V 10/762: using clustering, e.g. of similar faces in social networks
- G06V 10/7715: {Feature extraction, e.g. by transforming the feature space, e.g. multi-dimensional scaling [MDS]; Mappings, e.g. subspace methods}
- G06V 10/82: using neural networks
- G06V 10/94: Hardware or software architectures specially adapted for image or video understanding
- G06V 20/44: {Event detection}
- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- G06N 3/08: Learning methods
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An image processing method includes: obtaining first image patches corresponding to an image to be processed; dividing the first image patches into at least two groups via a window self-attention network; determining global attention information among the first image patches in the at least two groups of the first image patches, respectively; obtaining second image patches comprising local attention information; and determining a recognition result of the image to be processed based on the second image patches.

## Claims

### Claim 1

An image processing method comprising:
obtaining first image patches corresponding to an image to be processed;
dividing the first image patches into at least two groups via a window self-attention network;
determining global attention information among the first image patches in the at least two groups of the first image patches, respectively;
obtaining second image patches comprising local attention information; and
determining a recognition result of the image to be processed based on the second image patches.

### Claim 2 (depends on 1)

The image processing method of claim 1, wherein the determining the recognition result of the image to be processed based on the second image patches comprises:
determining, by a global token generator, at least one global token corresponding to at least part of the image to be processed, based on the first image patches; and
determining the recognition result of the image to be processed, based on the at least one global token and the second image patches.

### Claim 3 (depends on 2)

The image processing method of claim 2, wherein the global token generator comprises a kernel generator, and
wherein the determining, by the global token generator, the at least one global token corresponding to the at least part of the image to be processed based on the first image patches, comprises:
generating at least one kernel for the image to be processed, by the kernel generator; and
determining the at least one global token respectively corresponding to the at least one kernel, based on the at least one kernel and the first image patches.

### Claim 4 (depends on 2)

The image processing method of claim 2, wherein the determining the recognition result of the image to be processed based on the at least one global token and the second image patches, comprises:
determining, via a cross-attention network, attention information among the at least one global token and the second image patches;
obtaining third image patches comprising the global attention information and the local attention information; and
determining the recognition result of the image to be processed based on the third image patches.

### Claim 5 (depends on 4)

The image processing method of claim 4, wherein at least one of the window self-attention network, the global token generator and the cross-attention network comprises a first neural network,
wherein the determining the recognition result of the image to be processed based on the first image patches comprises:
obtaining fourth image patches comprising the global attention information and the local attention information based on the first image patches, via at least one first neural network; and
determining the recognition result of the image to be processed, based on the fourth image patches,
wherein, the obtaining the fourth image patches comprising the global attention information and the local attention information based on the first image patches, via the at least one first neural network, further comprises:
performing at least one down sampling for the first image patches, and
wherein the at least one down sampling respectively comprises:
down sampling output image patches of a previous first neural network to obtain down sampled results; and
inputting the down sampled results into a first neural network next to the previous first neural network.

### Claim 6 (depends on 5)

The image processing method of claim 5, wherein, for each of the output image patches of the previous first neural network, the down sampling the output image patches comprises:
grouping feature points of each of the output image patches into grouped feature maps; and
concatenating the grouped feature maps in a channel dimension to obtain connected feature maps.

### Claim 7 (depends on 4)

The image processing method of claim 4, wherein the determining the recognition result of the image to be processed based on the third image patches comprises:
determining fifth image patches comprising the global attention information, the local attention information and temporal information based on the third image patches, via a second neural network; and
determining the recognition result of the image to be processed, based on the fifth image patches.

### Claim 8 (depends on 7)

The image processing method of claim 7, wherein the determining the fifth image patches comprising the global attention information, the local attention information and the temporal information based on the third image patches, via the second neural network, comprises:
obtaining, from a predetermined short memory pool, sixth image patches corresponding to at least one frame of a processed image prior to the image to be processed;
determining temporal third image patches comprising the global attention information, the local attention information and the temporal information, based on the third image patches and the sixth image patches;
down sampling the third image patches to obtain seventh image patches;
obtaining, from a predetermined long memory pool, eighth image patches corresponding to the at least one frame of the processed image prior to the image to be processed;
determining temporal seventh image patches comprising temporal information, based on the seventh image patches and the eighth image patches; and
obtaining the fifth image patches comprising the global attention information, the local attention information and the temporal information, based on the temporal third image patches and the temporal seventh image patches.

### Claim 9 (depends on 8)

The image processing method of claim 8, wherein the method further comprises at least one of:
updating the short memory pool, based on the temporal third image patches; and
updating the long memory pool, based on the temporal seventh image patches.

### Claim 10 (depends on 1)

The image processing method of claim 1, wherein the image to be processed comprises a plurality of frames,
wherein the determining the recognition result of the image to be processed comprises determining a recognition result of the plurality of frames, respectively, and
wherein the method further comprises:
based on the determined recognition result of the plurality of frames, recognizing one or more highlight among the plurality of frames.

### Claim 11 (depends on 10)

The image processing method of claim 10, wherein the recognizing the one or more highlights among the plurality of frames comprises:
dividing the image to be processed into a plurality of snippets of a fixed length;
determining a highlight recognition score for the plurality of snippets, respectively; and
classifying the plurality of snippets into highlight portions or non-highlight portions based on the highlight recognition score.

### Claim 12 (depends on 11)

The image processing method of claim 11, wherein the recognizing the one or more highlights among the plurality of frames further comprises:
integrating adjacent snippets classified as a highlight portion, based on the adjacent snippets corresponding to a same type of highlight; and
determining a start time and an end time of the integrated adjacent snippets as the one or more highlights.

### Claim 13 (depends on 3)

The image processing method of claim 3, wherein the at least one global token corresponds to one or more features to be extracted in the image to be processed, and
wherein the generating the at least one kernel for the image to be processed, by the kernel generator, comprises:
adapting a size of the at least one kernel to correspond to the one or more features to be extracted.

### Claim 14 (depends on 1)

The image processing method of claim 1, wherein a resolution of the second image patches is lower than a resolution of the first image patches.

### Claim 15

An image processing apparatus, comprising:
at least one processor; and
at least one memory storing instructions executable by the at least one processor,
wherein, by executing the instructions, the at least one processor is configured to control:
a first obtaining module to obtain first image patches corresponding to an image to be processed;
a first processing module to:
divide the first image patches into at least two groups via a window self-attention network,
determine global attention information among first image patches in the at least two groups of the first image patches, respectively, and
obtain second image patches comprising local attention information; and
a first recognition module to determine a recognition result of the image to be processed, based on the second image patches.

### Claim 16 (depends on 15)

The image processing apparatus of claim 15, wherein the at least one processor is further configured to control:
the first processing module to:
determine, by a global token generator, at least one global token corresponding to at least part of the image to be processed, based on the first image patches; and
the first recognition module to:
determine the recognition result of the image to be processed, based on the at least one global token and the second image patches.

### Claim 17 (depends on 16)

The image processing apparatus of claim 16, wherein the global token generator comprises a kernel generator,
wherein the at least one processor is further configured to control:
the first processing module to:
generate at least one kernel for the image to be processed, by the kernel generator; and
the first recognition module to:
determine the at least one global token respectively corresponding to the at least one kernel, based on the at least one kernel and the first image patches.

### Claim 18 (depends on 16)

The image processing apparatus of claim 16, wherein the at least one processor is further configured to control:
the first processing module to:
determine, via a cross-attention network, attention information among the at least one global token and the second image patches, and
obtain third image patches comprising the global attention information and the local attention information; and
the first recognition module to:
determine the recognition result of the image to be processed based on the third image patches.

### Claim 19 (depends on 18)

The image processing apparatus of claim 18, wherein at least one of the window self-attention network, the global token generator and the cross-attention network comprises a first neural network,
wherein the at least one processor is further configured to:
for determining the recognition result of the image to be processed based on the first image patches, control the first processing module to:
obtain fourth image patches comprising the global attention information and local attention information based on the first image patches, via at least one first neural network;
for determining the recognition result of the image to be processed based on the first image patches, control the first recognition module to:
determine the recognition result of the image to be processed, based on the fourth image patches;
for obtaining the fourth image patches comprising the global attention information and the local attention information based on the first image patches via the at least one first neural network, control the first processing module to:
perform at least one down sampling for the first image patches; and
for performing the at least one down sampling, control the first processing module to:
down sample output image patches of a previous first neural network to obtain down sampled results, and
input the down sampled results into a first neural network next to the previous first neural network.

### Claim 20 (depends on 1)

A non-transitory computer readable storage medium having a computer program stored therein, wherein when the computer program is executed by at least one processor, the computer program performs the image processing method according to claim 1.
