CN113314079B - Picture display method and device, electronic equipment and storage medium - Google Patents

Picture display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113314079B
CN113314079B CN202110597256.5A CN202110597256A CN113314079B CN 113314079 B CN113314079 B CN 113314079B CN 202110597256 A CN202110597256 A CN 202110597256A CN 113314079 B CN113314079 B CN 113314079B
Authority
CN
China
Prior art keywords
picture
color
processed
converted
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110597256.5A
Other languages
Chinese (zh)
Other versions
CN113314079A (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.)
Shenzhen Guohua Optoelectronics Co Ltd
Original Assignee
Shenzhen Guohua Optoelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Guohua Optoelectronics Co Ltd filed Critical Shenzhen Guohua Optoelectronics Co Ltd
Priority to CN202110597256.5A priority Critical patent/CN113314079B/en
Publication of CN113314079A publication Critical patent/CN113314079A/en
Application granted granted Critical
Publication of CN113314079B publication Critical patent/CN113314079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3433Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using light modulating elements actuated by an electric field and being other than liquid crystal devices and electrochromic devices
    • G09G3/344Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using light modulating elements actuated by an electric field and being other than liquid crystal devices and electrochromic devices based on particles moving in a fluid or in a gas, e.g. electrophoretic devices
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0666Adjustment of display parameters for control of colour parameters, e.g. colour temperature

Abstract

The invention discloses a picture display method, a picture display device, electronic equipment and a storage medium, and relates to the technical field of picture processing, wherein the picture display method comprises the following steps: acquiring an original picture, and converting the original picture into a multicolor picture to be processed; acquiring pixel points to be processed in the multicolor graph to be processed; setting an error diffusion coefficient of the pixel point to be processed in a preset direction; acquiring adjacent pixel points of the pixel points to be processed in the preset direction, and acquiring adjacent pixel values of the adjacent pixel points; calculating new pixel information according to the error diffusion coefficient and the adjacent pixel value; and generating a target multicolor chart according to the new pixel information. The picture display method can effectively reduce the noise of the picture, realize the clear level outline of the picture and enable the display effect of the picture to be more flexible, thereby being suitable for displaying on the color electronic paper ink screen.

Description

Picture display method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image display method and apparatus, an electronic device, and a storage medium.
Background
The color that can present at present of colored electronic paper ink screen is very limited, according to the model difference, some can only show black and white red, some can only show black white yellow. Therefore, for a common picture, if no processing is performed on the common picture, the display effect of the common picture on the electronic paper display screen is hard and poor.
At present, color values corresponding to all pixels of a generated picture are traversed, RGB components of all pixels are calculated, the sum of squares is calculated according to difference values corresponding to all RGB components of all target colors in a selected color list, deviation of each target color is compared, the target color with the minimum deviation value is selected as the target color of the pixel point, and the target picture only containing three colors is generated.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the embodiment of the invention provides a picture display method, which can effectively reduce the noise of pictures, realize the clear level outline of the pictures, and enable the display effect of the pictures to be more flexible, so that the picture display method is suitable for displaying on a color electronic paper ink screen.
The embodiment of the invention also provides a picture display device.
The embodiment of the invention also provides the electronic equipment.
The embodiment of the invention also provides a computer readable storage medium.
The picture display method according to the embodiment of the first aspect of the invention comprises the following steps:
acquiring an original picture, and converting the original picture into a multicolor picture to be processed;
acquiring pixel points to be processed in the multicolor graph to be processed;
setting an error diffusion coefficient of the pixel point to be processed in a preset direction;
acquiring adjacent pixel points of the pixel points to be processed in the preset direction, and acquiring adjacent pixel values of the adjacent pixel points;
calculating new pixel information according to the error diffusion coefficient and the adjacent pixel value;
and generating a target multicolor chart according to the new pixel information.
The picture display method according to the embodiment of the first aspect of the invention has at least the following beneficial effects: firstly, an original picture is obtained, the original picture is converted into a multicolor picture to be processed, then pixel points to be processed in the multicolor picture to be processed are obtained, an error diffusion coefficient of the pixel points to be processed in a preset direction is set, adjacent pixel points of the pixel points to be processed in the preset direction are obtained, adjacent pixel values of the adjacent pixel points are obtained, new pixel information is calculated according to the error diffusion coefficient and the adjacent pixel values, and finally a target multicolor picture is generated according to the new pixel information.
According to some embodiments of the invention, the converting the original picture into a to-be-processed multicolor map comprises: acquiring color parameters of the original picture; preprocessing the original picture according to the color parameters to obtain a picture to be converted; acquiring a color component value to be converted of the picture to be converted and a target color component value corresponding to the selected color; and converting the picture to be converted into a multicolor picture to be processed according to the color component value to be converted and the target color component value.
According to some embodiments of the present invention, the preprocessing the original picture according to the color parameters to obtain a picture to be converted includes: extracting a first pixel value from the color parameter; and preprocessing the first pixel value in the original picture to obtain the picture to be converted.
According to some embodiments of the invention, the selected colors comprise: a first color, a second color, and a third color; the object color component values include: a first component value, a second component value, and a third component value; the converting the picture to be converted into a polychrome to be processed according to the color component values to be converted and the object color component values comprises: respectively calculating a first difference value of the color component value to be converted and the first component value, a second difference value of the color component value to be converted and the second component value, and a third difference value of the color component value to be converted and the third component value; selecting a target color from the first color, the second color and the third color according to the magnitude relation of the first difference, the second difference and the third difference; and converting the picture to be converted into a multicolor picture to be processed according to the target color.
According to some embodiments of the invention, the calculating new pixel information from the error diffusion coefficient and the neighboring pixel value comprises: and adding the error diffusion coefficient and the adjacent pixel value to form the new pixel information.
According to some embodiments of the invention, after calculating the new pixel information according to the error diffusion coefficient and the neighboring pixel value, further comprising: and executing the step of obtaining the pixel points to be processed in the multicolor chart to be processed until the multicolor chart to be processed is traversed.
According to some embodiments of the invention, the method further comprises: and outputting the target multicolor chart.
A picture display device according to an embodiment of a second aspect of the present invention includes:
the device comprises a first acquisition module, a second acquisition module and a processing module, wherein the first acquisition module is used for acquiring an original picture and converting the original picture into a multicolor picture to be processed;
the second acquisition module is used for acquiring the pixel points to be processed in the multicolor chart to be processed;
the setting module is used for setting the error diffusion coefficient of the pixel point to be processed in the preset direction;
the third acquisition module is used for acquiring adjacent pixel points of the pixel points to be processed in the preset direction and acquiring adjacent pixel values of the adjacent pixel points;
the calculation module is used for calculating new pixel information according to the error diffusion coefficient and the adjacent pixel value;
and the generating module is used for generating a target multicolor chart according to the new pixel information.
According to the picture display device of the embodiment of the second aspect of the invention, at least the following beneficial effects are achieved: by executing the picture display method of the embodiment of the first aspect of the invention, the noise of the picture can be effectively reduced, the clear level outline of the picture is realized, and the display effect of the picture is more flexible, so that the picture display method is suitable for displaying on a color electronic paper ink screen.
An electronic device according to an embodiment of the third aspect of the invention includes: at least one processor, and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions that are executed by the at least one processor, so that the at least one processor, when executing the instructions, implements the picture display method according to the first aspect.
According to the electronic device of the embodiment of the third aspect of the invention, at least the following beneficial effects are achieved: by executing the picture display method in the embodiment of the first aspect of the invention, the noise of the picture can be effectively reduced, the level outline of the picture is clear, and the display effect of the picture is more flexible, so that the picture display method is suitable for being displayed on a color electronic paper ink screen.
According to a fourth aspect of the present invention, there is provided a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the picture display method according to the first aspect.
The computer-readable storage medium according to the fourth aspect of the present invention has at least the following advantages: by executing the picture display method in the embodiment of the first aspect of the invention, the noise of the picture can be effectively reduced, the level outline of the picture is clear, and the display effect of the picture is more flexible, so that the picture display method is suitable for being displayed on a color electronic paper ink screen.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart illustrating a method for displaying a picture according to an embodiment of the present invention;
FIG. 2a is a schematic diagram of a universal three-color chart according to an embodiment of the present invention;
FIG. 2b is a schematic diagram of a target multi-color map according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a picture display device according to an embodiment of the present invention;
fig. 4 is a functional block diagram of an electronic device according to an embodiment of the invention.
Reference numerals are as follows:
the system comprises a first acquisition module 300, a second acquisition module 310, a setting module 320, a third acquisition module 330, a calculation module 340, a generation module 350, a processor 400, a memory 410, a data transmission module 420, a camera 430 and a display screen 440.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
Referring to fig. 1, a picture display method according to an embodiment of the first aspect of the present invention includes:
step S100, obtaining an original picture, and converting the original picture into a multicolor picture to be processed.
Wherein, the original picture can be a picture to be displayed on a color electronic paper ink screen (such as a three-color electronic paper ink screen); the multi-color picture to be processed can be a picture which converts a common original picture into special two colors, three colors or multiple colors and is well displayed on the price label of the electronic paper. Optionally, the original picture may be converted into a three-color electronic image or a four-color electronic image, taking a three-color electronic paper ink screen as an example, because the color that can be presented by a color electronic paper ink screen is very limited, some electronic paper ink screens can only display black and white and red, and some electronic paper ink screens can only display black, white and yellow, the original picture needs to be preprocessed into the three-color picture, so that the picture can be displayed on the three-color electronic paper ink screen. Specifically, the blue-green pixels of the original picture in the RGB format can be preprocessed to effectively fade the background and highlight the character main body, and then the preprocessed picture is converted into a black-white-red three-color picture according to a certain mode to obtain a multicolor picture to be processed; taking four-color electronic paper as an example, the blue-green pixels of the original picture in the RGB format can be preprocessed, and then the preprocessed picture is converted into a four-color picture according to a certain mode, so as to obtain a multi-color picture to be processed.
Step S110, obtaining pixel points to be processed in the multicolor chart to be processed.
The pixel points to be processed can be selected pixel points in the multicolor chart to be processed. Optionally, a certain pixel point in the multicolor chart to be processed can be selected as a pixel point to be processed, the pixel point a is taken as a pixel point to be processed, pixel error information is transmitted to the pixel points (downwards, leftwards and rightwards) around the pixel point a in different modes, and new pixel information is calculated; then, the B pixel point can be treated as a pixel point to be treated, and the C pixel point is treated … … as a pixel point to be treated until each pixel point in the multicolor chart to be treated is traversed.
Step S120, setting an error diffusion coefficient of the pixel point to be processed in a preset direction.
Wherein, the preset direction may include: right, lower left, lower right; the error diffusion coefficient may be pixel error information set according to a demand. Optionally, the preset direction may be a downward direction, a left direction, and a right direction, and the preset direction may be one of the right direction, the lower left direction, and the lower right direction, and the preset direction is the right direction, and then the error diffusion coefficient γ of the pixel point to be processed in the right direction may be set1(ii) a If the preset direction is set to be lower, the error diffusion coefficient gamma of the pixel point to be processed in the lower direction can be set2
Step S130, obtaining an adjacent pixel point of the pixel point to be processed in the preset direction, and obtaining an adjacent pixel value of the adjacent pixel point.
Wherein, the adjacent pixel points can be adjacent pixel points of the pixel point to be processed in the preset direction, and the adjacent pixel points are processed through each presetAdjacent pixel points in the set direction can form peripheral pixel points of the pixel points to be processed; the neighboring pixel values may be pixel values corresponding to the neighboring pixel points. Optionally, assuming that the preset direction is right, the error diffusion coefficient in the preset direction is set to be γ1Then, the pixel point adjacent to the pixel point to be processed in the right can be obtained as the adjacent pixel point, and the pixel value α of the pixel point is obtained1(ii) a Assuming the preset direction is lower, the error diffusion coefficient in the preset direction is set as gamma2Then, the adjacent pixel point below the pixel point to be processed can be obtained as the adjacent pixel point, and the pixel value α of the pixel point is obtained2
In step S140, new pixel information is calculated according to the error diffusion coefficient and the adjacent pixel value.
Optionally, let the error diffusion coefficient be γ1Adjacent pixel value is alpha1Then the error diffusion coefficient gamma can be set1And adjacent pixel value alpha1Adding to form new pixel information; let the error diffusion coefficient be gamma2Adjacent pixel value is alpha2Then the error diffusion coefficient gamma can be set2And adjacent pixel value alpha2And adding to form new pixel information. And continuously diffusing the image to the periphery in the mode to finally form new image pixel point information.
And step S150, generating a target multicolor chart according to the new pixel information.
Optionally, new pixel point information of the picture can be obtained after all the to-be-processed pixel points in the to-be-processed multicolor picture are processed, and then a new multicolor picture can be formed according to the new pixel information. As shown in fig. 2a and fig. 2b, fig. 2a is a general tristimulus map, which is a tristimulus map obtained by a general method (for example, calculating RGB components of each pixel, respectively summing up the squared difference values corresponding to the RGB components of each target color in a selected color list, comparing the squared difference values with the deviation of each target color, selecting the target color with the minimum deviation value as the target color of the pixel point, and generating a target picture containing only three colors), wherein the picture displayed in fig. 2a has no contour, no gray scale change, cloud and fog with a large difference from the original picture; fig. 2b is a processed target multicolor image, and the image forms a gray scale change by using human visual error, has clear gradation outline, effectively reduces noise points of the image, makes the display effect of the image more flexible, and is suitable for being displayed on a color electronic paper ink screen.
The image display method comprises the steps of firstly, obtaining an original image, converting the original image into a multicolor image to be processed, then obtaining pixel points to be processed in the multicolor image to be processed, setting error diffusion coefficients of the pixel points to be processed in a preset direction, obtaining adjacent pixel points of the pixel points to be processed in the preset direction, obtaining adjacent pixel values of the adjacent pixel points, then calculating new pixel information according to the error diffusion coefficients and the adjacent pixel values, and finally generating a target multicolor image according to the new pixel information.
In some embodiments of the present invention, converting an original picture into a to-be-processed multicolor picture comprises:
and acquiring the color parameters of the original picture. Wherein, the color parameter of the original picture can be the RGB value of the original picture. Alternatively, the original picture may be a picture in RGB format, and R, G, B values of the original picture may be obtained to obtain the color parameters of the original picture.
And preprocessing the original picture according to the color parameters to obtain the picture to be converted. Alternatively, for a person picture with a background, if the main effect of the person is to be highlighted, the blue-green color of the original image needs to be reduced (i.e., the cool tone is reduced). Therefore, blue-green pixel preprocessing can be carried out on the original picture to obtain the picture to be converted.
And acquiring the color component value to be converted of the picture to be converted and the target color component value corresponding to the selected color. The color component value to be converted may be an RGB value in the picture to be converted; the selected color can be a black-white red color disc (the color disc comprises three groups of black, white and red), or other multi-color discs, such as a two-color disc and a four-color disc; the object color component values may be the RGB individual components of each color of black and white red in the color wheel. Optionally, taking the three-color chart as an example, the selected color may be a black-white-red three-color disc, and the object color component values may be component values corresponding to black, component values corresponding to white, and component values corresponding to red.
And converting the picture to be converted into the multicolor picture to be processed according to the color component value to be converted and the target color component value. Optionally, if the selected color is a black-white-red three-color disc, the picture to be converted may be converted into a black-white-red three-color image; if the selected color is a four-color disc, the picture to be converted can be converted into a four-color picture, taking the selected color as a black-white-red three-color disc as an example: after the blue-green pixel value is preprocessed, the to-be-converted picture in the RGB format can be converted into a black-white-red three-color picture in a certain manner according to the preprocessed to-be-converted color component value and the preprocessed target color component value, for example, the to-be-converted color component value and the target color component value of a certain pixel point on the to-be-converted picture can be calculated, and whether the color of the pixel point is biased to be in black and white or red of a color disc is judged, if the color of the pixel point is biased to be in black, the black color value can be set as the value of the pixel point, that is, the pixel point is processed to be in black; if the color of another pixel point on the picture to be converted is biased to red, the color value of the red can be set as the value of the pixel point, that is, the pixel point is processed to red; by analogy, each pixel point in the picture to be converted can be converted, so that the picture to be converted can be converted into the three-color image, and the multi-color image to be processed can be obtained. The picture to be converted is obtained by preprocessing the blue-green pixel value of the original picture, so that the background can be effectively lightened, the main body is highlighted, and the picture conversion method is very suitable for displaying pictures containing characters; and then the picture to be converted can be converted into a multicolor picture to be processed, and the processing efficiency is improved.
In some embodiments of the present invention, preprocessing an original picture according to color parameters to obtain a picture to be converted includes:
a first pixel value is extracted from the color parameters. The first pixel value may refer to a cyan pixel value. Optionally, as shown in fig. 2a, the common three-color chart has a very poor display effect on the color electronic paper ink screen, and the displayed picture has no outline, no gray scale change, and much picture noise. Therefore, in the picture including the person, since the blue-green color of the original image can be reduced (i.e., the cool tone can be reduced) and the main body effect of the person can be emphasized, the blue-green pixel value can be extracted from the RGB component values of the original picture and preprocessed.
And preprocessing the first pixel value in the original picture to obtain the picture to be converted. Optionally, the blue-green pixel values in the original picture may be preprocessed, for example, the blue-green pixel values of the original picture are respectively: if blue B is 250 and green G is 250, the original picture is preprocessed, for example, the blue-green pixel value is respectively reduced by 5% and 8%, and the blue-green pixel values of the preprocessed picture to be converted are respectively: b-237 and G-230. Through carrying out blue-green pixel's preliminary treatment to original picture, can effectively fade the background, the outstanding personage main part is very suitable for the demonstration that contains the personage picture.
In some embodiments of the invention, the selected colors include: a first color, a second color, and a third color; the object color component values include: a first component value, a second component value, and a third component value. The selected color may be a two-color, three-color, four-color or multi-color disc, and the embodiment of the present invention takes a three-color electronic diagram as an example, the first color may be black, the second color may be white, and the third color may be red; the first component value may be an RGB value of the selected color black, the second component value may be an RGB value of the selected color red, and the third component value may be an RGB value of the selected color white.
Converting the picture to be converted into the multicolor picture to be processed according to the color component value to be converted and the target color component value, comprising:
and respectively calculating a first difference value of the color component value to be converted and the first component value, a second difference value of the color component value to be converted and the second component value, and a third difference value of the color component value to be converted and the third component value. Wherein the first difference value may be a difference value between the color component value to be converted and the first component value; the second difference value may be a difference value between the color component value to be converted and the second component value; third difference valueMay be the difference between the color component value to be converted and the third component value. Optionally, the sum of squares of differences between the RGB values of the pixel points of the picture to be converted, which are preprocessed by the cyan pixels, and the RGB values of the black and white in the color wheel may be taken to obtain a first difference value, a second difference value, and a third difference value, for example: setting the color component value to be converted after the blue-green pixel preprocessing as x1(x1Comprising R, G, B three components), the first component value being y1(y1Comprising R1、G1And B1Three components), a second component value of y2(y2Comprising R2、G2And B2Three components), a third component value of y3(y3Comprising R3、G3And B3Three components), the first difference z1=(R-R1)2+(G-G1)2+(B-B1)2Second difference z2=(R-R2)2+(G-G2)2+(B-B2)2The third difference z3=(R-R3)2+(G-G3)2+(B-B3)2
And selecting the target color from the first color, the second color and the third color according to the magnitude relation of the first difference, the second difference and the third difference. Alternatively, the first difference z may be1The second difference z2And a third difference z3The comparison is made to select the smallest set of differences, e.g. assuming z2<z1<z3Then z can be determined2At minimum, the color of the pixel point is biased to white in black and white and red of the color disc, so that a second color (white) can be selected as the target color of the target pixel point, and the value of the second color can be set as the value of the target pixel point; let z1<z3<z2Then z can be determined1At minimum, the color of the target pixel point is biased to black in black and white and red of a color disc, so that a first color (black) can be selected as the target color of the target pixel point, and the value of the first color can be set as the value of the target pixel point; let z3<z1<z2Then z can be determined3At minimum, it indicates that the color of the target pixel is biased to the red of the black and white of the color wheel, so the third color (red) can be selected as the target color of the target pixel, and the value of the third color can be set as the value of the target pixel. And sequentially determining the target color of each pixel point of the original picture.
And converting the picture to be converted into the multicolor picture to be processed according to the target color. Optionally, after determining the target color and the corresponding value corresponding to each pixel point in the to-be-converted picture, the to-be-converted color component values of the pixel points may be converted into the values of the target color, and each pixel point is sequentially converted, so that the to-be-converted picture may be converted into a three-color picture, that is, a to-be-processed multicolor picture including three colors of black, white and red. The color deviation of each pixel point is determined through calculation, the pixel points are converted according to the value of the target color, and after the pixel points are sequentially converted, the to-be-converted picture can be converted into the to-be-processed multicolor picture, so that the processing efficiency is improved.
In some embodiments of the present invention, calculating new pixel information from the error diffusion coefficients and the neighboring pixel values comprises:
and adding the error diffusion coefficient and the adjacent pixel value to form new pixel information. Optionally, for the selected pixel point to be processed, pixel error information is transmitted by surrounding pixel points (downward, leftward and rightward) according to different modes, and then the error information (i.e., the set error diffusion coefficient) is added to adjacent pixel values of the surrounding pixel points to form new pixel information, so as to obtain the new pixel information. The noise of the picture can be effectively reduced by setting a proper error diffusion coefficient, so that the display effect of the picture containing new pixel information is more flexible.
In some embodiments of the present invention, after calculating the new pixel information according to the error diffusion coefficient and the neighboring pixel value, the method further includes:
and executing the step of obtaining the pixel points to be processed in the multicolor chart to be processed until the multicolor chart to be processed is traversed. Optionally, after calculating new pixel information of the pixel point to be processed (the pixel point a is set as the pixel point to be processed) on the right side, new pixel information of the pixel point a on the lower side, the lower left side, the lower right side can be continuously calculated to obtain new pixel information of the pixel point a and the surrounding pixel points, then the pixel point B in the multicolor chart to be processed can be selected as the pixel point to be processed, new pixel information of the pixel point B and the surrounding pixel points can be calculated until each pixel point in the multicolor chart to be processed is traversed to obtain new pixel information corresponding to each pixel point, and the new pixel information is continuously diffused to the surrounding in the mode to finally form new pixel point information of the picture.
In some embodiments of the present invention, the picture display method further includes:
and outputting the target multicolor chart. Optionally, taking the three-color image as an example, the target multi-color image may be a target image containing only three colors. The new black, white and red images can be displayed on the price label of the color electronic paper, as shown in fig. 2b, the target multicolor image forms a gray scale change by using the visual error of human eyes, the gradation outline is clear, and the method is suitable for displaying on the ink screen of the color electronic paper.
Referring to fig. 3, a picture display device according to an embodiment of the second aspect of the present invention includes:
a first obtaining module 300, configured to obtain an original picture, and convert the original picture into a to-be-processed multicolor map;
a second obtaining module 310, configured to obtain a pixel point to be processed in the multicolor chart to be processed;
the setting module 320 is configured to set an error diffusion coefficient of the pixel point to be processed in a preset direction;
a third obtaining module 330, configured to obtain an adjacent pixel point of the to-be-processed pixel point in the preset direction, and obtain an adjacent pixel value of the adjacent pixel point;
a calculating module 340, configured to calculate new pixel information according to the error diffusion coefficient and the adjacent pixel value;
and a generating module 350, configured to generate the target multicolor map according to the new pixel information.
By implementing the picture display method of the first aspect of the present invention, the picture display device can effectively reduce the noise of the picture, realize the clear hierarchical outline of the picture, make the display effect of the picture more flexible, and thus is suitable for displaying on the color electronic paper ink screen.
Referring to fig. 4, an embodiment of the third aspect of the present invention further provides a functional module diagram of an electronic device, including: at least one processor 400, and a memory 410 communicatively coupled to the at least one processor 400; and the system also comprises a data transmission module 420, a camera 430 and a display screen 440.
The processor 400 is configured to execute the picture display method in the first embodiment by calling a computer program stored in the memory 410.
The data transmission module 420 is connected to the processor 400, and is used for implementing data interaction between the data transmission module 420 and the processor 400.
The cameras 430 may include a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera 430 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp and can be used for light compensation under different color temperatures.
The display screen 440 may be used to display information entered by the user or provided to the user. The Display screen 440 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel may cover the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel transmits the touch operation to the processor 400 to determine the type of the touch event, and then the processor 400 provides a corresponding visual output on the display panel according to the type of the touch event. In some embodiments, the touch panel may be integrated with the display panel to implement input and output functions.
The memory, as a non-transitory storage medium, may be used to store a non-transitory software program and a non-transitory computer-executable program, such as the picture display method in the embodiment of the first aspect of the present invention. The processor implements the picture display method in the above-described first embodiment by running a non-transitory software program and instructions stored in the memory.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store the picture display method in the embodiment of the first aspect. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The non-transitory software programs and instructions needed to implement the picture display method in the first aspect embodiment described above are stored in a memory and, when executed by one or more processors, perform the picture display method in the first aspect embodiment described above.
Embodiments of the fourth aspect of the present invention also provide a computer-readable storage medium storing computer-executable instructions for: the picture display method in the embodiment of the first aspect is performed.
In some embodiments, the storage medium stores computer-executable instructions, which are executed by one or more control processors, for example, by one of the processors in the electronic device of the third aspect, and may cause the one or more processors to execute the picture display method in the first aspect.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
One of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (10)

1. The picture display method is characterized by comprising the following steps:
acquiring an original picture, and converting the original picture into a multicolor picture to be processed;
acquiring pixel points to be processed in the multicolor graph to be processed;
setting an error diffusion coefficient of the pixel point to be processed in a preset direction;
acquiring adjacent pixel points of the pixel points to be processed in the preset direction, and acquiring adjacent pixel values of the adjacent pixel points;
calculating new pixel information according to the error diffusion coefficient and the adjacent pixel value;
and generating a target multicolor chart according to the new pixel information.
2. The method according to claim 1, wherein said converting the original picture into the multi-color map to be processed comprises:
acquiring color parameters of the original picture;
preprocessing the original picture according to the color parameters to obtain a picture to be converted;
acquiring a color component value to be converted of the picture to be converted and a target color component value corresponding to the selected color;
and converting the picture to be converted into a multicolor picture to be processed according to the color component value to be converted and the target color component value.
3. The method according to claim 2, wherein said pre-processing the original picture according to the color parameters to obtain a picture to be converted comprises:
extracting a first pixel value from the color parameter;
and preprocessing the first pixel value in the original picture to obtain the picture to be converted.
4. The method of claim 2, wherein the selected color comprises: a first color, a second color, and a third color; the object color component values include: a first component value, a second component value, and a third component value;
said converting said picture to be converted into a to-be-processed polychrome according to said color component values to be converted and said target color component values comprises:
respectively calculating a first difference value of the color component value to be converted and the first component value, a second difference value of the color component value to be converted and the second component value, and a third difference value of the color component value to be converted and the third component value;
selecting a target color from the first color, the second color and the third color according to the magnitude relation of the first difference, the second difference and the third difference;
and converting the picture to be converted into a multicolor picture to be processed according to the target color.
5. The method of claim 1, wherein said calculating new pixel information from said error diffusion coefficients and said neighboring pixel values comprises:
and adding the error diffusion coefficient and the adjacent pixel value to form the new pixel information.
6. The method of claim 5, further comprising, after said calculating new pixel information from said error diffusion coefficients and said neighboring pixel values:
and executing the step of obtaining the pixel points to be processed in the multicolor chart to be processed until the multicolor chart to be processed is traversed.
7. The method of claim 1, further comprising:
and outputting the target multicolor chart.
8. A picture display device, comprising:
the device comprises a first acquisition module, a second acquisition module and a processing module, wherein the first acquisition module is used for acquiring an original picture and converting the original picture into a multicolor picture to be processed;
the second acquisition module is used for acquiring to-be-processed pixel points in the to-be-processed multicolor image;
the setting module is used for setting the error diffusion coefficient of the pixel point to be processed in the preset direction;
the third acquisition module is used for acquiring adjacent pixel points of the pixel points to be processed in the preset direction and acquiring adjacent pixel values of the adjacent pixel points;
the calculation module is used for calculating new pixel information according to the error diffusion coefficient and the adjacent pixel value;
and the generating module is used for generating a target multicolor chart according to the new pixel information.
9. An electronic device, comprising:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions for execution by the at least one processor to cause the at least one processor, when executing the instructions, to implement the picture display method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the storage medium stores computer-executable instructions for causing a computer to execute the picture display method according to any one of claims 1 to 7.
CN202110597256.5A 2021-05-31 2021-05-31 Picture display method and device, electronic equipment and storage medium Active CN113314079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110597256.5A CN113314079B (en) 2021-05-31 2021-05-31 Picture display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110597256.5A CN113314079B (en) 2021-05-31 2021-05-31 Picture display method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113314079A CN113314079A (en) 2021-08-27
CN113314079B true CN113314079B (en) 2022-06-24

Family

ID=77376154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110597256.5A Active CN113314079B (en) 2021-05-31 2021-05-31 Picture display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113314079B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113934485A (en) * 2021-09-06 2022-01-14 青岛海信移动通信技术股份有限公司 Terminal device and interface display method
CN114494469A (en) * 2022-01-29 2022-05-13 京东方科技集团股份有限公司 Image processing method, device, equipment and storage medium
CN115565496B (en) * 2022-09-22 2023-05-26 广州文石信息科技有限公司 Page noise reduction method and device, storage medium and electronic ink screen equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006074809A (en) * 1996-02-29 2006-03-16 Seiko Epson Corp Image processor and image processing method
CN105761683A (en) * 2016-04-21 2016-07-13 深圳市国华光电科技有限公司 Image processing method for electrophoresis display
CN111161683A (en) * 2020-01-03 2020-05-15 京东方科技集团股份有限公司 Image processing method, image processor and display device
CN112598585A (en) * 2020-12-07 2021-04-02 京东方科技集团股份有限公司 Color image processing method and device, electronic ink screen and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4797308B2 (en) * 2001-09-27 2011-10-19 ブラザー工業株式会社 Image processing apparatus and image processing program
JP2005253068A (en) * 2004-03-03 2005-09-15 Oce Technologies Bv System and method for processing multicolor image
JP4293044B2 (en) * 2004-04-21 2009-07-08 ブラザー工業株式会社 Image forming apparatus, image forming method, and image forming program
JP4127309B2 (en) * 2006-12-06 2008-07-30 富士ゼロックス株式会社 Image processing apparatus, multicolor image forming apparatus, and image processing program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006074809A (en) * 1996-02-29 2006-03-16 Seiko Epson Corp Image processor and image processing method
CN105761683A (en) * 2016-04-21 2016-07-13 深圳市国华光电科技有限公司 Image processing method for electrophoresis display
CN111161683A (en) * 2020-01-03 2020-05-15 京东方科技集团股份有限公司 Image processing method, image processor and display device
CN112598585A (en) * 2020-12-07 2021-04-02 京东方科技集团股份有限公司 Color image processing method and device, electronic ink screen and storage medium

Also Published As

Publication number Publication date
CN113314079A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
CN113314079B (en) Picture display method and device, electronic equipment and storage medium
TWI678586B (en) System for producing a color image, method for estimating and achievable gamut in a color electro-optic display, method of rendering a set of color image data on a color display device, image rendering system and docking station
JP3095818B2 (en) Method and apparatus for mapping a color image to a black and white image
JP2020173451A5 (en)
CN101061704B (en) Color adjusting device and method
JP2020514807A5 (en)
JP6614859B2 (en) Display device, display device control method, image processing device, program, and recording medium
US8290252B2 (en) Image-based backgrounds for images
JP5063607B2 (en) Method and apparatus for processing pixel signals for driving a display, and display using the signals
JP2006191607A (en) Color interpolation method for digital photographing apparatus
US20080055478A1 (en) Maintenance Of Hue In A Saturation-Controlled Color Image
JP2008107507A (en) Video data converter and video display apparatus
CN107862672A (en) The method and device of image defogging
CN116597789B (en) Picture display method, device and equipment of color ink screen and storage medium
JP2005181639A (en) Optical propagation characteristic controller, optical display device, optical propagation characteristic control program, optical display device control program, optical propagation characteristic control method, and optical display device control method
CN104010134B (en) For forming the system and method with wide dynamic range
US20220067890A1 (en) Detail Reconstruction for SDR-HDR Conversion
US6535635B1 (en) Error clipping for vector error diffusion
US7224833B2 (en) Method for fast color saturation control
CN113626395A (en) Data compression method and device, electronic equipment and storage medium
US20020113800A1 (en) Method of creating a full color display
CN110533729A (en) Intelligent terminal, pixel processing method and computer readable storage medium
Tabakov Introduction to vision, colour models, and image compression
CN107591142B (en) Method and device for regulating and controlling picture display quality and storage medium
CN112259034B (en) Method and apparatus for presenting color images

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20210827

Assignee: Guangxian Technology (Guangdong) Co.,Ltd.

Assignor: SHENZHEN GUOHUA OPTOELECTRONICS Co.,Ltd.

Contract record no.: X2023980038181

Denomination of invention: Image display method, device, electronic device, and storage medium

Granted publication date: 20220624

License type: Exclusive License

Record date: 20230718

EE01 Entry into force of recordation of patent licensing contract