CN110880164A - Image processing method, device and equipment and computer storage medium - Google Patents

Image processing method, device and equipment and computer storage medium Download PDF

Info

Publication number
CN110880164A
CN110880164A CN201811039845.6A CN201811039845A CN110880164A CN 110880164 A CN110880164 A CN 110880164A CN 201811039845 A CN201811039845 A CN 201811039845A CN 110880164 A CN110880164 A CN 110880164A
Authority
CN
China
Prior art keywords
image
color
value
target
generate
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.)
Granted
Application number
CN201811039845.6A
Other languages
Chinese (zh)
Other versions
CN110880164B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201811039845.6A priority Critical patent/CN110880164B/en
Publication of CN110880164A publication Critical patent/CN110880164A/en
Application granted granted Critical
Publication of CN110880164B publication Critical patent/CN110880164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20024Filtering details
    • G06T2207/20032Median filtering

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses an image processing method, which comprises the following steps: generating a first image and a second image based on a target to be displayed, wherein the first image comprises: the target having a first color; the second image includes: the target having a second color; combining the first image and a background image to generate a third image, wherein in the third image, the target with the first color is reserved at least in an area with a color difference with the background image being above a preset threshold value; generating a fourth image in which image elements of the background image appear in areas other than the object having the second color, in combination with the second image and the background image; and generating an output image by superposing the third image on the fourth image. The invention also discloses an image processing device.

Description

Image processing method, device and equipment and computer storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image processing method, an image processing apparatus, an image processing device, and a computer storage medium.
Background
At present, people commonly use electronic screen devices such as computers, mobile phones and movable panels to read characters, and some pictures are set as display backgrounds when reading characters generally according to user requirements such as individuality or visual beautification.
However, the characters are displayed on the background in a superposed manner, and the characters are usually positioned at positions with similar colors on the background, so that the problem of unclear display occurs.
Disclosure of Invention
The embodiment of the invention provides an image processing method and device.
An image processing method comprising:
generating a first image and a second image based on a target to be displayed, wherein the first image comprises: the target having a first color; the second image includes: the target having a second color.
And combining the first image and the currently displayed background image to generate a third image, wherein in the third image, the target with the first color is reserved at least in an area with the color difference with the background image being above a preset threshold value.
Combining the second image and the background image, generating a fourth image in which image elements of the background image appear in areas other than the object having the second color.
Superimposing the third image on the fourth image generates an output image in which the object of the first color remaining on the third image is contained, the image elements of the fourth image appearing in areas other than the object of the first color remaining on the third image.
An image processing apparatus comprising:
a first processing unit configured to generate a first image and a second image based on an object to be displayed, wherein the first image includes: the target having a first color; the second image includes: the target having a second color;
a second processing unit, configured to combine the first image and a currently displayed background image to generate a third image, where in the third image, the target with the first color is retained at least in an area where a color difference from the background image is above a preset threshold;
a third processing unit configured to generate a fourth image in which image elements of the background image appear in a region other than the object having the second color, in combination with the second image and the background image;
a fourth processing unit, configured to superimpose the third image on the fourth image to generate an output image, where the object with the first color reserved on the third image is included in the output image, and image elements of the fourth image appear in a region other than the object with the first color reserved on the third image.
An image processing apparatus comprising:
a processor and a memory for storing a computer program capable of running on the processor;
wherein the processor is configured to execute the steps of any of the image processing methods described above when running the computer program.
A computer storage medium, comprising:
on which a computer program is stored, characterized in that the computer program realizes the steps of any of the image processing methods described above when executed by a processor.
In the technical scheme of the implementation of the invention, the area with the color difference of the first color of the target with the first color and the background image above the threshold is reserved and is superposed on the fourth image, so that the finally obtained display effect is that the first color is displayed on the part of the target with the color difference of the first color and the background image above the threshold, and the second color is displayed on the rest of the target, thereby realizing the effect of increasing the color difference of the target when the target is displayed on the background image, dividing different areas of the same target into two different colors according to the threshold of the color difference for display, avoiding the problem that the colors of the target display position with a single color and the corresponding position of the background image are close and cannot be distinguished, and improving the visual identification degree of the target.
Drawings
The drawings illustrate generally, by way of example, but not by way of limitation, various embodiments discussed in the subject matter.
FIG. 1 is a flowchart illustrating an image processing method according to an embodiment of the present invention;
FIG. 2 is a block diagram of a component of an image processing apparatus according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an original of a background diagram according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an effect of displaying white text on an original image of a background image according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an effect of displaying black text on an original image of a background image according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating an effect of a background image after binarization according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating an optimized display effect according to an embodiment of the present invention;
FIG. 8 is a schematic diagram illustrating an effect of converting a background image into a gray image by performing a gray processing according to another embodiment of the present invention;
FIG. 9 is a schematic diagram illustrating an optimized display effect according to another embodiment of the present invention;
fig. 10 is a schematic diagram of a hardware structure of an apparatus according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
An embodiment of the present invention provides an image processing method, as shown in fig. 1, the method includes:
step 11, generating a first image and a second image based on an object to be displayed, wherein the first image comprises: the target having a first color; the second image includes: the target having a second color.
An image is a picture with visual effect, and in some computer image formats, an image may be composed of multiple image layers superimposed. An image layer is also understood to mean an image, for example, when an image is composed of 1 image layer, the image and the image layer may be identical.
The first color and the second color may include colors that can be recognized or set by a display device (e.g., a display screen of a mobile phone, a display screen of a smart mobile device, an LED electronic display device, etc.).
The target to be displayed may refer to a content that may be highlighted at a preset position on the currently displayed background image, including, but not limited to: characters, symbols, patterns, icons, or any combination of the above elements. The background image displayed at the present time may refer to a desktop background image currently displayed on a display device (not shown in the drawings), an incoming call interface background image, or other operation interface background images, and may also be an interface image of an application program, or the like.
In one embodiment, generating the first image is: generating a layer comprising the target with a first color according to a preset position of the target to be displayed on the background image; generating the second image is: and generating a layer comprising the target with a second color according to the preset position of the target to be displayed on the background image. Therefore, the position of the object in the first layer is the same as the position of the object in the second layer, but the color is different. Furthermore, in the first layer, the pixels are transparent, i.e. without content, except for said object having the first color. Also in the second layer, the pixels are transparent, i.e. without content, except for said object having the second color.
The first color and the second color may be opposite colors, and taking Red Green Blue (RGB) color mode as an example, the result of adding the RGB color of the first color and the RGB color of the second color is white (255, 255, 255). In practical applications, common combinations of opposite colors may be selected as the first color and the second color, for example: if the first color is white (255, 255, 255), the second color is black (0, 0, 0); if the first color is red (255, 0, 0), the second color is (0, 255, 255); if the first color is magenta (255, 0, 255), the second color is green (0, 255, 0).
And 12, combining the first image and the currently displayed background image to generate a third image, wherein in the third image, the target with the first color is reserved at least in an area with a color difference with the background image being above a preset threshold value.
And in the third image, the region except the region of the target with the first color and the background image with the color difference above a preset threshold value is completely and transparently displayed or has no other display content.
Step 13, combining the second image and the background image, generating a fourth image, wherein in the fourth image, image elements of the background image appear in areas other than the object with the second color.
Step 14, superimposing the third image on the fourth image to generate an output image, wherein the object with the first color remaining on the third image is included in the output image, and image elements of the fourth image appear in a region other than the object with the first color remaining on the third image.
The image display effect is realized in such a way that image elements of the background image appear in a region outside the target, the target displays a first color in a region with the color difference between the first color and the background image being above a preset threshold, and the rest regions of the target display a second color.
In some embodiments, the first color may be black and the second color may be white.
In some embodiments, the target may be text.
The color difference may include a numerical difference between pixel points of the picture in a color mode, and common color modes include: RGB mode, print Color (CMYK) mode, color model (Lab) mode, and the like. Taking the RGB mode as an example, the color difference between the pixels can be obtained by comparing the values of the pixels in the three R/G/B color channels, the luminance of the pixels can be calculated by a general luminance calculation formula, and the direct color difference of the pixels can be obtained by comparing the luminance of the pixels.
In one embodiment, the step 12 includes:
carrying out binarization processing on the background image to obtain a fifth image;
and combining the first image and the fifth image to generate the third image, wherein the target with the first color is reserved at least in an area with the color difference with the fifth image being above a preset threshold value.
In some embodiments, combining the first image and the fifth image to generate the third image comprises: and performing masking processing on the first image by using the fifth image to generate the third image.
In some embodiments, when the background image is binarized, parameters such as a binarization radius and the like may be optimized, including: setting a binarization radius according to the width of a line (such as a character stroke) of a target; the minimum/maximum binarization radius is set according to the maximum/minimum width of the target line (e.g., character stroke). The binarization radius refers to that when the binarization processing process is executed, image optimization processing can be further performed, and the image optimization processing comprises the following steps: and (5) image denoising processing. For example, to avoid the extreme drastic black-white change of the image pixel points, the noise points with radius/width smaller than n pixels after binarization are filtered by means of mean filtering, median filtering, gaussian filtering and the like, that is, the noise points are filtered in the region with drastic color change to remove the noise points; the area with violent light and shade change can be reduced, the color transition of the target is more natural, and the visual effect is better.
In one embodiment, the step 12 includes:
carrying out gray level transformation on the background image to obtain a sixth image;
the gray scale transformation is to convert a color image into a gray scale image. The gray scale transformation methods that can be selected are the weighting method, the averaging method, and the maximum method. Taking the RGB color mode as an example: the weighting method is to calculate the weighted arithmetic mean of the RGB values of each pixel point of the image to obtain the GRAY value, and the general formula can be expressed as GRAY ═ 0.3 × R +0.59 × G +0.11 × B; the average method is to calculate the arithmetic mean of the RGB values of each pixel point of the image to obtain the GRAY value, and the formula can be represented as (R + G + B)/3 ═ GRAY; the maximum value method is to select the maximum value of the RGB values of the pixel points as the gray value, and the formula can be expressed as max (R, G, B).
Determining transparency values of at least part of pixels according to the gray values of at least part of pixels in the sixth image;
and generating the third image by combining the first image and the gray value, wherein the target with the first color is reserved at least in an area with the color difference with the sixth image being above a preset threshold value.
The preset threshold value, for example, the RGB color mode, may be 255. For example, when the grayscale value of the sixth image is 255, the region of the object having the first color whose grayscale value is 0 remains; or, when the grayscale value of the sixth image is 0, the region of the object having the first color with the grayscale value of 255 remains.
In some embodiments, the determining the transparency value of at least some pixels in the sixth image according to the gray scale value of the at least some pixels further includes:
and determining a transparency value of a target pixel according to a gray value of the target pixel in the sixth image, wherein the target pixel is a pixel of which the color difference between the gray value and the target with the first color is below the preset threshold.
And the transparency value is used for representing the transparency of the target pixel. Taking the RGB color scheme as an example, the transparency value can be divided into 256 levels, i.e. 0-255, where 0 is transparent and 255 is opaque. And the range of gray values can also be represented as 0-255, where black is 0 and white is 255. Therefore, as the gray value of the target pixel in the sixth image is closer to white, the transparency of the target pixel is closer to opaque.
In some embodiments, said combining said first image and said transparency values to generate said third image comprises:
introducing the transparency values into the first image, generating the third image.
The introducing of the transparency value into the first image means determining the transparency of the first image according to the transparency, for example, substituting the transparency value into an Alpha channel of the first image. Such that the closer the first color of the area of the first image having the first color is to white in the background image, the closer the first color is to opaque, the closer the first color of the area of the first image having the first color is to black in the background image, the closer the first color is to transparent.
An embodiment of the present invention provides an image processing apparatus 21, as shown in fig. 2, including:
a first processing unit 201, configured to generate a first image and a second image based on an object to be displayed, where the first image includes: the target having a first color; the second image includes: the target having a second color.
A second processing unit 202, configured to combine the first image and a currently displayed background image to generate a third image, where in the third image, the target with the first color is retained at least in an area where a color difference from the background image is above a preset threshold;
a third processing unit 203 for generating a fourth image in which image elements of the background image appear in a region other than the object having the second color, in combination with the second image and the background image;
a fourth processing unit 204, configured to superimpose the third image on the fourth image to generate an output image, where the object with the first color reserved on the third image is included in the output image, and image elements of the fourth image appear in a region other than the object with the first color reserved on the third image.
In an embodiment, the second unit 202 is further configured to:
carrying out binarization processing on the background image to obtain a fifth image;
and combining the first image and the fifth image to generate the third image, wherein the target with the first color is reserved at least in an area with the color difference with the fifth image being above a preset threshold value.
In an embodiment, the second processing unit 202 is further configured to: and performing masking processing on the first image by using the fifth image to generate the third image.
In an embodiment, the second processing unit 202 is further configured to:
carrying out gray level transformation on the background image to obtain a sixth image;
determining transparency values of at least part of pixels according to the gray values of at least part of pixels in the sixth image;
and combining the first image and the transparency value to generate the third image, wherein the target with the first color is reserved at least in an area with the color difference of the sixth image being above a preset threshold value.
In an embodiment, the second processing unit 202 is further configured to: and determining a transparency value of a target pixel according to a gray value of the target pixel in the sixth image, wherein the target pixel is a pixel of which the color difference between the gray value and the target with the first color is below the preset threshold.
In an embodiment, the second processing unit 202 is further configured to: introducing the transparency values into the first image, generating the third image.
The invention is described below by means of a specific example:
the embodiment specifically comprises the following steps:
the first step is as follows: the aim is to display the text content on a background picture and to ensure visual readability.
Fig. 3 is an original of a background image, fig. 4 is an effect image in which white characters are displayed on the original of the background image, and fig. 5 is an effect image in which black characters are displayed on the original of the background image. It is very obvious that the characters with single color are displayed on the original image, and a part of the characters is difficult to be visually recognized.
The second step is that: the whole image content of the background image is binarized, the effect after binarization is shown in fig. 6, the binarization threshold is set to 160(160 is the brightness value of the RGB image, and the binarization threshold can be adjusted according to the brightness contrast degree of the background image), and the general empirical formula of brightness pix _ color ═ red 0.299+ green 0.587+ blue 0.114 is used.
The third step: and performing AND operation on the binarized background image and the black text layer image to mask the binarized background image to obtain a black text layer image part only with the reserved brightness exceeding a specified threshold value.
The fourth step: and overlapping and displaying the masked black text layer on the original white text layer to obtain a processed text layer.
The fifth step: the processed text layer is displayed on the original image of the background image, and the effect is as shown in fig. 7.
The invention also provides another specific embodiment, which specifically comprises the following steps:
the background image is converted into a gray image by performing gray processing, and the effect is shown in fig. 8.
The background image converted into the gray-scale image is used as a transparency mask layer of the black text layer, each pixel value of any color channel of red (R), green (G) and blue (B) of the background image converted into the gray-scale image is copied to a transparency (Alpha) channel of the black text layer, and the black text layer with transparent dark parts, opaque bright parts and semi-transparent middle parts can be obtained, namely the white part of the background image is a black text layer which can be completely displayed, the black part of the background image is a black part, and the black text layer is completely transparent and does not display.
Then, the processed black text layer is superimposed and displayed on the background image and the white text layer, that is, the result shown in fig. 9 is obtained, and the black and white change of the text is not abrupt change but continuous gradual change.
In one embodiment, when performing the gradation processing on the background image, the contrast adjustment is performed on the region of the intermediate luminance, the gray region having a luminance close to white is adjusted to white, the region having a luminance close to black is adjusted to black, and the gray region having a middle luminance is adjusted to gray. For example: the gray scale values are 0 to 255, the area with the luminance of 170 or more is adjusted to white, the area with the luminance of 85 or less is adjusted to black, and the other area is adjusted to gray of the gray scale 127 (for only one reference, the parameter may be adjusted according to the luminance change degree of the background picture). So that the grey area will retain only one colour of text, thereby further clarifying the final display.
In order to implement the image processing method according to the embodiment of the present invention, an embodiment of the present invention further provides an image processing apparatus implemented based on hardware, and as shown in fig. 10, the image processing apparatus 610 includes: a processor 61 and a memory 62 for storing computer programs capable of running on the processor, wherein,
the processor 61 is configured to, when running the computer program, execute:
generating a first image and a second image based on a target to be displayed, wherein the first image comprises: the target having a first color; the second image includes: the target having a second color.
And combining the first image and the currently displayed background image to generate a third image, wherein in the third image, the target with the first color is reserved at least in an area with the color difference with the background image being above a preset threshold value.
Combining the second image and the background image, generating a fourth image in which image elements of the background image appear in areas other than the object having the second color.
Superimposing the third image on the fourth image generates an output image in which the object of the first color remaining on the third image is contained, the image elements of the fourth image appearing in areas other than the object of the first color remaining on the third image.
In one embodiment, the combining the first image and the currently displayed background image to generate a third image includes:
carrying out binarization processing on the background image to obtain a fifth image;
and combining the first image and the fifth image to generate the third image, wherein the target with the first color is reserved at least in an area with the color difference with the fifth image being above a preset threshold value.
In one embodiment, said combining said first image and said fifth image to generate said third image comprises:
and performing masking processing on the first image by using the fifth image to generate the third image.
In one embodiment, the combining the first image and the background image to generate the third image includes:
carrying out gray level transformation on the background image to obtain a sixth image;
determining transparency values of at least part of pixels according to the gray values of at least part of pixels in the sixth image;
and combining the first image and the transparency value to generate the third image, wherein the target with the first color is reserved at least in an area with the color difference of the sixth image being above a preset threshold value.
In an embodiment, the determining the transparency value of at least some pixels according to the gray scale value of at least some pixels in the sixth image further includes:
and determining a transparency value of a target pixel according to a gray value of the target pixel in the sixth image, wherein the target pixel is a pixel of which the color difference between the gray value and the target with the first color is below the preset threshold.
In one embodiment, said combining said first image and said transparency value to generate said third image comprises:
introducing the transparency values into the first image, generating the third image.
In one embodiment, the color value of the first color is a first value;
the color value of the second color is a second value;
the sum of the first value and the second value is: and the maximum value of the color channel corresponding to the background image.
In one embodiment, the first color is black; the second color is white.
In one embodiment, the target is text.
The image processing apparatus and the image processing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
Of course, in practical applications, as shown in fig. 10, the information push control device may further include at least one communication interface 63. The various components in the image processing device are coupled together by a bus system 64. It will be appreciated that the bus system 64 is used to enable communications among the components. The bus system 64 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as bus system 64 in fig. 10.
Among other things, a communication interface 63 for interacting with other devices.
Specifically, the processor 61 may send an operation result query request to an application server corresponding to the callee application through the communication interface 63, and obtain an operation result of the callee application sent by the application server.
It will be appreciated that the memory 62 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 62 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In an embodiment of the present invention, a computer-readable storage medium is further provided, which is used for storing the computing program provided in the foregoing embodiment, so as to complete the steps of the foregoing method. The computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories, such as mobile phones, computers, smart appliances, servers, etc.
It should be noted that: the technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.

Claims (16)

1. An image processing method, comprising:
generating a first image and a second image based on a target to be displayed, wherein the first image comprises: the target having a first color; the second image includes: the target having a second color;
combining the first image and a currently displayed background image to generate a third image, wherein in the third image, the target with the first color is reserved at least in an area with a color difference with the background image being above a preset threshold value;
combining the second image and the background image to generate a fourth image in which image elements of the background image appear in areas other than the object having the second color;
superimposing the third image on the fourth image generates an output image in which the object of the first color remaining on the third image is contained, the image elements of the fourth image appearing in areas other than the object of the first color remaining on the third image.
2. The method of claim 1,
generating a third image by combining the first image and the currently displayed background image, wherein the generating comprises:
carrying out binarization processing on the background image to obtain a fifth image;
and combining the first image and the fifth image to generate the third image, wherein the target with the first color is reserved at least in an area with the color difference with the fifth image being above a preset threshold value.
3. The method of claim 2,
said combining the first image and the fifth image to generate the third image comprises:
and performing masking processing on the first image by using the fifth image to generate the third image.
4. The method of claim 1,
combining the first image and the background image to generate a third image, comprising:
carrying out gray level transformation on the background image to obtain a sixth image;
determining transparency values of at least part of pixels according to the gray values of at least part of pixels in the sixth image;
and combining the first image and the transparency value to generate the third image, wherein the target with the first color is reserved at least in an area with the color difference of the sixth image being above a preset threshold value.
5. The method of claim 4,
determining transparency values of at least some pixels according to the gray-scale values of at least some pixels in the sixth image, further comprising:
and determining a transparency value of a target pixel according to a gray value of the target pixel in the sixth image, wherein the target pixel is a pixel of which the color difference between the gray value and the target with the first color is below the preset threshold.
6. The method of claim 4,
said combining the first image and the transparency values to generate the third image comprises:
introducing the transparency values into the first image, generating the third image.
7. The method according to any one of claims 1 to 6,
the color value of the first color is a first value;
the color value of the second color is a second value;
the sum of the first value and the second value is: and the maximum value of the color channel corresponding to the background image.
8. An image processing apparatus characterized by comprising:
a first processing unit configured to generate a first image and a second image based on an object to be displayed, wherein the first image includes: the target having a first color; the second image includes: the target having a second color;
a second processing unit, configured to combine the first image and a currently displayed background image to generate a third image, where in the third image, the third image is retained at least in an area where a color difference from the background image is above a preset threshold;
a third processing unit configured to generate a fourth image in which image elements of the background image appear in a region other than the object having the second color, in combination with the second image and the background image;
a fourth processing unit, configured to superimpose the third image on the fourth image to generate an output image, where the object with the first color reserved on the third image is included in the output image, and image elements of the fourth image appear in a region other than the object with the first color reserved on the third image.
9. The apparatus of claim 8, wherein the second processing unit is further configured to:
carrying out binarization processing on the background image to obtain a fifth image;
and combining the first image and the fifth image to generate the third image, wherein the target with the first color is reserved at least in an area with the color difference with the fifth image being above a preset threshold value.
10. The apparatus of claim 9, wherein the second processing unit is further configured to: and performing masking processing on the first image by using the fifth image to generate the third image.
11. The apparatus of claim 8, wherein the second processing unit is further configured to:
carrying out gray level transformation on the background image to obtain a sixth image;
determining transparency values of at least part of pixels according to the gray values of at least part of pixels in the sixth image;
and combining the first image and the transparency value to generate the third image, wherein the target with the first color is reserved at least in an area with the color difference of the sixth image being above a preset threshold value.
12. The apparatus of claim 11, wherein the second processing unit is further configured to: and determining a transparency value of a target pixel according to a gray value of the target pixel in the sixth image, wherein the target pixel is a pixel of which the color difference between the gray value and the target with the first color is below the preset threshold.
13. The apparatus of claim 11, wherein the second processing unit is further configured to: introducing the transparency values into the first image, generating the third image.
14. The apparatus according to any one of claims 8 to 13,
the color value of the first color is a first value;
the color value of the second color is a second value;
the sum of the first value and the second value is: and the maximum value of the color channel corresponding to the background image.
15. An image processing apparatus comprising: a processor and a memory for storing a computer program capable of running on the processor;
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 7 when running the computer program.
16. A computer storage medium, comprising: stored thereon a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201811039845.6A 2018-09-06 2018-09-06 Image processing method, device, equipment and computer storage medium Active CN110880164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811039845.6A CN110880164B (en) 2018-09-06 2018-09-06 Image processing method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811039845.6A CN110880164B (en) 2018-09-06 2018-09-06 Image processing method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN110880164A true CN110880164A (en) 2020-03-13
CN110880164B CN110880164B (en) 2024-02-27

Family

ID=69727936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811039845.6A Active CN110880164B (en) 2018-09-06 2018-09-06 Image processing method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN110880164B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055247A (en) * 2020-09-11 2020-12-08 北京爱奇艺科技有限公司 Video playing method, device, system and storage medium
CN112286471A (en) * 2020-09-27 2021-01-29 通彩视听科技(上海)有限公司 Conference whiteboard image printing method, printing equipment and storage medium
CN112669638A (en) * 2020-12-14 2021-04-16 中国联合网络通信集团有限公司 Vehicle safety passing method, system, terminal equipment and computer storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4350778B2 (en) * 2002-09-05 2009-10-21 株式会社リコー Image processing apparatus, image processing program, and recording medium
JP4371306B2 (en) * 2004-01-20 2009-11-25 株式会社リコー Color image processing apparatus and color image processing program
JP2010045537A (en) * 2008-08-11 2010-02-25 Sharp Corp Image processor, image forming device, image processing method, computer program and recording medium
CN104778047B (en) * 2015-04-29 2019-03-15 魅族科技(中国)有限公司 A kind of content display method and terminal
CN108206917B (en) * 2017-12-29 2020-09-15 南京中兴新软件有限责任公司 Image processing method and device, storage medium and electronic device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055247A (en) * 2020-09-11 2020-12-08 北京爱奇艺科技有限公司 Video playing method, device, system and storage medium
CN112055247B (en) * 2020-09-11 2022-07-08 北京爱奇艺科技有限公司 Video playing method, device, system and storage medium
CN112286471A (en) * 2020-09-27 2021-01-29 通彩视听科技(上海)有限公司 Conference whiteboard image printing method, printing equipment and storage medium
CN112286471B (en) * 2020-09-27 2023-04-21 通彩视听科技(上海)有限公司 Conference whiteboard image printing method, printing equipment and storage medium
CN112669638A (en) * 2020-12-14 2021-04-16 中国联合网络通信集团有限公司 Vehicle safety passing method, system, terminal equipment and computer storage medium

Also Published As

Publication number Publication date
CN110880164B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
CN110570380B (en) Image processing method and device for electronic ink screen and electronic ink screen
JP5334402B2 (en) Display apparatus and method for improving flicker of video
CN109472839B (en) Image generation method and device, computer equipment and computer storage medium
CN108701351B (en) Image display enhancement method and device
CA3154893C (en) Image color transferring method, device, computer equipment and storage medium
CN105574866A (en) Image processing method and apparatus
CN111857912B (en) Interface processing method, device, electronic device and computer-readable storage medium
JP2000134486A (en) Image processing unit, image processing method and storage medium
CN107179889A (en) Interface color conditioning method, webpage color conditioning method and device
KR20160002517A (en) Method and apparatus for enhancing digital image, and apparatus for image processing using the same
CN110880164B (en) Image processing method, device, equipment and computer storage medium
WO2023005743A1 (en) Image processing method and apparatus, computer device, storage medium, and computer program product
KR20160068627A (en) Image processing device, image processing method and display device
CN113140197A (en) Display picture adjusting method and device, electronic equipment and readable storage medium
CN119693251B (en) Image processing method, device, electronic device, storage medium and program product
CN112368763A (en) Control device, display device, and control method
US20090135266A1 (en) System for scribing a visible label
CN119252194A (en) A method and system for dimming LED backlight
CN114266803A (en) Image processing method, image processing device, electronic equipment and storage medium
JP2024099753A (en) Display method, apparatus, and storage medium
CN115909980B (en) Text display optimization method, device, equipment and storage medium
JP2006332908A (en) Color image display device, color image display method, program, and recording medium
US11217205B2 (en) Method and apparatus for rendering contents for vision accessibility
CN107895563B (en) Display control method and device, terminal and computer readable storage medium
CN112132919A (en) Electronic seal presenting method for simulating inkpad effect

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