Screen display method, device, electronic device and storage medium
By obtaining the grayscale value distribution information of the LED display screen, determining the screen category and matching the corresponding picture quality parameters, the problem of the LED display screen being unable to adapt to different brightness screens and having poor display effects is solved, and the display effect is improved.
Patent Information
- Application Number
- CN202310685787.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-09
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2043-06-09
AI Technical Summary
The LED display screen has fixed picture quality parameters when it leaves the factory and cannot be adjusted. It is difficult for users to adjust the parameters, resulting in the picture quality parameters being unable to correspond to pictures of different brightness. The fixed picture quality parameters cannot be adjusted and the picture quality parameters cannot be mapped to pictures of different brightness, resulting in poor display effects.
By obtaining the grayscale value distribution information of the image to be displayed, the image category is determined, and the corresponding image quality parameters, including the gamma curve and electro-optical transfer function, are matched based on the image category to improve the image display effect.
It realizes the dynamic adjustment of picture quality parameters according to the brightness of the picture, and improves the display effect of the LED display screen under different brightness pictures.
Smart Images

Figure CN116645918B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of display, in particular to a picture display method and device, electronic equipment and storage medium. BACKGROUND
[0002] LED display screens are applied in various occasions to play advertisement pictures or films due to their excellent display effect. However, a set of picture quality parameters are fixed in the LED display screen at the time of factory shipment, and it is difficult for users to adjust the picture quality parameters when using, so that the fixed picture quality parameters cannot map and display the same effect for pictures with different brightness when the LED display screen plays pictures with different brightness, resulting in poor overall display effect. SUMMARY
[0003] An object of the present application is to provide a picture display method, device, electronic equipment and storage medium for improving the display effect of a to-be-displayed playing picture.
[0004] According to an aspect of an embodiment of the present application, a picture display method is provided, comprising:
[0005] obtaining a current to-be-displayed playing picture and obtaining distribution information of gray scale values of each pixel point in the playing picture;
[0006] determining a picture category of the playing picture according to the distribution information of the gray scale values of each pixel point in the playing picture, the picture category being used to indicate the brightness of the playing picture;
[0007] matching a corresponding picture quality parameter for the playing picture based on the picture category, the picture quality parameter being a parameter related to the display effect of the playing picture.
[0008] According to an aspect of an embodiment of the present application, a picture display device is provided, comprising:
[0009] a gray scale value obtaining module configured to obtain a current to-be-displayed playing picture and obtain distribution information of gray scale values of each pixel point in the playing picture;
[0010] a picture classification module configured to determine a picture category of the playing picture according to the distribution information of the gray scale values of each pixel point in the playing picture, the picture category being used to indicate the brightness of the playing picture;
[0011] a picture display module configured to match a corresponding picture quality parameter for the playing picture based on the picture category, the picture quality parameter being a parameter related to the display effect of the playing picture.
[0012] According to an aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device configured to store one or more programs, which, when executed by the one or more processors, cause the electronic device to implement the method provided in various optional implementation manners described above.
[0013] According to an aspect of an embodiment of the present application, a computer program medium is provided, which stores computer readable instructions. When the computer readable instructions are executed by a processor of a computer, the computer is caused to perform the picture display method provided in various optional implementation manners described above.
[0014] According to an aspect of an embodiment of the present application, a computer program product or computer program is provided, which comprises computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device performs the picture display method provided in various optional implementation manners described above.
[0015] In the embodiment of the present application, the gray scale value of the to-be-displayed playing picture is acquired, the picture category of the playing picture is determined according to the gray scale value, the picture category is used to indicate the light and dark degree of the playing picture, the corresponding quality parameter is matched for the current playing picture according to the picture category of the playing picture, and the quality parameter can map the to-be-displayed playing picture, so as to improve the display effect of the playing picture with different light and dark degrees.
[0016] Other characteristics and advantages of the present application will become apparent from the following detailed description, or will be learned by practice of the present application.
[0017] It should be understood that the foregoing general description and the following detailed description are only exemplary and are not limiting on the present application. BRIEF DESCRIPTION OF DRAWINGS
[0018] The foregoing and other objects, features and advantages of the present application will become more apparent from the following detailed description, which proceeds with reference to the accompanying drawings.
[0019] Figure 1 A flowchart of a picture display method according to an embodiment of the present application is shown.
[0020] Figure 2 A flowchart of determining a picture category according to an embodiment of the present application is shown.
[0021] Figure 3 A flowchart of determining a picture category according to another embodiment of the present application is shown.
[0022] Figure 4Fig. 1 shows a structural schematic diagram of a picture display device according to an embodiment of the present application.
[0023] Figure 5 Fig. 2 shows a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0024] Example implementations will now be described more fully with reference to the accompanying drawings. Example implementations may, however, be implemented in many different forms and should not be construed as limited to the examples set forth herein; rather, these example implementations are provided so that this disclosure will be thorough and complete, and will fully convey the scope of example implementations to those skilled in the art. Like reference numerals refer to like elements throughout the various figures and examples. The figures are not necessarily drawn to scale, and the sizes of some features have been exaggerated in order to illustrate details and aspects of the example implementations.
[0025] Furthermore, described features, structures, or characteristics can be combined in any suitable manner in one or more example implementations. In the following description, numerous specific details are provided to give a thorough understanding of example implementations. One skilled in the relevant art will recognize, however, that the techniques described herein can be practiced without one or more of the specific details, or with other methods, components, materials, and so forth. In other instances, well-known structures, materials, or operations are not shown or described in detail in order to avoid obscuring aspects of the example implementations.
[0026] Some of the block diagrams shown in the drawings are functional entities that do not necessarily have to correspond to physically or logically independent entities. These functional entities can be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0027] The picture display method of the present embodiment can be applied in a display screen control system. The display screen control system comprises a broadcast control box, a sending card and a display panel. The broadcast control box processes video signals, and the sending card completes data processing such as video decoding and format switching. The processed video signals are received by a receiving card of the display panel, and the image of the video signals is displayed by the display panel.
[0028] Figure 1 Fig. 1 shows a structural schematic diagram of a picture display device according to an embodiment of the present application.
[0029] S100, a current to-be-displayed playing picture is acquired, and distribution information of gray scale values of each pixel point in the playing picture is acquired.
[0030] Specifically, the current to-be-displayed play picture refers to a next play picture of a current play picture of the display panel.
[0031] According to the to-be-displayed play picture, a gray scale value of each pixel point in the play picture is acquired.
[0032] The distribution information of the gray scale value refers to a gray scale value set composed of the gray scale values of each pixel point in the play picture.
[0033] Optionally, the play picture is processed according to 8-bit, that is, there are 256 gray scale levels, and the gray scale value range of each pixel point is [0, 255].
[0034] S110, according to the distribution information of the gray scale value of each pixel point in the play picture, determining a picture category of the play picture, the picture category being used to indicate a light and dark degree of the play picture.
[0035] Specifically, according to the gray scale value of each pixel point in the play picture refers to that the distribution range and the numerical value of all the pixel points can determine the picture category of the play picture, and the picture category is used to indicate the light and dark degree of the play picture.
[0036] In the gray scale image, different gray scale values represent different degrees of gray. The lower the gray scale value, the darker the gray. For example, 0 represents pure black, and 255 represents pure white.
[0037] Therefore, according to the gray scale value of each pixel point in the play picture, the picture category of the play picture is obtained, and the light and dark degree of the play picture can be indicated according to the picture category.
[0038] S120, based on the picture category, matching a corresponding quality parameter for the play picture, the quality parameter being a parameter related to the display effect of the play picture.
[0039] Based on the picture category indicating the light and dark degree of the play picture, a corresponding quality parameter is matched for the play picture, the quality parameter being a parameter related to the display effect of the play picture, specifically being a parameter used for mapping the play picture to improve the display effect of the play picture on the display panel.
[0040] It can be understood that the play picture is generally displayed through the display panel. The display parameters set on the display panel are generally set at the factory. The difference of the play pictures with different brightness mainly reflects on the contrast, saturation and picture details, and the same set of display parameters cannot improve the quality of different play pictures.
[0041] In the embodiment, the gray scale values of each pixel point in the to-be-displayed playing picture are acquired, the picture category of the playing picture is determined according to the gray scale values of all the pixel points in the playing picture, the picture category is used to indicate the brightness of the playing picture, the corresponding quality parameter is matched for the playing picture according to the brightness of the playing picture, and the quality parameter can be processed in a targeted manner for the playing picture with different brightness, so as to improve the display effect of the playing picture.
[0042] As an optional implementation, in step S120, the picture category of the playing picture is determined according to the distribution information of the gray scale values of each pixel point in the playing picture, including:
[0043] S210, grouping the gray scale values of all the pixel points in the order from small to large, to obtain at least one gray scale group.
[0044] Specifically, the gray scale values of each pixel point are arranged in the order from small to large, and all the gray scale values are divided to obtain at least one gray scale group.
[0045] The number of gray scale groups varies according to the number of gray scale values included in each gray scale group. For example, if the display processing bit number of the display panel is 8, the gray scale values can be grouped in the form of 8 per group to obtain 32 gray scale groups, or in the form of 4 per group to obtain 64 gray scale groups.
[0046] It can be understood that the grouping of the gray scale groups is obtained after the gray scale values are sorted, that is, the smaller gray scale values are located in one or several gray scale groups, and the larger gray scale values are located in other gray scale groups. By grouping the gray scale values, the extreme value of the brightness of the playing picture can be determined through the gray scale groups. For example, the more the number of gray scale groups with larger gray scale values, the brighter the playing picture; the more the number of gray scale groups with smaller gray scale values, the brighter the playing picture.
[0047] S220, acquiring the gray scale average value of the playing picture based on the gray scale values of each pixel point.
[0048] Specifically, the gray scale average value can represent the overall level of the brightness of the playing picture. For example, if the playing picture is overall bright, the value of the gray scale average value is large. If the playing picture is overall dark, the value of the gray scale average value is small.
[0049] S230, determining the picture category of the playing picture according to the gray scale average value and the at least one gray scale group.
[0050] Specifically, the picture category of the playing picture is determined according to the gray scale average value and the gray scale value of the at least one gray scale group.
[0051] In the embodiment, the average gray scale value can represent the overall level of brightness of the playing picture, and the gray scale value of the gray scale group can represent the extreme value of brightness of the playing picture. The picture category of the playing picture is determined by the average gray scale value and the at least one gray scale group, and the accuracy of determining the picture category is improved to a certain extent.
[0052] As an optional implementation, in step S220, the average gray scale value of the playing picture is obtained based on the distribution information of the gray scale values of the respective pixel points, and the obtaining includes:
[0053] S222, the frequency of the gray scale value of each pixel point in the gray scale values of all pixel points is obtained.
[0054] S224, the average gray scale value of the playing picture is obtained according to each gray scale value and the frequency.
[0055] Specifically, the frequency of the gray scale value of each pixel point in the gray scale values of all pixel points refers to the proportion of the occurrence times of each pixel point in the total gray scale values of the pixel points.
[0056] For example, in a certain playing picture, there are only two gray scale values: 2 and 228, and the gray scale values of other pixel points are all 0.
[0057] In the playing picture, the frequency of the gray scale value 2 is 10%, and the frequency of the gray scale value 228 is 90%, and the average gray scale value of the playing picture is equal to 2*10%+228*90%.
[0058] The average gray scale value can represent the overall level of brightness of the playing picture. The picture category of the playing picture can be preliminarily judged by the size of the average gray scale value.
[0059] For example, in the example, the proportion of the gray scale value 228 is 90%, and the average gray scale value is calculated to be 205.4.
[0060] The proportion of the maximum gray scale value 228 in the playing picture is 90%, and the average gray scale value is combined to obtain that the playing picture is a relatively bright picture.
[0061] In the embodiment, the frequency of the gray scale value of each pixel point is obtained, and then the average gray scale value is calculated according to each gray scale value and the corresponding frequency. The picture category of the playing picture can be preliminarily judged according to the average gray scale value.
[0062] As an optional implementation, in step S230, the picture category of the playing picture is determined according to the average gray scale value and the at least one gray scale group, and the determining includes:
[0063] S240, the picture category of the playing picture is determined according to the size relationship between the average gray scale value and the preset threshold value and the parameters of the several gray scale groups.
[0064] Specifically, the average gray scale value is calculated, the average gray scale value is compared with the preset threshold, and parameters of a plurality of gray scale groups are obtained according to a comparison result, so as to determine the picture category of the playing picture.
[0065] It should be noted that the number of the obtained gray scale groups and the gray scale value of the gray scale groups are different according to different comparison results.
[0066] The parameters of the plurality of gray scale groups refer to the gray scale values of the gray scale groups and the serial numbers of the gray scale groups.
[0067] As an optional implementation, in step S240, the picture category of the playing picture is determined according to the size relationship between the average gray scale value and the preset threshold and the parameters of the plurality of gray scale groups, including:
[0068] S310, if the average gray scale value is less than the preset threshold, a plurality of gray scale groups with minimum gray scale values are obtained, and a first gray scale sum is obtained according to the gray scale values of the plurality of gray scale groups with minimum gray scale values.
[0069] S320, if the first gray scale sum is less than a first threshold, it is determined that the playing picture is a first category picture.
[0070] Specifically, the average gray scale value is compared with the preset threshold, if the average gray scale value is less than the preset threshold, a plurality of gray scale groups with minimum gray scale values are selected. The gray scale group with minimum gray scale value refers to the gray scale group with minimum gray scale value, and the gray scale value of the gray scale group is calculated by summing a plurality of gray scale values in the gray scale group.
[0071] The first gray scale sum is obtained according to the gray scale values of the plurality of gray scale groups with minimum gray scale values, and if the first gray scale sum is less than the first threshold, it is determined that the playing picture is the first category picture.
[0072] S330, if the average gray scale value is greater than or equal to the preset threshold, a plurality of gray scale groups with maximum gray scale values are obtained, and a second gray scale sum is obtained according to the gray scale values of the plurality of gray scale groups with maximum gray scale values.
[0073] S340, if the second gray scale sum is less than a second threshold, it is determined that the playing picture is a second category picture.
[0074] If the average gray scale value is greater than or equal to the preset threshold, the gray scale values of the plurality of gray scale groups with maximum gray scale values are obtained, and the second gray scale sum is obtained by summing the plurality of gray scale values.
[0075] If the second gray scale sum is less than the second threshold, it is determined that the playing picture is the second category picture.
[0076] In the embodiment, the preset threshold value can be adjusted according to an actual scene. For example, the preset threshold value is set to 100.
[0077] Specifically, the number of the obtained gray scale groups can be determined according to the total number of the gray scale groups. For example, when the gray scale groups are divided into 32 groups.
[0078] When the average gray scale value is greater than or equal to the preset threshold value, three gray scale groups with the smallest gray scale values are obtained. If the first gray scale values of the three gray scale groups are less than a first threshold value, the playing picture is determined as a first category picture.
[0079] When the average gray scale value is less than the preset threshold value, four gray scale groups with the largest gray scale values are obtained. If the second gray scale values of the four gray scale groups are less than a second threshold value, the playing picture is determined as a second category picture.
[0080] It should be noted that the number of the gray scale groups in the embodiment is only for example and should not limit the scheme of the embodiment.
[0081] In the embodiment, by comparing the average gray scale value and the preset threshold value, a number of gray scale groups with the largest gray scale values or the smallest gray scale values are obtained according to the comparison result. The picture category of the playing picture is determined according to the gray scale values of the multiple gray scale groups. The multi-level subdivision condition can more accurately determine the picture category of the playing picture.
[0082] As an optional implementation, in step S240, the picture category of the playing picture is determined according to the size relationship between the average gray scale value and the preset threshold value and the parameters of the number of gray scale groups, including:
[0083] S410, if the average gray scale value is greater than or equal to the preset threshold value, the picture category of the playing picture is determined as a second category picture.
[0084] S420, if the average gray scale value is less than the preset threshold value, the gray scale group sequence number of the largest pixel point gray scale value is obtained. The gray scale group sequence number is used to represent the numerical value of the gray scale value in the gray scale group.
[0085] S430, if the gray scale group sequence number of the largest pixel point gray scale value is less than a preset sequence number threshold value, the picture category of the playing picture is determined as a first category picture. The preset sequence number threshold value is related to the number of the gray scale groups.
[0086] In the process of comparing the average gray scale value and the preset threshold value, if the average gray scale value is greater than or equal to the preset threshold value, the picture category of the playing picture is determined as a second category picture.
[0087] If the average gray scale value is less than the preset threshold value, the gray scale group sequence number of the largest pixel point gray scale value is obtained.
[0088] If the gray scale group sequence number of the pixel point with the maximum gray scale value is less than the preset sequence threshold, it is determined that the picture category of the playing picture is a first category picture.
[0089] The gray scale group sequence number is used to represent the numerical value of the gray scale value in the gray scale group. For example, there are 32 gray scale groups, the gray scale group sequence number of the pixel point with the maximum gray scale value is 30, and the preset sequence threshold is 31. At this time, the gray scale group sequence number of the pixel point with the maximum gray scale value is less than the preset sequence threshold, that is, the playing picture is a first category picture.
[0090] As an optional implementation, S430 can be applied in combination with S310 to S320, that is, the first gray scale value and the gray scale group sequence number of the pixel point with the maximum gray scale value less than the first threshold are less than the preset sequence threshold, and it is determined that the playing picture is a first category picture.
[0091] In this embodiment, the picture category of the playing picture is determined by the gray scale average value and the sequence number of the gray scale group. If the gray scale average value is less than the preset threshold, it is directly determined according to the sequence number of the specific gray scale group, which to some extent improves the speed of determining the picture category.
[0092] As an optional implementation, in step S130, the picture category includes a first category picture and a second category picture, and corresponding quality parameters are matched for the playing picture based on the picture category, including:
[0093] S132, a first quality parameter is matched for the first category picture, and the first quality parameter is a gamma curve, and the playing picture is mapped through the gamma curve.
[0094] S134, a second quality parameter is matched for the second category picture, and the second quality parameter is an electro-optical conversion function, and the playing picture is mapped through the electro-optical conversion function.
[0095] Specifically, the picture category is used to indicate the brightness of the playing picture. In this embodiment, the picture category includes a first category picture and a second category picture. It should be noted that the number and type of picture categories can be determined according to actual scenarios.
[0096] After the picture category of the playing picture is determined, corresponding quality parameters are matched for the playing picture. The first category picture matches a gamma curve, and the playing picture is mapped through the gamma curve, so that the playing picture can match the display parameters of the display panel, and then the quality is improved to improve the display effect.
[0097] The second category picture matches an electro-optical conversion function, and the playing picture is mapped through the electro-optical conversion function, so that the playing picture can match the display parameters of the display panel, and then the quality is improved to improve the display effect.
[0098] The first type of picture is dark as a whole, and the electro-optical conversion function can process the dark playing picture to improve the display effect of the dark playing picture. The second type of picture is bright as a whole, and the gamma curve can process the bright playing picture to improve the display effect of the bright playing picture.
[0099] Specifically, Figure 2 A flowchart of one embodiment of determining the picture type and matching the picture quality parameter in the embodiment is given.
[0100] S20, the average value of the gray scale is greater than or equal to a preset threshold value;
[0101] S22, a plurality of gray scale groups with the maximum gray scale value are obtained, and a first sum of gray scale values is obtained according to the gray scale values of the plurality of gray scale groups with the maximum gray scale value.
[0102] S23, the second sum of gray scale values is less than a second threshold value;
[0103] S24, it is determined that the playing picture is a second type of picture;
[0104] S25, a second picture quality parameter is matched for the playing picture.
[0105] In Figure 2 In the embodiment, steps S20-S25 correspond to steps S330-S340 and step S134 in the above embodiment. Steps S26-S29 correspond to steps S310-S320 in the above embodiment.
[0106] It is determined in S20 whether the average value of the gray scale is greater than or equal to a preset threshold value. If the average value of the gray scale is greater than or equal to the preset threshold value, steps S22-S25 are executed; otherwise, steps S26-S29 are executed.
[0107] In S22, the number of the gray scale groups with the maximum gray scale value can be set to 4, and the total number of the gray scale groups is 32.
[0108] In S23, the second threshold value can be set to 10. If the first sum of gray scale values is less than 10, it is determined that the playing picture is a second type of picture; otherwise, it is a first type of picture.
[0109] S26, a plurality of gray scale groups with the minimum gray scale value are obtained, and a first sum of gray scale values is obtained according to the gray scale values of the plurality of gray scale groups with the minimum gray scale value.
[0110] S27, the first sum of gray scale values is less than a first threshold value;
[0111] S28, it is determined that the playing picture is a first type of picture;
[0112] S29, a first picture quality parameter is matched for the playing picture.
[0113] In S26, the number of the gray scale group with the minimum gray scale value is 3, and the total number of the gray scale groups is 32.
[0114] In S27, the first threshold value is set to 5. If the first gray scale value is less than the first threshold value, it is determined that the playing picture is the first category picture, otherwise, it is the second category picture.
[0115] Figure 3 A flow chart of another embodiment of determining the picture category and matching the picture quality parameter in the embodiment is shown.
[0116] S30, the gray scale average value is greater than or equal to a preset threshold value;
[0117] S31, it is determined that the playing picture is the second category;
[0118] S32, the second picture quality parameter is matched for the playing picture;
[0119] S33, the gray scale group sequence number in which the gray scale value of the maximum pixel point is obtained;
[0120] S34, the gray scale group sequence number in which the gray scale value of the maximum pixel point is less than a preset sequence number threshold value;
[0121] S35, it is determined that the playing picture is the first category picture;
[0122] S36, the first picture quality parameter is matched for the playing picture.
[0123] Figure 3 The method flow shown corresponds to the above steps S410 to S430.
[0124] In S30, if the gray scale average value is greater than or equal to a preset threshold value, it is determined that the playing picture is the second category picture; otherwise, the gray scale group sequence number in which the gray scale value of the maximum pixel point is obtained.
[0125] In S34, if the gray scale group sequence number in which the gray scale value of the maximum pixel point is less than a preset sequence number threshold value, it is determined that the playing picture is the first category picture, otherwise, the playing picture is the second category picture.
[0126] Figure 4 A picture display device according to an embodiment of the application is shown, which comprises:
[0127] A gray scale value acquisition module 41 is configured to acquire a playing picture to be displayed currently, and acquire distribution information of gray scale values of each pixel point in the playing picture.
[0128] A picture classification module 42 is configured to determine a picture category of the playing picture according to the distribution information of the gray scale values of each pixel point in the playing picture, the picture category being used to indicate a light and dark degree of the playing picture.
[0129] The picture display module 43 is configured to match corresponding quality parameters to the playing picture based on the picture category, wherein the quality parameter is a parameter related to the display effect of the playing picture.
[0130] Further, the picture classification module 42 comprises:
[0131] The gray value grouping unit is configured to group the gray values of all the pixel points in ascending order of the gray values to obtain at least one gray value group.
[0132] The average value obtaining unit is configured to obtain the average gray value of the playing picture based on the gray values of the pixel points.
[0133] The category determining unit is configured to determine the picture category of the playing picture according to the average gray value and the at least one gray value group.
[0134] Further, the average value obtaining unit comprises:
[0135] The frequency obtaining unit is configured to obtain the frequency of each gray value in the gray values of all the pixel points.
[0136] The average value calculating unit is configured to obtain the average gray value of the playing picture according to each gray value and the frequency.
[0137] Further, the category determining unit comprises:
[0138] The parameter determining category unit is configured to determine the picture category of the playing picture according to the size relationship between the average gray value and the preset threshold value and the parameters of the several gray value groups.
[0139] Further, the parameter determining category unit comprises:
[0140] The first gray value sum calculating unit is configured to obtain the first gray value sum if the average gray value is less than the preset threshold value, and obtain the first gray value sum according to the gray values of the gray value group with the smallest gray values.
[0141] The first determining unit is configured to determine the playing picture as the first category picture if the first gray value sum is less than the first threshold value.
[0142] The second gray value sum calculating unit is configured to obtain the second gray value sum if the average gray value is greater than or equal to the preset threshold value, and obtain the second gray value sum according to the gray values of the gray value group with the largest gray values.
[0143] The second determining unit is configured to determine the playing picture as the second category picture if the second gray value sum is less than the second threshold value.
[0144] Further, the parameter determining unit comprises:
[0145] The third determining unit is configured to determine that the picture category of the playing picture is a second category picture if the average value of the gray scale values is greater than or equal to a preset threshold value.
[0146] The obtaining unit is configured to obtain a gray scale group sequence number of the maximum pixel gray scale value if the average value of the gray scale values is less than the preset threshold value, the gray scale group sequence number being used to represent the numerical value of the gray scale value in the gray scale group.
[0147] The fourth determining unit is configured to determine that the picture category of the playing picture is a first category picture if the gray scale group sequence number of the maximum pixel gray scale value is less than a preset sequence number threshold value, the preset sequence number threshold value being related to the number of the gray scale groups.
[0148] Further, the picture display module 43 comprises:
[0149] The first parameter matching unit is configured to match a first picture quality parameter for the first category picture, the first picture quality parameter being a gamma curve, and the playing picture being mapped through the gamma curve.
[0150] The second parameter matching unit is configured to match a second picture quality parameter for the second category picture, the second picture quality parameter being an electro-optical conversion function, and the playing picture being mapped through the electro-optical conversion function.
[0151] The electronic device 50 according to an embodiment of the present application will be described below with reference to Figure 5 Figure 5 The display electronic device 50 is merely an example and should not impose any limitation on the functions and usage range of the embodiments of the present application.
[0152] As shown in Figure 5 , the electronic device 50 is in the form of a general computing device. The components of the electronic device 50 can include, but are not limited to, the above-mentioned at least one processing unit 510, the above-mentioned at least one storage unit 520, and a bus 530 connecting different system components, including the storage unit 520 and the processing unit 510.
[0153] The storage unit stores program codes, which can be executed by the processing unit 510, so that the processing unit 510 performs the steps according to various exemplary embodiments of the present application described in the description part of the above-mentioned exemplary method. For example, the processing unit 510 can perform each step as shown in Figure 1
[0154] The storage unit 520 can include a readable medium in the form of volatile storage such as random access memory (RAM) 5201 and / or cache memory 5202, and also can include a non-volatile storage such as read only memory (ROM) 5203.
[0155] The storage unit 520 also can include a program / utility 5204 having a set of program modules 5205 such as an operating system, one or more application programs, other program modules, and program data, each of which can give the electronic device 500 its functionality, at least in part. The program modules 5205 can include, but are not limited to, a network environment implementation, either alone or in some combination.
[0156] The bus 530 can represent one or more of several types of bus structures, including a storage bus or bus for storage controller, a peripheral bus, a graphics acceleration bus, a processor or local bus using any of a variety of bus architectures, and the like.
[0157] The electronic device 500 also can communicate with one or more external devices 600 such as a keyboard or pointing device, a Bluetooth device, etc., one or more devices that enable a user to interact with the electronic device 500 and / or one or more devices that enable the electronic device 500 to communicate with one or more other computing devices. Such communication can occur via an input / output (I / O) interface 550. Still yet, the electronic device 500 can communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and / or a public network such as the Internet, via a network adapter 560. As depicted, the network adapter 560 can be communicatively coupled to the other components of the electronic device 500 via the bus 530. It should be appreciated that the network adapter 560 and / or the bus 530 can be implemented using one or more types of technology, including but not limited to, Ethernet, Bluetooth, Wi-Fi, and the like.
[0158] From the foregoing description, it will be apparent to those skilled in the art that the example embodiments described herein can be implemented in software and / or hardware. The technology of the embodiments of the present application can be embodied in a software- product, which can be stored on a non-volatile storage medium (which can be a CD-ROM, a USB flash disk, a mobile hard disk, etc.) or on a network, and includes a number of instructions to make a computing device (which can be a personal computer, a mobile terminal, etc.) execute the picture display method according to the embodiments of the present application.
[0159] In an exemplary embodiment of the present application, a computer-readable storage medium is further provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the screen display method described in the above method embodiment.
[0160] According to one embodiment of the present application, a program product for implementing the method in the above method embodiment is also provided. The program product may be a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0161] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0162] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0163] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0164] The program code may be implemented in any of various ways, including procedure-based, object-oriented ways in which the procedures are implemented as objects, either separately from the activating object or as part of it. The program code can execute entirely on the user's computing device, partly on the user's computing device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device or entirely on the remote computing device or server. In the latter scenario, the remote computing device can be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computing device, such as through the Internet using an Internet Service Provider (ISP).
[0165] It should be noted that, although several modules or units of the device for action execution are mentioned in the foregoing detailed description, such a division is not mandatory. Indeed, according to an embodiment of the application, the features and functionalities of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functionalities of one module or unit described above can be further divided into several modules or units embodied.
[0166] Furthermore, although the various steps of the methods of the present application are described in a particular order in the figures, this is not required or implied as to the order of execution of the steps, nor is it required that all of the steps be executed to achieve the desired result. Additionally or alternatively, certain steps can be omitted, multiple steps can be combined into one step, one step can be broken into multiple steps, etc.
[0167] From the above description of embodiments, those skilled in the art will readily perceive that the example embodiments described herein can be implemented by software and / or by hardware and / or by a combination of software and hardware. Accordingly, the technical solutions according to the embodiments of the present application can be embodied in the form of a software product. The software product can be stored in a non-volatile storage medium, such as a CD-ROM, a USB flash disk, a mobile hard disk, etc., or on a network, and includes a number of instructions for making a computing device (which can be a personal computer, a mobile terminal, etc.) execute the methods according to the embodiments of the present application.
[0168] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the specification and examples be considered as exemplary only, with the true scope and spirit of the application being indicated by the following claims.
Claims
1. A screen display method, characterized in that: include: Obtaining the current playback picture to be displayed, and obtaining the distribution information of the grayscale value of each pixel in the playback picture; Group the grayscale values of all pixels in ascending order to obtain at least two grayscale groups; Based on the grayscale values of the respective pixels, an average grayscale value of the playback image is obtained; If the average value of the grayscale value is greater than or equal to a preset threshold, determining that the picture category of the playback picture is a second category picture; If the grayscale average value is less than the preset threshold, the grayscale group number of the grayscale value of the maximum pixel is obtained, where the grayscale group number is used to represent the numerical value of the grayscale value in the grayscale group; If the grayscale group number of the grayscale value of the maximum pixel is less than a preset number threshold, the picture category of the playback picture is determined to be a first category picture, where the preset number threshold is related to the number of grayscale groups; the picture category is used to indicate the brightness of the playback picture; wherein the picture categories include first category pictures that are generally dark and second category pictures that are generally bright; Based on the picture category, corresponding picture quality parameters are matched for the playback picture, and the picture quality parameters are parameters related to the display effect of the playback picture; wherein, the picture quality parameters matched by the first category of pictures include a gamma curve, and the picture quality parameters matched by the second category of pictures include an electro-optical conversion function.
2. The screen display method according to claim 1, wherein: The obtaining the grayscale average value of the playback image based on the distribution information of the grayscale values of the respective pixel points includes: Get the frequency of each pixel's grayscale value among all pixel's grayscale values; The grayscale average value of the playback image is obtained according to each grayscale value and the frequency.
3. The screen display method according to claim 1, wherein: The determining the picture category of the playback picture according to the grayscale average value and at least one of the grayscale groups includes: The picture category of the playback picture is determined according to a magnitude relationship between the grayscale average value and a preset threshold value and parameters of a plurality of the grayscale groups.
4. The screen display method according to claim 3, wherein: The determining the picture category of the playback picture according to the magnitude relationship between the grayscale average value and the preset threshold value and the parameters of the plurality of grayscale groups includes: If the grayscale average value is less than the preset threshold, obtaining several grayscale groups with minimum grayscale values, and obtaining a first grayscale value sum according to the grayscale values of the several grayscale groups with minimum grayscale values; If the sum of the first grayscale values is less than a first threshold, determining that the playback picture is a first category picture; If the grayscale average value is greater than or equal to the preset threshold, obtaining several grayscale groups with the largest grayscale values, and obtaining a second grayscale value sum according to the grayscale values of the several grayscale groups with the largest grayscale values; If the sum of the second grayscale values is less than a second threshold, the playback picture is determined to be a second category picture.
5. The screen display method according to claim 1, wherein: The picture categories include first-category pictures and second-category pictures, and matching corresponding picture quality parameters for the playback pictures based on the picture categories includes: matching a first image quality parameter for the first category of images, where the first image quality parameter is a gamma curve, and mapping the playback images using the gamma curve; A second picture quality parameter is matched for the second category picture, where the second picture quality parameter is an electro-optical conversion function, and the playback picture is mapped through the electro-optical conversion function.
6. A screen display device, characterized in that: The screen display device includes: A grayscale value acquisition module is used to acquire the current playback picture to be displayed and obtain the distribution information of the grayscale value of each pixel in the playback picture; A picture classification module, configured to group the grayscale values of all pixels in ascending order of grayscale value to obtain at least two grayscale groups; based on the grayscale values of the respective pixels, obtain an average grayscale value of the playback picture; if the average grayscale value is greater than or equal to a preset threshold, determine that the picture category of the playback picture is a second category picture; if the average grayscale value is less than the preset threshold, obtain the grayscale group sequence number of the grayscale value of the largest pixel, the grayscale group sequence number being used to indicate the numerical value of the grayscale value in the grayscale group; if the grayscale group sequence number of the grayscale value of the largest pixel is less than a preset sequence number threshold, determine that the picture category of the playback picture is a first category picture, the preset sequence number threshold is related to the number of the grayscale groups, and the picture category is used to indicate the brightness and darkness of the playback picture; wherein, the picture categories include first category pictures that are generally dark and second category pictures that are generally bright; A picture display module is used to match corresponding picture quality parameters for the playback picture based on the picture category, and the picture quality parameters are parameters related to the display effect of the playback picture; wherein the picture quality parameters matched by the first category of pictures include a gamma curve, and the picture quality parameters matched by the second category of pictures include an electro-optical conversion function.
7. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the screen display method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the screen display method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method for improving picture quality and liquid crystal display (LCD)
CN102402918A