CN110378973B - Image information processing method and device and electronic equipment - Google Patents

Image information processing method and device and electronic equipment Download PDF

Info

Publication number
CN110378973B
CN110378973B CN201910647093.XA CN201910647093A CN110378973B CN 110378973 B CN110378973 B CN 110378973B CN 201910647093 A CN201910647093 A CN 201910647093A CN 110378973 B CN110378973 B CN 110378973B
Authority
CN
China
Prior art keywords
color gamut
picture
gamut space
displayed
screen
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
CN201910647093.XA
Other languages
Chinese (zh)
Other versions
CN110378973A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910647093.XA priority Critical patent/CN110378973B/en
Publication of CN110378973A publication Critical patent/CN110378973A/en
Application granted granted Critical
Publication of CN110378973B publication Critical patent/CN110378973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The embodiment of the application discloses an image information processing method and device and electronic equipment. The method comprises the following steps: acquiring a color gamut space of a picture to be displayed; acquiring a color gamut space of the screen; if the color gamut space of the picture to be displayed is inconsistent with the color gamut space of the screen, detecting whether a color gamut space conversion condition is met; and if the color gamut space conversion condition is met, converting the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed. By the method, no matter which color gamut space of the to-be-displayed picture is, the to-be-displayed picture can be displayed in the truest state, and user experience is improved.

Description

Image information processing method and device and electronic equipment
Technical Field
The present application relates to the field of image processing technologies, and in particular, to an image information processing method and apparatus, and an electronic device.
Background
With the development of society, the application range of electronic devices with screens is continuously expanded. For example, images such as pictures and videos are displayed on the screen. And the related electronic equipment cannot well reflect the display effect when the image is collected, so that the user experience is poor.
Disclosure of Invention
In view of the above problems, the present application provides an image information processing method, an apparatus and an electronic device to improve the above problems.
In a first aspect, the present application provides an image information processing method applied to an electronic device having a screen that supports image display based on a plurality of color gamut spaces, the method including: acquiring a color gamut space of a picture to be displayed; acquiring a color gamut space of the screen; if the color gamut space of the picture to be displayed is inconsistent with the color gamut space of the screen; and if the color gamut space conversion condition is met, converting the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed.
In a second aspect, the present application provides an image information processing apparatus operable in an electronic device having a screen that supports image display based on a plurality of color gamut spaces, the apparatus comprising: the image information acquisition unit is used for acquiring the color gamut space of the picture to be displayed; the image information acquisition unit is further used for acquiring a color gamut space of the screen; the information comparison unit is used for comparing the color gamut space of the picture to be displayed with the color gamut space of the screen; the information processing unit is used for judging whether the color gamut space of the picture to be displayed is consistent with the color gamut space of the screen; and if the color gamut space conversion condition is met, converting the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed.
In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fourth aspect, the present application provides a computer-readable storage medium having program code stored therein, wherein the method described above is performed when the program code is executed.
The application provides a pair of image information processing method, device and electronic equipment, treat the colour gamut space of picture and acquire through acquireing the colour gamut space of picture will be treated to show the colour gamut space of picture with the colour gamut space of screen contrasts, if treat the colour gamut space of picture that shows with the colour gamut space of screen is inconsistent to if satisfy under the condition of colour gamut space conversion condition, will the colour gamut space of screen convert into with the colour gamut space of picture is treated to show is unanimous. By the method, no matter which color gamut space of the to-be-displayed picture is, the to-be-displayed picture can be displayed in the truest state, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 illustrates an environment diagram of image processing proposed in an embodiment of the present application;
fig. 2 is a flowchart illustrating an image information processing method according to an embodiment of the present application;
fig. 3 is a schematic display diagram of a picture to be displayed in an image information processing method according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating confirmation of a picture to be displayed in an image information processing method according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a control in another image information processing method according to an embodiment of the present application;
fig. 6 shows a flowchart of an image information processing method according to another embodiment of the present application;
fig. 7 is a schematic diagram illustrating a target picture in an image information processing method according to another embodiment of the present application;
FIG. 8 is a flow chart illustrating a method for processing image information according to yet another embodiment of the present application;
fig. 9 is a block diagram showing a configuration of an image information processing apparatus according to an embodiment of the present application;
fig. 10 is a block diagram showing another image information processing apparatus according to another embodiment of the present application;
fig. 11 is a block diagram showing a configuration of still another image information processing apparatus according to still another embodiment of the present application;
fig. 12 is a block diagram showing a configuration of an electronic device of the present application for executing an image information processing method according to an embodiment of the present application.
Fig. 13 is a storage unit for storing or carrying program codes for implementing an image processing method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
With the improvement of the hardware performance of the electronic device, more electronic devices can support the display of pictures with higher definition. However, the inventor has found in research that factors affecting the picture display effect include, in addition to the information of the picture itself, the degree of matching between the picture information and the screen on which the picture display is performed.
Take the color gamut space as an example. A color gamut, i.e. a color gamut space, is a method of encoding a color and also refers to the sum of colors that a technical system is capable of producing. In computer graphics processing, a color gamut is some complete subset of colors. The color gamut space may include an sRGB color gamut, an Adobe RGB color gamut, or a DCI-P3 color gamut. Among them, sRGB is one of the earliest color gamut standards and is supported by W3C, Exif, Intel, Pantone, Corel and many other industry vendors from the industry. The Adobe RGB gamut mainly improves the display on the cyan-green system, and therefore can cover approximately 50% of the CIE 1931XYZ color space. DCI-P3 is a color gamut applied to digital cinema, which is a color gamut standard that dominates the human visual experience and matches as closely as possible the full color gamut that can be exhibited in a movie scene. It is also not the broadest standard in color gamut (bt.2020 is the current latest standard), but has a broader red/green family range above the rec.709 standard.
However, the inventor finds that, when the color gamut space of the picture is inconsistent with the color gamut space of the screen, directly displaying the picture with the inconsistent color gamut space on the screen may cause a display effect that the picture is originally captured to be unable to be displayed. For example, when a picture corresponding to a wider color gamut space is displayed on a screen corresponding to a narrower color gamut space, the displayed picture may become more oversaturated. When a picture with a narrower color gamut space is displayed on a screen with a wider color gamut space, the displayed picture becomes more dim.
Therefore, in order to improve the above problem, the inventor proposes an image information processing method, an apparatus and an electronic device that can enable a picture to be displayed in a truest state regardless of a color gamut space of the picture to be displayed, so as to improve user experience.
The environment in which the embodiments of the present application operate is described below.
As shown in fig. 1, in the embodiment of the present application, color gamut conversion processing of pictures in an interface (e.g., activity) is performed in a Canvas (Canvas), and a picture to be subjected to color gamut conversion is first processed by a graphics processing function library (Skia) to obtain a corresponding bitmap, and then is subjected to color gamut conversion based on the bitmap. In the process of color gamut conversion, color gamut conversion is performed based on a hardware accelerated graphics (HWUI) or a graphics processing function library (Skia), and then the color gamut is processed by an OpenGL ES (graphics library), a layer module (Surface), a layer transfer module (Surface flipper), a hardware layer mixer (HWC), and a Multimedia Display Processor (MDP), and finally displayed on a screen.
The present disclosure will now be described with reference to specific embodiments.
Referring to fig. 2, an image information processing method provided in the present application is applied to an electronic device having a screen, where the screen supports image display based on multiple color gamut spaces, and the method includes:
step S110: and acquiring the color gamut space of the picture to be displayed.
As one mode, the picture to be displayed is a picture which has not yet displayed the content of the picture itself and is selected by the user. For example, as shown in fig. 3, icons of a plurality of pictures are displayed in the interface 99, and when it is detected that one of the icons is selected by the user, it is determined that the picture corresponding to the selected icon is the picture to be displayed. As a mode, after it is detected that one of the icons is touched by the user, it is determined that the touched icon is selected by the user. In another mode, when an in-interface pressing operation for displaying an icon is detected, and an icon exists in an area divided by keeping the pressing operation moving for a certain distance, a picture corresponding to the icon in the area is used as a picture to be displayed. For example, as shown in fig. 4, a pressing operation of the user on the touch point 98 is detected, and the pressing operation is kept moving to the touch point 97, then 4 icons in an area surrounded by a dashed line frame in the figure are selected icons, and a picture corresponding to the selected icon is a picture to be displayed.
As another mode, the picture to be displayed is a picture showing a preview image and selected by the user to be enlarged for full-screen display.
There are various ways for an electronic device to obtain the color gamut space of a picture to be displayed.
In one embodiment, EXIF (exchangeable Image file) information of a picture is directly read, and a color gamut space of the picture is read from the EXIF information. The EXIF information is a format specifically set for digital photographs. Such a format can be used to record attribute information of digital photographs, such as the brand and model of a camera, the photographing time of a photograph, the size of an aperture set at the time of photographing, shutter speed, ISO, and the like, and color gamut space, and the like.
As another way, the color gamut space of the picture can be analyzed directly based on the color values of the pixel points of the picture.
As another mode, the electronic device may generate the EXIF information and also generate an image information accompanying file when acquiring the image. In this file is stored information that the picture will subsequently be modified for re-editing, e.g. the gamut space or saturation of the picture, etc. And then carrying out hash operation on the acquired picture information to obtain a globally unique identifier, and inserting the identifier into the image information accompanying file. And the image information accompanying file is synchronized to the cloud end, so that when the acquired picture is displayed on other electronic equipment, even if the picture is edited again and the information in the EXIF information is not the information when the picture is initially acquired (for example, color gamut space changes due to color editing), other electronic equipment can acquire the image information accompanying file through the cloud end to find the information when the picture is initially acquired (for example, color gamut space), so that the display effect when the picture is acquired can be better recovered.
Step S120: a color gamut space of the screen is obtained.
As one way, a file may be configured in the system of the electronic device for storing the current color gamut space of the screen. In this way, the electronic device can acquire the color gamut space of the screen by reading the file.
Step S130: and if the color gamut space of the picture to be displayed is inconsistent with the color gamut space of the screen, detecting whether a color gamut space conversion condition is met.
Step S140: and if the color gamut space conversion condition is met, converting the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed.
Step S141: and if the color gamut space conversion condition is not met, the color gamut space of the screen is not converted to be consistent with the color gamut space of the picture to be displayed.
It should be noted that, in the embodiment of the present application, the color gamut space conversion condition may be various.
As one way, the gamut space conversion condition characterizes whether the resources of the current electronic device allow gamut conversion. It is understood that the conversion of the color gamut space by the electronic device consumes processor resources as well as power resources. In this way, the color gamut space conversion condition may be that when the current processing resources of the electronic device are less intense or low in power, the conversion of the color gamut space is not allowed. It is to be understood that the threshold may be configured to enable the electronic device to detect whether the current processing resources are under strain or the power is low. For example, the occupancy threshold of the CPU may be configured for the processing resource, and when the electronic device detects that the current CPU occupancy is higher than the aforementioned occupancy threshold, it indicates that the current CPU is in high-load operation, and then it is determined not to perform the color gamut conversion. Similarly, a low power threshold may be configured for the power, and when the electronic device detects that the current power is lower than the low power threshold, it indicates that the current power is low, and then it is determined not to perform color gamut conversion.
Alternatively, the gamut space conversion condition characterizes whether the current electronic device has been turned on for gamut conversion.
Alternatively, whether the conversion of the color gamut space is enabled or not may be global to the electronic device. Or for a single application. In this manner for a single application. The electronic device may be provided with a configuration interface so that the user can control which applications may initiate color gamut conversion when the picture is presented and which applications may not initiate color gamut conversion when the picture is presented. And for the application programs configured in the interface and whether the color gamut conversion can be performed or not, the difference can be made by establishing a list.
For example, as shown in fig. 5, a plurality of applications and the state of the control corresponding to each application are displayed in the interface shown in fig. 5. It can be understood that if the state of the control corresponding to the application program is "off" as shown in the figure, it indicates that the application program is removed or not added to the list, and if the state of the control corresponding to the application program is "on" as shown in the figure, it indicates that the application program is added to the list. For example, for an application named "TX picture", the state of its corresponding control is "on", which means that the application "TX picture" exists in the aforementioned list. For an application named "AQY Picture", if the state of its corresponding control is "off", this indicates that the application "AQY Picture" does not exist in the aforementioned list. It will be appreciated that the applications present in the list then characterise that gamut conversion is enabled when the picture is presented.
As still another way, the gamut space conversion condition may characterize whether or not conversion of the gamut space is currently necessary. Because, even if the conversion of the color gamut space is not performed, the picture to be displayed can be made to show a good reality.
Optionally, the color gamut space conversion condition includes: and the exposure degree of the picture to be displayed is lower than the specified exposure degree value, and the color gamut space range of the picture to be displayed is smaller than the color gamut space range of the screen. It can be understood that the exposure of the picture may affect the saturation of the picture, and then the picture may appear dimmer under the condition that the picture with the narrower color gamut space is directly displayed on the screen with the wider color gamut space, but if the exposure of the picture itself is higher, the higher exposure may be offset with the dimmer effect, and then the display effect of the picture may not become worse, or the reality may be lost more.
Besides the above manner, the color gamut space conversion condition may further include that the exposure level of the picture to be displayed is greater than a specified exposure level value, and the color gamut space range of the picture to be displayed is greater than the color gamut space range of the screen.
The application provides a pair of image information processing method, through the colour gamut space that acquires the picture of waiting to display and acquire the colour gamut space of screen, will wait to display the picture the colour gamut space with the colour gamut space of screen contrasts, if wait to display the picture the colour gamut space with the colour gamut space's of screen inconsistent, and if satisfy the circumstances of colour gamut space conversion condition, will the colour gamut space conversion of screen with the colour gamut space of waiting to display the picture is unanimous. By the method, no matter which color gamut space of the to-be-displayed picture is, the to-be-displayed picture can be displayed in the truest state, and user experience is improved.
Referring to fig. 6, an image information processing method provided by the present application is applied to an electronic device having a screen, where the screen supports image display based on multiple color gamut spaces, and the method includes:
step S210: and displaying a plurality of pictures to be selected in the screen.
It can be understood that the pictures to be selected can be displayed in the form of icons or thumbnails.
Step S220: and determining the picture selected from the multiple pictures to be selected for full-screen display as the picture to be displayed.
Step S230: a color gamut space of the screen is obtained.
Step S240: and comparing whether the color gamut space of the picture to be displayed is consistent with the color gamut space of the screen.
Step S250: and if the color gamut space of the picture to be displayed is consistent with the color gamut space of the screen, displaying the picture to be displayed in a full screen mode.
Step S260: and if the color gamut space of the picture to be displayed is inconsistent with the color gamut space of the screen, detecting whether a color gamut space conversion condition is met.
Step S270: and if the color gamut space conversion condition is not met, displaying the picture to be displayed in a full screen mode.
Step S280: and if the color gamut space conversion condition is met, converting the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed, and displaying the picture to be displayed in a full screen mode.
It should be noted that, the electronic device consumes certain resources in the process of performing the color gamut space conversion, and if the conversion is too frequent, the resources of the electronic device may be more affected. For example, 10 pictures are currently displayed in a full screen, and then the 10 pictures are all in the same color gamut space, and the current color gamut space of the screen is different from the color gamut space of the 10 pictures. Moreover, in the subsequent color gamut conversion process, the color gamut space of the picture is converted to be consistent with the current color gamut space of the screen, so that each picture is converted once before being displayed in a full screen. However, if the color gamut spaces of the remaining pictures are consistent with the screen except for the currently selected picture in the 10 pictures, if the color gamut space of the screen is converted to be consistent with the color gamut space of the current picture to be displayed, then a subsequent color gamut conversion needs to be performed again.
In order to improve the above manner, as a manner, a target picture is obtained with the picture to be displayed as a reference, where the target picture is a picture selected by a user from the multiple pictures to be selected that meets a target probability. And obtaining the color gamut space of the target picture, and if the color gamut space of the target picture is consistent with the color gamut space of the picture to be displayed, converting the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed.
It is understood that a user may be based on certain similarities in viewing the pictures through an application. For example, a user may view multiple pictures of similar content in succession for comparison. As another example, the user may also view pictures taken on the same day in succession. Still alternatively, the user may view nearby pictures near pictures that have been displayed full screen.
Then, based on the above, as a way, the target picture satisfies at least one of the following conditions: the content similarity with the picture to be displayed meets a specified condition; the acquisition date of the picture to be displayed is the same as that of the picture to be displayed; and arranged adjacent to the picture to be displayed. The pictures with the similarity satisfying the specified condition may be all of the same type. For example, pictures all of which are people or pictures all of which are landscapes. It is understood that, in order to reduce the data processing amount, the electronic device may perform content similarity determination on a plurality of pictures to be selected displayed on the screen. Alternatively, the electronic device may divide the types of pictures in advance when the pictures are stored, and store the division results. In this way, when the electronic device needs to determine the target picture according to the picture content, the electronic device can directly query the pre-divided result without performing content identification in real time, and thus the identification efficiency can be improved.
For example, as shown in fig. 7, if the target picture is a picture arranged adjacent to the picture to be displayed. In this case, if the current picture to be displayed is picture a, the target picture includes picture B, picture E, and picture D. If the current picture to be displayed is the picture E, the target pictures comprise a picture A, a picture B, a picture C, a picture D, a picture F, a picture K, a picture H, a picture G and a picture D. And if only pictures F, G, H and K are identified under the condition that the target picture is the picture which is arranged adjacent to the picture to be displayed and the content similarity meets the specified conditions, the target picture only comprises the pictures F, G, H and K.
Further, if the number of the pictures with the color gamut spaces consistent with the color gamut spaces of the pictures to be displayed in the target picture is larger than a target value, the color gamut spaces of the screen are converted to be consistent with the color gamut spaces of the pictures to be displayed.
Furthermore, in order to be a way, after the color gamut space of the target picture is detected to be consistent with the color gamut space of the current picture to be displayed, an outer frame can be displayed around the target picture so as to attract the attention of the user, so that the user can select the target picture for viewing with a higher probability.
Step S290: and displaying the picture to be displayed in a full screen mode.
The application provides a pair of image information processing method, select the picture to carry out the in-process that full screen displayed, through acquireing the colour gamut space of waiting to show the picture and acquire the colour gamut space of screen, will wait to show the colour gamut space of picture with the colour gamut space of screen contrasts, if wait to show the colour gamut space of picture with the colour gamut space's of screen is inconsistent, and if satisfy under the circumstances of colour gamut space conversion condition, will the colour gamut space conversion of screen with the colour gamut space of waiting to show the picture is unanimous, and carries out full screen display. By the method, no matter which color gamut space of the to-be-displayed picture is, the to-be-displayed picture can be displayed in the truest state, and user experience is improved.
Referring to fig. 8, an image information processing method provided by the present application is applied to an electronic device having a screen, where the screen supports image display based on multiple color gamut spaces, and the method includes:
step S310: and acquiring the color gamut space of the picture to be displayed.
Step S320: a color gamut space of the screen is obtained.
Step S330: and if the color gamut space of the picture to be displayed is inconsistent with the color gamut space of the screen, identifying whether the brightness of the screen is greater than a target threshold value.
Step S340: and if the fact that the brightness of the screen is larger than a target threshold value is recognized, converting the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed.
It should be noted that, when the brightness of the screen is lower than a certain brightness value, it is not particularly obvious whether the displayed picture is dim or oversaturated, and if the color gamut conversion is still performed, the resource may be wasted. Therefore, when the fact that the brightness of the screen is larger than the target threshold value is recognized, the color gamut space of the screen is converted to be consistent with the color gamut space of the picture to be displayed, and therefore the color gamut conversion can actually play a role in improving user experience.
As one way, the target threshold may be a current screen brightness that is manually set by the user. Alternatively, the target threshold is a screen brightness that the electronic device automatically sets according to the current external ambient light intensity.
Step S350: and if the brightness of the screen is not larger than the target threshold, detecting whether the deviation degree of the brightness and the target threshold is larger than a specified threshold.
It is understood that the degree of deviation in the present embodiment characterizes the magnitude of the difference between the actual brightness of the screen and the aforementioned target threshold.
As described above, the target threshold may be the current screen brightness manually set by the user, or may be the screen brightness automatically set by the electronic device according to the current external environment light intensity. Or a pre-configured screen brightness that can be perceived to change color significantly. It should be noted that, generally, the screen brightness manually set by the user is brighter than the brightness automatically adjusted by the electronic device according to the ambient light, that is, the brightness value is higher. Then, as one mode, if the electronic device recognizes that the screen brightness is not automatically adjusted based on the ambient light currently, the designated threshold corresponding to the degree of deviation is set as a first designated threshold, and if the electronic device recognizes that the screen brightness is automatically adjusted based on the ambient light currently, the designated threshold corresponding to the degree of deviation is set as a second designated threshold, where the first designated threshold is greater than the second designated threshold.
Step S360: if the deviation degree is not larger than a specified threshold value, detecting that the range of the color gamut space of the screen is smaller than the range of the color gamut space of the picture to be displayed;
step S361: and if the range of the color gamut space of the screen is smaller than the range of the color gamut space of the picture to be displayed, not executing to convert the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed.
Step S362: and if the range of the color gamut space of the screen is larger than the range of the color gamut space of the picture to be displayed, executing conversion of the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed.
It can be understood that, if the range of the color gamut space of the screen is greater than the range of the color gamut space of the picture to be displayed, the picture displayed on the screen is darker than the real picture to be displayed without any color gamut space conversion. However, if the range of the color gamut space of the screen is smaller than the range of the color gamut space of the picture to be displayed, the picture displayed on the screen may be more oversaturated than the real picture to be displayed without performing any color gamut space conversion, and then, even if the deviation degree is not greater than the specified threshold, the current actual brightness is lower than the screen brightness at which the color change can be perceived clearly, because even if the color gamut conversion is not performed, the oversaturated display effect of the picture is cancelled with the effect that the current actual brightness is relatively darker (relatively darker than the target threshold), and further, the visual experience of the user is not affected much even if the conversion is not performed, in this case, the color gamut conversion may not be performed with the objective of saving energy.
Step S370: and if the deviation degree is larger than a specified threshold value, the step of converting the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed is not executed.
It is understood that if the deviation degree is greater than the specified threshold value, the brightness of the current screen is represented to be low, so that the user cannot effectively perceive the effect of the color gamut conversion, and in this case, the color gamut conversion may not be performed with the purpose of saving energy.
By the image information processing method, no matter which color gamut space of the to-be-displayed picture is, the to-be-displayed picture can be displayed in the truest state, and user experience is improved. And under the condition that the color gamut space of the picture to be displayed is identified to be inconsistent with the color gamut space of the screen, whether color gamut conversion is performed or not can be determined according to the current brightness of the screen, so that the pertinence and the flexibility of conversion are improved.
Referring to fig. 9, an image information processing apparatus 400 provided by the present application is operated in an electronic device having a screen supporting image display based on multiple color gamut spaces, the apparatus 400 includes:
an image information obtaining unit 410, configured to obtain a color gamut space of a picture to be displayed.
As one mode, the image information obtaining unit 410 is specifically configured to display a plurality of pictures to be selected in the screen; and determining the picture selected from the multiple pictures to be selected for full-screen display as the picture to be displayed.
The image information obtaining unit 420 is further configured to obtain a color gamut space of the screen.
An information comparison unit 430, configured to compare the color gamut space of the picture to be displayed with the color gamut space of the screen.
An information processing unit 440, configured to, if the color gamut space of the picture to be displayed is inconsistent with the color gamut space of the screen; and if the color gamut space conversion condition is met, converting the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed.
Optionally, as a mode, the color gamut space conversion condition includes: recognizing that the brightness of the screen is greater than a target threshold. In this way, as shown in fig. 10, the apparatus further includes a deviation degree detecting unit 450, configured to detect a deviation degree of the brightness from a target threshold value if the brightness of the screen is not greater than the target threshold value; if the deviation degree is not larger than a specified threshold value and the range of the color gamut space of the screen is larger than the range of the color gamut space of the picture to be displayed, the color gamut space of the screen is not converted into the color gamut space consistent with the color gamut space of the picture to be displayed. And if the deviation degree is larger than a specified threshold value, the step of converting the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed is not executed.
Alternatively, the gamut space conversion condition includes:
the exposure degree of the picture to be displayed is lower than a specified exposure degree value, and the color gamut space range of the picture to be displayed is smaller than the color gamut space range of the screen; or
The exposure degree of the picture to be displayed is larger than a specified exposure degree value, and the color gamut space range of the picture to be displayed is larger than the color gamut space range of the screen.
As one mode, the information processing unit 440 is specifically configured to obtain a target picture with the picture to be displayed as a reference, where the target picture is a picture selected by a user and meeting a target probability in the multiple pictures to be selected; acquiring a color gamut space of the target picture; and if the color gamut space of the target picture is consistent with the color gamut space of the picture to be displayed, converting the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed.
Optionally, the information processing unit 440 is specifically configured to, if the number of pictures whose color gamut spaces are consistent with the color gamut space of the picture to be displayed in the target picture is greater than a target value, convert the color gamut space of the screen into a color gamut space consistent with the color gamut space of the picture to be displayed. Wherein the target picture satisfies at least one of the following conditions: the content similarity with the picture to be displayed meets a specified condition; the acquisition date of the picture to be displayed is the same as that of the picture to be displayed; and arranged adjacent to the picture to be displayed.
As one mode, as shown in fig. 11, the apparatus 400 further includes:
and a full screen display unit 460, which displays the picture to be displayed in full screen.
An electronic device provided by the present application will be described below with reference to fig. 12.
Referring to fig. 12, based on the image processing method and apparatus, another electronic device 100 capable of executing the terminal control method is further provided in the embodiment of the present application. The electronic device 100 includes one or more processors 102 (only one shown), a memory 104, a network module 106, an image processing module 108, a camera 110, and a screen 112 that support image display based on multiple color gamut spaces, coupled to each other. The memory 104 stores programs that can execute the content of the foregoing embodiments, and the processor 102 can execute the programs stored in the memory 104.
Processor 102 may include one or more processing cores, among other things. The processor 102 interfaces with various components throughout the electronic device 100 using various interfaces and lines to perform various functions of the electronic device 100 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 104 and invoking data stored in the memory 104. Alternatively, the processor 102 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 102 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 102, but may be implemented by a communication chip.
The Memory 104 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, code sets, or instruction sets. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The network module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as a wireless access point. The network module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The network module 106 may communicate with various networks, such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network.
The image processing module 108 may be used to encode images captured by the camera 110 or decode data requested by the network module 106 from the network for transmission to the screen 112 for display. Specifically, the image processing module 108 may be a GPU, a dedicated DSP, an FPGA, an ASIC chip, or the like.
Referring to fig. 13, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
To sum up, the image information processing method, the image information processing device and the electronic device provided by the application compare the color gamut space of the screen with the color gamut space of the screen by acquiring the color gamut space of the picture to be displayed, if the color gamut space of the picture to be displayed is inconsistent with the color gamut space of the screen, and under the condition of meeting the color gamut space conversion condition, convert the color gamut space of the screen into the color gamut space of the picture to be displayed. By the method, the picture to be displayed can be displayed in the truest state no matter what the color gamut space of the picture to be displayed is, and user experience is improved.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. An image information processing method applied to an electronic device having a screen supporting image display based on a plurality of color gamut spaces, the method comprising:
displaying a plurality of pictures to be selected in the screen;
determining a picture selected from the multiple pictures to be selected for full-screen display as a picture to be displayed, and acquiring a color gamut space of the picture to be displayed;
acquiring a color gamut space of the screen;
if the color gamut space of the picture to be displayed is inconsistent with the color gamut space of the screen, detecting whether a color gamut space conversion condition is met;
if the color gamut space conversion condition is met, taking the picture to be displayed as a reference to obtain a target picture, wherein the target picture is a picture selected by a user and meeting the target probability in the plurality of pictures to be selected;
acquiring a color gamut space of the target picture;
if the color gamut space of the target picture is consistent with the color gamut space of the picture to be displayed, converting the color gamut space of the screen into a color gamut space consistent with the color gamut space of the picture to be displayed;
and displaying the picture to be displayed in a full screen mode.
2. The method of claim 1, wherein there are a plurality of target pictures, and the step of converting the color gamut space of the screen to be consistent with the color gamut space of the picture to be displayed if the color gamut space of the target picture is consistent with the color gamut space of the picture to be displayed comprises:
if the number of the pictures with the color gamut spaces consistent with the color gamut spaces of the pictures to be displayed in the target picture is larger than a target value, the color gamut spaces of the screen are converted to be consistent with the color gamut spaces of the pictures to be displayed.
3. The method according to claim 1 or 2, wherein the target picture satisfies at least one of the following conditions:
the content similarity with the picture to be displayed meets a specified condition;
the acquisition date of the picture to be displayed is the same as that of the picture to be displayed; and
and the picture to be displayed is arranged adjacently.
4. The method of claim 1, wherein the gamut space conversion condition comprises:
recognizing that the brightness of the screen is greater than a target threshold.
5. The method of claim 4, further comprising:
if the brightness of the screen is not larger than the target threshold, detecting the deviation degree of the brightness and the target threshold;
if the deviation degree is not larger than a specified threshold value and the range of the color gamut space of the screen is smaller than the range of the color gamut space of the picture to be displayed, the color gamut space of the screen is not converted into the color gamut space consistent with the color gamut space of the picture to be displayed.
6. The method of claim 5, further comprising:
and if the deviation degree is larger than a specified threshold value, the step of converting the color gamut space of the screen into the color gamut space consistent with the color gamut space of the picture to be displayed is not executed.
7. The method of claim 1, wherein the gamut space conversion condition comprises:
the exposure degree of the picture to be displayed is lower than a specified exposure degree value, and the color gamut space range of the picture to be displayed is smaller than the color gamut space range of the screen; or
The exposure degree of the picture to be displayed is larger than a specified exposure degree value, and the color gamut space range of the picture to be displayed is larger than the color gamut space range of the screen.
8. An image information processing apparatus that operates in an electronic device having a screen that supports image display based on a plurality of color gamut spaces, comprising:
the image information acquisition unit is used for displaying a plurality of pictures to be selected in the screen; determining a picture selected from the multiple pictures to be selected for full-screen display as a picture to be displayed, and acquiring a color gamut space of the picture to be displayed;
the image information acquisition unit is further used for acquiring the color gamut space of the screen;
the information comparison unit is used for comparing the color gamut space of the picture to be displayed with the color gamut space of the screen;
the information processing unit is used for judging whether the color gamut space of the picture to be displayed is consistent with the color gamut space of the screen; if the color gamut space conversion condition is met, taking the picture to be displayed as a reference to obtain a target picture, wherein the target picture is a picture selected by a user and meeting the target probability in the plurality of pictures to be selected; acquiring a color gamut space of the target picture; if the color gamut space of the target picture is consistent with the color gamut space of the picture to be displayed, converting the color gamut space of the screen into a color gamut space consistent with the color gamut space of the picture to be displayed;
and the full-screen display unit is used for displaying the picture to be displayed in a full screen mode.
9. An electronic device comprising one or more processors, a video codec, and a memory;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-7.
10. A computer-readable storage medium, having program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-7.
CN201910647093.XA 2019-07-17 2019-07-17 Image information processing method and device and electronic equipment Active CN110378973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910647093.XA CN110378973B (en) 2019-07-17 2019-07-17 Image information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910647093.XA CN110378973B (en) 2019-07-17 2019-07-17 Image information processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110378973A CN110378973A (en) 2019-10-25
CN110378973B true CN110378973B (en) 2022-08-12

Family

ID=68253716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910647093.XA Active CN110378973B (en) 2019-07-17 2019-07-17 Image information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110378973B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377390B (en) * 2019-07-17 2021-09-14 Oppo广东移动通信有限公司 Image information processing method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252635A (en) * 2007-02-22 2008-08-27 富士施乐株式会社 Image processing apparatus and image processing method
CN102577397A (en) * 2009-11-20 2012-07-11 夏普株式会社 Image processing device and image processing method
CN105261326A (en) * 2015-10-09 2016-01-20 惠州Tcl移动通信有限公司 Display device for adjusting display color gamut and method for adjusting display color gamut
CN107845363A (en) * 2017-11-23 2018-03-27 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN108810507A (en) * 2018-06-15 2018-11-13 京东方科技集团股份有限公司 A kind of gamut conversion method and gamut converter, display device
CN109618228A (en) * 2018-11-27 2019-04-12 Oppo广东移动通信有限公司 Video source modeling control method, device and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9001141B2 (en) * 2011-09-26 2015-04-07 Ati Technologies Ulc Method and apparatus for providing independent gamut remapping for multiple screen subsections
KR20130141920A (en) * 2012-06-18 2013-12-27 삼성디스플레이 주식회사 System and method for converting color gamut
CN103634580B (en) * 2013-12-19 2016-05-25 敦泰科技有限公司 A kind of colour gamut method of adjustment and device of coloured image
KR20150099143A (en) * 2014-02-21 2015-08-31 삼성전자주식회사 Image processing apparatus, display apparatus, image processing system and method for displaying image data
CN105118026A (en) * 2015-07-28 2015-12-02 小米科技有限责任公司 Color gamut mode switching method and device
WO2019023835A1 (en) * 2017-07-31 2019-02-07 华为技术有限公司 Wide-colour-gamut image display method and device
CN108184037B (en) * 2017-12-12 2019-09-27 维沃移动通信有限公司 A kind of image display method and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252635A (en) * 2007-02-22 2008-08-27 富士施乐株式会社 Image processing apparatus and image processing method
CN102577397A (en) * 2009-11-20 2012-07-11 夏普株式会社 Image processing device and image processing method
CN105261326A (en) * 2015-10-09 2016-01-20 惠州Tcl移动通信有限公司 Display device for adjusting display color gamut and method for adjusting display color gamut
CN107845363A (en) * 2017-11-23 2018-03-27 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN108810507A (en) * 2018-06-15 2018-11-13 京东方科技集团股份有限公司 A kind of gamut conversion method and gamut converter, display device
CN109618228A (en) * 2018-11-27 2019-04-12 Oppo广东移动通信有限公司 Video source modeling control method, device and electronic equipment

Also Published As

Publication number Publication date
CN110378973A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN108600781B (en) Video cover generation method and server
CN110839129A (en) Image processing method and device and mobile terminal
CN110377391B (en) Picture display method and device, mobile terminal and storage medium
CN108830208A (en) Method for processing video frequency and device, electronic equipment, computer readable storage medium
US20190313071A1 (en) Dynamic chroma key for video background replacement
JP7295950B2 (en) Video enhancement control method, device, electronic device and storage medium
CN110377390B (en) Image information processing method and device and electronic equipment
CN110389696B (en) Method and device for controlling screen color gamut, electronic equipment and storage medium
KR101985880B1 (en) Display device and control method thereof
CN113421189A (en) Image super-resolution processing method and device and electronic equipment
EP3886447A1 (en) Video enhancement control method and apparatus, electronic device, and storage medium
CN113507598A (en) Video picture display method, device, terminal and storage medium
CN112788329A (en) Video static frame detection method and device, television and storage medium
CN111627076A (en) Face changing method and device and electronic equipment
CN110378973B (en) Image information processing method and device and electronic equipment
CN110377773B (en) Picture processing method and device, mobile terminal and storage medium
CN112468792B (en) Image recognition method and device, electronic equipment and storage medium
CN110365962B (en) Color gamut conversion processing method and device and electronic equipment
CN110362188B (en) Picture processing method and device, mobile terminal and storage medium
CN104754367A (en) Multimedia information processing method and device
CN110941413B (en) Display screen generation method and related device
WO2017101570A1 (en) Photo processing method and processing system
CN109712216B (en) Chart rendering method and device, readable storage medium and electronic equipment
CN112446848A (en) Image processing method and device and electronic equipment
CN108881999B (en) Screen capture processing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant