CN111862271B - Display area filling method, device, equipment and storage medium - Google Patents

Display area filling method, device, equipment and storage medium Download PDF

Info

Publication number
CN111862271B
CN111862271B CN202010722588.7A CN202010722588A CN111862271B CN 111862271 B CN111862271 B CN 111862271B CN 202010722588 A CN202010722588 A CN 202010722588A CN 111862271 B CN111862271 B CN 111862271B
Authority
CN
China
Prior art keywords
picture
preset
image data
target color
edge image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010722588.7A
Other languages
Chinese (zh)
Other versions
CN111862271A (en
Inventor
张楚翘
郭汀鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Baiguoyuan Information Technology Co Ltd
Original Assignee
Guangzhou Baiguoyuan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN202010722588.7A priority Critical patent/CN111862271B/en
Publication of CN111862271A publication Critical patent/CN111862271A/en
Application granted granted Critical
Publication of CN111862271B publication Critical patent/CN111862271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Geometry (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention discloses a display area filling method, a device, equipment and a storage medium. Wherein the method comprises the following steps: when the region filling event of the picture display interface is triggered, acquiring edge image data of a picture to be displayed based on a preset size proportion, clustering pixel points in the edge image data according to color values by using a preset clustering algorithm, determining corresponding target color values according to clustering results, and filling a region to be filled in the picture display interface based on the target color values, wherein the region to be filled comprises a display region outside the picture to be displayed. According to the technical scheme provided by the embodiment of the invention, the target color value can be more accurately determined, and then after the blank area adjacent to the picture to be displayed is filled based on the target color value, the attractiveness of the picture display interface can be improved.

Description

Display area filling method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a display area filling method, a device, equipment and a storage medium.
Background
Currently, many electronic devices are equipped with a display screen, and text, pictures, and other contents can be displayed by using the display screen.
When displaying a picture, the display is usually performed in a picture display interface, that is, the picture display interface contains a picture to be displayed. However, if the display sizes or proportions of the picture display interface and the picture are not matched, the picture cannot occupy the whole picture display interface, and the area (which may be called a blank area) except the picture display area in the picture display interface is abrupt due to no actual display content, so that the appearance of the interface is affected. Especially, for some full-screen display scenes, such as full-screen playing scenes, full-screen browsing scenes, full-screen editing scenes, screen protection scenes and the like, at this time, the picture display interface occupies the whole display screen, and the blank area is enlarged, so that the appearance of the whole display screen is affected.
In view of the above problem of the blank area, the prior art generally adopts a color filling manner, such as filling pure white or pure black, however, the effect of the current filling scheme is not ideal, and improvement is needed.
Disclosure of Invention
The embodiment of the invention provides a display area filling method, a device, equipment and a storage medium, which can optimize the display scheme of the existing picture display interface.
In a first aspect, an embodiment of the present invention provides a display area filling method, including:
When detecting that an area filling event of a picture display interface is triggered, acquiring edge image data of a picture to be displayed based on a preset size proportion;
clustering pixel points in the edge image data according to color values by using a preset clustering algorithm, and determining corresponding target color values according to clustering results;
And filling a region to be filled in the picture display interface based on the target color value, wherein the region to be filled comprises a display region outside the picture to be displayed.
In a second aspect, an embodiment of the present invention provides a display area filling apparatus, including:
the edge image data acquisition module is used for acquiring edge image data of the picture to be displayed based on a preset size proportion when detecting that an area filling event of the picture display interface is triggered;
The target color value determining module is used for clustering pixel points in the edge image data according to color values by using a preset clustering algorithm and determining corresponding target color values according to clustering results;
and the region filling module is used for filling the region to be filled in the picture display interface based on the target color value, wherein the region to be filled comprises a display region except the picture to be displayed.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor implements a display area filling method as provided in the embodiment of the present invention when the processor executes the computer program.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a display area filling method as provided by the embodiment of the present invention.
According to the display region filling scheme provided by the embodiment of the invention, when the region filling event of the picture display interface is triggered, the edge image data of the picture to be displayed is obtained based on the preset size proportion, the pixel points in the edge image data are clustered according to the color values by using the preset clustering algorithm, the corresponding target color values are determined according to the clustering result, and the region to be filled in the picture display interface is filled based on the target color values, wherein the region to be filled comprises the display region outside the picture to be displayed. By adopting the technical scheme, the target color value is determined based on the edge image data of the picture to be displayed, so that the target color value is more matched with the color characteristics of the edge of the picture, the target color value is determined in a clustering mode, the target color value can be more accurately determined, and the attractiveness of the picture display interface can be improved after filling the blank area adjacent to the picture to be displayed based on the target color value.
Drawings
Fig. 1 is a flow chart of a display area filling method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a region to be filled according to an embodiment of the present invention;
FIG. 3 is a schematic view of another region to be filled according to an embodiment of the present invention;
FIG. 4 is a schematic view of another area to be filled according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating another display area filling method according to an embodiment of the present invention;
Fig. 6 is a block diagram of a display area filling device according to an embodiment of the present invention;
Fig. 7 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings. Furthermore, embodiments of the invention and features of the embodiments may be combined with each other without conflict.
For ease of understanding, the related art will be described first. In order to reduce the influence of the blank area on the aesthetic degree of the interface, the blank area can be filled with colors, and the specific filling modes can be as follows:
Firstly, reading picture data of a picture to be displayed, counting the occurrence times of each color value, sorting according to the occurrence times, intercepting color values with the occurrence times larger than a certain value, generating a gradual change background according to the color brightness sorting, and filling the gradual change background into the whole picture display interface (the lower layer of the picture to be displayed), thereby realizing filling of a blank area. The computational complexity of this approach increases as the picture size becomes larger, affecting device performance. In addition, the color values of the same color may be different in sense, that is, the colors in the picture may look identical in sense, but the color values may be different, for example, the color value #ffb6c1 and the color value #ffc0cb may all look pink, and it is difficult to distinguish the colors by naked eyes, but the color values are different in sense, and statistics based on the color values may pull down the statistics of pink colors, resulting in inaccurate sorting result and further gradual change with incorrect colors. For example, the number of occurrences of the color value #ffb6c1 is 100, the number of occurrences of the color value #ffc0cb is 120, and the number of occurrences of the color value #0000ff (pure blue) is 130, so the #0000FF is arranged in front of the #ffb6c1 and #ffc0cb, which results in that the #ffb6c1 and #ffc0cb cannot be intercepted into the color group, but in reality, the number of occurrences of pink is more, the number of occurrences of the taken blue may not be much in the whole picture, and the resulting display effect may be affected by the gradual color change of the background generated based on blue.
Secondly, after the picture to be displayed is amplified, the picture to be displayed is blurred and used as a background to be filled into the whole picture display interface. If this way is adopted, when the picture itself is more colored, the background color is very disordered, the aesthetic of the public is difficult to meet, the aesthetic appearance is still affected, the requirement on the performance of the equipment is higher, and the picture is not suitable for low-end equipment (such as a mobile phone with lower configuration), and the universality is poor.
Thirdly, taking data of a row or a column of pixels at the edge of a picture to be displayed, and then tiling the data to the whole picture display interface, wherein if different color values exist in the row or the column of pixels, the difference of the different color values can be amplified, obvious lines are generated, and the attractive appearance is influenced.
According to the embodiment of the invention, the edge image data of the picture to be displayed is obtained based on the preset size proportion, the target color value in the edge image data is determined by using the clustering algorithm, and the filling is performed based on the target color value, so that the target color value can be more reasonably determined, and a better filling effect is obtained.
Fig. 1 is a flow chart of a display area filling method according to an embodiment of the present invention, where the method may be performed by a display area filling device, and the device may be implemented by software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 1, the method includes:
And 101, acquiring edge image data of a picture to be displayed based on a preset size proportion when detecting that an area filling event of a picture display interface is triggered.
By way of example, a picture display interface may be understood as an interface that requires displaying pictures, which may be a picture preview interface, a picture browse interface, a picture edit page, a picture play page, a screen saver page, and so forth. The triggering condition of the region filling event of the picture display interface can be preset, and the region filling event can be specifically an event for filling a display region except for a picture to be displayed in the picture display interface, and the region is marked as a region to be filled or a blank region for convenience of description. The size and the display proportion of the picture display interface can be set according to actual display requirements, wherein the size of the picture display interface is smaller than or equal to the size of the display screen, and the display proportion of the picture display interface can be freely set. For convenience of explanation, the following explanation will be made by taking the example that the size and the display proportion of the picture display interface are identical to those of the display screen, that is, taking the case that the picture display interface is displayed in full screen as an example.
For example, when the display sizes or proportions (such as the aspect ratio) of the picture display interface and the picture to be displayed (the picture to be displayed) are not matched, the picture to be displayed cannot occupy the whole picture display interface, so that a region to be filled is generated, and the condition that the display sizes or the display proportions of the picture to be displayed and the picture display interface are not matched can be used as the condition that the region filling event of the picture display interface is triggered. For example, detecting that an area fill event of a picture display interface is triggered includes: and when the aspect ratio of the picture to be displayed is not matched with the aspect ratio of the picture display interface or the size of the picture to be displayed is smaller than the size of the picture display interface, determining that the region filling event of the picture display interface is triggered.
For example, the preset size ratio may be set according to actual requirements, and is generally greater than 0 and less than or equal to 50%. The preset size ratios corresponding to the upper, lower, left and right edges of the picture to be displayed may be the same or different, for example, the upper edge and the lower edge correspond to a first preset size ratio, the left edge and the right edge correspond to a second preset size ratio, and the first preset size ratio and the second preset size ratio may be the same or different. The edge image data obtained in this step may include any one edge or edge image data corresponding to a plurality of edges, and may be determined according to a relative position of the region to be filled and the picture to be displayed. For example, for each edge of a picture to be displayed, if a region to be filled adjacent to a current edge exists, determining the current edge as a target edge, and acquiring edge image data corresponding to the target edge based on a preset size ratio corresponding to the target edge.
For example, assuming that the preset size proportion is η%, the display size of the picture to be displayed is m×n, where M represents the width, N represents the height, and the above edge is taken as an example, the picture region to be obtained is calculated, where the width of the picture region to be obtained is M, and the height is η×n, and the upper edge of the picture region to be obtained coincides with the upper edge of the picture to be displayed, and image data of the picture region to be obtained is obtained as edge image data.
Step 102, clustering pixel points in the edge image data according to color values by using a preset clustering algorithm, and determining corresponding target color values according to clustering results.
The preset clustering algorithm may be set according to actual requirements, for example, a K-means (K-means) clustering algorithm, a Mean-Shift (Mean-Shift) clustering algorithm, a density-based clustering method, a condensation hierarchy clustering algorithm, and the like. The color values may specifically be RGB color values (where R represents Red, G represents Green, and B represents Blue), or hexadecimal color codes. Through the clustering mode, the pixel points with similar color values can be integrated together to form a cluster, and then the corresponding target color value is determined according to the clustering result and used for filling the region to be filled, so that the condition that the color value in the first filling mode is determined inaccurately can be well avoided.
And step 103, filling a region to be filled in the picture display interface based on the target color value, wherein the region to be filled comprises a display region except for the picture to be displayed.
In the embodiment of the invention, the region to be filled is filled with the determined target color value as a reference, and a specific filling mode is not limited and can be set according to actual requirements. For example, when the target color value is one, the region to be filled may be solid-color-filled with the target color value, that is, the color value of each pixel in the region to be filled is set as the target color value; for another example, when the target color value is multiple (two or more), the region to be filled may be gradually filled with the target color value, and a specific gradual change manner, an adopted gradual change algorithm, and the like are not limited; for another example, when the target color value is multiple (two or more), the image display interface may be gradually filled with the target color value to obtain a display background of the image to be displayed, and when the image to be displayed is displayed, the image to be displayed is located at an upper layer of the display background, that is, the image to be displayed will cover a partial area in the display background, and the uncovered area corresponds to the area to be filled, where a specific gradual change mode and an adopted gradual change algorithm are not limited.
According to the display region filling method provided by the embodiment of the invention, when the region filling event of the picture display interface is triggered, the edge image data of the picture to be displayed is obtained based on the preset size proportion, the pixel points in the edge image data are clustered according to the color values by using the preset clustering algorithm, the corresponding target color values are determined according to the clustering result, and the region to be filled in the picture display interface is filled based on the target color values, wherein the region to be filled comprises the display region outside the picture to be displayed. By adopting the technical scheme, the target color value is determined based on the edge image data of the picture to be displayed, so that the target color value is more matched with the color characteristics of the edge of the picture, the target color value is determined in a clustering mode, the target color value can be more accurately determined, and the attractiveness of the picture display interface can be improved after filling the blank area adjacent to the picture to be displayed based on the target color value.
In some embodiments, when it is detected that the aspect ratio of the picture to be displayed is smaller than the aspect ratio of the picture display interface, the acquiring edge image data of the picture to be displayed based on the preset size ratio includes: and acquiring upper edge image data and lower edge image data of the picture to be displayed based on the first preset size proportion. Correspondingly, the clustering of the pixel points in the edge image data according to the color values by using a preset clustering algorithm, and the determination of the target color value according to the clustering result comprise the following steps: and clustering the pixel points in the upper edge image data and the lower edge image data according to color values by using a first preset clustering algorithm, and respectively determining corresponding first target color values and second target color values according to clustering results. Correspondingly, the filling the region to be filled in the picture display interface based on the target color value comprises the following steps: and carrying out gradual rendering from the upper edge to the lower edge of the picture display interface based on the first target color value and the second target color value so as to fill the region to be filled. The method has the advantages that the method can optimize the condition that the height-width ratio of the picture to be displayed is smaller than that of the picture display interface, and the filling of the area to be filled is realized in a gradual change mode, so that the transition between the picture to be displayed and the adjacent area to be filled is natural, and the aesthetic degree of the interface is further improved.
For example, when the aspect ratio of the picture to be displayed is smaller than the aspect ratio of the picture display interface, the display width of the picture to be displayed and the display width of the picture display interface are generally set to be the same for aesthetic purposes, and then the region to be filled may be located only above and below the picture to be displayed, that is, there are two regions to be filled, and the display sizes of the two regions to be filled may be the same, so that the picture to be displayed is located at the center of the picture display interface. Fig. 2 is a schematic diagram of an area to be filled, as shown in fig. 2, in which a picture display interface 200 includes a display area 201, a first area to be filled 202, and a second area to be filled 203 corresponding to a picture to be displayed, where the sizes of the first area to be filled 202 and the second area to be filled 203 are the same.
Optionally, when the difference between the aspect ratio of the picture to be displayed and the aspect ratio of the picture display interface is smaller, that is, the area to be filled is smaller, in order to improve the picture display efficiency, the filling operation of the area to be filled may not be performed. For example, when it is detected that the aspect ratio of the picture to be displayed is smaller than the aspect ratio of the picture display interface and the difference value between the aspect ratio and the aspect ratio is larger than the first preset proportional difference value, it is determined that the region filling event of the picture display interface is triggered. In addition, for the case that the picture display interface is displayed in full screen, since the aspect ratio of the display screen is certain (e.g. 2) for one electronic device, a first aspect ratio threshold (e.g. 5/3) may be preset, and when the aspect ratio of the picture to be displayed is smaller than the first aspect ratio threshold, it is determined that the region filling event of the picture display interface is detected to be triggered.
For example, since there are upper and lower areas to be filled, the target color value can be determined for each area to be filled respectively, so as to obtain a first target color value and a second target color value, wherein the first target color value accords with the color characteristics of the upper edge area of the picture to be displayed, the second target color value accords with the color characteristics of the lower edge area of the picture to be displayed, and the first target color value is gradually changed from the upper edge to the lower edge of the picture display interface to the second target color value, so that natural color transition is realized between the picture to be displayed and the adjacent area to be filled.
In some embodiments, when it is detected that the aspect ratio of the picture to be displayed is greater than the aspect ratio of the picture display interface, the acquiring edge image data of the picture to be displayed based on the preset size ratio includes: and acquiring left edge image data and right edge image data of the picture to be displayed based on the second preset size proportion. Correspondingly, the clustering of the pixel points in the edge image data according to the color values by using a preset clustering algorithm, and the determination of the target color value according to the clustering result comprise the following steps: and clustering pixel points in the left edge image data and the right edge image data according to color values by using a second preset clustering algorithm, and respectively determining corresponding third target color values and fourth target color values according to clustering results. Correspondingly, the filling the region to be filled in the picture display interface based on the target color value comprises the following steps: and gradually rendering from the left edge to the right edge of the picture display interface based on the third target color value and the fourth target color value so as to fill the region to be filled. The method has the advantages that the method can optimize the condition that the height-width ratio of the picture to be displayed is larger than that of the picture display interface, and the filling of the area to be filled is realized in a gradual change mode, so that the transition between the picture to be displayed and the adjacent area to be filled is natural, and the aesthetic degree of the interface is further improved.
For example, when the aspect ratio of the picture to be displayed is greater than the aspect ratio of the picture display interface, the display height of the picture to be displayed and the display height of the picture display interface are generally set to be the same for aesthetic purposes, and then the region to be filled may be located only on the left side and the right side of the picture to be displayed, that is, there are two regions to be filled, and the display sizes of the two regions to be filled may be the same, so that the picture to be displayed is located at the center of the picture display interface. Fig. 3 is a schematic diagram of another region to be filled provided in an embodiment of the present invention, as shown in fig. 3, a picture display interface 300 includes a display region 301, a first region to be filled 302, and a second region to be filled 303, where the sizes of the first region to be filled 302 and the second region to be filled 303 are the same.
Optionally, when the difference between the aspect ratio of the picture to be displayed and the aspect ratio of the picture display interface is smaller, that is, the area to be filled is smaller, in order to improve the picture display efficiency, the filling operation of the area to be filled may not be performed. For example, when it is detected that the aspect ratio of the picture to be displayed is greater than the aspect ratio of the picture display interface and the difference value between the aspect ratio and the aspect ratio is greater than the second preset proportional difference value, it is determined that the region filling event of the picture display interface is detected to be triggered. In addition, for the case that the picture display interface is displayed in full screen, since the aspect ratio of the display screen is certain (e.g. 2) for one electronic device, a second aspect ratio threshold (e.g. 7/3) may be preset, and when the aspect ratio of the picture to be displayed is greater than the second aspect ratio threshold, it is determined that the region filling event of the picture display interface is detected to be triggered.
For example, since there are left and right to-be-filled regions, target color values can be determined for each to-be-filled region respectively to obtain a third target color value and a fourth target color value, the third target color value accords with the color characteristics of the left edge region of the to-be-displayed picture, the fourth target color value accords with the color characteristics of the right edge region of the to-be-displayed picture, and the third target color value gradually changes from the left edge to the right edge of the picture display interface to the fourth target color value, so that natural color transition is realized between the to-be-displayed picture and the adjacent to-be-filled region.
In some embodiments, when detecting that the display size of the picture to be displayed is smaller than the display size of the picture display interface, the acquiring the edge image data of the picture to be displayed based on the preset size proportion includes: acquiring upper edge image data and lower edge image data of a picture to be displayed based on a first preset size proportion, and/or acquiring left edge image data and right edge image data of the picture to be displayed based on a second preset size proportion; correspondingly, the clustering of the pixel points in the edge image data according to the color values by using a preset clustering algorithm, and the determination of the target color value according to the clustering result comprise the following steps: clustering pixel points in the upper edge image data and the lower edge image data according to color values by using a first preset clustering algorithm, and respectively determining corresponding first target color values and second target color values according to clustering results; and/or clustering pixel points in the left edge image data and the right edge image data according to color values by using a second preset clustering algorithm, and respectively determining corresponding third target color values and fourth target color values according to clustering results; correspondingly, the filling the region to be filled in the picture display interface based on the target color value comprises the following steps: and performing gradual rendering from the upper edge to the lower edge of the picture display interface based on the first target color value and the second target color value, and/or performing gradual rendering from the left edge to the right edge of the picture display interface based on the third target color value and the fourth target color value, so as to fill the region to be filled. The method has the advantages that the situation that the display size ratio of the picture to be displayed is smaller than the display size of the picture display interface can be optimized, the filling of the area to be filled is realized in a gradual change mode, the transition between the picture to be displayed and the adjacent area to be filled is natural, and the attractiveness of the interface is further improved.
For example, when the display size of the picture to be displayed is smaller than the display size of the picture display interface, the picture to be displayed may be displayed at the center of the picture display interface for aesthetic purposes, and the picture to be displayed is surrounded by the region to be filled. Fig. 4 is a schematic diagram of another region to be filled, as shown in fig. 4, in which a picture display interface 400 includes a display region 401 corresponding to a picture to be displayed and a region to be filled 402, the region to be filled 402 surrounds the display region 401 to form an annular region, and distances between two parallel inner edges and corresponding outer edges of the region to be filled 402 are equal, namely W 1=W2,W3=W4 in the figure.
For example, since the region to be filled is adjacent to four edges of the picture to be displayed, two target color values can be determined for the upper edge and the lower edge respectively, and gradual rendering is performed from top to bottom; two target color values can be respectively determined aiming at the left edge and the right edge, and gradual rendering is carried out from left to right; four target color values can be determined for the upper, lower, left and right edges respectively, and two gradual change rendering (respectively from top to bottom and from left to right) are performed, the obtained display backgrounds can be respectively marked as a first display background and a second display background, and the display backgrounds obtained after the two gradual change rendering are subjected to superposition processing to obtain a final filling effect, namely the final display background is obtained. The superimposing process may include adding, for each pixel point in the region to be filled, a corresponding color value in the first display background and the second display background as a color value of the current pixel point. Further, before the superimposition processing, transparency of the first display background and transparency of the second display background may be set, for example, transparency of the first display background may be set to be the first transparency, transparency of the second display background may be set to be the second transparency, and specific values of the first transparency and the second transparency may be freely set, and may be the same (e.g., 50% each) or different.
In some embodiments, clustering pixel points in edge image data according to color values by using a preset clustering algorithm, and determining corresponding target color values according to a clustering result includes: clustering pixel points in edge image data according to color values based on a preset number of initial center points by using a K-means clustering algorithm to obtain a preset number of clusters, wherein each initial center point corresponds to one preset color value; and determining corresponding target color values according to the cluster clusters with the preset quantity. The advantage of this arrangement is that the clustering operation can be performed efficiently and the target color value can be determined quickly. The preset number can be set according to actual requirements, and can be 8 for example. The corresponding preset color values of the initial center points can be set according to actual requirements, and the color values corresponding to every two initial center points can be set to be different more generally, so that the clustering effect is improved even if the initial center points are scattered.
Alternatively, the preset number of initial center points may be determined as follows: a first value and a second value are determined, the first value is greater than or equal to a first preset threshold (e.g., 31), the second value is less than or equal to 255 and a difference from the first preset threshold, and the difference from the second value and the first value is greater than or equal to a second preset threshold (e.g., 64). For example, the first value is a and the second value is b, then a and b satisfy 31< = a, b < = 255-31, b-a > = 64. Taking RGB color values as an example, each color value has 3 red, green and blue color values, each color value is between 0 and 255, and a and b are respectively filled in, so that 8 possibilities are totally available, namely #aab, # abb, # aba, # baa, # bab, # bba and #bbb respectively correspond to 8 initial center points. Assuming that a=31 and b=94, after conversion to hexadecimal color codes, the 8 initial center points are respectively #1f1f1f, #1f1f5e, #1f5e1f, #1f5e5e, #5e1f1f, #5eif5e, #5e5e1f and #5e5e5e.
For example, when multiple target color values need to be determined, a K-means clustering algorithm may be used to determine the corresponding target color values, respectively. For example, using a first preset clustering algorithm to cluster pixel points in the upper edge image data and the lower edge image data according to color values, and determining corresponding first target color values and second target color values according to clustering results respectively may include: clustering pixel points in the upper edge image data according to color values based on a preset number of initial center points by using a K-means clustering algorithm to obtain a preset number of clusters, and determining corresponding first target color values according to the preset number of clusters; and clustering pixel points in the lower edge image data according to the color values based on a preset number of initial center points by using a K-means clustering algorithm to obtain a preset number of clusters, and determining corresponding second target color values according to the preset number of clusters. Similarly, the above-described operations may be performed for the left edge image data and the right edge image data, and will not be repeated here.
In some embodiments, the determining the corresponding target color value according to the preset number of clusters includes: and determining a target color value according to the cluster with the largest number of pixels in the clusters with the preset number. The arrangement has the advantages that the cluster with the largest number of pixel points indicates that the corresponding similar colors are the largest in total number of occurrence, visual color characteristics of the edges of the picture to be displayed can be reflected, and further the target color value can be determined more accurately.
In some embodiments, the determining the target color value according to the cluster including the most pixels among the preset number of clusters includes: marking the cluster with the largest number of pixels in the preset number of cluster clusters as the largest cluster, and acquiring the number of pixels corresponding to the largest cluster as the largest number of pixels; determining a target pixel point number range according to the maximum pixel point number and a preset proportion value; screening target clusters, the number of which is within the range of the number of the target pixel points, from the clusters with the preset number; and determining a corresponding target color value according to the target cluster. The arrangement has the advantages that color values in clusters with more pixels can be comprehensively considered, and the target color values can be more reasonably determined. The preset ratio value may be set according to actual requirements, and the range of the preset ratio value may be greater than the first ratio threshold (e.g. 0.5) and less than or equal to 1.
In some embodiments, the determining the corresponding target color value from the target cluster comprises: determining the center point of the target cluster as a candidate center point; screening out target center points from the candidate center points based on preset conditions; and determining a corresponding target color value according to the target center point. The method has the advantages that the central point of each cluster can change along with iteration of the clustering algorithm, and the central point can represent the characteristics of the whole cluster, so that the target central point can be screened out, and the corresponding target color value can be determined, and the determination of the target color value is more reasonable. The preset condition may be set freely, for example, may be set based on the brightness of the center point, or may be set based on the same number of pixels as the color value of the center point. In some embodiments, the screening the target center point from the candidate center points based on the preset condition includes: and screening the candidate center point with the maximum color brightness from the candidate center points to obtain a target center point. The color brightness is also called as color brightness, the color with high color brightness can obtain better display effect from sense organ, the aesthetic feeling of the public users is more met, and the aesthetic degree of the picture display interface can be further improved.
In some embodiments, the clustering the pixel points in the edge image data according to the color values based on a preset number of initial center points by using a K-means clustering algorithm to obtain a cluster of the preset number includes: and clustering pixel points in the edge image data according to color values based on a preset number of initial center points by using a K-means clustering algorithm, and ending clustering operation when the K-means clustering algorithm converges or the iteration number reaches a preset number threshold value to obtain a preset number of clusters. The method has the advantages that the clustering efficiency can be improved, and the iteration times can be set according to actual requirements. The number of iterations may be determined according to the size or total number of pixels of the picture to be displayed, and may be set according to the computing resource configuration of the electronic device, for example. For example, the total number of pixels is 1000, and the number of iterations may be set to 32.
In some embodiments, acquiring edge image data of a picture to be displayed based on a preset size ratio includes: intercepting an edge picture of a picture to be displayed based on a preset size proportion; and when the width of the edge picture is larger than the preset pixel width, performing equal-proportion compression on the edge picture until the width is equal to the preset pixel width, and obtaining edge image data. The method has the advantages that when the size of the picture to be displayed is large, the size of the intercepted edge picture is large, the number of pixel points is large, the calculated amount is large, the number of pixel points can be effectively reduced after the equal-proportion compression is carried out, the distribution characteristics of color values can be reserved, and the efficiency of subsequent clustering operation is improved. The preset pixel width and the compression algorithm can be set according to actual requirements.
Fig. 5 is a flowchart of another display area filling method according to an embodiment of the present invention, where the method may include:
step 501, detecting that the aspect ratio of the picture to be displayed is smaller than the aspect ratio of the picture display interface.
Step 502, obtaining upper edge image data and lower edge image data of a picture to be displayed based on a first preset size ratio.
The first preset size ratio may be, for example, 5%.
Optionally, the step may include: and intercepting an upper edge picture and a lower edge picture of the picture to be displayed based on a first preset size proportion, when the width of the upper edge picture is larger than the preset pixel width, performing equal proportion compression on the upper edge picture until the width is equal to the preset pixel width to obtain upper edge image data, and when the width of the lower edge picture is larger than the preset pixel width, performing equal proportion compression on the lower edge picture until the width is equal to the preset pixel width to obtain lower edge image data. The preset pixel width may be denoted as k, for example, k may be 100. In this way, the number of pixel points included in the edge image data corresponding to the compressed edge image is 100×100×r×5%, where r represents the aspect ratio of the image to be displayed. Generally, the aspect ratio of the screen of the electronic device is 2, so that the number of pixels to be processed in the clustering operation is within 1000, the operation time can be effectively controlled, and the operation time is not increased due to the increase of the pixels of the picture.
Step 503, clustering pixel points in the upper edge image data according to color values based on a preset number of initial center points by using a K-means clustering algorithm to obtain a first cluster set.
Wherein the number of clusters contained in the first cluster set is the same as the number of initial center points.
For example, 8 initial center points may be set, respectively, #1f1f1f, #1f1f5e, #1f5e1f, #1f5e5e, #5e1f1f, #5eif5e, #5e5e1f and #5e5e5e. And ending the clustering operation when the K-means clustering algorithm converges or the iteration number reaches a preset number threshold, wherein the iteration number can be 32. In this way, when the clustering operation is performed, the total number of times of calculating the distance does not exceed 1000×8× 32=256K, and the calculation frequency of the CPU of the low-end electronic device (for example, the iphone4s mobile phone) is generally 800MHz, that is, 800M times can be calculated in one second, and the clustering operation can be basically completed within 1 ms.
And 504, marking the cluster with the most pixels in the first cluster set as a first cluster, determining a first target pixel number range according to the number of pixels in the first cluster and a preset proportional value, and screening the first target cluster with the number of pixels in the first target pixel number range from the first cluster set.
Step 505, determining a center point of the first target cluster as a first candidate center point, screening candidate center points with the maximum color brightness from the first candidate center points to obtain a first target center point, and determining a corresponding first target color value according to the first target center point.
And 506, clustering pixel points in the lower edge image data according to color values by using a K-means clustering algorithm based on a preset number of initial center points to obtain a second cluster set.
Wherein the number of clusters contained in the second cluster set is the same as the number of initial center points.
And 507, marking the cluster with the most pixels in the second cluster set as a second cluster, determining a second target pixel number range according to the number of pixels in the second cluster set and a preset proportion value, and screening out a second target cluster with the number of pixels in the second target pixel number range from the second cluster set.
And 508, determining the center point of the second target cluster as a second candidate center point, screening the candidate center point with the maximum color brightness from the second candidate center point to obtain a second target center point, and determining a corresponding second target color value according to the second target center point.
Optionally, steps 503-505 and steps 506-508 may be performed in parallel (e.g., divided into two threads to be executed respectively), so that the efficiency of determining the target color value may be further improved, and further the efficiency of displaying the picture may be improved.
And 509, performing gradual rendering from the upper edge to the lower edge of the picture display interface based on the first target color value and the second target color value to obtain a display background.
The display effect of the resulting display background is illustratively a gradual change from a first target color value to a second target color value from top to bottom.
And 510, displaying the picture to be displayed and the display background, wherein the image to be displayed is positioned on the upper layer of the display background.
According to the display area filling method provided by the embodiment of the invention, the upper edge picture and the lower edge picture of the picture to be displayed are intercepted, when the intercepted picture is large in size, equal-proportion compression is carried out to obtain upper edge image data and lower edge image data, the upper edge image data and the lower edge image data are respectively clustered by using a K-means algorithm, two target color values for gradual rendering are determined according to a clustering result, gradual rendering is carried out from the upper edge to the lower edge of a picture display interface by using the two target color values to obtain a display background, the display background is displayed on the lower layer of the picture to be displayed, further color filling of a blank area adjacent to the picture to be displayed is realized, and the aesthetic degree of the picture display interface is effectively improved.
Fig. 6 is a block diagram of a display area filling device according to an embodiment of the present invention, where the device may be implemented by software and/or hardware, and may be generally integrated in an electronic device, and the display area may be filled by executing a display area filling method. As shown in fig. 6, the apparatus includes:
the edge image data obtaining module 601 is configured to obtain edge image data of a picture to be displayed based on a preset size ratio when detecting that an area filling event of a picture display interface is triggered;
the target color value determining module 602 is configured to cluster the pixel points in the edge image data according to the color values by using a preset clustering algorithm, and determine a corresponding target color value according to a clustering result;
And the region filling module 603 is configured to fill a region to be filled in the picture display interface based on the target color value, where the region to be filled includes a display region other than the picture to be displayed.
According to the display region filling device provided by the embodiment of the invention, the target color value is determined based on the edge image data of the picture to be displayed, so that the target color value is more matched with the color characteristics of the edge of the picture, the target color value is determined in a clustering mode, the target color value can be more accurately determined, and further after the blank region adjacent to the picture to be displayed is filled based on the target color value, the attractiveness of a picture display interface can be improved.
The embodiment of the invention provides electronic equipment, and the display area filling device provided by the embodiment of the invention can be integrated in the electronic equipment. Fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention. The electronic device 600 comprises a memory 601, a processor 602 and a computer program stored in the memory 601 and executable on the processor 602, wherein the processor 602 implements the display area filling method provided by the embodiment of the invention when executing the computer program.
The embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the display area filling method provided by the embodiments of the present invention.
The display area filling device, the device and the storage medium provided in the above embodiments may execute the display area filling method provided in any embodiment of the present invention, and have the corresponding functional modules and beneficial effects of executing the method. Technical details not described in detail in the above embodiments may be referred to the display area filling method provided in any embodiment of the present invention.
Note that the above is only a preferred embodiment of the present invention. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (12)

1. A display area filling method, comprising:
When detecting that an area filling event of a picture display interface is triggered, acquiring edge image data of a picture to be displayed based on a preset size proportion;
clustering pixel points in the edge image data according to color values by using a preset clustering algorithm, and determining corresponding target color values according to clustering results;
Filling a region to be filled in the picture display interface based on the target color value, wherein the region to be filled comprises a display region outside the picture to be displayed;
The clustering of the pixel points in the edge image data according to the color values by using a preset clustering algorithm, and determining the corresponding target color values according to the clustering result comprise the following steps:
Clustering pixel points in edge image data according to color values based on a preset number of initial center points by using a K-means clustering algorithm to obtain a preset number of clusters, wherein each initial center point corresponds to one preset color value; each initial center point is arranged in a scattered manner;
determining a corresponding target color value according to the cluster clusters with the preset quantity;
The determining the corresponding target color value according to the cluster clusters with the preset number comprises the following steps:
determining a target color value according to the cluster with the largest number of pixel points in the cluster clusters with the preset number;
the determining the target color value according to the cluster with the largest number of pixel points in the cluster clusters with the preset number comprises the following steps:
Marking the cluster with the largest number of pixels in the preset number of cluster clusters as the largest cluster, and acquiring the number of pixels corresponding to the largest cluster as the largest number of pixels;
Determining a target pixel point number range according to the maximum pixel point number and a preset proportion value;
screening target clusters, the number of which is within the range of the number of the target pixel points, from the clusters with the preset number;
And determining a corresponding target color value according to the target cluster.
2. The method of claim 1, wherein detecting that the region fill event of the picture display interface is triggered comprises:
And when the aspect ratio of the picture to be displayed is not matched with the aspect ratio of the picture display interface or the display size of the picture to be displayed is smaller than the display size of the picture display interface, determining that the region filling event of the picture display interface is triggered.
3. The method of claim 2, wherein the step of determining the position of the substrate comprises,
When the aspect ratio of the picture to be displayed is detected to be smaller than that of the picture display interface, the acquiring the edge image data of the picture to be displayed based on the preset size proportion comprises the following steps:
Acquiring upper edge image data and lower edge image data of a picture to be displayed based on a first preset size proportion;
Correspondingly, the clustering of the pixel points in the edge image data according to the color values by using a preset clustering algorithm, and determining the corresponding target color values according to the clustering result comprise the following steps:
Clustering pixel points in the upper edge image data and the lower edge image data according to color values by using a first preset clustering algorithm, and respectively determining corresponding first target color values and second target color values according to clustering results;
Correspondingly, the filling the region to be filled in the picture display interface based on the target color value comprises the following steps:
And carrying out gradual rendering from the upper edge to the lower edge of the picture display interface based on the first target color value and the second target color value so as to fill the region to be filled.
4. The method of claim 2, wherein the step of determining the position of the substrate comprises,
When the aspect ratio of the picture to be displayed is detected to be larger than that of the picture display interface, the acquiring the edge image data of the picture to be displayed based on the preset size proportion comprises the following steps:
acquiring left edge image data and right edge image data of a picture to be displayed based on a second preset size proportion;
Correspondingly, the clustering of the pixel points in the edge image data according to the color values by using a preset clustering algorithm, and determining the corresponding target color values according to the clustering result comprise the following steps:
Clustering pixel points in the left edge image data and the right edge image data according to color values by using a second preset clustering algorithm, and respectively determining corresponding third target color values and fourth target color values according to clustering results;
Correspondingly, the filling the region to be filled in the picture display interface based on the target color value comprises the following steps:
And gradually rendering from the left edge to the right edge of the picture display interface based on the third target color value and the fourth target color value so as to fill the region to be filled.
5. The method of claim 2, wherein the step of determining the position of the substrate comprises,
When detecting that the display size of the picture to be displayed is smaller than the display size of the picture display interface, the acquiring the edge image data of the picture to be displayed based on the preset size proportion includes:
Acquiring upper edge image data and lower edge image data of a picture to be displayed based on a first preset size proportion, and/or acquiring left edge image data and right edge image data of the picture to be displayed based on a second preset size proportion;
Correspondingly, the clustering of the pixel points in the edge image data according to the color values by using a preset clustering algorithm, and determining the corresponding target color values according to the clustering result comprise the following steps:
Clustering pixel points in the upper edge image data and the lower edge image data according to color values by using a first preset clustering algorithm, and respectively determining corresponding first target color values and second target color values according to clustering results; and/or clustering pixel points in the left edge image data and the right edge image data according to color values by using a second preset clustering algorithm, and respectively determining corresponding third target color values and fourth target color values according to clustering results;
Correspondingly, the filling the region to be filled in the picture display interface based on the target color value comprises the following steps:
And performing gradual rendering from the upper edge to the lower edge of the picture display interface based on the first target color value and the second target color value, and/or performing gradual rendering from the left edge to the right edge of the picture display interface based on the third target color value and the fourth target color value, so as to fill the region to be filled.
6. The method of claim 1, wherein said determining a corresponding target color value from said target cluster comprises:
Determining the center point of the target cluster as a candidate center point;
screening out target center points from the candidate center points based on preset conditions;
and determining a corresponding target color value according to the target center point.
7. The method of claim 6, wherein the screening the candidate center points for the target center point based on the preset condition comprises:
And screening the candidate center point with the maximum color brightness from the candidate center points to obtain a target center point.
8. The method according to claim 1, wherein the clustering the pixel points in the edge image data according to color values based on a preset number of initial center points by using a K-means clustering algorithm to obtain the preset number of clusters includes:
And clustering pixel points in the edge image data according to color values based on a preset number of initial center points by using a K-means clustering algorithm, and ending clustering operation when the K-means clustering algorithm converges or the iteration number reaches a preset number threshold value to obtain a preset number of clusters.
9. The method according to any one of claims 1 to 5, wherein acquiring edge image data of the picture to be displayed based on the preset size ratio comprises:
intercepting an edge picture of a picture to be displayed based on a preset size proportion;
and when the width of the edge picture is larger than the preset pixel width, performing equal-proportion compression on the edge picture until the width is equal to the preset pixel width, and obtaining edge image data.
10. A display area filling apparatus, comprising:
the edge image data acquisition module is used for acquiring edge image data of the picture to be displayed based on a preset size proportion when detecting that an area filling event of the picture display interface is triggered;
The target color value determining module is used for clustering pixel points in the edge image data according to color values by using a preset clustering algorithm and determining corresponding target color values according to clustering results;
The region filling module is used for filling a region to be filled in the picture display interface based on the target color value, wherein the region to be filled comprises a display region except for the picture to be displayed;
the target color value determining module is specifically configured to:
Clustering pixel points in edge image data according to color values based on a preset number of initial center points by using a K-means clustering algorithm to obtain a preset number of clusters, wherein each initial center point corresponds to one preset color value; each initial center point is arranged in a scattered manner;
determining a corresponding target color value according to the cluster clusters with the preset quantity;
The determining the corresponding target color value according to the cluster clusters with the preset number comprises the following steps:
determining a target color value according to the cluster with the largest number of pixel points in the cluster clusters with the preset number;
the determining the target color value according to the cluster with the largest number of pixel points in the cluster clusters with the preset number comprises the following steps:
Marking the cluster with the largest number of pixels in the preset number of cluster clusters as the largest cluster, and acquiring the number of pixels corresponding to the largest cluster as the largest number of pixels;
Determining a target pixel point number range according to the maximum pixel point number and a preset proportion value;
screening target clusters, the number of which is within the range of the number of the target pixel points, from the clusters with the preset number;
And determining a corresponding target color value according to the target cluster.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1-9 when the computer program is executed by the processor.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1-9.
CN202010722588.7A 2020-07-24 2020-07-24 Display area filling method, device, equipment and storage medium Active CN111862271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010722588.7A CN111862271B (en) 2020-07-24 2020-07-24 Display area filling method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010722588.7A CN111862271B (en) 2020-07-24 2020-07-24 Display area filling method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111862271A CN111862271A (en) 2020-10-30
CN111862271B true CN111862271B (en) 2024-04-26

Family

ID=72949921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010722588.7A Active CN111862271B (en) 2020-07-24 2020-07-24 Display area filling method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111862271B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113778585A (en) * 2021-08-09 2021-12-10 杭州当贝网络科技有限公司 Icon generation method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394053A (en) * 2011-06-20 2012-03-28 深圳市茁壮网络股份有限公司 Method and device for displaying pure monochrome picture
CN104461439A (en) * 2014-12-29 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN108550101A (en) * 2018-04-19 2018-09-18 腾讯科技(深圳)有限公司 Image processing method, device and storage medium
CN110852938A (en) * 2019-10-28 2020-02-28 腾讯科技(深圳)有限公司 Display picture generation method and device and storage medium
CN110969170A (en) * 2019-12-03 2020-04-07 北京奇艺世纪科技有限公司 Image theme color extraction method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10423855B2 (en) * 2017-03-09 2019-09-24 Entit Software Llc Color recognition through learned color clusters

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394053A (en) * 2011-06-20 2012-03-28 深圳市茁壮网络股份有限公司 Method and device for displaying pure monochrome picture
CN104461439A (en) * 2014-12-29 2015-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN108550101A (en) * 2018-04-19 2018-09-18 腾讯科技(深圳)有限公司 Image processing method, device and storage medium
CN110852938A (en) * 2019-10-28 2020-02-28 腾讯科技(深圳)有限公司 Display picture generation method and device and storage medium
CN110969170A (en) * 2019-12-03 2020-04-07 北京奇艺世纪科技有限公司 Image theme color extraction method and device and electronic equipment

Also Published As

Publication number Publication date
CN111862271A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN109166159B (en) Method and device for acquiring dominant tone of image and terminal
US8666156B2 (en) Image-based backgrounds for images
US7602527B2 (en) Album creating apparatus, album creating method and program
WO2020215861A1 (en) Picture display method, picture display apparatus, electronic device and storage medium
US20050152613A1 (en) Image processing apparatus, image processing method and program product therefore
US9792695B2 (en) Image processing apparatus, image processing method, image processing system, and non-transitory computer readable medium
US7342585B2 (en) Use of an input overscaled bitmap to generate emboldened overscaled bitmap
US11030715B2 (en) Image processing method and apparatus
US20170039683A1 (en) Image processing apparatus, image processing method, image processing system, and non-transitory computer readable medium
WO2020177584A1 (en) Graphic typesetting method and related device
US20140212037A1 (en) Image processing apparatus, image processing method, and computer readable medium
US20170102843A1 (en) Color selector for desktop publishing
CN109447086A (en) A kind of extracting method and device of picture character color
US8705847B2 (en) Method and system of two-dimensional to stereoscopic conversion
CN111862271B (en) Display area filling method, device, equipment and storage medium
US10964288B2 (en) Automatically adapt user interface color scheme for digital images and video
WO2015200441A1 (en) Computerized systems and methods for rendering a user interface element
CN111179370A (en) Picture generation method and device, electronic equipment and storage medium
US20140139545A1 (en) Screen inspection device, screen inspection method, and program
JP4756436B2 (en) Pattern recognition apparatus, pattern recognition method, and pattern recognition program
CN103325101A (en) Extraction method and device of color characteristics
US20030053718A1 (en) Image processing apparatus and method, and program
US20230082747A1 (en) System and method for improving graphical user interface rendering
US20130021365A1 (en) Color arrangement checking device, information storage medium storing a computer program thereof, and data processing method
JP4881282B2 (en) Trimming processing apparatus and trimming processing program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant