US2026087693A1PendingUtilityA1
Image processing method
Est. expirySep 26, 2044(~18.2 yrs left)· nominal 20-yr term from priority
Inventors:LIN YUNPING
G06T 2207/20021G06T 2207/10024G06T 2207/10016G06T 2200/24G06T 13/00G06T 7/60G06T 11/10G06T 7/11G06T 7/194G06T 11/23G06T 3/10
75
PatentIndex Score
0
Cited by
0
References
0
Claims
Abstract
An image processing method, an electronic device, and a medium are provided in embodiments of the present disclosure. The image processing method includes the following. A target image is obtained and the target image is converted into a dot matrix image, where the dot matrix image includes multiple dots, and the dot matrix image presents features of the target image through the sizes of the dots.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . An image processing method, comprising:
obtaining a target image; and converting the target image into a dot matrix image, wherein the dot matrix image comprises a plurality of dots, and the dot matrix image presents features of the target image through sizes of the plurality of dots.
2 . The method of claim 1 , wherein converting the target image into the dot matrix image comprising:
dividing the target image into a plurality of target regions, wherein a number of the plurality of target regions is same as a number of the plurality of dots in the dot matrix image, and the plurality of target regions correspond to the plurality of dots in the dot matrix image in a one-to-one correspondence; and determining, for each of the plurality of target regions, a size of a dot in the dot matrix image corresponding to a target region based on pixel(s) in the target region.
3 . The method of claim 2 , wherein the target image is a grayscale frame, or, the method further comprises: converting the target image into the grayscale frame in response to the target image being a color frame; and
wherein determining the size of the dot in the dot matrix image corresponding to the target region based on the pixel in the target region comprises:
determining the size of the dot in the dot matrix image corresponding to the target region based on a grayscale value of the pixel in the target region.
4 . The method of claim 2 , wherein determining the size of the dot in the dot matrix image corresponding to the target region comprises:
determining whether the target region is a foreground region or a background region; determining the size of the dot corresponding to the target region as a first size in response to the target region being the background region, wherein the first size is a fixed value; and determining the size of the dot corresponding to the target region as a second size in response to the target region being the foreground region, wherein the second size is different from the first size, and second sizes corresponding to different target regions that are foreground regions are same or different.
5 . The method of claim 4 , wherein determining whether the target region is the foreground region or the background region comprises:
determining whether the target region is the foreground region or the background region based on a grayscale value of the pixel in the target region, wherein whether the target region is the foreground region or the background region is determined based on a grayscale value of a central pixel in the target region; or wherein whether the target region is the foreground region or the background region is determined based on a mean of grayscale values of pixels in the target region.
6 . The method of claim 4 , wherein determining whether the target region is the foreground region or the background region comprises:
comparing a grayscale value of each of pixels in the target region with a grayscale threshold, and determining a number of pixels with grayscale values greater than the grayscale threshold; determining a ratio of the number of pixels with the grayscale values greater than the grayscale threshold to a total number of the pixels in the target region; and determining whether the target region is the foreground region or the background region based on a comparison between the ratio and a ratio threshold.
7 . The method of claim 4 , wherein in response to the target region being the foreground region, the size of the dot in the dot matrix image corresponding to the target region is in a positive correlation or a negative correlation with a feature grayscale value, wherein the feature grayscale value is a grayscale value of a central pixel in the target region or a mean of grayscale values of pixels in the target region.
8 . The method of claim 2 , wherein determining the size of the dot in the dot matrix image corresponding to the target region based on the pixel in the target region comprises:
identifying a background region of the target image; determining whether the target region is a foreground region or the background region based on a ratio of a number of pixels in the target region which are in the background region to a total number of pixels in the target region; and determining the size of the dot in the dot matrix image corresponding to the target region based on whether the target region is the foreground region or the background region, wherein the background region corresponds to a fixed first size, and the foreground region corresponds to a fixed or variable second size, and the second size is larger or smaller than the first size.
9 . The method of claim 1 , further comprising:
obtaining video data; and obtaining the target image from the video data, wherein the target image is at least one image frame in the video data.
10 . The method of claim 1 , further comprising:
saving or transmitting the dot matrix image; or presenting an animation based on a plurality of dot matrix images.
11 . The method of claim 1 , further comprising:
receiving an input on a touch screen from a user, and determining a plurality of target dots around a position touched by the user; and presenting a variation effect based on the plurality of target dots.
12 . The method of claim 11 , wherein in response to a target region being a background region, a target dot is of a first size; in response to a target region being a foreground region, the target dot is of a second size, and the second size is larger than the first size; and presenting the variation effect based on the plurality of target dots comprises:
in response to a region corresponding to a target dot being the background region, a size of the target dot gradually changes from a third size to the first size, wherein the third size is larger than the first size; or in response to the region corresponding to the target dot being the foreground region, the size of the target dot gradually changes from a fourth size to the second size, wherein the fourth size is smaller than the second size.
13 . The method of claim 11 , wherein presenting the variation effect based on the plurality of target dots comprises:
adding a target dot into an animation list in response to the target dot being not in the animation list, and starting to execute a dot animation, wherein a size of the target dot continuously changes in the dot animation; and removing the target dot from the animation list after the dot animation ends.
14 . An electronic device, comprising:
at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory is configured to store instructions which are able to be executed by the at least one processor, and the instructions, when executed by the at least one processor, cause the at least one processor to implement the method of claim 1 .
15 . A non-transitory computer-readable storage medium with computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by a processor, cause the processor to implement the method of claim 1 .
16 . An electronic device, comprising:
a plurality of light-emitting units arranged in a matrix; an image processing unit configured to implement the method of claim 1 to obtain a dot matrix image; a light-emitting control unit configured to control the plurality of light-emitting units to emit light based on information in the dot matrix image.
17 . The electronic device of claim 16 , wherein dots in the dot matrix image correspond to the plurality of light-emitting units in a one-to-one correspondence, the light-emitting control unit is configured to control a corresponding light emitting unit not to emit light by identifying a dot in the dot matrix image for representing a background region; and the light-emitting control unit is configured to control a corresponding light-emitting unit to emit light by identifying a dot in the dot matrix image for representing a foreground region.
18 . The electronic device of claim 16 , wherein the light-emitting control unit is configured to control a plurality of dot matrix images to be played to form an animation effect.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.