CN112114929B - Display device and image display method thereof - Google Patents

Display device and image display method thereof Download PDF

Info

Publication number
CN112114929B
CN112114929B CN202011053819.6A CN202011053819A CN112114929B CN 112114929 B CN112114929 B CN 112114929B CN 202011053819 A CN202011053819 A CN 202011053819A CN 112114929 B CN112114929 B CN 112114929B
Authority
CN
China
Prior art keywords
color
image
value
display device
color value
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
CN202011053819.6A
Other languages
Chinese (zh)
Other versions
CN112114929A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN202011053819.6A priority Critical patent/CN112114929B/en
Publication of CN112114929A publication Critical patent/CN112114929A/en
Application granted granted Critical
Publication of CN112114929B publication Critical patent/CN112114929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses display equipment and an image display method thereof, and relates to the technical field of display. The display device may display the first image on an image preview interface having a color value of a background color that differs from a color value of the first image by less than a difference threshold. That is, the background color of the image preview interface can be adaptively changed along with the color of the preview image, and compared with the phenomenon that the background color of the image preview interface in the related art is only black or white and other single colors, the method provided by the embodiment of the application improves the flexibility of image display and enriches the display effect of the image preview interface.

Description

Display device and image display method thereof
Technical Field
The application relates to the technical field of display, in particular to display equipment and an image display method thereof.
Background
A user of the display device may click on a target image in a gallery of the display device. Accordingly, the display device may display the target image in its image preview interface to enable the user to preview the target image.
However, the background color of the image preview interface of the display device is generally black or white, and the background color is relatively single, resulting in lower flexibility of image display.
Disclosure of Invention
The application provides a display device and an image display method thereof, which can solve the problem of lower flexibility of image display in the related art. The technical scheme is as follows:
in one aspect, a display device is provided, the display device including a processor and a display screen; the processor is configured to:
receiving a first display instruction for a first image of the plurality of images;
and responding to the first display instruction, displaying the first image in an image preview interface of the display screen, wherein the difference value between a first color value of a background color of the image preview interface and a color value of the first image is smaller than a difference threshold value.
Optionally, the processor is further configured to:
receiving a second presentation instruction for a second image of the plurality of images;
responding to the second display instruction, and if the color value of the second image is different from the color value of the first image, adjusting the background color of the image preview interface, wherein the difference value between the adjusted second color value of the background color of the image preview interface and the color value of the second image is smaller than the difference value threshold;
and displaying the second image in an image preview interface of the display screen.
Optionally, the processor is configured to:
and gradually changing the color value of the background color of the image preview interface from the first color value to the second color value.
Optionally, the processor is further configured to:
and if the background color automatic adjustment function of the image preview interface is determined to be started, adjusting the color value of the background color of the image preview interface to be the first color value according to the color value of the first image.
Optionally, the processor is configured to:
and adjusting the color value of the first image according to the target tone in the multiple different types of tones to obtain a first color value of the background color.
Optionally, the first image includes a plurality of pixels, and a color value of the first image is an average value of color values of each pixel in the first image;
and the first color value of the background color of the image preview interface is equal to the color value of the first image.
Optionally, the processor is configured to:
if the number of the types of the color values of the pixels in the first image is smaller than a number threshold, determining an average value of the color values of the pixels in the first image as the color value of the first image;
if the number of the types of the color values of each pixel in the first image is not smaller than a number threshold, a median segmentation algorithm is adopted to segment the color values of each pixel in the first image until the number of the types of the color values after segmentation is smaller than the number threshold;
And determining the average value of the color values after segmentation as the color value of the first image.
Optionally, the gray level number of each of the plurality of base color values included in the color value of each pixel in the first image is a first gray level number; the processor is configured to:
determining a color value of each pixel under a second gray level number, wherein the second gray level number is smaller than the first gray level number;
determining a color value of the first image according to the color values of the pixels in the second gray level series;
determining a color value of the first image at the first gray scale level;
and determining a first image color value of the background color of the image preview interface under the first gray level number based on the color value of the first image under the first gray level number.
In another aspect, there is provided an image display method of a display device, the method including:
receiving a first display instruction for a first image of the plurality of images;
and responding to the first display instruction, displaying the first image in an image preview interface, wherein the difference value between a first color value of a background color of the image preview interface and a color value of the first image is smaller than a difference threshold value.
Optionally, the method further comprises:
receiving a second presentation instruction for a second image of the plurality of images;
responding to the second display instruction, and if the color value of the second image is different from the color value of the first image, adjusting the background color of the image preview interface, wherein the difference value between the adjusted second color value of the background color of the image preview interface and the color value of the second image is smaller than the difference value threshold;
and displaying the second image on the image preview interface.
In still another aspect, there is provided a display apparatus including: the image display device comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the image display method of the display device according to the aspect when executing the computer program.
In yet another aspect, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements an image display method of a display device as described in the above aspect.
In a further aspect, there is provided a computer program product containing instructions which, when run on the computer, cause the computer to perform the image display method of the display device of the above aspect.
The technical scheme provided by the application has the beneficial effects that at least:
the application provides a display device and an image display method thereof, wherein the display device can display a first image on an image preview interface, and the difference value between the color value of the background color of the image preview interface and the color value of the first image is smaller than a difference threshold value. That is, the background color of the image preview interface can be adaptively changed along with the color of the preview image, and compared with the phenomenon that the background color of the image preview interface in the related art is only black or white and other single colors, the method provided by the embodiment of the application improves the flexibility of image display and enriches the display effect of the image preview interface.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of image display of a display device according to an embodiment of the present application;
FIG. 2 is a flow chart of another image display of a display device provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of an interface of an image preview application of a display device according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for determining a first color value of a background color of an image preview interface based on a color value of a first image according to an embodiment of the present application;
FIG. 5 is a flowchart of another method for determining a first color value of a background color of an image preview interface based on a color value of a first image according to an embodiment of the present application;
FIG. 6 is a schematic illustration of a first image displayed in an image preview interface in the related art;
FIG. 7 is a schematic view of a first image displayed in another image preview interface in the related art;
FIG. 8 is a schematic diagram of a first image displayed in an image preview interface according to an embodiment of the present application;
FIG. 9 is a schematic diagram of an interface for background color switching of an image preview interface when switching from a first image to a second image according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a display device according to an embodiment of the present application;
fig. 11 is a software block diagram of a display device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings.
The embodiment of the application provides an image display method of a display device, which can be applied to the display device. Alternatively, the display device may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, a wearable device, etc., for example, the display device may be a mobile phone. Moreover, the operating system of the display device may be an Android operating system, a Linux operating system, a Windows operating system, or the like, for example, the operating system of the display device may be an Android operating system. Referring to fig. 1, the method may include:
step 101, a first display instruction for a first image of a plurality of images is received.
An image preview application may be installed in the display device, and the display device may display a plurality of images after running the image preview application. The user may touch a first image of the plurality of images, and correspondingly, the display device may receive a first presentation instruction for the first image.
Alternatively, the first presentation instruction may be a display instruction, or the first presentation instruction may be a play instruction.
Step 102, in response to the first display instruction, displaying the first image in an image preview interface.
After receiving the first display instruction, the display device may display the first image in an image preview interface of the display device in response to the first display instruction.
The difference between the first color value of the background color of the image preview interface and the color value of the first image may be less than a difference threshold. That is, the color of the image preview interface may be similar to the color of the first image. Therefore, the consistency of the overall colors of the first image and the image preview interface can be ensured, and the user can further achieve the effect of immersive preview images.
The difference threshold may be pre-stored in the display device. For example, the difference threshold may be 5. That is, the first color value of the background color of the image preview interface is approximately equal to the color value of the first image, e.g., the first color value may be equal to the color value of the first image.
Because the difference value between the background color of the image preview interface and the color value of the first image is smaller than the difference threshold, namely the background color of the image preview interface can be adaptively changed along with the color of the preview image, compared with the phenomenon that the background color of the image preview interface is only black or white and other single colors in the related technology, the method provided by the embodiment of the application effectively improves the flexibility of image display and enriches the display effect of the image preview interface.
In the embodiment of the application, after receiving the first display instruction for the first image, the display device may determine a first color value of the first image in response to the first display instruction, and determine the first color value of the background color of the image preview interface based on the first color value of the first image. Thereafter, the display device may set a color value of a background color of the image preview interface to a color value of the first image.
In summary, the embodiment of the application provides an image display method of a display device, where the display device may display a first image on an image preview interface, and a difference between a color value of a background color of the image preview interface and a color value of the first image is smaller than a difference threshold. That is, the background color of the image preview interface can be adaptively changed along with the color of the preview image, and compared with the phenomenon that the background color of the image preview interface in the related art is only black or white and other single colors, the method provided by the embodiment of the application improves the flexibility of image display and enriches the display effect of the image preview interface.
Fig. 2 is a flowchart of another image display method of a display device according to an embodiment of the present application, and the method may be applied to a display device. Alternatively, the display device may be a mobile phone, a tablet computer, a notebook computer, a desktop computer, a wearable device, etc., for example, the display device may be a mobile phone. The operating system of the display device may be an android operating system, a Linux operating system, a Windows operating system, or the like, for example, the operating system of the display device may be an android operating system.
In the embodiment of the application, the operating system of the display device is taken as an android operating system as an example, and the image display method of the display device provided by the embodiment of the application is illustrated. Referring to fig. 2, the method may include:
step 201, if a first presentation instruction for a first image of the plurality of images is received, the first image is converted into a bitmap image.
An image preview application may be installed in the display device, and a user of the display device may touch an icon of the image preview application. Accordingly, the display device may run the image preview application in response to a touch operation of the user on the icon of the image preview application, and display a plurality of images. If the user touches a first image of the plurality of images, the display device may receive a first display instruction for the first image. Thereafter, the display device may convert the first image into a bitmap (bitmap) image in response to the first presentation instruction.
The first display instruction may be a display instruction, or the first display instruction may be a play instruction.
Alternatively, the image preview application may be a system application installed in the display device, such as a picture application or an album application. Alternatively, the image preview application may be a third party application installed in the display device.
For example, the display device, after receiving the first presentation instruction for the first image, may execute a command in a bitmap factory (bitmap factory) class to convert the first image into a bitmap image: bitmap field (String file), or command bitmap field (InputStream) to convert the first image into a bitmap image.
The parameter input to the command may be a storage path of the first image when the command bitmap field (decoding file) is executed, and the parameter input to the command may be a storage path or a name of the first image when the command bitmap field (decoding stream) is executed.
Optionally, the display device may display a background color adjustment switch control of the image preview interface after running the image preview application. If the user of the display device needs to automatically adjust the background color of the image preview interface based on the color value of the image in the process of previewing the image, the background color adjustment switch control can be touched. Accordingly, the display device may enable the background color auto-adjustment function of the image preview interface in response to a touch operation of the user to touch the background color adjustment switch control.
If the user does not need to automatically adjust the background color of the image preview interface by the display device in the process of previewing the image, that is, the background color of the image preview interface is the default color value, the background color adjustment switch control is not required to be touched. Wherein the default color value may be black or white.
For example, assuming that the display device is a cell phone, the cell phone may display the interface shown in fig. 3 after running the image preview application. The interface may include a setup control 01, as well as a plurality of images 0a. As can be seen from fig. 3, the mobile phone can sequentially display the plurality of images 0a in order of the storage time of the plurality of images 0a from near to far. Thereafter, the mobile phone can display the background color adjustment switch control 02 and the function information 03 on the background color automatic adjustment in response to the touch operation of the user for the setting control 01.
The user can then touch the background color adjustment switch control 02, and the mobile phone can respond to the touch operation of the user on the switch control 02, so that the background color automatic adjustment function of the image preview interface of the mobile phone is started, and the user can automatically change the color value of the background color of the image preview interface in the process of previewing the image through the mobile phone, so that the color of the image preview interface after the color value change and the color value of the currently displayed image are smaller than a difference threshold value, namely, the color of the image preview interface is matched with the overall color (also can be called as the theme color of the first image) of the currently displayed image. As shown in fig. 3, the function information 03 may be text information "turn on a background color adjustment switch, so that the mobile phone can automatically adjust the background color of the image preview interface in the image preview process.
Step 202, extracting a color value of each pixel in the bitmap image.
After converting the first image into a bitmap image, the display device may extract a color value of each pixel in the bitmap image. The color value is a color value in a first color mode, and the first color mode is a red (R) green (G) blue (B) color mode. Accordingly, the color value of each pixel in the bitmap image extracted by the display device may include a plurality of base color values. For example, the plurality of base color values may be an R value, a G value, and a B value. That is, the R value, the G value, and the B value may constitute a color value of one pixel.
In the embodiment of the application, after the display device converts the first image into the bitmap image, the command bitmap.
Alternatively, the display device may detect whether the resolution of the bitmap image is greater than the resolution of the display screen of the display device before extracting the color values of the respective pixels in the bitmap image. If the resolution of the bitmap image is less than or equal to the resolution of the display screen, the display device may directly extract the color values of the individual pixels in the bitmap image.
If the display device determines that the resolution of the bitmap image is greater than the resolution of the display screen, the resolution of the bitmap image may be adjusted to the resolution of the display screen first, that is, the display device may compress the bitmap image to reduce the resolution of the bitmap image. The display device may then extract the color values of the individual pixels in the resolution-adjusted bitmap image.
For example, the display device may execute a command to resize the bitmap after determining that the resolution of the bitmap image is greater than the resolution of the display screen: the bitmap image size change (resizeBitmapSize (int size)) command adjusts the resolution of the bitmap image to the resolution of the display screen.
The command resizeBitmapSize (int size), when executed, may be a resolution of a display screen, and the parameter may be an integer (int) parameter.
When the display device determines that the resolution of the bitmap image obtained by conversion of the first image is larger than the resolution of the display screen, the resolution of the bitmap image can be adjusted to the resolution of the display screen, and then the color values of the pixels in the bitmap image with the adjusted resolution are extracted. Therefore, on the premise of ensuring the preview effect of the first image, the operation amount of the display device can be effectively reduced, and the efficiency of subsequently determining the first color value of the background color of the image preview interface is improved.
Step 203, determining a color value of each pixel in the second gray level.
In the embodiment of the application, after extracting the color values of the pixels in the bitmap image in the first color mode, the display device can determine the color value of each pixel in the second gray level, that is, can determine each of the plurality of base color values of each pixel in the second gray level. The gray level number of each base color value in the color value of each pixel extracted from the bitmap image by the display device in the first color mode may be the first gray level number.
That is, after extracting each primary color value of each pixel at the first gray scale level, the display device may convert the gray scale level of the primary color value from the first gray scale level to the second gray scale level. And finally, obtaining the color value of each pixel under the second gray level number. The second gray scale level may be less than the first gray scale level. For example, the first gray level of the base color value may be 256 and the second gray level of the base color value may be 32 or 64.
The gray level number of the primary color value may refer to the brightness level that the primary color value can display. For example, if the gray level of the base color value is 256, that is, the number of bits of the base color value is 8 bits (bit), and accordingly, the base color value may have a value range of 0 to 255, the base color value can display 256 kinds of brightness. If the gray level number of the primary color value is 64, that is, the bit number of the primary color value is 6 bits, and correspondingly, the primary color value ranges from 0 to 63, the primary color value can show 64 kinds of brightness. If the gray level number of the primary color value is 32, that is, the bit number of the primary color value is 5 bits, and correspondingly, the primary color value ranges from 0 to 31, the primary color value can show 32 kinds of brightness.
Since the display apparatus can also convert the gray-scale level of the color value of each pixel from the first gray-scale level having a larger number of bits to the second gray-scale level having a smaller number of bits after extracting the color value at the first gray-scale level of each pixel. Therefore, the operation amount of the subsequent display device can be effectively reduced, and the efficiency of determining the first color value of the background color of the image preview interface is improved.
Alternatively, the second gray level of the plurality of base color values of each pixel may be the same, or the second gray level of the plurality of base color values of each pixel may be different. For example, the second gray level number of each primary color value may be 32, and accordingly, the color value composed of the primary color values is a color value in RGB555 format.
Alternatively, the second gray level number of the R value and the B value in the plurality of base color values of each pixel may be 32, and the second gray level number of the g value may be 64. Accordingly, the color value comprised of the primary color values is a color value in RGB565 format.
As can be seen from the above description, in the color values of each pixel extracted from the bitmap image in the first color mode, the gray level number of each base color value may be 256, that is, the color value of each pixel is the color value of RGB888 format. Then, the display device may convert the color value of each RGB888 format into the color value of RGB555 format, or may convert each RGB888 format into the color value of RGB565 format, so as to reduce the operation amount of the display device and improve the determination efficiency of the first color value of the background color of the subsequent image preview interface.
Step 204, detecting whether the number of kinds of color values of the respective pixels is smaller than a number threshold.
After determining the color value of each pixel in the second gray-scale level, the display device may count the number of types of color values of each pixel in the bitmap image, where the number of types of color values may refer to the number of color values different from each other in the color values of each pixel. Thereafter, the display device may detect whether the number of categories of the color value is less than a number threshold. If the display device determines that the number of categories of color values is less than the number threshold, step 205 may be performed. If the display device determines that the number of categories of color values is not less than the number threshold, step 206 may be performed.
Wherein the number threshold may be pre-stored in the display device and the number threshold may be positively correlated with the number of gray scale levels. That is, the higher the number of gray-scale levels of the color value, the greater the number threshold; the lower the gray level number of the color value, the smaller the number threshold. For example, if the number of gray levels is 32, the number threshold may be 4096.
In an alternative implementation, for each of all color values in the second gray level series, the display device may count the number of occurrences of that color value in the bitmap image. Then, the display device may count the number of color values with the occurrence number greater than or equal to 1, where the number of color values with the occurrence number greater than or equal to 1 is the number of types of color values of each pixel in the bitmap image under the second gray level. The display device may count the number of occurrences of the color value in the bitmap image in the form of an array or in the form of a histogram. The data may be a one-dimensional integer array, i.e., a one-dimensional int array.
By way of example, assume that the second gray level number of each pixel is 32, i.e. the color value of the pixel is in RGB555 format, then the gray scale numbers are 32768 in total (32X 32) a seed color value. For each of the 32768 color values, the display device may compare the color value to a color value that determines that each pixel in the bitmap image is at the second gray level to determine the number of times the color value appears in the bitmap image.
For example, assume that color values of respective pixels in the bitmap image at the second gradation level include: (r= 0,G =0, b=0), (r=31, g=31, b=31), (r= 0,G =31, b=0), (r=14, g=23, b=20) and (r=30, g=0, b=4) and the like. If a certain color value of all the color values in the second gray-scale level is (r= 0,G =0, b=0), since the color value of 1 pixel in the bitmap image is the same as the color value, the display device may determine that the number of occurrences of the color value in the bitmap image is 1. If a certain color value of all the color values in the second gray-scale level is (r=20, g=31, b=0), the display device may determine that the number of occurrences of the color value in the bitmap image is less than 1 because there is no pixel indicated by the same color value as the color value in the bitmap image.
Then, for all the color values in the second gray level, the display device may count the number of color values that appear in the bitmap image with a number of times greater than or equal to 1, thereby obtaining the number of types of color values in the second gray level for each pixel in the bitmap image.
In another alternative implementation, a flag bit for recording the number of kinds of the first image may be stored in the display device, and an initial value of the flag bit is 1. After determining the color value of each pixel in the second gray scale level, the display device may traverse each of the plurality of pixels except for the first pixel and compare whether the color value of the pixel is the same as the color value of each pixel that has been traversed.
If the color value of the pixel is different from the color value of each of the plurality of traversed pixels, the display device may increment the flag bit by 1 to update the flag bit. If the color value of the pixel is the same as the color value of a pixel in the plurality of traversed pixels, the display device may not update the flag bit. After traversing each pixel in the bitmap image, the display device may determine the current value of the flag bit as the number of categories of color values of each pixel in the bitmap image.
Wherein the bitmap image comprises a plurality of pixels arranged in an array, each pixel being traversable by the display device line by line. For each row of pixels, the display device may traverse the row of pixels column by column.
Step 205, determining an average value of the color values of the pixels as the color value of the first image.
The display apparatus may directly determine an average value of the color values of the respective pixels and determine the average value of the color values of the respective pixels as the color value of the first image when it is determined that the number of kinds of the color values of the respective pixels in the second gray scale level is smaller than the number threshold.
The average value of the color values of the pixels is the average value in the first color mode (i.e., the RGB color mode). Accordingly, the average value of the color values of the respective pixels may include an average value of a plurality of base color values. For example, assuming that the color value includes an R value, a G value, and a B value, the average value of the color values in the first color mode may include: an average value of R values for each pixel, an average value of G values for each pixel, and an average value of B values for each pixel.
That is, if the first image includes n pixels, the average value of the R values of the pixels included in the average value of the color values in the first color mode in the first image The method meets the following conditions: />Average value of G value of each pixel +.>The method meets the following conditions: />And the average value of the B values of the individual pixels +.>The method meets the following conditions: />Wherein n is a positive integer greater than 1.
For example, assume that n=5, and the color values of the respective pixels at the second gray scale level include: (r= 0,G =0, b=0), (r=31, g=31, b=31), (r= 0,G =31, b=0), (r=14, g=23, b=20) and (r=30, g=0, b=4). The display device may determine an average of the R values of the individual pixels in the first imageAverage value g= (0+31+31+23)/5=17 of G values of the respective pixels, eachAverage value of B values of individual pixels +.>I.e. the average value of the color values of the individual pixels in the first image in the first color mode is (15, 17, 13).
And 206, segmenting the color values of each pixel in the first image by adopting a median segmentation algorithm until the number of types of the segmented color values is smaller than a number threshold.
If the display device determines that the number of types of color values of each pixel in the bitmap image is greater than or equal to the number threshold, a median segmentation algorithm may be used to segment the color values of each pixel in the first image until the number of types of color values after segmentation is less than the number threshold.
In an embodiment of the present application, a process of splitting a color value of each pixel in a first image by using a median splitting method in a display device may include:
step S21, establishing a cuboid in a three-dimensional color space based on the value range of the primary color values of the pixels of the bitmap image.
The display device may have R, G and B values as three coordinates of a three-dimensional color space, for example, R may be an x coordinate of the three-dimensional color space, G may be a y coordinate of the three-dimensional color space, and B may be a z coordinate of the three-dimensional color space. The display device may then create a cuboid in the three-dimensional color space based on the range of primary values for each pixel in the bitmap image at the second gray level.
For example, in the three-dimensional color space, the length of the cuboid may be the difference between the maximum value and the minimum value of the R value of each pixel in the bitmap image, the width of the cuboid may be the difference between the maximum value and the minimum value of the G value of each pixel in the bitmap image, and the height of the cuboid may be the difference between the maximum value and the minimum value of the B value of each pixel in the bitmap image.
And, the display device may further project each pixel included in the bitmap image into the three-dimensional color space based on the color value of each pixel after the three-dimensional color space has established a cuboid.
And S22, determining the maximum value of the length, width and height of the cuboid, and cutting the edge indicated by the maximum value to obtain two sub-cuboids.
The display device may determine the maximum value of the length, width and height of the cuboid, i.e. the longest side of the cuboid, and then may split the side to divide the cuboid into two to obtain two sub-cuboids. The two sub-cuboids obtained by the segmentation have the same number of pixels.
For example, if the display apparatus determines that the maximum value of the length, width, and height of the cuboid is the height of the cuboid, the display apparatus may divide the height of the cuboid, thereby obtaining two sub-cuboids.
Step S23, detecting whether the number of types of color values of each pixel contained in the cuboid with the largest volume of the two sub-cuboids is smaller than a number threshold.
The display device may compare the volumes of the two sub-cuboids obtained by the segmentation to determine the sub-cuboid with the largest volume. The display device may then detect whether the number of categories of color values for each pixel contained in the largest sub-cuboid of the volume is less than a number threshold. If the display device determines that the number of categories of color values for each pixel comprised by the largest sub-cuboid of the volume is smaller than the number threshold, a step 207 of determining the color value of the first image based on the color values of the pixels comprised by the largest sub-cuboid of the volume may be performed. For example, the display device may determine an average value of color values of respective pixels included in the sub-cuboid having the largest volume as the color value of the first image.
If the display device determines that the number of types of color values of each pixel included in the sub-cuboid with the largest volume is not less than the number threshold, the sub-cuboid with the largest volume may be taken as the cuboid to be segmented, and the step S22 is continuously performed until the number of types of color values of each pixel included in the cuboid with the largest volume is less than the number threshold in the two sub-cuboids obtained by segmentation.
Since the display device may determine the first target color based on the color value of each pixel included in the cuboid having the largest volume among the two sub-cuboids obtained by the segmentation. The cuboid with the largest volume contains more dispersed pixels, so that the color indicated by the color value of the first image determined later can be ensured to be close to the overall color of the first image, and the display effect of the first image can be ensured later.
As can be seen from the above description, the display device may divide the cuboid according to the longest side of the cuboid, and write the volumes of the two sub-cuboids obtained by the division into priority queues (priority queue), that is, may sort the sub-cuboids obtained by the division through the priority queues, where the priority of the priority queue is the volume of the sub-cuboid, and the larger the volume is, the higher the priority is. The display device may then select the sub-cuboid with the highest priority, i.e. the sub-cuboid with the largest volume, from the priority queue.
If the number of types of color values of the pixels included in the sub-cuboid is determined to be smaller than the number threshold, the color value of the first image may be determined directly based on the color values of the pixels included in the sub-cuboid. If the number of the types of the color values of the pixels contained in the sub-cuboid is not less than the number threshold, the display device can continue to segment the sub-cuboid until the number of the types of the color values of the pixels contained in the sub-cuboid with the largest volume finally obtained is less than the number threshold.
Step 207, determining an average value of the segmented color values as a color value of the first image.
When the number of types of color values after the segmentation is determined to be smaller than the number threshold, that is, the number of types of color values of each pixel included in the sub-cuboid with the largest volume obtained by the segmentation is determined to be smaller than the number threshold, the display device may determine an average value of the color values after the segmentation, that is, an average value of the color values of each pixel included in the sub-cuboid as the color value of the first image.
The implementation process of the step 205 may be referred to in the implementation process of the step 205, and the embodiments of the present application are not described herein again.
Step 208, determining a first color value of a background color of the image preview interface based on the color value of the first image.
After determining the color value of the first image, the display device may determine a first color value of a background color of the image preview interface of the display device based on the color value of the first image (i.e., the average of the color values of the pixels).
In the embodiment of the application, the display device can directly determine the color value of the first image as the first color value of the background color of the image preview interface. Accordingly, in this case, the difference threshold may be 0.
Alternatively, the display device may adjust the color value of the first image according to the target color of the plurality of different types of hues after determining the color value of the first image, thereby obtaining the first color value of the background color of the image preview interface. Where hue may refer to the overall propensity of a color in an image.
In the embodiment of the present application, the manner in which the display device adjusts the color value of the first image according to the target color tone of the plurality of different types of color tones to obtain the first color value of the background color of the image preview interface may be multiple, and the embodiment of the present application exemplifies several alternative implementation manners in which the display device adjusts the color value of the first image according to the target color tone of the plurality of different types of color tones to obtain the first color value of the background color of the image preview interface.
In a first alternative implementation, referring to fig. 4, the process of adjusting, by the display device, the color value of the first image according to the target tone of the plurality of different types of tones, so as to obtain the first color value of the background color of the image preview interface may include:
step 2081a converts the color pattern of the color values of the first image to a second color pattern.
After determining the color value of the first image (i.e., the average of the color values of the individual pixels), the display device may convert the color mode of the color value to a second color mode. Wherein the second color mode is different from the first color mode, and the average value in the second color mode may include a plurality of initial component values.
For example, the second color mode may be a hue (H) saturation (S) luminance (L) color mode, and the average value in the HSL color mode may include a plurality of initial component values, which are H, S and L values, respectively. That is, the display device may convert color values of the first image in the RGB color mode into color values in the HSL color mode.
In the embodiment of the present application, the display device may normalize the color value of the first image under the determined second gray-scale level, that is, the R value, the G value, and the B value in the color value are all converted into values greater than or equal to 0 and less than or equal to 1, and the maximum value and the minimum value in the R value, the G value, and the B value are determined. Thereafter, the display apparatus may determine an average value of the maximum value and the minimum value as the L value in the second color mode. If the maximum value and the minimum value are determined to be equal, the display device may determine that both the S value and the L value in the second color mode are 0. If it is determined that the maximum value and the minimum value are not equal, the display device may determine an S value according to the L value, the maximum value and the minimum value. And, the display device may determine the H value according to the R value, the G value, the B value, the maximum value, and the minimum value.
For example, assuming that the color value of the first image determined by the display device in the first color mode is (15, 17, 13), after the color mode of the color value is converted into the second color mode by the display device, the color value in the second color mode is (90 °,13.3%, 5.9%). I.e. the three initial component values in the second color mode are respectively: h=90°, s=13.3%, l=5.9%. Wherein 90 ° means 90 °.
Step 2082a, weighting each initial component value by using the target weight set to obtain a plurality of weighted component values.
After obtaining the plurality of initial component values in the second color mode, the display device may weight each of the initial component values with the target weight set to obtain a plurality of weighted component values. The target weight set comprises a plurality of weights, and each weight corresponds to one initial component value. Each weighted component value is equal to the product of an initial component value and the weight corresponding to the initial component value.
That is, the display device may use each of the plurality of weights included in the target weight group to weight a corresponding one of the plurality of initial component values to obtain a weighted component value, and then obtain a plurality of weighted component values.
Alternatively, the target weight set may be a fixed weight set stored in advance in the display device. Alternatively, the target weight set may be one determined by the display device from a plurality of weight sets stored in advance in response to an operation of the user. In this case, the display apparatus may further perform the following steps before weighting the initial component values in each of the second color modes with the target weight set to obtain weighted component values in the plurality of second color modes.
Step S11, in response to a selection operation for a target tone among a plurality of different types of tones, determining the target tone.
In an embodiment of the present application, the display device may display a plurality of different types of hues, each of the plurality of hues may correspond to a weight set, and the weight set may include a weight of each of a plurality of initial component values. I.e. each weight set may comprise a plurality of weights in one-to-one correspondence with a plurality of initial component values. For example, if the average value in the second color mode includes three initial component values, each weight set may include three weights corresponding to the three initial component values one to one. The user of the display device may select a target tone from the plurality of tones, and accordingly, the display device may determine the target tone in response to a user selection operation for the target tone from the plurality of tones.
Wherein the weight sets corresponding to any two hues may be different. The difference in the weight sets corresponding to any two hues may mean that: at least one of the weights included in the weight groups corresponding to any two hues is different.
Alternatively, the display device may display six hues of a vigor (vibrant) hue, a vigor dark (vibrant dark) hue, a vigor light (vibrant light) hue, a muted (muted) hue, a muted dark (muted dark) hue, and a muted light (muted light) hue, the six hues indicating six different display styles. If the average value in the second color mode includes three initial component values (i.e., the foregoing H value, S value, and L value), the weight set corresponding to each of the six hues may include three weights. The set of weights for each of the six hues may include weights as shown in table 1.
TABLE 1
Tone of color Weight group (H, S, L)
Dynamic tone 1,1.2,1
Dark shade of vitality 1,1.2,0.8
Bright tone of vitality 1,1.2,1.2
Soft tone 1,0.8,1
Soft dark tone 1,0.8,0.8
Soft bright tone 1,0.8,1.2
As can be seen from table 1, the set of weights corresponding to the vivid tone includes weights corresponding to the H value, the S value, and the L value one by one, respectively: 1,1.2 and 1; the set of weights corresponding to the dark hues of the vitality includes weights corresponding one-to-one to the H value, the S value, and the L value, respectively: 1,1.2 and 0.8; the set of weights corresponding to the vivid bright color tone includes weights corresponding one-to-one to the H value, the S value, and the L value, respectively: 1,1.2 and 1.2. The weight group corresponding to the soft tone includes weights corresponding to the H value, the S value, and the L value one by one, respectively: 1,0.8 and 1; the weight group corresponding to the soft dark tone includes weights corresponding to the H value, the S value, and the L value one by one, respectively: 1,0.8,0.8; the weight group corresponding to the soft bright tone includes weights corresponding to the H value, the S value, and the L value one by one, respectively: 1,0.8 and 1.2.
For example, referring to fig. 3, the display device may display six controls, namely, a vivid tone control 021, a vivid dark tone control 022, a vivid bright tone control 023, a soft tone control 024, a soft dark tone control 025, and a soft bright tone control 026, in response to a user's touch to adjust the switch control 02 for the background color. If the user touches the soft light control 026, the display device may determine the soft light control indicated by the soft light control 026 as the target hue in response to a touch operation of the user on the soft light control 026.
And step S12, determining the weight group corresponding to the target tone as a target weight group.
After determining the target tone, the display device may acquire a weight group corresponding to the target tone, and determine the weight group corresponding to the target tone as the target weight group.
For example, as shown in fig. 3, the display device determines that the target tone is a soft bright tone, and then the display device may acquire a weight group (1,0.8,1.2) corresponding to the soft bright tone, and determine the weight group as the target weight group.
Assume that the plurality of initial component values in the second color mode determined by the display device are respectively: h=90°, s=13.3%, l=5.9%, and the target weight set is (1,0.8,1.2), the display device weights each initial component value with the target weight set (1,0.8,1.2), resulting in a plurality of weighted component values of H ' =90×1=90°, S ' =13.3% ×0.8=10.64%, L ' =5.9% ×1.2=7.08%, i.e., the color value in the weighted second color mode is (90 °,10.64%, 7.08%), respectively.
Step 2083a, converting the color modes of the weighted component values into a first color mode to obtain a plurality of target base color values.
After each initial component value is weighted by the display device by adopting the target weight set to obtain a plurality of weighted component values in the second color mode, the color mode of each weighted component value in the plurality of weighted component values can be converted into the first color mode, so that a plurality of target base color values are obtained, and then the first color value of the background color of the image preview interface in the first color mode formed by the plurality of target base color values can be obtained.
That is, the display device may convert a color value composed of weighted component values in a plurality of HSL color modes into a color value in a first color mode.
For example, assuming that the color value in the weighted second color mode determined by the display device is (90 °,10.64%, 7.08%), the display device converts the color mode of the average value into the first color mode, and then obtains a plurality of target base color values in the first color mode, wherein the R value is 19, the g value is 20, and the b value is 17, that is, the color value of the first image is (19, 20, 17).
In a second alternative implementation, referring to fig. 5, the process of adjusting, by the display device, the color value of the first image according to the target tone of the plurality of different types of tones, so as to obtain the first color value of the background color of the image preview interface may include:
Step 2081b converts the color pattern of the color values of the first image to a second color pattern.
Wherein the average value in the second color mode includes a plurality of initial component values, the second color mode being different from the first color mode.
Optionally, the implementation process of the step 2081b may refer to the implementation process of the step 2081a, and the embodiment of the present application is not described herein again.
Step 2082b, for each of the plurality of different types of hues, weighting the plurality of initial component values in the second color mode by using a weight set corresponding to the hue, thereby obtaining a plurality of weighted component values corresponding to the hue.
After converting the color value of the first image in the first color mode into the color value in the second color mode to obtain a plurality of initial component values in the second color mode, the display device may use a plurality of different types of hues, where the weight set corresponding to each hue weights the plurality of initial component values in the second color mode, so as to obtain a plurality of weighted component values corresponding to each hue.
Wherein, the weight set corresponding to each tone may include a weight of each initial component value of the plurality of initial component values, i.e., each weight set may include a plurality of weights corresponding to the plurality of initial component values one-to-one. The weight set corresponding to each of the plurality of hues may be prestored by the display device, and the weight sets corresponding to any two of the plurality of hues may be different.
For example, assume that the display device determines a plurality of initial component values in the second color mode as: h=90°, s=13.3%, l=5.9%. The six weight sets corresponding to the six hues of the vitality hue, the vitality dark hue, the vitality bright hue, the soft dark hue and the soft bright hue are respectively as follows: (1,1.2,1), (1,1.2,0.8), (1,1.2,1.2), (1,0.8,1), (1,0.8,0.8) and (1,0.8,1.2).
The display device adopts a weight group corresponding to the vitality tone to weight the plurality of initial component values, and the obtained plurality of weight component values corresponding to the vitality tone are respectively:
h ' =90° x 1=90°, S ' =13.3% x 1.2=15.96%, L ' =5.9% x 1=5.9%, i.e. the color value in the weighted second color mode is (90 °,15.96%, 5.9%).
The display device weights the plurality of initial component values by using the vivid dark tone, the vivid bright tone, the soft dark tone and the soft bright tone respectively, and a plurality of weighted component values corresponding to the vivid dark tone are obtained as follows:
h ' =90×1=90°, S ' =13.3% ×1.2=15.96%, L ' =5.9% ×0.8=4.72%, i.e., the color value in the weighted second color mode is (90 °,15.96%, 4.72%).
The plurality of weighted component values corresponding to the light tone of the vitality are respectively:
h ' =90×1=90°, S ' =13.3% ×1.2=15.96%, L ' =5.9% ×1.2=7.08%, i.e., the color value in the weighted second color mode is (90 °,15.96%, 7.08%).
The plurality of weighted component values corresponding to the soft tone are respectively:
h ' =90×1=90°, S ' =13.3% ×0.8=10.64%, L ' =5.9% ×1=5.9%, i.e., the color value in the weighted second color mode is (90 °,10.64%, 5.9%).
The plurality of weighted component values corresponding to the soft dark tone are respectively:
h ' =90×1=90°, S ' =13.3% ×0.8=10.64%, L ' =5.9% ×0.8=4.72%, i.e., the color value in the weighted second color mode is (90 °,10.64%, 4.72%).
The plurality of weighted component values corresponding to the soft bright tone are respectively:
h ' =90×1=90°, S ' =13.3% ×0.8=10.64%, L ' =5.9% ×1.2=7.08%, i.e., the color value in the weighted second color mode is (90 °,10.64%, 7.08%).
Step 2083b, converting the color mode of the weighted component value corresponding to each tone into the first color mode, to obtain a plurality of candidate base color values corresponding to the tone.
After determining the plurality of weighted component values corresponding to each of the plurality of hues, the display device may convert the color mode of the plurality of weighted component values corresponding to each of the hues to a first color mode, thereby obtaining a plurality of alternative base color values corresponding to the hue.
That is, the display device may convert the weighted color values in the HSL color mode to color values in the RGB color mode.
By way of example, assume that the plurality of weighted component values corresponding to the vivid color tone determined by the display device are (90 °,15.96%, 5.9%); the plurality of weighted component values corresponding to the dark hues of vitality are: (90 °,15.96%, 4.72%); a plurality of weighted component values corresponding to the light hue of the vitality are (90 °,15.96%, 7.08%); the plurality of weighted component values corresponding to the soft tone are: (90 °,10.64%, 5.9%); the plurality of weighted component values corresponding to the soft dark hue are: (90 °,10.64%, 4.72%); the plurality of weighted component values corresponding to the soft light hue are: (90 °,10.64%, 7.08%).
The display device may obtain a plurality of alternative base color values (16, 18, 13) corresponding to the active hues after converting the color mode of the weighted component value corresponding to each of the six hues to the first color mode; the plurality of alternative base color values corresponding to the dark hues of the vitality are: (13, 14, 11); a plurality of alternative base color values (19, 21, 16) corresponding to the vivid light tone; the plurality of alternative base color values corresponding to the soft hue are: (16, 17, 14); the plurality of alternative base color values corresponding to the soft dark hues are: (13, 14, 11); the plurality of alternative base color values corresponding to the soft, bright color tone are: (19, 20, 17).
Step 2084b, determining a color value composed of a plurality of candidate primary color values corresponding to the target tone of the plurality of tones as a first color value of a background color of the image preview interface in the first color mode.
The number of pixels in the first image, of which the color values are matched with the plurality of candidate primary color values corresponding to the target tone, is larger than the number of pixels in the first image, of which the color values are matched with the plurality of candidate primary color values corresponding to any other tone. The color value is a color value in a first color mode.
The pixels in which the color value in the first color mode matches the plurality of candidate base color values may refer to: the color value includes each base color value and a corresponding one of the plurality of alternative base color values that has a difference less than a first target threshold. Therefore, the difference value of each base color value in the first image and the corresponding alternative base color value in the plurality of alternative base color values corresponding to the target tone is smaller than the number of pixels of the first target threshold value, and the difference value of each base color value in the first image and the corresponding alternative base color value in the plurality of alternative base color values corresponding to any other tone is larger than the number of pixels of the first target threshold value. Wherein the first target threshold may be pre-stored in the display device, and the first target threshold may be equal to the difference threshold described above.
That is, the matching degree of the plurality of candidate base color values corresponding to the target tone and the color values of the respective pixels in the first image is highest. Therefore, the color indicated by the first color value of the background color of the image preview interface formed by a plurality of candidate primary color values corresponding to the target tone can be ensured to be close to the overall color of the first image, and the display effect of the subsequent first image is improved.
In the embodiment of the present application, after obtaining the plurality of candidate primary color values corresponding to each of the plurality of hues, the display device may determine, for each of a plurality of candidate primary color values corresponding to each of the plurality of hues, a difference value between one primary color value in each pixel and the candidate primary color value, where the primary color value corresponds to the candidate primary color value. If the difference is determined to be less than the first target threshold, the display device may determine that the primary color value matches the alternative primary color value. If the display device determines that each of the primary color values in the pixel matches a corresponding one of the alternative primary color values in the hue, it may be determined that the color value of the pixel matches the alternative primary color value corresponding to the hue.
Based on this, the display device can obtain the number of pixels indicated by the color value matching the candidate primary color value corresponding to each of the plurality of hues, resulting in a plurality of numbers. Then, the display device may determine a tone corresponding to a number having the largest value among the plurality of numbers as a target tone, and determine a color value composed of a plurality of candidate primary color values corresponding to the target tone as a color value of the first image.
The display device may convert color modes of the weighted component values corresponding to the plurality of hues into a first color mode, obtain a plurality of candidate base color values corresponding to each hue, then directly determine a target hue based on the candidate base color values corresponding to the plurality of hues, and determine a color value composed of the plurality of candidate base color values corresponding to the target hue as a color value of the first image in the first color mode. Because the color mode of the color value of each pixel in the first image in the first color mode is not required to be converted into the second color mode so as to determine the target tone, the operation amount of the display equipment is effectively reduced, and the determination efficiency of the first color value of the background color of the image preview interface is improved.
As can be seen from the above description, the display device can achieve the effect of automatically determining the hue adapted to the first image by performing the steps 2081b to 2084b, and then determining the color value of the first image adapted to the overall color of the first image. Because the manual operation of the user is not needed, the user operation is simplified, and the user experience is improved.
Optionally, in an embodiment of the present application, after step 2082b, the display device may further perform the following steps to determine the first color value of the background color of the image preview interface.
The display device may convert color modes of a plurality of weighted component values corresponding to a target tone of the plurality of tones into a first color mode to obtain a plurality of target base color values, where the plurality of target base color values form a first color value of a background color of the image preview interface in the first color mode.
The number of pixels in the first image, in which the color value matches with the weighted component values corresponding to the target tone, is greater than the number of pixels in the first image, in which the color value matches with the weighted component values corresponding to any other tone. The color value may be a color value in a second color mode.
The pixels in which the color value in the second color mode matches the plurality of weighted component values may refer to: the color value includes each component value and a corresponding weighted component value of the plurality of weighted component values that has a difference less than a second target threshold. Therefore, in the plurality of weighted component values corresponding to each component value and the target tone in the first image, the difference value of the corresponding weighted component values is smaller than the number of pixels of the second target threshold value, and is larger than the number of corresponding weighted component values in the plurality of weighted component values corresponding to any component value and any other tone in the first image, and the difference value of the corresponding weighted component values is smaller than the number of the first target threshold value. That is, the matching degree of the plurality of weighted component values corresponding to the target tone and the color values of the respective pixels in the first image is highest. Wherein the second target threshold may be pre-stored in the display device.
In the embodiment of the present application, before obtaining the plurality of weighted component values corresponding to each of the plurality of hues, the display device may obtain a color value of each pixel in the bitmap image corresponding to the first image in the second color mode and in the second gray-scale level, where the color value may include a plurality of component values corresponding to the plurality of weighted component values one to one.
After determining the plurality of weighted component values for each tone, the display device may determine, for each of the plurality of weighted component values for each tone of the plurality of tones, a difference value of a component value in each pixel and the weighted component value, the component value corresponding to the weighted component value. If the difference is determined to be less than the second target threshold, the display device may determine that the component value matches the weighted component value. If the display device determines that each component value in the pixel matches a corresponding one of the weighted component values in the hue, it may be determined that the color value of the pixel matches the weighted component value corresponding to the hue.
Based on this, the display device can obtain the number of pixels indicated by the color value matched with the weighted component value corresponding to each of the plurality of hues, resulting in a plurality of numbers. And then, the display equipment can determine the tone corresponding to the number with the largest numerical value in the numbers as a target tone, and convert the color modes of the weighted component values corresponding to the target tone into a first color mode, so as to obtain a first color value of the background color of the image preview interface in the first color mode.
Step 209, displaying the first image in the image preview interface.
After determining the first color value of the background color of the image preview interface, the display device may draw the image preview interface based on the first color value and display the first image in the image preview interface. Therefore, the color of the image preview interface is ensured to be matched with the overall color of the first image displayed currently, so that the display effect of the first image is improved, the user can reach the immersive preview effect, and the user experience is improved.
In the embodiment of the application, after the first color value is determined, the display device can set the color value of the background color of the image preview interface as the first color value, so that the effect of adjusting the background color of the image preview interface is achieved, and the display effect of the image preview interface is enriched.
Because the difference value between the first color value and the color value of the first image is smaller than the difference threshold value, namely the color indicated by the first color value is similar to the overall color of the first image, the background color of the image preview interface can be adapted to the overall color of the first image, and therefore the display effect of the image in the preview process can be improved.
In the embodiment of the present application, after determining the first color value, the display device may call the requestRender () method of the GLSurfaceView class to initiate the drawing request. And then, after receiving an onDrawFrame () callback of the GL surface View class, drawing a background color of the image preview interface based on the first color value by calling a clearBuffer (flow [ ] argb) method of the GLcanvas, namely setting the color value of the background color of the image preview interface as the first color value.
Optionally, since the first color value determined in step 208 is a color value in the second gray level. Accordingly, the display device may also determine the first color value at the first number of gray levels before setting the color value of the background color of the image preview interface to the first color value. Thereafter, the display device may set a color value of a background color of the image preview interface to a color value of the first image at the first number of gray levels.
That is, the display device may convert the gray-scale level of the first color value obtained through the above step 208 from the second gray-scale level having a lower number of bits to the first gray-scale level having a higher number of bits before setting the color value of the background color of the image preview interface to the color value of the first image. Thus, the display effect of the image preview interface after the background color adjustment can be ensured.
Fig. 6 is a schematic view showing a first image in the related art. As can be seen from fig. 6, the background color of the image preview interface shown in fig. 6 is white, and the background color is vivid compared with the first image, so that the display effect of the first image is poor.
Fig. 7 is a schematic view showing another first image in the related art, and as can be seen from fig. 7, the background color of the image preview interface shown in fig. 7 is black, the background color is also vivid compared with the first image, and the display effect of the first image is poor.
Fig. 8 is a schematic view of displaying a first image according to an embodiment of the present application. As can be seen from fig. 8, the background color of the image preview interface is close to the overall color of the first image. As can be seen by comparing fig. 8 and 6, or fig. 8 and 7, the display effect of the first image shown in fig. 8 is better than that of the first image shown in fig. 6 and 7.
Step 210, if a second display instruction for a second image of the plurality of images is received, determining a color value of the second image according to the color value of each pixel in the second image.
In previewing a first image of the plurality of images, the user may touch a second image of the plurality of images. Accordingly, the display device may receive a presentation instruction for a second image of the plurality of images. The display device may then determine a color value of the second image from the color values of the individual pixels in the second image in response to the second rendering instruction.
Alternatively, the touch operation of the user on the second image may be a sliding operation or a clicking operation.
The implementation process of determining the color value of the second image according to the color value of each pixel in the second image when the display device receives the second display instruction for the second image may refer to the implementation process of determining the color value of the first image according to the color value of each pixel in the first image when the display device receives the second display instruction for the first image, that is, the implementation process of steps 201 to 208, which are not described herein.
Step 211, if the color value of the second image is different from the color value of the first image, adjusting the background color of the image preview interface.
After determining the color value of the second image, the display device may detect whether the color value of the second image is the same as the color value of the first image, that is, detect whether the R value, the G value, and the B value in the color value of the second image are the same as the R value, the G value, and the B value in the color value of the first image, respectively. If the display device determines that the color value of the second image is the same as the color value of the first image, that is, the R value, the G value, and the B value in the color value of the second image are respectively the same as the R value, the G value, and the B value in the color value of the first image, it is unnecessary to adjust the background color of the image preview interface when the second image is displayed.
If the display device determines that the color value of the second image is different from the color value of the first image, that is, any one of the R value, the G value, and the B value in the color value of the second image is different from the corresponding primary color value in the color value of the first image, the color value of the background color of the image preview interface may be changed from the first color value to the second color value.
Wherein the difference in color values of the second image is less than the difference threshold. That is, the display device may adjust the color value of the background color of the image preview interface to a color value similar to the color value of the second image when it is determined that the color value of the second image is different from the color value of the first image. Therefore, the method provided by the embodiment of the application can enable the background color of the image preview interface to change along with the color conversion of the preview image, so that the image display effect of the display device is effectively enriched.
Optionally, the display device may fade the color value of the background color of the image preview interface from the first color value to the second color value when it is determined that the color value of the second image is different from the color value of the first image.
Since the display device can fade the color value of the background color of the image preview interface from the color value of the first image to the color value of the second image when it is determined that the color value of the second image is different from the color value of the first image. Therefore, on the premise of ensuring that the color value of the first image can be naturally transited to the color value of the second image, the display effect of the second image can be improved on the premise of avoiding abrupt background color change of the image preview interface.
In an embodiment of the present application, the process of the display device to fade the color value of the background color of the image preview interface from the color value of the first image to the color value of the second image may include: the display device may obtain the fade duration. And then, in the gradual change duration, the display device can adjust the background color of the image preview interface every other update period until the background color of the image preview interface is the second color value. Wherein the color values of pixels of the background image displayed in any two of the plurality of update periods are different. The fade duration may be pre-stored in the display device.
Optionally, when the display device determines that the color value of the first image is different from the color value of the second image, the display device may acquire a gradient duration, record a current time, that is, a start time (start time), and call a requestRender () method in the GLSurfaceView class to initiate a rendering request.
After that, after receiving the onDrawFrame () callback of GLSurfaceView, the display device may determine the color value of the background color of the current image preview interface according to the current update period. And the display device may draw the image preview interface based on the color value by using a clear buffer (float [ ] argb) method in the GLCanvas class, that is, the color value of the background color of the image preview interface is adjusted to the color adjustment value until the time difference between the current time of the display device and the drawing start time is greater than the gradual change duration, that is, the color value of the background color of the image preview interface is the second color value.
Step 212, displaying the second image in the image preview interface.
The display device may display the second image in the image preview interface after determining a second color of the background color of the image preview interface. Therefore, the color of the image preview interface is ensured to be matched with the color of the second image displayed currently, so that the display effect of the second image is improved, the user can reach the immersive preview effect, and the user experience is improved.
By way of example, assume that the color value of the second image is different from the color value of the first image. Then referring to fig. 9, the display device may adjust the color value of the background color of the image preview interface when the image preview interface displays the second image. As can be seen from fig. 9, the background color of the adjusted image preview interface is adapted to the color of the second image.
In the related art, the background color of the image preview interface of the display device is generally white or black, when a user previews an image, the previewed image is generally displayed at the middle position of the image preview interface, the upper and lower positions of the image preview interface are both white or black, the image is in clear contrast with the background at the upper and lower positions, the contrast image is smaller, and the display effect on the display screen of the display device is poor.
By adopting the image display method of the display device provided by the embodiment of the application, the display device can automatically determine the target color value similar to the color of the image previewed by the user, and then the color value of the background color of the image preview interface can be set as the target color value. Therefore, the color of the image preview interface is similar to that of the image, and the display effect of the image is improved. Moreover, by adopting the method provided by the embodiment of the application, the efficiency of determining the target color value is higher, for example, the target color value can be determined within 50 milliseconds (ms), so that the method provided by the embodiment of the application has less influence on the power consumption and the performance of the display equipment. In addition, after determining the target color value, the display device may complete setting the background color of the image preview interface based on an open graphics library (open graphics library, openGL), where the setting may not have a performance impact on a User Interface (UI) interface of the main thread and other functions of the display device. Wherein the OpenGL is an application programming interface.
It should be further noted that, the sequence of the steps of the image display method of the display device provided by the embodiment of the application may be appropriately adjusted, and the steps may also be correspondingly increased or decreased according to the situation. For example, step 204, step 205, and step 206 may be optionally omitted, that is, the display device may directly determine, after determining the color values of the pixels of the first image in the second gray-scale level, the average value of the color values of the pixels as the color value of the first image. Step 211 and step 212 may also be performed simultaneously, and step 212 may also be performed prior to step 211. Any method that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered in the protection scope of the present application, and thus will not be repeated.
In summary, the embodiment of the application provides an image display method of a display device, where the display device may display a first image on an image preview interface, and a difference between a color value of a background color of the image preview interface and a color value of the first image is smaller than a difference threshold. That is, the background color of the image preview interface can be adaptively changed along with the color of the preview image, and compared with the phenomenon that the background color of the image preview interface in the related art is only black or white and other single colors, the method provided by the embodiment of the application improves the flexibility of image display and enriches the display effect of the image preview interface.
Fig. 10 is a schematic structural diagram of a display device according to an embodiment of the present application, where the display device may be used to perform the image display method of the display device according to the above method embodiment. Referring to fig. 10, the display device may include a processor 1101 and a display screen 131. The processor 1101 may be configured to:
receiving a first display instruction for a first image of the plurality of images;
and responding to the first display instruction, displaying the first image in an image preview interface of the display screen, wherein the difference value between a first color value of a background color of the image preview interface and a color value of the first image is smaller than a difference threshold value.
Optionally, the processor 1101 may be further configured to:
receiving a second presentation instruction for a second image of the plurality of images;
responding to the second display instruction, if the color value of the second image is different from the color value of the first image, adjusting the background color of the image preview interface, wherein the difference value between the adjusted second color value of the background color of the image preview interface and the color value of the second image is smaller than a difference value threshold;
the second image is displayed in the image preview interface of the display screen 131.
Optionally, the processor 1101 may be configured to:
and gradually changing the color value of the background color of the image preview interface from the first color value to the second color value.
Optionally, the processor 1101 may be further configured to:
and if the background color automatic adjustment function of the image preview interface is started, adjusting the color value of the background color of the image preview interface to be a first color value according to the color value of the first image.
Optionally, the processor 1101 may be configured to:
and adjusting the color value of the first image according to the target tone in the multiple different types of tones to obtain a first color value of the background color.
Optionally, the first image includes a plurality of pixels, and the color value of the first image is an average value of the color values of the pixels in the first image;
The first color value of the background color of the image preview interface is equal to the color value of the first image.
Optionally, the processor 1101 may be configured to:
if the number of the types of the color values of the pixels in the first image is smaller than the number threshold, determining the average value of the color values of the pixels in the first image as the color value of the first image;
if the number of the types of the color values of each pixel in the first image is not smaller than the number threshold, segmenting the color values of each pixel in the first image by adopting a median segmentation algorithm until the number of the types of the segmented color values is smaller than the number threshold;
and determining the average value of the color values after segmentation as the color value of the first image.
Optionally, the color value of each pixel in the first image includes a plurality of base color values, and the gray level number of each base color value is the first gray level number; the processor 1101 may be configured to:
determining a color value of each pixel under a second gray level number which is smaller than the first gray level number;
determining a color value of the first image according to the color value of each pixel in the second gray level number;
determining a color value of a first image at a first gray scale level;
And determining a first image color value of the background color of the image preview interface under the first gray level number based on the color value of the first image under the first gray level number.
In summary, the embodiment of the present application provides a display device, where the display device may display a first image on an image preview interface, and a difference between a color value of a background color of the image preview interface and a color value of the first image is smaller than a difference threshold. That is, the background color of the image preview interface can be adaptively changed along with the color of the preview image, and compared with the phenomenon that the background color of the image preview interface in the related art is only black or white and other single colors, the method provided by the embodiment of the application improves the flexibility of image display and enriches the display effect of the image preview interface.
As shown in fig. 10, the display device 110 may further include: display unit 130, radio Frequency (RF) circuit 150, audio circuit 160, wireless fidelity (wireless fidelity, wi-Fi) module 170, bluetooth module 180, power supply 190, and camera 121.
Wherein camera 121 may be used to capture still pictures or video. The object generates an optical picture through the lens and projects the optical picture to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then passed to the processor 1101 for conversion into a digital picture signal.
The processor 1101 is a control center of the display device 110, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the display device 110 and processes data by running or executing software programs stored in the memory 140, and calling data stored in the memory 140. In some embodiments, the processor 1101 may include one or more processing units; the processor 1101 may also integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., and a baseband processor that primarily processes wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 1101. The processor 1101 in the present application may run an operating system and an application program, may control a user interface to display, and may implement the image display method of the display device provided in the embodiment of the present application. In addition, the processor 1101 is coupled to the input unit and the display unit 130.
The display unit 130 may be used to receive input numeric or character information, generate signal inputs related to user settings and function control of the display device 110, and optionally, the display unit 130 may be used to display information entered by a user or provided to a user as well as a graphical user interface (graphical user interface, GUI) of various menus of the display device 110. The display unit 130 may include a display screen 131 disposed on the front surface of the display device 110. The display 131 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 130 may be used to display various graphical user interfaces described in the present application.
The display unit 130 includes: a display screen 131 and a touch screen 132 provided on the front surface of the display device 110. The display 131 may be used to display preview pictures. Touch screen 132 may collect touch operations on or near the user, such as clicking a button, dragging a scroll box, and the like. The touch screen 132 may cover the display screen 131, or the touch screen 132 and the display screen 131 may be integrated to realize the input and output functions of the display device 110, and the integrated touch screen may be simply referred to as a touch display screen.
Memory 140 may be used to store software programs and data. The processor 1101 performs various functions of the display device 110 and data processing by running software programs or data stored in the memory 140. Memory 140 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. The memory 140 stores an operating system that enables the display device 110 to operate. The memory 140 in the present application may store an operating system and various application programs, and may also store codes for executing image display of the display device provided in the embodiment of the present application.
The RF circuit 150 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, and may receive downlink data of the base station and then transmit the downlink data to the processor 1101 for processing; uplink data may be sent to the base station. Typically, RF circuitry includes, but is not limited to, antennas, at least one amplifier, transceivers, couplers, low noise amplifiers, diplexers, and the like.
Audio circuitry 160, speaker 161, microphone 162 can provide an audio interface between a user and display device 110. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the speaker 161 converts the electrical signal into a sound signal and outputs the sound signal. The display device 110 may also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, which is output to the RF circuit 150 for transmission to, for example, another terminal, or to the memory 140 for further processing. The microphone 162 of the present application may acquire the voice of the user.
Wi-Fi, which is a short-range wireless transmission technology, may help a user to send and receive e-mail, browse web pages, access streaming media, etc., through Wi-Fi module 170, which provides wireless broadband internet access to the user.
The bluetooth module 180 is configured to interact with other bluetooth devices having bluetooth modules through a bluetooth protocol. For example, the display device 110 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) that also has a bluetooth module through the bluetooth module 180, thereby performing data interaction.
The display device 110 also includes a power supply 190 (e.g., a battery) that provides power to the various components. The power supply may be logically connected to the processor 1101 through a power management system, so that functions of managing charging, discharging, power consumption, etc. are implemented through the power management system. The display device 110 may also be configured with power buttons for power on and off of the terminal, screen locking, and the like.
The display device 110 may include at least one sensor 1110, such as a motion sensor 11101, a distance sensor 11102, a fingerprint sensor 11103, and a temperature sensor 11104. The display device 110 may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the display device and each device described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
Fig. 11 is a software block diagram of a display device according to an embodiment of the present application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Android Run Time (ART) and a system library, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 11, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc. The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 11, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, pictures, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the display device 110. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is presented in a status bar, a presentation sound is emitted, the communication terminal vibrates, and an indicator light blinks.
an android run includes a core library and virtual machines. android run is responsible for scheduling and management of android systems.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (media library), three-dimensional graphics processing library (e.g., openGL ES), 2D graphics engine (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still picture files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, picture rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
An embodiment of the present application provides a computer-readable storage medium having instructions stored therein, which when executed on a computer, cause the computer to perform the image display method of the display device provided in the above embodiment, for example, the method shown in fig. 1 or fig. 2.
The embodiment of the application also provides a computer program product containing instructions, which when run on a computer, cause the computer to execute the image display method of the display device provided by the above embodiment of the method, for example, the method shown in fig. 1 or fig. 2.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The term "at least one" in the present application means one or more, and the term "plurality" in the present application means two or more.
The foregoing description of the exemplary embodiments of the application is not intended to limit the application to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the application.

Claims (9)

1. A display device, the display device comprising a processor and a display screen; the processor is configured to:
receiving a first display instruction for a first image of the plurality of images;
responding to the first display instruction, displaying the first image in an image preview interface of the display screen, wherein the difference value between a first color value of a background color of the image preview interface and a color value of the first image is smaller than a difference threshold value;
wherein, prior to displaying the first image in the image preview interface, the processor is further configured to:
according to a target tone in a plurality of different types of tones, adjusting a color value of the first image to obtain a first color value of the background color, wherein the tone refers to the overall tendency of the color in the first image;
The processor is configured to adjust a color value of the first image according to a target tone of a plurality of different types of tones, to obtain a first color value of the background color, including:
determining an average value of color values of each pixel in the first image in a first color mode;
converting the color mode of the average value to a second color mode, the second color mode being different from the first color mode; the first color mode is an RGB color mode, and the average value in the first color mode comprises a plurality of base color values which are respectively an R value, a G value and a B value; the second color mode is a hue H saturation S brightness L color mode, and the average value in the second color mode comprises a plurality of initial component values which are respectively an H value, an S value and an L value;
weighting the plurality of initial component values by adopting a weight group to obtain a plurality of weighted component values, wherein the weight group comprises a target weight group corresponding to the target tone or different weight groups corresponding to different types of tones, and the weight group corresponding to each tone in the plurality of different types of tones comprises the weight of each initial component value in the plurality of initial component values;
A first color value of the background color at the target hue is determined based on the plurality of weighted component values.
2. The display device of claim 1, wherein the processor is further configured to:
receiving a second presentation instruction for a second image of the plurality of images;
responding to the second display instruction, and if the color value of the second image is different from the color value of the first image, adjusting the background color of the image preview interface, wherein the difference value between the adjusted second color value of the background color of the image preview interface and the color value of the second image is smaller than the difference value threshold;
and displaying the second image in an image preview interface of the display screen.
3. The display device of claim 2, wherein the processor is configured to:
and gradually changing the color value of the background color of the image preview interface from the first color value to the second color value.
4. The display device of claim 1, wherein the processor is further configured to:
and if the background color automatic adjustment function of the image preview interface is determined to be started, adjusting the color value of the background color of the image preview interface to be the first color value according to the color value of the first image.
5. The display device according to any one of claims 1 to 4, wherein the first image includes a plurality of pixels, and a color value of the first image is an average value of color values of respective pixels in the first image;
and the first color value of the background color of the image preview interface is equal to the color value of the first image.
6. The display device of claim 5, wherein the processor is configured to:
if the number of the types of the color values of the pixels in the first image is smaller than a number threshold, determining an average value of the color values of the pixels in the first image as the color value of the first image;
if the number of the types of the color values of each pixel in the first image is not smaller than a number threshold, a median segmentation algorithm is adopted to segment the color values of each pixel in the first image until the number of the types of the color values after segmentation is smaller than the number threshold;
and determining the average value of the color values after segmentation as the color value of the first image.
7. The display device according to any one of claims 1 to 4, wherein the color value of each pixel in the first image includes a plurality of base color values, and a gray level number of each of the base color values is a first gray level number; the processor is configured to:
Converting the gray level number of each base color value from the first gray level number to a second gray level number, wherein the second gray level number is smaller than the first gray level number;
determining a color value of each pixel in a second gray level number;
determining a color value of a first image and a first color value of a background color of the image preview interface under the second gray level according to the color values of the pixels under the second gray level;
and determining a first color value of the background color of the image preview interface under the first gray level number based on the first color value of the background color of the image preview interface under the second gray level number.
8. A method of displaying an image of a display device, the method comprising:
receiving a first display instruction for a first image of the plurality of images;
in response to the first display instruction, displaying the first image in an image preview interface, wherein a difference value between a first color value of a background color of the image preview interface and a color value of the first image is smaller than a difference threshold;
wherein prior to displaying the first image in the image preview interface, the method further comprises:
According to a target tone in a plurality of different types of tones, adjusting a color value of the first image to obtain a first color value of the background color, wherein the tone refers to the overall tendency of the color in the first image;
the adjusting the color value of the first image according to the target tone in the multiple different types of tones to obtain a first color value of the background color includes:
determining an average value of color values of each pixel in the first image in a first color mode;
converting the color mode of the average value to a second color mode, the second color mode being different from the first color mode; the first color mode is a red R green G blue B color mode, the average value in the first color mode comprises a plurality of base color values, and the plurality of base color values are respectively an R value, a G value and a B value; the second color mode is a hue H saturation S brightness L color mode, and the average value in the second color mode comprises a plurality of initial component values which are respectively an H value, an S value and an L value;
weighting the plurality of initial component values by adopting a weight group to obtain a plurality of weighted component values, wherein the weight group comprises a target weight group corresponding to the target tone or different weight groups corresponding to different types of tones, and the weight group corresponding to each tone in the plurality of different types of tones comprises the weight of each initial component value in the plurality of initial component values;
A first color value of the background color at the target hue is determined based on the plurality of weighted component values.
9. The method of claim 8, wherein the method further comprises:
receiving a second presentation instruction for a second image of the plurality of images;
responding to the second display instruction, and if the color value of the second image is different from the color value of the first image, adjusting the background color of the image preview interface, wherein the difference value between the adjusted second color value of the background color of the image preview interface and the color value of the second image is smaller than the difference value threshold;
and displaying the second image on the image preview interface.
CN202011053819.6A 2020-09-29 2020-09-29 Display device and image display method thereof Active CN112114929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011053819.6A CN112114929B (en) 2020-09-29 2020-09-29 Display device and image display method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011053819.6A CN112114929B (en) 2020-09-29 2020-09-29 Display device and image display method thereof

Publications (2)

Publication Number Publication Date
CN112114929A CN112114929A (en) 2020-12-22
CN112114929B true CN112114929B (en) 2023-11-17

Family

ID=73798089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011053819.6A Active CN112114929B (en) 2020-09-29 2020-09-29 Display device and image display method thereof

Country Status (1)

Country Link
CN (1) CN112114929B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112862927B (en) * 2021-01-07 2023-07-25 北京字跳网络技术有限公司 Method, apparatus, device and medium for publishing video
CN113362400A (en) * 2021-06-30 2021-09-07 平安普惠企业管理有限公司 User interface color matching detection method, device, equipment and storage medium
CN113742025B (en) * 2021-09-17 2024-07-09 北京字跳网络技术有限公司 Page generation method, device, equipment and storage medium
CN116197887B (en) * 2021-11-28 2024-01-30 梅卡曼德(北京)机器人科技有限公司 Image data processing method, device, electronic equipment and storage medium for generating grabbing auxiliary image

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5515172A (en) * 1993-07-19 1996-05-07 Xerox Corporation Apparatus and method for enhanced color to color conversion
JP2005236653A (en) * 2004-02-19 2005-09-02 Fuji Photo Film Co Ltd Device and method for selecting model color, and device, method and program for generating subtractive color image
CN103513946A (en) * 2012-06-26 2014-01-15 腾讯科技(深圳)有限公司 Display control method and device
CN105761283A (en) * 2016-02-14 2016-07-13 广州神马移动信息科技有限公司 Picture dominant color extraction method and device
CN108417174A (en) * 2018-05-25 2018-08-17 京东方科技集团股份有限公司 A kind of driving chip, the driving method of display panel, display device
CN109783182A (en) * 2019-02-15 2019-05-21 百度在线网络技术(北京)有限公司 A kind of method of adjustment, device, equipment and the medium of page subject matter tone
CN110109725A (en) * 2019-04-30 2019-08-09 努比亚技术有限公司 A kind of interface color method of adjustment and wearable device
CN110825480A (en) * 2019-11-06 2020-02-21 北京无限光场科技有限公司 Picture display method and device, electronic equipment and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5454109B2 (en) * 2009-12-02 2014-03-26 セイコーエプソン株式会社 Color designation control device, color designation control method, and color designation control program
US9251762B2 (en) * 2012-12-19 2016-02-02 Microsoft Technology Licensing, Llc. Runtime transformation of images to match a user interface theme
US10204447B2 (en) * 2015-11-06 2019-02-12 Microsoft Technology Licensing, Llc 2D image processing for extrusion into 3D objects

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5515172A (en) * 1993-07-19 1996-05-07 Xerox Corporation Apparatus and method for enhanced color to color conversion
JP2005236653A (en) * 2004-02-19 2005-09-02 Fuji Photo Film Co Ltd Device and method for selecting model color, and device, method and program for generating subtractive color image
CN103513946A (en) * 2012-06-26 2014-01-15 腾讯科技(深圳)有限公司 Display control method and device
CN105761283A (en) * 2016-02-14 2016-07-13 广州神马移动信息科技有限公司 Picture dominant color extraction method and device
CN108417174A (en) * 2018-05-25 2018-08-17 京东方科技集团股份有限公司 A kind of driving chip, the driving method of display panel, display device
CN109783182A (en) * 2019-02-15 2019-05-21 百度在线网络技术(北京)有限公司 A kind of method of adjustment, device, equipment and the medium of page subject matter tone
CN110109725A (en) * 2019-04-30 2019-08-09 努比亚技术有限公司 A kind of interface color method of adjustment and wearable device
CN110825480A (en) * 2019-11-06 2020-02-21 北京无限光场科技有限公司 Picture display method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112114929A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN112114929B (en) Display device and image display method thereof
CN111508039B (en) Word processing method of ink screen and communication terminal
CN108287744B (en) Character display method, device and storage medium
CN112184595B (en) Mobile terminal and image display method thereof
CN112925596B (en) Mobile terminal and display method of display object thereof
WO2023160295A1 (en) Video processing method and apparatus
CN111338743B (en) Interface processing method and device and storage medium
CN113360122B (en) Mobile terminal and text display method thereof
CN113038141B (en) Video frame processing method and electronic equipment
CN113518243A (en) Image processing method and device
WO2024164627A1 (en) Color switching method and apparatus, medium, and electronic device
CN111193874B (en) Image display parameter adjusting method and mobile terminal
CN112799557B (en) Ink screen display control method, terminal and computer readable storage medium
CN114063945B (en) Mobile terminal and image display method thereof
WO2022252810A1 (en) Display mode switching method and apparatus, and electronic device and medium
CN114863432A (en) Terminal device, contrast adjusting method, device and medium
CN1985291A (en) Display for a mobile terminal for wireless communication
CN114067758B (en) Mobile terminal and image display method thereof
CN115033199A (en) Mobile terminal and image display method thereof
CN117055779B (en) Application interface display method, terminal equipment and storage medium
CN113760164A (en) Display device and response method of control operation thereof
CN112004006A (en) Mobile medical terminal and brightness adjusting method thereof
CN111479075B (en) Photographing terminal and image processing method thereof
CN111414142B (en) Mobile terminal and display method of application interface thereof
CN112188179B (en) Image thumbnail display method, image thumbnail display device, and storage medium

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
CB02 Change of applicant information

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant