WO2021047383A1 - 用于电子墨水屏的图像处理方法、装置和电子墨水屏 - Google Patents

用于电子墨水屏的图像处理方法、装置和电子墨水屏 Download PDF

Info

Publication number
WO2021047383A1
WO2021047383A1 PCT/CN2020/110944 CN2020110944W WO2021047383A1 WO 2021047383 A1 WO2021047383 A1 WO 2021047383A1 CN 2020110944 W CN2020110944 W CN 2020110944W WO 2021047383 A1 WO2021047383 A1 WO 2021047383A1
Authority
WO
WIPO (PCT)
Prior art keywords
color
area
electronic ink
pixel unit
color space
Prior art date
Application number
PCT/CN2020/110944
Other languages
English (en)
French (fr)
Inventor
刘瀚文
吴艳红
张丽杰
Original Assignee
京东方科技集团股份有限公司
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 京东方科技集团股份有限公司 filed Critical 京东方科技集团股份有限公司
Publication of WO2021047383A1 publication Critical patent/WO2021047383A1/zh

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
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Definitions

  • the embodiments of the present disclosure relate to the field of display technology, and in particular to an image processing method and device for an electronic ink screen, and an electronic ink screen.
  • Electronic ink screen is also known as electronic paper display technology, which can display black and white patterns and text like printed matter on the surface of electronic paper.
  • an image binarization method can be used to obtain a binary image, and then the border of the binary image can be blurred by means of error propagation, thereby improving the viewing quality.
  • the above-mentioned image processing method can only convert the image into two colors of black and white. How to display images with rich colors on the electronic ink screen so as to enhance the appreciation of the images has become an urgent problem to be solved.
  • the embodiments of the present disclosure provide an image processing method and device for an electronic ink screen, and an electronic ink screen.
  • an image processing method for an electronic ink screen including:
  • the target image includes at least one pixel unit, and each pixel unit has a corresponding first color
  • each pixel unit determine the color area where the first color is located in the first color space
  • the first color is converted into a second color to display the pixel unit in the second color using an electronic ink screen.
  • the first color space includes the hue lightness saturation HSV color space; the determining the color area in the first color space of the first color includes: according to the hue component, the lightness component and the lightness component of the first color At least one of the saturation components determines the color region where the first color is located in the hue, lightness, and saturation HSV color space.
  • the color area includes a red area, and the second color is red; wherein, in the red area, the hue component of the first color belongs to the red hue range, and the lightness of the first color is greater than the first lightness threshold,
  • the saturation of the first color is greater than a saturation threshold; wherein the lower limit of the hue component of the red hue range is 0°, and the upper limit is 10° to 20°; the value range of the first brightness threshold is 40% to 60%; the saturation threshold value ranges from 30% to 50%.
  • the color area includes a black area, and the second color is black; wherein, in the black area, the lightness component is less than a second lightness threshold; the second lightness threshold has a value range of 40% to 60%.
  • the color area includes a red area, a black area, or a white area; wherein the white area is a color area other than the red area and the black area in the HSV color space.
  • the determining the color area where the first color is located in the first color space includes: determining whether the first color is located in the red area or the black area in the first color space; If the first color is neither in the infrared region nor in the black region, it is determined that the first color is in the white region.
  • the target image is converted to the HSV color space to obtain at least one of the hue component, the lightness component, and the saturation component of the first color for each pixel unit .
  • the first color space includes an RGB color space; the determining the color area in the first color space of the first color includes: according to the R, G, and B components of the first color At least one, determining the color region where the first color is located in the RGB color space.
  • the target image is an HSV image
  • the target image is converted to the RGB color space.
  • the second color is determined according to the displayable color of the electronic ink screen.
  • an image processing device for an electronic ink screen including:
  • An acquiring module configured to acquire a target image, the target image includes at least one pixel unit, and each pixel unit has a corresponding first color;
  • a determining module configured to determine, for each pixel unit, the color area where the first color is located in the first color space
  • the processing module is configured to convert the first color into a second color according to the color area, so as to display each pixel unit in the second color using an electronic ink screen.
  • an electronic ink screen which includes a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the program, The image processing method for the electronic ink screen as in the embodiment of the present disclosure is realized.
  • a non-transitory computer-readable storage medium on which a computer program is stored.
  • Image processing method image processing method.
  • Figure 1 is a schematic diagram of the HSV color space model
  • FIG. 2 is a schematic flowchart of an image processing method for an electronic ink screen according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of an image processing method for an electronic ink screen according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of the division of color regions in the HSV color space according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of the effect of an image processing method according to an embodiment of the present disclosure.
  • Fig. 6 is a schematic structural diagram of an image processing device for an electronic ink screen according to an embodiment of the present disclosure.
  • Fig. 7 is a schematic structural diagram of an image processing device for an electronic ink screen according to an embodiment of the present disclosure.
  • Electronic ink screen display technology has achieved rapid development and more and more extensive applications.
  • electronic ink screens are widely used in products such as e-book readers, electronic paper, shelf labels, and electronic table cards.
  • due to the special display mode of the electronic ink screen unlike the traditional liquid crystal display, it can only support displaying a small number of colors.
  • the electronic ink screen can support the black and white two-color color mode, that is, the electronic ink screen can be used to display black and white two-color pictures.
  • black and white here means “either black or white", that is, it only contains two colors and does not contain gray.
  • the electronic ink screen can only display two colors, and cannot display as many colors as a traditional computer screen. Therefore, how to display images with rich colors on the electronic ink screen so as to improve the appreciation of the images has become an urgent problem to be solved.
  • the embodiment of the present disclosure proposes an image processing method for an electronic ink screen.
  • the target image includes at least one pixel unit, each pixel unit has a corresponding first color, and it is determined that the first color is in the first color.
  • the color area in the space After that, according to the determined color area, the first color is converted into the second color, so that the electronic ink screen is used to display each pixel unit in the second color.
  • the display capabilities of the electronic ink screen can be fully utilized, and the target image of the first color can be converted into the second color image according to the colors that the electronic ink screen can display or support, so as to realize the display on the electronic ink screen in addition to black and white. Colors other than those to enhance the viewing of the target image.
  • Hue Saturation Value (HSV) color space A color space created based on the intuitive characteristics of colors. The color components in the color space are hue (H), saturation (S), and lightness ( V).
  • Figure 1 is a schematic diagram of the HSV color space model.
  • the hue component H uses an angle measurement, ranging from 0 to 360°, starting from red and calculating in a counterclockwise direction. Red is 0°, green is 120°, and blue is 240°.
  • the saturation component S indicates how close the color is to the spectral color.
  • a color can be regarded as the result of mixing a certain spectral color with white. The greater the proportion of the spectral color, the higher the color close to the spectral color, and the higher the color saturation, that is, the higher the saturation. The color is deep and brilliant.
  • the white light component of the spectral color is 0, and the saturation is the highest.
  • the value of S ranges from 0% to 100%. The larger the value of S, the more saturated the color.
  • the lightness component V represents the brightness of the color.
  • the lightness value is related to the brightness of the luminous body. Generally, the value of V is 0% (black) to 100% (white).
  • Red Green Blue (RGB) color space through the changes of the three color channels of red (R), green (G), and blue (B) and their superpositions to obtain a variety of colour.
  • RGB Red Green Blue
  • Each digital image is composed of many dots. These dots are also called pixels. Usually each pixel can present many different colors. It is composed of three sub-pixels of red, green and blue (RGB). . Each sub-pixel can show different brightness levels. The gray scale represents the gradation level of different brightness from the darkest to the brightest. The more intermediate levels there are, the more delicate the picture effects that can be presented. Taking an 8-bit grayscale image as an example, it can show 256 (2 8 ) brightness levels, which is called 256 grayscale. In other words, the color change of each point on the screen is actually brought about by the grayscale value changes of the three RGB sub-pixels that constitute this point.
  • Fig. 2 is a schematic flowchart of an image processing method for an electronic ink screen according to an embodiment of the present disclosure.
  • the image processing method of the embodiment of the present disclosure can be applied to an electronic ink screen.
  • it can be applied to products with electronic ink screens, such as e-book readers, electronic paper, shelf labels, and electronic table cards.
  • the image processing method for an electronic ink screen includes the following steps.
  • step S201 a target image is acquired.
  • the target image includes at least one pixel unit, and each pixel unit has a corresponding first color.
  • the target image is an image to be displayed on the electronic ink screen.
  • the target image may be an image loaded, downloaded, or previewed by the user, or the target image may be an image taken by the user, or the target image may also be a locally stored image, etc.
  • This embodiment of the present disclosure does not do this limit.
  • each pixel unit in the target image has a corresponding first color.
  • step S202 determine the color region where the first color is located in the first color space.
  • the first color space may be HSV color space, RGB color space, YUV color space, Lab color space, Hue Saturation Intensity (HSI for short) color space, etc., and there is no limitation on this.
  • the color area in the color space of the first color can be determined.
  • the color region in which the first color is located in the RGB color space may be determined according to at least one of the R, G, and B components of the first color.
  • the target image is an RGB image
  • the R, G, and B components corresponding to the pixel unit can be determined. Then, according to at least one of the R, G, and B components of the first color, the color region in which the first color is located in the RGB color space is determined.
  • the target image in the HSV color space can be converted into the target image in the RGB color space.
  • the R, G, and B components corresponding to the pixel unit can be determined. According to at least one of the R, G, and B components of the first color, the color area in the RGB color space is determined.
  • the color space is the HSV color space
  • the H, S, and V components corresponding to the pixel unit can be determined, and then, according to the H, S, and/or V components of the first color , To determine the color area in the HSV color space.
  • the target image in the RGB color space can be converted into an image in the HSV color space.
  • the H, S, and V components corresponding to the pixel unit can be determined, and then, according to the H, S At least one of and the V component determines the color area in the HSV color space.
  • the conversion rule can be the following formula 1:
  • r, g, b represent the R, G, and B components of the target image
  • h, s, and v represent the H, S, and V components of the converted target image
  • max represents the largest of r, g, and b.
  • Min is the smallest of r, g, and b.
  • the R, G, and B components corresponding to each pixel unit in the target image in the RGB color space can be converted into the H, S, and V components in the HSV color space.
  • the HSV color space can include a black area, a white area, and a red area. Therefore, according to at least one of the R, G, and B components of the first color, it can be determined that the color area in which the first color is located is a black area, a white area, or a red area.
  • the color space described above only includes the RGB color space and the HSV color space examples.
  • the color region in which the first color is located in the color space can be determined according to the respective components of the first color in the corresponding color space.
  • the color area in the YUV color space can be determined according to the Y, U, and/or V components of the first color, which is not limited in the embodiment of the present disclosure.
  • the target image is a YUV image
  • the Y, U, and V components corresponding to the pixel unit can be determined. Then, according to the Y, U, and/or V components of the first color, the color region in which the first color is located in the YUV color space is determined.
  • the target image in the RGB color space can be converted into an image in the YUV color space.
  • the target image in the RGB color space can be converted into an image in the HSV color space, and then the image in the HSV color space can be converted into an image in the YUV color space.
  • the Y, U, and V components corresponding to the pixel unit can be determined. Then, according to the Y, U and/or V components of the first color, the color area in the YUV color space is determined.
  • the target image in the HSV color space can be converted into an image in the YUV color space, or the target image in the HSV color space can also be converted into an image in the RGB color space, and then the RGB color The image in the space is converted to the image in the YUV color space.
  • the Y, U, and V components corresponding to the pixel unit can be determined, and then, according to the Y, U and Y components of the first color And/or the V component determines the color area in the YUV color space.
  • step S203 the first color is converted into the second color according to the color area, so that the electronic ink screen is used to display each pixel unit in the second color.
  • the second color may be different from the first color.
  • the second color is determined according to the colors that can be displayed or supported by the electronic ink screen. For example, when the electronic ink screen supports three colors of black, white and red, the second color can be black, white or red.
  • the first color corresponding to the pixel can be converted into the second color according to the color area, so that the electronic ink screen can be used for the first color.
  • Two colors display each pixel unit in the target image.
  • the ability of the electronic ink screen can be fully utilized, and the target image of the first color can be converted into the image of the second color according to the colors that the electronic ink screen can display or support, so as to display on the electronic ink screen in addition to black and white Other colors to enhance the viewing of the target image.
  • the image processing method for an electronic ink screen may include the following steps.
  • step S301 a target image is acquired, the target image includes at least one pixel unit, and each pixel unit has a corresponding first color.
  • step S301 For the execution process of step S301, refer to the execution process of step S201 in the above-mentioned embodiment, which will not be repeated here.
  • step S302 the color region in which the first color is located in the HSV color space is determined according to at least one of the hue component, the lightness component and the saturation component of the first color.
  • different color regions may be pre-divided in the HSV color space based on the colors that can be displayed or supported by the electronic ink screen.
  • the colors that can be displayed on the electronic ink screen are black, white and red, and the black area, white area, and red area can be divided.
  • the color area includes a red area whose corresponding second color is red
  • a range can be divided in the H component, and the colors in the range can be divided into the red area.
  • the S component is too small or the V component is too small, the color is very close to white and black. Therefore, when dividing the red area, in addition to considering the value range of the H component, it is also necessary to consider the value range of the S component and the V component.
  • the H component belongs to the red hue range, and the lightness of the first color is greater than the first lightness threshold, and the saturation of the first color is greater than the saturation threshold.
  • the lower limit of the H component of the red hue range is 0°
  • the upper limit of the H component is 10° to 20°.
  • the value range of the first brightness threshold is 40% to 60%; the value range of the saturation threshold is 30% to 50%.
  • the color area where the first color is located in the HSV color space is the red area
  • F(x) represents the area division result of pixel unit x
  • H(x), S(x), V(x) represent H
  • P1, P2, P3, P4 are Configurable parameters, which respectively represent the lower limit of the H component, the upper limit of the H component, the saturation threshold, and the first brightness threshold of the red hue range.
  • the typical value of P1 is 0, the typical value of P2 is 10, the typical value of P3 is 43, and the typical value of P4 is 46.
  • FIG. 4 is a schematic diagram of color area division in the HSV color space in an embodiment of the present disclosure.
  • the corresponding black area can be divided according to the value of the V component.
  • the V component is smaller than the second brightness threshold, where the value range of the second brightness threshold is 40% to 60%.
  • the color area where the first color is located in the HSV color space is a black area
  • F(x) represents the area division result of the pixel unit x
  • P5 is a configurable parameter, which represents the second brightness threshold.
  • the typical value of P5 is 46.
  • the color area includes a white area whose corresponding second color is white
  • the color area other than the red area and the black area in the HSV color space may be used as the white area.
  • the color area where the first color is located in the HSV color space is a white color area
  • F(x) represents the area division result of the pixel unit x.
  • the H, S, and/or V components corresponding to the pixel unit can be brought into formulas (2) and (3) to determine its first color Whether the color area in the HSV color space is a red area or a black area. If it is neither in the infrared region nor in the black region, it is determined that the first color is in the white region.
  • the embodiments of the present disclosure only take black, white, and red colors that can be displayed on the electronic ink screen as examples.
  • the colors that the electronic ink screen can display may also be other colors, such as black, white, and blue, or black, white, and gray, which are not limited in the embodiments of the present disclosure.
  • the colors that the electronic ink screen can display include black, white, and gray
  • it can also be determined based on the H, S, and/or V components in the color area of the first color in the HSV color space as a gray area or a black area. Still the white area.
  • step S303 the first color is converted into the second color according to the color area, so that the electronic ink screen is used to display each pixel unit in the second color.
  • the first color of the pixel unit after determining the color area of the first color of each pixel unit in the HSV color space, the first color of the pixel unit can be converted into the second color according to the color area to use electronic ink
  • the screen displays each pixel unit in the target image in the second color. For example, if the color area of the first color of the pixel unit x in the HSV color space is a red area, the color of the pixel unit x can be converted to red.
  • the color area where the first color of the pixel unit y is located in the HSV color space is a black area, and the color of the pixel unit y can be converted to black.
  • the input image that is, the RGB image
  • the input image can be converted into a three-color output image.
  • Fig. 5 is a grayscale image, and the gray area in the output image actually represents the red area.
  • Fig. 6 is a schematic structural diagram of an image processing device for an electronic ink screen according to an embodiment of the present disclosure.
  • the image processing device for an electronic ink screen includes: an acquisition module 610, a determination module 620, and a processing module 630.
  • the acquiring module 610 is configured to acquire a target image, the target image includes at least one pixel unit, and each pixel unit has a corresponding first color.
  • the determining module 620 is configured to determine the color area where the first color is located in the first color space.
  • the determining module 620 is further configured to determine the color region in the hue, lightness and saturation HSV color space according to the hue component, lightness component and/or saturation component of the first color.
  • the color area includes a red area whose corresponding second color is red.
  • the hue component belongs to the red hue range, and the lightness of the first color is greater than the first lightness threshold, and the saturation of the first color is greater than the saturation threshold.
  • the lower limit of the hue component of the red hue range is 0°
  • the upper limit of the hue component is 10° to 20°
  • the value range of the first lightness threshold is 40% to 60%
  • the value range of the saturation threshold is 30% to 50. %.
  • the color area includes a black area where the corresponding second color is black. Among them, in the black area, the lightness component is smaller than the second lightness threshold; the value range of the second lightness threshold is 40% to 60%.
  • the color area includes a red area where the second color is red, a black area where the second color is black, and a white area where the second color is white.
  • the white area is the color area excluding the red area and the black area in the HSV color space.
  • the determining module 620 is further configured to determine whether the first color is in a red area or a black area in the color space; if it is not in an infrared area or a black area, determine that the first color is in a white area.
  • the processing module 630 is further configured to convert the first color into a second color corresponding to the color area, so as to use the electronic ink screen to display each pixel unit in the second color.
  • the second color is determined based on the displayable color of the electronic ink screen.
  • the embodiments of the present disclosure also propose an electronic ink screen.
  • the electronic ink screen 70 may include: a memory 701, a processor 702, and a computer program stored in the memory and running on the processor.
  • the processor 701 executes the program, it implements the image processing method for an electronic ink screen as proposed in the foregoing embodiments of the embodiments of the present disclosure.
  • the embodiments of the present disclosure also provide a non-transitory computer-readable storage medium on which a computer program is stored.
  • Image processing method of electronic ink screen
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include at least one of the features. In the description of the embodiments of the present disclosure, “plurality” means at least two, such as two, three, etc., unless otherwise specifically defined.
  • a "computer-readable medium” can be any device that can contain, store, communicate, propagate, or transmit a program for use by an instruction execution system, device, or device or in combination with these instruction execution systems, devices, or devices.
  • computer-readable media include the following: electrical connections (electronic devices) with one or more wiring, portable computer disk cases (magnetic devices), random access memory (RAM), Read only memory (ROM), erasable and editable read only memory (EPROM or flash memory), fiber optic devices, and portable compact disk read only memory (CDROM).
  • the computer-readable medium can even be paper or other suitable media on which the program can be printed, because it can be done, for example, by optically scanning the paper or other media, and then editing, interpreting or other suitable media if necessary. The program is processed in a way to obtain the program electronically and then stored in the computer memory.
  • each part of the embodiments of the present disclosure can be implemented by hardware, software, firmware, or a combination thereof.
  • multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
  • Discrete logic gate circuits with logic functions for data signals Logic circuit, application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA), etc.
  • a person of ordinary skill in the art can understand that all or part of the steps carried in the method of the foregoing embodiments can be implemented by a program instructing relevant hardware to complete.
  • the program can be stored in a computer-readable storage medium, and the program can be stored in a computer-readable storage medium. When executed, it includes one of the steps of the method embodiment or a combination thereof.
  • the functional units in the various embodiments of the embodiments of the present disclosure may be integrated into one processing module, or each unit may exist alone physically, or two or more units may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software function modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium.
  • the aforementioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

本公开实施例提出了一种用于电子墨水屏的图像处理方法、装置和电子墨水屏。所述方法包括:获取目标图像,目标图像包括至少一个像素单元,每个像素单元分别具有对应的第一颜色;针对每个像素单元,确定第一颜色在第一颜色空间中所处的颜色区域;根据所确定的颜色区域,将第一颜色转换为第二颜色,以使用电子墨水屏以第二颜色显示像素单元。

Description

用于电子墨水屏的图像处理方法、装置和电子墨水屏
本申请要求于2019年9月12日提交的、申请号为201910863448.9的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开实施例涉及显示技术领域,尤其涉及一种用于电子墨水屏的图像处理方法、装置和电子墨水屏。
背景技术
电子墨水屏又称为电子纸显示技术,在电子纸的表面可以显示出如同印刷品的黑白图案和文字。目前电子墨水屏在显示图像时,可以使用图像二值化方法获取二值图像,然后通过误差传播的方式对二值图像边界进行虚化,从而提高观赏性。
但是,上述图像处理方法仅能将图像转换为黑白两种颜色。如何将颜色丰富的图像显示在电子墨水屏上,从而提升图像的观赏性,成为亟待解决的问题。
发明内容
本公开实施例提出一种用于电子墨水屏的图像处理方法、装置和电子墨水屏。
根据本公开实施例的一个方面,提出了一种用于电子墨水屏的图像处理方法,包括:
获取目标图像,所述目标图像包括至少一个像素单元,每个像素单元分别具有对应的第一颜色;
针对每个像素单元,确定所述第一颜色在第一颜色空间中所处的颜色区域;以及
根据所确定的颜色区域,将所述第一颜色转换为第二颜色,以使用电子墨水屏以所述第二颜色显示所述像素单元。
例如,第一颜色空间包括色相明度饱和度HSV颜色空间;所述确定所述第一颜色在第一颜色空间中所处的颜色区域,包括:根据所述第一颜色的色相分量、明度分量和饱和度分量中的至少一个,确定第一颜色在色相明度饱和度HSV颜色空间中所处的颜色区域。
例如,所述颜色区域包括红色区域,第二颜色为红色;其中,在所述红色区域中, 第一颜色的色相分量属于红色色相范围,且所述第一颜色的明度大于第一明度阈值,所述第一颜色的饱和度大于饱和度阈值;其中,所述红色色相范围的色相分量下限为0°、上限为10°至20°;所述第一明度阈值的取值范围为40%至60%;所述饱和度阈值的取值范围为30%至50%。
例如,所述颜色区域包括黑色区域,第二颜色为黑色;其中,在所述黑色区域中,明度分量小于第二明度阈值;所述第二明度阈值的取值范围为40%至60%。
例如,所述颜色区域包括红色区域、黑色区域或白色区域;其中,所述白色区域为所述HSV颜色空间中除所述红色区域和所述黑色区域以外的颜色区域。
例如,所述确定所述第一颜色在第一颜色空间中所处的颜色区域,包括:判断所述第一颜色在所述第一颜色空间中是否处于所述红色区域或所述黑色区域;若所述第一颜色未处于所述红外区域也未处于所述黑色区域,确定所述第一颜色处于所述白色区域。
例如,在所述目标图像为RGB图像的情况下,将所述目标图像转换到所述HSV颜色空间以针对每个像素单元得到第一颜色的色相分量、明度分量和饱和度分量中的至少一个。
例如,第一颜色空间包括RGB颜色空间;所述确定所述第一颜色在第一颜色空间中所处的颜色区域,包括:根据所述第一颜色的R分量、G分量和B分量中的至少一个,确定第一颜色在RGB颜色空间中所处的颜色区域。
例如,在所述目标图像为HSV图像的情况下,将所述目标图像转换到所述RGB颜色空间。
例如,根据所述电子墨水屏可显示颜色确定所述第二颜色。
本公开实施例的另一方面,提出了一种用于电子墨水屏的图像处理装置,包括:
获取模块,用于获取目标图像,所述目标图像包括至少一个像素单元,每个像素单元分别具有对应的第一颜色;
确定模块,用于针对所述每个像素单元,确定所述第一颜色在第一颜色空间中所处的颜色区域;
处理模块,用于根据所述颜色区域,将所述第一颜色转换为第二颜色,以使用电子墨水屏以所述第二颜色显示显示所述每个像素单元。
根据本公开实施例的另一方面,提出了一种电子墨水屏,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如本公开实施例的用于电子墨水屏的图像处理方法。
根据本公开实施例的另一方面,提出了一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本公开实施例的用于电子墨水屏的图像处理方法。
本公开实施例附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本公开实施例的实践了解到。
附图说明
本公开实施例上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1为HSV颜色空间模型示意图;
图2为根据本公开实施例的用于电子墨水屏的图像处理方法的流程示意图;
图3为根据本公开实施例的用于电子墨水屏的图像处理方法的流程示意图;
图4为根据本公开实施例HSV颜色空间中颜色区域划分示意图;
图5为根据本公开实施例的图像处理方法的效果示意图;
图6为根据本公开实施例的用于电子墨水屏的图像处理装置的结构示意图;以及
图7根据本公开实施例的用于电子墨水屏的图像处理装置的结构示意图。
具体实施方式
下面详细描述本公开实施例的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本公开实施例,而不能理解为对本公开实施例的限制。
电子墨水屏显示技术取得了飞速的发展和越来越广泛的应用,例如,电子书阅读器、电子纸以及货架标签、电子桌牌等产品都大量使用了电子墨水屏。然而,由于电子墨水屏特殊的显示方式,与传统的液晶显示不同,它只能支持显示少量的几种颜色。
电子墨水屏可以支持黑白双色颜色模式,即可以使用电子墨水屏显示黑白双色图片。需要注意的是,这里的“黑白”为“非黑即白”,即只包含两种颜色而不包含灰色。
这种方式下,电子墨水屏只能显示两种颜色,并不能像传统计算机显示屏一样显示丰富的颜色。因此,如何将颜色丰富的图像显示在电子墨水屏上,从而提升图像的观赏性,成为亟待解决的问题。
本公开实施例提出了一种用于电子墨水屏的图像处理方法。
根据本公开实施例的用于电子墨水屏的图像处理方法,通过获取目标图像,目标图像包括至少一个像素单元,每个像素单元分别具有对应的第一颜色,并确定第一颜色在第一颜色空间中所处的颜色区域。之后,根据确定的颜色区域,将第一颜色转换为第二颜色,以使用电子墨水屏以第二颜色显示各像素单元。由此,可以充分发挥电子墨水屏的显示能力,根据电子墨水屏可显示或者可支持的颜色,将第一颜色的目标图像转换为第二颜色的图像,从而实现在电子墨水屏上显示除了黑白之外的其他颜色,提升目标图像的观赏性。
下面参考附图描述本公开实施例的用于电子墨水屏的图像处理方法、装置和电子墨水屏。在具体描述本公开实施例之前,为了便于理解,首先对常用技术词进行介绍。
色相明度饱和度(Hue Saturation Value,简称HSV)颜色空间:根据颜色的直观特性而创建的一种颜色空间,该颜色空间中颜色的分量分别为色相(H)、饱和度(S)、明度(V)。
例如,参见图1,图1为HSV颜色空间模型示意图。其中,色相分量H使用角度度量,范围为0到360°,从红色开始按逆时针方向计算,红色为0°,绿色为120°,蓝色为240°。
饱和度分量S表示颜色接近光谱色的程度。一种颜色可以看成某种光谱色与白色混合的结果,其中光谱色所占的比例愈大,颜色接近光谱色的程度就愈高,颜色的饱和度也就越高,即饱和度高,颜色则深而艳。光谱色的白光成分为0,饱和度达到最高,通常S的取值范围为0%到100%,S的值越大,则颜色越饱和。
明度分量V表示颜色明亮的程度,对于光源色,明度值与发光体的亮度有关,通常V的取值为0%(黑)到100%(白)。
红绿蓝(Red Green Blue,简称RGB)颜色空间:通过对红(R)、绿(G)、蓝(B)三个颜色通道的变化以及它们相互之间的叠加来得到各式各样的颜色。每张数字影像都是由许多点所组合而成的,这些点又称为像素,通常每一个像素可以呈现出许多不同的颜色,它是由红、绿、蓝(RGB)三个子像素组成的。每一个子像素都可以显现出不同的亮度级别。而灰阶代表了由最暗到最亮之间不同亮度的层次级别。这中间层级越多,所能够呈现的画面效果也就越细腻。以8位灰度图像为例,能表现出256(2 8)个亮度层次,称之为256灰阶。也就是说,屏幕上每一个点的颜色变化,其实都是由构成这个点的三个RGB子像素的灰阶值变化所带来的。
图2为根据本公开实施例的用于电子墨水屏的图像处理方法的流程示意图。
本公开实施例的图像处理方法可以应用于电子墨水屏。比如,可以应用于电子书阅读器、电子纸以及货架标签、电子桌牌等具有电子墨水屏的产品。
如图2所示,该用于电子墨水屏的图像处理方法包括以下步骤。
在步骤S201,获取目标图像,目标图像包括至少一个像素单元,每个像素单元分别具有对应的第一颜色。
本公开实施例中,目标图像为电子墨水屏待显示的图像。比如,该目标图像可以为用户加载、下载、预览的图像,或者,目标图像可以为用户拍摄的图像,或者,目标图像还可以为本地存储的图像等等,本公开实施例对此并不做限制。其中,目标图像中每个像素单元均具有对应的第一颜色。
在步骤S202,确定第一颜色在第一颜色空间中所处的颜色区域。
本公开实施例中,第一颜色空间可以为HSV颜色空间、RGB颜色空间、YUV颜色空间、Lab颜色空间、色相亮度饱和度(Hue Saturation Intensity,简称HSI)颜色空间等等,对此不作限制。
本公开实施例中,在确定目标图像每个像素单元对应的第一颜色后,可以确定第一颜色在颜色空间中所处的颜色区域。
例如,当上述颜色空间为RGB颜色空间时,可以根据第一颜色的R、G和B分量中的至少一个,确定第一颜色在RGB颜色空间中所处的颜色区域。
例如,当目标图像为RGB图像时,针对该目标图像中的每个像素单元,可以确定该像素单元对应的R、G、B分量。然后根据第一颜色的R、G和B分量中的至少一个,确定第一颜色在RGB颜色空间中所处的颜色区域。
例如,当目标图像为HSV图像时,可以将该HSV颜色空间的目标图像转换为RGB颜色空间的目标图像。在将目标图像转换为RGB颜色空间的图像后,针对转换后的目标图像中的每个像素单元,可以确定该像素单元对应的R、G、B分量。根据第一颜色的R、G和B分量中的至少一个,确定在RGB颜色空间中所处的颜色区域。
例如,当颜色空间为HSV颜色空间时,可以根据第一颜色的色相分量(S)、明度分量(V)和饱和度分量(H)中的至少一个,确定该第一颜色在HSV颜色空间中所处的颜色区域。
例如,当目标图像为HSV图像时,针对该目标图像中的每个像素单元,可以确定该像素单元对应的H、S、V分量,而后,根据第一颜色的H、S和/或V分量,确定在HSV颜色空间中所处的颜色区域。
例如,当目标图像为RGB图像时,可以将该RGB颜色空间的目标图像转换为HSV 颜色空间的图像。在将目标图像转换为HSV颜色空间的图像后,针对转换后的目标图像中的每个像素单元,可以确定该像素单元对应的H、S、V分量,而后,根据第一颜色的H、S和V分量中的至少一个,确定在HSV颜色空间中所处的颜色区域。
例如,将RGB颜色空间的目标图像转换为HSV颜色空间的图像,其转换规则可以为以下公式1:
Figure PCTCN2020110944-appb-000001
其中,r,g,b分别表示目标图像的R、G、B分量,h,s,v分别表示转换后的目标图像的H、S、V分量,max表示r、g、b中的最大者,min为r、g、b中的最小者。
可以根据公式(1),将RGB颜色空间中目标图像中每个像素单元对应的R、G、B分量,转换为HSV颜色空间中的H、S、V分量。
作为一种应用场景,当该电子墨水屏可显示或者可支持的颜色为黑白红三种颜色时,则HSV颜色空间可以包括黑色区域、白色区域以及红色区域。因此,可以根据第一颜色的R、G和B分量中的至少一个,确定第一颜色所处的颜色区域为黑色区域、白色区域或者红色区域。
需要说明的是,上述仅以颜色空间包括RGB颜色空间和HSV颜色空间示例。实际应用时,对于其他颜色空间,可以根据第一颜色在对应颜色空间的各个分量,确定第一颜色在该颜色空间中所处的颜色区域。比如,对于YUV颜色空间而言,可以根据第一颜色的Y、U和/或V分量,确定在YUV颜色空间中所处的颜色区域,本公开实施例对此并不作限制。
例如,当目标图像为YUV图像时,针对该目标图像中的每个像素单元,可以确定该像素单元对应的Y、U、V分量。而后,根据第一颜色的Y、U和/或V分量,确定第一颜色在YUV颜色空间中所处的颜色区域。
例如,当目标图像为RGB图像时,可以将该RGB颜色空间的目标图像转换为YUV颜色空间的图像。或者,还可以将该RGB颜色空间的目标图像转换为HSV颜色空间的图像,再将HSV颜色空间的图像转换为YUV颜色空间的图像。在将目标图像转换为YUV颜色空间的图像后,针对转换后的目标图像中的每个像素单元,可以确定该像素单元对应的Y、U、V分量。而后,根据第一颜色的Y、U和/或V分量,确定在YUV颜色空间中所处的颜色区域。
例如,当目标图像为HSV图像时,可以将HSV颜色空间的目标图像转换为YUV颜色空间的图像,或者,还可以将该HSV颜色空间的目标图像转换为RGB颜色空间的图像,再将RGB颜色空间的图像转换为YUV颜色空间的图像。在将目标图像转换为YUV颜色空间的图像后,针对转换后的目标图像中的每个像素单元,可以确定该像素单元对应的Y、U、V分量,而后,根据第一颜色的Y、U和/或V分量,确定在YUV颜色空间中所处的颜色区域。
在步骤S203,根据颜色区域,将第一颜色转换为第二颜色,以使用电子墨水屏以第二颜色显示各像素单元。
例如,第二颜色可以不同于第一颜色。其中,第二颜色是根据电子墨水屏可显示或者可支持的颜色确定的,比如,当电子墨水屏支持黑白红三种颜色时,第二颜色可以为黑色、白色或者红色。
例如,在确定每个像素单元的第一颜色所处的颜色区域后,针对每个像素单元,可以根据颜色区域将该像素对应的第一颜色转换为第二颜色,以使用电子墨水屏以第二颜色显示目标图像中各像素单元。由此,可以充分发挥电子墨水屏的能力,根据电子墨水屏可显示或者可支持的颜色,将第一颜色的目标图像转换为第二颜色的图像,从而在电子墨水屏上显示除了黑白之外的其他颜色,提升目标图像的观赏性。
作为一种示例实现方式,以颜色空间为HSV颜色空间进行示例,参见图3,该用于电子墨水屏的图像处理方法可以包括以下步骤。
在步骤S301,获取目标图像,目标图像包括至少一个像素单元,各像素单元分别具有对应的第一颜色。
步骤S301的执行过程可以参见上述实施例中步骤S201的执行过程,在此不做赘述。
在步骤S302,根据第一颜色的色相分量、明度分量和饱和度分量中的至少一个,确定第一颜色在HSV颜色空间中所处的颜色区域。
本公开实施例中,可以基于电子墨水屏可显示或者可支持的颜色,预先在HSV颜色空间中划分不同的颜色区域。比如电子墨水屏可显示的颜色为黑白红三种颜色,则可 以划分得到黑色区域、白色区域以及红色区域。
例如,当颜色区域包括对应的第二颜色为红色的红色区域时,由于色相主要由H分量决定,因此可以在H分量中划分出一个范围,将该范围内的颜色划分为红色区域。然而,需要说明的是,即使在该范围内,当S分量过小或V分量过小时,颜色非常接近白色和黑色。因此,在划分红色区域时,除了考虑H分量的取值范围外,还需要考虑S分量和V分量的取值范围。
例如,在红色区域中,H分量属于红色色相范围,且第一颜色的明度大于第一明度阈值,第一颜色的饱和度大于饱和度阈值。其中,红色色相范围的H分量下限为0°,H分量上限为10°至20°。第一明度阈值的取值范围为40%至60%;饱和度阈值的取值范围为30%至50%。
例如,针对像素单元x而言,其第一颜色在HSV颜色空间中所处的颜色区域为红色区域,则:
F(x)=Red,if P1<H(x)≤P2 and S(x)≥P3 and V(x)≥P4;(2)
其中,F(x)表示像素单元x的区域划分结果,H(x)、S(x)、V(x)分别表示像素单元x的H、S、V分量,P1,P2,P3,P4为可配置参数,分别表示红色色相范围的H分量下限、H分量上限、饱和度阈值、第一明度阈值。例如,P1的典型值为0,P2的典型值为10,P3的典型值为43,P4的典型值为46。
例如,当颜色区域包括对应的第二颜色为黑色的黑色区域时,参见图4,图4为本公开实施例中HSV颜色空间中颜色区域划分示意图。其中,在HSV圆锥模型中,当V分量越小,颜色越接近黑色,在圆锥顶点时,颜色为黑色,H分量和S分量变得没有意义。因此,本公开实施例中,可以根据V分量的取值,划分对应的黑色区域。
例如,在黑色区域中,V分量小于第二明度阈值,其中,第二明度阈值的取值范围为40%至60%。
例如,针对像素单元x而言,其第一颜色在HSV颜色空间中所处的颜色区域为黑色区域,则:
F(x)=Black,if not Red and V(x)<P5;(3)
其中,F(x)表示像素单元x的区域划分结果,P5为可配置参数,表示第二明度阈值。例如,P5的典型值为46。
作为又一种示例实现方式,当颜色区域包括对应的第二颜色为白色的白色区域,可以将HSV颜色空间中除红色区域和黑色区域以外的颜色区域,作为白色区域。
例如,针对像素单元x而言,其第一颜色在HSV颜色空间中所处的颜色区域为白 色区域,则:
F(x)=White,if not Red and not Black;(4)
其中,F(x)表示像素单元x的区域划分结果。
例如,在划分得到各颜色区域后,针对每个像素单元,可以根据该像素单元对应的H、S和/或V分量,带入到公式(2)、(3)中,确定其第一颜色在HSV颜色空间中所处的颜色区域为红色区域还是黑色区域。若既未处于红外区域,也未处于黑色区域,则确定第一颜色处于白色区域。
需要说明的是,本公开实施例仅以电子墨水屏可显示的颜色为黑色、白色和红色为示例。实际应用时,电子墨水屏可显示的颜色还可以为其他颜色,比如为黑色、白色和蓝色,或者为黑色、白色和灰色,本公开实施例对此并不作限制。
例如,当电子墨水屏可显示的颜色包括黑色、白色和灰色时,同样可以根据H、S和/或V分量,确定第一颜色在HSV颜色空间中所处的颜色区域为灰色区域、黑色区域还是白色区域。
在步骤S303,根据颜色区域,将第一颜色转换为第二颜色,以使用电子墨水屏以第二颜色显示各像素单元。
本公开实施例中,在确定每个像素单元的第一颜色在HSV颜色空间中所处的颜色区域后,可以根据颜色区域将该像素单元的第一颜色转换为第二颜色,以使用电子墨水屏以第二颜色显示目标图像中各像素单元。例如,像素单元x的第一颜色在HSV颜色空间中所处的颜色区域为红色区域,可以将该像素单元x的颜色转换为红色。或者,像素单元y的第一颜色在HSV颜色空间中所处的颜色区域为黑色区域,可以将该像素单元y的颜色转换为黑色。
作为一种示例,以电子墨水屏可显示颜色为黑白红三种颜色示例,参见图5,使用本公开实施例的图像处理方法,可以将输入图像,即RGB图像转换为三色的输出图像,用于支持三色的电子墨水屏。相较于只能显示黑白两色的输出图像的电子墨水屏,可以提升目标图像的观赏性。需要说明的是,图5为灰度图,输出图像中灰色区域实际表示的为红色区域。
图6为根据本公开实施例的用于电子墨水屏的图像处理装置的结构示意图。
如图6所示,该用于电子墨水屏的图像处理装置包括:获取模块610、确定模块620以及处理模块630。
其中,获取模块610用于获取目标图像,目标图像包括至少一个像素单元,各像素单元分别具有对应的第一颜色。
确定模块620用于确定第一颜色在第一颜色空间中所处的颜色区域。
确定模块620还用于:根据第一颜色的色相分量、明度分量和/或饱和度分量,确定在色相明度饱和度HSV颜色空间中所处的颜色区域。
其中,颜色区域包括对应的第二颜色为红色的红色区域。在红色区域中,色相分量属于红色色相范围,且第一颜色的明度大于第一明度阈值,第一颜色的饱和度大于饱和度阈值。其中,红色色相范围的色相分量下限为0°,色相分量上限为10°至20°,第一明度阈值的取值范围为40%至60%,饱和度阈值的取值范围为30%至50%。
颜色区域包括对应的第二颜色为黑色的黑色区域。其中,在黑色区域中,明度分量小于第二明度阈值;第二明度阈值的取值范围为40%至60%。
颜色区域包括对应的第二颜色为红色的红色区域、对应的第二颜色为黑色的黑色区域,和对应的第二颜色为白色的白色区域。其中,白色区域为HSV颜色空间中除红色区域和黑色区域以外的颜色区域。
确定模块620还用于:确定第一颜色在颜色空间中是否处于红色区域或黑色区域;若未处于红外区域或黑色区域,确定第一颜色处于白色区域。
处理模块630还用于将第一颜色转换为所处颜色区域对应的第二颜色,以使用电子墨水屏以第二颜色显示各像素单元。
第二颜色是根据电子墨水屏可显示颜色确定的。
需要说明的是,前述对用于电子墨水屏的图像处理方法实施例的解释说明也适用于该实施例的用于电子墨水屏的图像处理装置,此处不再赘述。
为了实现上述实施例,本公开实施例还提出一种电子墨水屏。如图7所示,根据本公开实施例的电子墨水屏70可以包括:存储器701、处理器702及存储在存储器上并可在处理器上运行的计算机程序。处理器701执行所述程序时,实现如本公开实施例前述实施例提出的用于电子墨水屏的图像处理方法。
为了实现上述实施例,本公开实施例还提出一种非临时性计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本公开实施例前述实施例提出的用于电子墨水屏的图像处理方法。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本公开实施例的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在 不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本公开实施例的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本公开实施例的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本公开实施例的实施例所属技术领域的技术人员所理解。
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,″计算机可读介质″可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。
应当理解,本公开实施例的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤 是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本公开实施例各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以使用硬件的形式实现,也可以使用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本公开实施例的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本公开实施例的限制,本领域的普通技术人员在本公开实施例的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (13)

  1. 一种用于电子墨水屏的图像处理方法,包括:
    获取目标图像,所述目标图像包括至少一个像素单元,每个像素单元分别具有对应的第一颜色;
    针对所述每个像素单元,确定所述第一颜色在第一颜色空间中所处的颜色区域;以及
    根据所确定的颜色区域,将所述第一颜色转换为第二颜色,以使用电子墨水屏以所述第二颜色显示所述像素单元。
  2. 根据权利要求1所述的图像处理方法,其中,第一颜色空间包括色相明度饱和度HSV颜色空间;
    所述确定所述第一颜色在第一颜色空间中所处的颜色区域,包括:
    根据所述第一颜色的色相分量、明度分量和饱和度分量中的至少一个,确定第一颜色在色相明度饱和度HSV颜色空间中所处的颜色区域。
  3. 根据权利要求2所述的图像处理方法,其中,所述颜色区域包括红色区域,第二颜色为红色;
    其中,在所述红色区域中,第一颜色的色相分量属于红色色相范围,且所述第一颜色的明度大于第一明度阈值,所述第一颜色的饱和度大于饱和度阈值;
    其中,所述红色色相范围的色相分量下限为0°、上限为10°至20°;
    所述第一明度阈值的取值范围为40%至60%;
    所述饱和度阈值的取值范围为30%至50%。
  4. 根据权利要求2所述的所述的图像处理方法,其中,所述颜色区域包括黑色区域,第二颜色为黑色;
    其中,在所述黑色区域中,明度分量小于第二明度阈值;
    所述第二明度阈值的取值范围为40%至60%。
  5. 根据权利要求2所述的图像处理方法,其中,所述颜色区域包括红色区域、黑色区域或白色区域;
    其中,所述白色区域为所述HSV颜色空间中除所述红色区域和所述黑色区域以外的颜色区域。
  6. 根据权利要求5所述的图像处理方法,其中,所述确定所述第一颜色在第一颜色空间中所处的颜色区域,包括:
    判断所述第一颜色在所述第一颜色空间中是否处于所述红色区域或所述黑色区域;
    若所述第一颜色未处于所述红外区域也未处于所述黑色区域,确定所述第一颜色处于所述白色区域。
  7. 根据权利要求2-6任一项所述的图像处理方法,其中,在所述目标图像为RGB图像的情况下,将所述目标图像转换到所述HSV颜色空间以针对每个像素单元得到第一颜色的色相分量、明度分量和饱和度分量中的至少一个。
  8. 根据权利要求1所述的图像处理方法,其中,第一颜色空间包括RGB颜色空间;
    所述确定所述第一颜色在第一颜色空间中所处的颜色区域,包括:
    根据所述第一颜色的R分量、G分量和B分量中的至少一个,确定第一颜色在RGB颜色空间中所处的颜色区域。
  9. 根据权利要求8所述的图像处理方法,其中,在所述目标图像为HSV图像的情况下,将所述目标图像转换到所述RGB颜色空间。
  10. 根据权利要求1-9任一项所述的图像处理方法,其中,根据所述电子墨水屏可显示颜色确定所述第二颜色。
  11. 一种用于电子墨水屏的图像处理装置,包括:
    获取模块,用于获取目标图像,所述目标图像包括至少一个像素单元,每个像素单元分别具有对应的第一颜色;
    确定模块,用于针对所述每个像素单元,确定所述第一颜色在第一颜色空间中所处的颜色区域;
    处理模块,用于根据所述颜色区域,将所述第一颜色转换为第二颜色,以使用电子墨水屏以所述第二颜色显示所述每个像素单元。
  12. 一种电子墨水屏,包括:
    存储器,其上存储有可在处理器上运行的计算机程序;
    处理器,
    所述处理器执行所述程序时,实现如权利要求1-10中任一所述的图像处理方法。
  13. 一种非临时性计算机可读存储介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-10中任一所述的图像处理方法。
PCT/CN2020/110944 2019-09-12 2020-08-25 用于电子墨水屏的图像处理方法、装置和电子墨水屏 WO2021047383A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910863448.9 2019-09-12
CN201910863448.9A CN110570380B (zh) 2019-09-12 2019-09-12 用于电子墨水屏的图像处理方法、装置和电子墨水屏

Publications (1)

Publication Number Publication Date
WO2021047383A1 true WO2021047383A1 (zh) 2021-03-18

Family

ID=68779610

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/110944 WO2021047383A1 (zh) 2019-09-12 2020-08-25 用于电子墨水屏的图像处理方法、装置和电子墨水屏

Country Status (2)

Country Link
CN (1) CN110570380B (zh)
WO (1) WO2021047383A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113658157A (zh) * 2021-08-24 2021-11-16 凌云光技术股份有限公司 一种基于hsv空间的颜色分割方法及装置
CN115277940A (zh) * 2022-07-13 2022-11-01 青岛海信移动通信技术股份有限公司 通知消息的提示方法及装置、计算机可读存储介质
CN117435156A (zh) * 2023-12-20 2024-01-23 汉朔科技股份有限公司 电子价签的显示信息生成方法、装置、设备及介质

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110570380B (zh) * 2019-09-12 2022-04-08 京东方科技集团股份有限公司 用于电子墨水屏的图像处理方法、装置和电子墨水屏
WO2021120105A1 (zh) * 2019-12-19 2021-06-24 京东方科技集团股份有限公司 用于处理图像的方法及其存储介质、设备
CN111161683B (zh) 2020-01-03 2021-05-18 京东方科技集团股份有限公司 图像处理方法、图像处理器和显示装置
CN111343339B (zh) * 2020-03-03 2021-07-23 青岛海信移动通信技术股份有限公司 移动终端及其图像显示方法
CN111556249A (zh) * 2020-05-19 2020-08-18 青岛海信移动通信技术股份有限公司 一种基于水墨屏的图像处理方法、终端及存储介质
CN112004115A (zh) * 2020-09-04 2020-11-27 京东方科技集团股份有限公司 图像处理方法及图像处理系统
CN112512025A (zh) * 2020-11-20 2021-03-16 广东公信智能会议股份有限公司 应用于电子桌牌的图片传输方法
CN112734866B (zh) * 2020-12-24 2024-06-04 努比亚技术有限公司 一种图像处理方法、终端和存储介质
CN113596425B (zh) * 2021-06-21 2023-02-07 深圳市沃特沃德信息有限公司 墨水屏终端的图像处理方法、装置、存储介质及智能设备
CN117730361A (zh) * 2022-07-18 2024-03-19 京东方科技集团股份有限公司 图像显示方法及装置
CN116597789B (zh) * 2023-06-06 2024-02-23 广州文石信息科技有限公司 彩色墨水屏的画面显示方法、装置、设备以及存储介质
CN116939181B (zh) * 2023-08-08 2024-02-23 广州文石信息科技有限公司 图像处理方法、装置、系统、存储介质以及电子设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090060326A1 (en) * 2007-08-28 2009-03-05 Imai Yoshie Image processing apparatus and method
CN102592272A (zh) * 2011-01-12 2012-07-18 腾讯科技(深圳)有限公司 一种图片主色调提取方法及装置
CN102651136A (zh) * 2011-02-28 2012-08-29 国际商业机器公司 图像的颜色映射方法及装置
CN108124139A (zh) * 2016-11-28 2018-06-05 深圳市中兴微电子技术有限公司 一种像素点处理方法及装置
CN108846812A (zh) * 2018-05-30 2018-11-20 成都微光集电科技有限公司 一种基于灰度级压缩的clhae图像增强方法
CN109636753A (zh) * 2018-12-11 2019-04-16 珠海奔图电子有限公司 图像处理方法和装置、电子设备及计算机可读存储介质
CN110570380A (zh) * 2019-09-12 2019-12-13 京东方科技集团股份有限公司 用于电子墨水屏的图像处理方法、装置和电子墨水屏

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012106122A1 (en) * 2011-01-31 2012-08-09 Malvell World Trade Ltd. Systems and methods for performing color adjustments of pixels on a color display
US10319116B1 (en) * 2014-12-02 2019-06-11 Amazon Technologies, Inc. Dynamic color adjustment of electronic content
KR102329862B1 (ko) * 2015-02-10 2021-11-23 삼성전자주식회사 영상의 컬러 변환 방법 및 전자 장치
KR20180014498A (ko) * 2016-08-01 2018-02-09 삼성전자주식회사 텍스트의 시인성을 향상시키는 전자 장치와 이의 동작 방법
CN109697739B (zh) * 2018-12-25 2020-01-21 掌阅科技股份有限公司 手写阅读设备的反色显示方法及手写阅读设备
CN110007541A (zh) * 2019-04-22 2019-07-12 京东方科技集团股份有限公司 电子墨水屏、显示装置、电子墨水屏的显示方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090060326A1 (en) * 2007-08-28 2009-03-05 Imai Yoshie Image processing apparatus and method
CN102592272A (zh) * 2011-01-12 2012-07-18 腾讯科技(深圳)有限公司 一种图片主色调提取方法及装置
CN102651136A (zh) * 2011-02-28 2012-08-29 国际商业机器公司 图像的颜色映射方法及装置
CN108124139A (zh) * 2016-11-28 2018-06-05 深圳市中兴微电子技术有限公司 一种像素点处理方法及装置
CN108846812A (zh) * 2018-05-30 2018-11-20 成都微光集电科技有限公司 一种基于灰度级压缩的clhae图像增强方法
CN109636753A (zh) * 2018-12-11 2019-04-16 珠海奔图电子有限公司 图像处理方法和装置、电子设备及计算机可读存储介质
CN110570380A (zh) * 2019-09-12 2019-12-13 京东方科技集团股份有限公司 用于电子墨水屏的图像处理方法、装置和电子墨水屏

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113658157A (zh) * 2021-08-24 2021-11-16 凌云光技术股份有限公司 一种基于hsv空间的颜色分割方法及装置
CN113658157B (zh) * 2021-08-24 2024-03-26 凌云光技术股份有限公司 一种基于hsv空间的颜色分割方法及装置
CN115277940A (zh) * 2022-07-13 2022-11-01 青岛海信移动通信技术股份有限公司 通知消息的提示方法及装置、计算机可读存储介质
CN117435156A (zh) * 2023-12-20 2024-01-23 汉朔科技股份有限公司 电子价签的显示信息生成方法、装置、设备及介质
CN117435156B (zh) * 2023-12-20 2024-05-28 汉朔科技股份有限公司 电子价签的显示信息生成方法、装置、设备及介质

Also Published As

Publication number Publication date
CN110570380A (zh) 2019-12-13
CN110570380B (zh) 2022-04-08

Similar Documents

Publication Publication Date Title
WO2021047383A1 (zh) 用于电子墨水屏的图像处理方法、装置和电子墨水屏
WO2020224387A1 (zh) 驱动方法、驱动装置、显示设备和计算机可读介质
WO2019114369A1 (zh) 基色转换方法及其转换器、显示控制方法、显示装置
JP6532916B2 (ja) プロジェクタシステムのコンテンツ適応電力管理
US9886882B2 (en) Grayscale compensation method
WO2019238071A1 (zh) 色域转换方法、色域转换器、显示装置、图像信号转换方法、计算机设备和非暂时性存储介质
US10347198B2 (en) Image displaying methods and display devices
TWI443639B (zh) 影像顯示裝置及驅動該影像顯示裝置的方法
US10210788B2 (en) Displaying method and display with subpixel rendering
WO2017101534A1 (zh) 液晶显示屏的色彩信号转换方法及装置
TWI545963B (zh) 色域映射方法及其裝置
WO2019206047A1 (zh) 图像数据处理方法及装置、图像显示方法及装置、存储介质和显示设备
US9936182B2 (en) Image generation apparatus, evaluation system, and non-transitory computer readable medium
WO2019080286A1 (zh) 显示装置的驱动方法及显示装置
WO2019080446A1 (zh) 显示装置的驱动方法及显示装置
CN108898987B (zh) 一种灰阶转换方法、灰阶转换装置及显示装置
CN111124404A (zh) 一种自定义颜色的显示方法及系统
WO2019148667A1 (zh) 基于分区背光的高动态对比度图像显示方法及装置
TWI485694B (zh) 影像色彩調整方法與其電子裝置
US9208749B2 (en) Electronic device and method for enhancing readability of an image thereof
CN111615714B (zh) 一种rgb数据的色彩调整方法
US20140146089A1 (en) Controller, display device having the same, and computer readable medium for the same
US20160191914A1 (en) Apparatus and method for controlling display apparatus
US20160335938A1 (en) Apparatus and/or Method and/or Computer Program for Creating Images Adapted for Transreflective Displays
US9704426B2 (en) Display device, display system, and image processing circuit

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20862831

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20862831

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20862831

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20862831

Country of ref document: EP

Kind code of ref document: A1