CN110378973A - Image information processing method, device and electronic equipment - Google Patents
Image information processing method, device and electronic equipment Download PDFInfo
- Publication number
- CN110378973A CN110378973A CN201910647093.XA CN201910647093A CN110378973A CN 110378973 A CN110378973 A CN 110378973A CN 201910647093 A CN201910647093 A CN 201910647093A CN 110378973 A CN110378973 A CN 110378973A
- Authority
- CN
- China
- Prior art keywords
- color gamut
- picture
- gamut space
- screen
- space
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color 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 present application discloses a kind of image information processing method, device and electronic equipment.The described method includes: obtaining the color gamut space of picture to be shown;Obtain the color gamut space of the screen;If the color gamut space of the picture to be shown is inconsistent with the color gamut space of the screen, detect whether to meet color gamut space switch condition;If meeting color gamut space switch condition, the color gamut space of the screen is converted to consistent with the color gamut space of the picture to be shown.By this method can make the picture to be shown no matter to be shown color gamut space be it is any, picture to be shown can be shown with most true state, the user experience is improved.
Description
Technical field
This application involves technical field of image processing, more particularly, to a kind of image information processing method, device and
Electronic equipment.
Background technique
Electronic apparatus application with screen is with the development of society, its application range constantly expands.For example, being conducive to screen
Show the images such as picture and video.And associated electronic device cannot react display effect when image is collected well, make
It is bad at user experience.
Summary of the invention
In view of the above problems, present applicant proposes a kind of image information processing method, device and electronic equipments, to improve
The above problem.
In a first aspect, this application provides a kind of image information processing method, applied to the electronic equipment with screen, institute
It states screen to support to perform image display based on a variety of color gamut spaces, which comprises obtain the color gamut space of picture to be shown;
Obtain the color gamut space of the screen;If the color gamut space of the picture to be shown is different with the color gamut space of the screen
It causes;If meeting color gamut space switch condition, the color gamut space of the screen is converted to and the colour gamut of the picture to be shown sky
Between it is consistent.
Second aspect runs on the electronic equipment with screen, institute this application provides a kind of image information processing device
It states screen to support to perform image display based on a variety of color gamut spaces, described device includes: image information acquisition unit, for obtaining
The color gamut space of picture to be shown;Described image information acquisition unit is also used to obtain the color gamut space of the screen;Information pair
Than unit, the color gamut space for color gamut space and the screen to the picture to be shown is compared;Information processing list
Member, if color gamut space for the picture to be shown is inconsistent with the color gamut space of the screen;If meeting colour gamut sky
Between switch condition, the color gamut space of the screen is converted to consistent with the color gamut space of the picture to be shown.
The third aspect, this application provides a kind of electronic equipment, including one or more processors and memory;One
Or multiple programs are stored in the memory and are configured as being executed by one or more of processors, it is one or
Multiple programs are configured to carry out above-mentioned method.
Fourth aspect, this application provides a kind of computer readable storage medium, in the computer readable storage medium
It is stored with program code, wherein execute above-mentioned method in said program code operation.
A kind of image information processing method, device and electronic equipment provided by the present application, by obtaining picture to be shown
Color gamut space and obtain the color gamut space of the screen, the color gamut space of picture to be shown and the colour gamut of the screen is empty
Between compare, if the color gamut space of the picture to be shown is inconsistent with the color gamut space of the screen, and if
In the case where meeting color gamut space switch condition, the color gamut space of the screen is converted into the colour gamut with the picture to be shown
Space is consistent.By this method can make the picture to be shown no matter to be shown color gamut space be it is any, be ok
Picture to be shown is shown with most true state, the user experience is improved.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 shows a kind of environment map of image procossing of the embodiment of the present application proposition;
Fig. 2 shows a kind of flow charts for image information processing method that the embodiment of the present application proposes;
The display that Fig. 3 shows the picture to be shown in a kind of image information processing method of the embodiment of the present application proposition is shown
It is intended to;
The confirmation that Fig. 4 shows the picture to be shown in a kind of image information processing method of the embodiment of the present application proposition is shown
It is intended to;
Fig. 5 shows the schematic diagram that control is controlled in another image information processing method of the embodiment of the present application proposition;
Fig. 6 shows a kind of flow chart for image information processing method that another embodiment of the application proposes;
Fig. 7 shows the signal that the application mentions Target Photo in a kind of image information processing method that another embodiment proposes
Figure;
Fig. 8 shows the flow chart that the application mentions a kind of image information processing method of another embodiment proposition;
Fig. 9 shows the structural block diagram that the application mentions a kind of image information processing device that embodiment goes out;
Figure 10 shows the structural block diagram that the application mentions another image information processing device that another embodiment goes out;
Figure 11 shows the structural block diagram of another image information processing device of the application another embodiment proposition;
Figure 12 shows setting for executing according to the electronics of the image information processing method of the embodiment of the present application for the application
Standby structural block diagram.
Figure 13 is the embodiment of the present application for saving or carrying the image processing method realized according to the embodiment of the present application
The storage unit of the program code of method.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
With the promotion of the hardware performance of electronic equipment, more electronic equipments can be supported to carry out the higher figure of clarity
Piece is shown.However inventor has found under study for action, influences the factor of image display effect other than the information of picture itself,
There are also pictorial information and carry out the matching degree between the screen that picture is shown.
By taking color gamut space as an example.Colour gamut, that is, color gamut space is also to refer to a technology to a kind of method that color is encoded
The summation for the color that system can generate.In computer graphical processing, colour gamut is some complete subset of color.Colour gamut is empty
Between may include having sRGB colour gamut, Adobe RGB color domain or DCI-P3 colour gamut.Wherein, sRGB is the gamut standards of earliest period
One of, and obtained W3C, Exif, Intel, Pantone, Corel from industry and the branch of other many industry manufacturers
It holds.Adobe RGB color domain is mainly exactly the display improved on Blue Green, therefore can probably cover 50%CIE
1931XYZ color space.DCI-P3 is a kind of colour gamut applied to digital camera, it is that one kind with human visual experience is leading
Gamut standards, the whole colour gamuts that can show in matching film scene as far as possible.It is also not the most wide standard of colour gamut (at present most
New standard is BT.2020), but on Rec.709 standard, possess broader red/green system range.
And inventors have found that when the color gamut space of the color gamut space of picture and screen is inconsistent, directly on the screen
The inconsistent picture of display color gamut space will cause the display effect that can not be shown when picture is originally collected.For example, when corresponding to
Color gamut space wider array of picture when being shown on the narrower screen of corresponding color gamut space, shown picture can become more
Supersaturation.And when the narrower picture of corresponding color gamut space is shown on the corresponding wider array of screen of color gamut space, it shows
The picture shown can become more dim.
Therefore, in order to improve the above problem, inventors herein proposing provided by the present application can no matter to be shown
The color gamut space of picture to be shown be it is any, picture to be shown can be shown with most true state, be improved
Image information processing method, device and the electronic equipment of user experience.
The environment first run below to the embodiment of the present application is introduced.
As shown in Figure 1, being carried out in interface (such as activity) in painting canvas (Canvas) in the embodiment of the present application
The color gamut conversion of picture is handled, and the processing that the picture of Yao Jinhang color gamut conversion can first pass through function handling graph library (Skia) obtains
Corresponding bitmap is then based on bitmap and carries out color gamut conversion.Hardware-accelerated graphics module can be first based on during color gamut conversion
(HWUI) or function handling graph library (Skia) carries out color gamut conversion, then passes through OpenGL ES (a kind of shape library), figure layer
Module (Surface), figure layer transfer module (Surface Flinger), hardware figure layer mixer (HWC) and multimedia display
The processing of processor (MDP), and then be finally shown on screen.
Teachings herein is introduced below in conjunction with specific embodiment.
Referring to Fig. 2, a kind of image information processing method provided by the present application, applied to the electronic equipment with screen,
The screen is supported to perform image display based on a variety of color gamut spaces, which comprises
Step S110: the color gamut space of picture to be shown is obtained.
As a kind of mode, picture to be shown is the content of also non-exhibiting pictures itself, and the picture chosen by user.
For example, as shown in figure 3, show there is the icons of multiple pictures in interface 99, when detecting that wherein some icon is chosen by user
After, it is determined that picture corresponding to the selected icon is picture to be shown.As a kind of mode, when detect wherein certain
A icon be user's touch-control after, determine that this is chosen by the icon of touch-control by user.Alternatively mode, when having detected work
There is figure for pressing operation in display diagram target interface, and keeping the pressing operation to move a certain distance in divided region
When mark, using the corresponding picture of icon in the region as picture to be shown.For example, as shown in figure 4, first being examined in Fig. 4
It measures user and acts on the pressing operation of touch point 98, and pressing is kept to be continuously moved to touch point 97, then the dotted line in figure
4 icons in the region that frame is surrounded are exactly selected icon, and further picture corresponding to selected icon is
Picture to be shown.
Alternatively mode, picture to be shown be illustrate preview image, and chosen by user amplify with into
The picture of row full screen display.
And for electronic equipment can there are ways to obtain the color gamut space of picture to be shown.
As a kind of mode, EXIF (Exchangeable Image File) information of picture can be read directly, from
The color gamut space of picture is read out in EXIF information.Wherein, EXIF information is a kind of format exclusively for digital photos setting.This
The format of sample can be used to record the attribute information of digital photos, such as the brand and model of camera, the shooting time of photograph, shooting
When the information and color gamut space etc. such as set aperture size, shutter speed, ISO.
Alternatively mode can be directly based upon the color value of the pixel of picture to analyze the colour gamut of picture sky
Between.
As yet another approach, electronic equipment can also generate one when acquiring image, while generating EXIF information
Image information is with file.The information that extended meeting is modified because of editing again after storage picture in this document, for example, picture
Color gamut space or saturation degree etc..Then it is globally unique to obtain one the information of picture collected to be done Hash operation
The identifier is inserted into the image information in file by identifier.And the part image information is with file synchronization to cloud,
So when showing the picture of aforementioned acquisition on other electronic equipments, even if the picture is edited again and causes EXIF
(for example, causing color gamut space to become because color is edited when information in information has not been information when being initially collected
Change), other electronic equipments, which can get image information by cloud and find picture with file, to be initially collected
When information (for example, color gamut space), so as to preferably restore picture it is collected when display effect.
Step S120: the color gamut space of the screen is obtained.
As a kind of mode, it is empty that current colour gamut of the file for storing screen can be configured in the system of electronic equipment
Between.So in this manner, electronic equipment can get the color gamut space of the screen by way of reading this document.
Step S130: if the color gamut space of the picture to be shown is inconsistent with the color gamut space of the screen, inspection
It surveys and whether meets color gamut space switch condition.
Step S140: if meeting color gamut space switch condition, the color gamut space of the screen is converted to described to aobvious
The color gamut space of diagram piece is consistent.
Step S141: if being unsatisfactory for color gamut space switch condition, do not execute by the color gamut space of the screen be converted to
The color gamut space of the picture to be shown is consistent.
It should be noted that in the embodiment of the present application, color gamut space switch condition can there are many.
As a kind of mode, whether the resource of color gamut space switch condition characterization current electronic device, which allows to carry out colour gamut, turns
It changes.It is understood that the conversion that electronic equipment carries out color gamut space needs to consume processor resource and power resources.So
In this manner, color gamut space switch condition can for when the current process resource of electronic equipment is more nervous or electricity compared with
When low, do not allow to carry out the conversion of color gamut space.It is understood that wherein electronics can be made by way of configuring threshold value
Equipment detects whether currently processed resource is more nervous or whether electricity is lower.For example, CPU can be configured for process resource
Occupancy threshold, when electronic equipment detects that current CPU usage is higher than occupancy threshold above-mentioned, characterization is current
CPU is in heavy-duty service, then deciding that without color gamut conversion.Similar, low battery threshold can also be configured for electricity
Value, when electronic equipment detects current electricity lower than low battery threshold value above-mentioned, characterization current electric quantity is lower, then just sentencing
Determine without color gamut conversion.
Whether alternatively mode, color gamut space switch condition characterization current electronic device have had been switched on carry out color
Domain conversion.
Optionally, which can be for electronic equipment is global.It can also be with
It is for certain single application program.In this mode for certain single application program.Electronic equipment can be set one
A configuration interface can open color gamut conversion in exhibiting pictures so which application program user can control, and which is answered
Color gamut conversion will not be opened in exhibiting pictures with program.And whether color gamut conversion can be carried out for what is configured in the interface
Application program can be distinguished by way of establishing list.
For example, as shown in figure 5, showing multiple application programs and each application program pair in interface shown in Fig. 5
The state for the control control answered.It is understood that if the state of the corresponding control control of application program is the "Off" of diagram, that
Indicate that the application program is removed or is added without in above-mentioned list, if the state of the corresponding control control of application program is figure
The "ON" shown, then indicating that the application program is added in above-mentioned list.For example, for the application journey of entitled " TX picture "
The state of sequence, corresponding control control is "ON", i.e. expression " TX picture " this application program can be present in list above-mentioned
In.And for the application program of entitled " AQY picture ", the state of corresponding control control is "Off", then indicating " AQY
This application program of picture " is not present in list above-mentioned.It is understood that the application program being present in list is then
It is characterized in and carries out that color gamut conversion can be opened when picture presentation.
As yet another approach, color gamut space switch condition can characterize currently whether it is necessary to carry out turning for color gamut space
It changes.Because even if without color gamut space conversion, picture to be shown can also be allowed to show relatively good authenticity.
Optionally, the color gamut space switch condition includes: that the exposure of the picture to be shown is lower than specified exposure
Value, and the color gamut space range of the picture to be shown is less than the range of the color gamut space of the screen.It is understood that figure
The exposure of piece can influence the saturation degree of picture, then directly displaying colour gamut sky in the narrower picture of corresponding color gamut space
Between in the case where wider array of screen, will cause picture seems that comparison is dim, still, should be compared with if the exposure of picture itself is higher
High exposure can be that effect is offset, and then the display effect of picture can be made not become worse with dimness, or
Person more loses authenticity.
Color gamut space switch condition in addition to include aforesaid way other than, can also include the picture to be shown exposure it is big
In specified exposure angle value, and the color gamut space range of the picture to be shown is greater than the range of the color gamut space of the screen.
A kind of image information processing method provided by the present application, by the color gamut space and acquisition that obtain picture to be shown
The color gamut space of the screen compares the color gamut space of picture to be shown and the color gamut space of the screen, if described
The color gamut space of picture to be shown it is inconsistent with the color gamut space of the screen, and if meeting color gamut space conversion stripes
In the case where part, the color gamut space of the screen is converted to consistent with the color gamut space of the picture to be shown.Pass through the party
Method can make the picture to be shown no matter to be shown color gamut space be it is any, can be by picture to be shown with most true
Real state is shown, and the user experience is improved.
Referring to Fig. 6, a kind of image information processing method provided by the present application, applied to the electronic equipment with screen,
The screen is supported to perform image display based on a variety of color gamut spaces, which comprises
Step S210: multiple pictures to be selected are shown in the screen.
It is understood that picture to be selected can be shown in the form of icon, it can also be with thumbnail
Form is shown.
Step S220: the picture for carrying out full frame displaying will be chosen to be determined as figure to be shown from the multiple picture to be selected
Piece.
Step S230: the color gamut space of the screen is obtained.
Step S240: whether the color gamut space for comparing the picture to be shown is consistent with the color gamut space of the screen.
Step S250: if the color gamut space of the picture to be shown is consistent with the color gamut space of the screen, to institute
Picture to be shown is stated to be displayed in full screen.
Step S260: if the color gamut space of the picture to be shown is inconsistent with the color gamut space of the screen, inspection
It surveys and whether meets color gamut space switch condition.
Step S270: if being unsatisfactory for color gamut space switch condition, the picture to be shown is displayed in full screen.
Step S280: if meeting color gamut space switch condition, the color gamut space of the screen is converted to described to aobvious
The color gamut space of diagram piece is unanimously displayed in full screen the picture to be shown afterwards.
It should be noted that electronic equipment can consume certain resource during carrying out color gamut space conversion, then
If conversion excessively frequently may more influence the resource of electronic equipment.For example, currently have 10 pictures need to carry out it is full frame
It shows, then and this 10 picture is same color gamut space, and the current color gamut space and this 10 picture of screen
Color gamut space is different.It also, is to be converted to the color gamut space of picture with screen currently during subsequent color gamut conversion
Color gamut space is consistent, then will result in each picture can once be converted before full frame displaying.But if this 10
Except when preceding selected picture in picture, in the case of the color gamut space and screen of remaining picture are consistent, if will screen
Curtain color gamut space be converted to currently the color gamut space of picture to be shown it is consistent, that will result in it is subsequent also need again into
Color gamut conversion of row.
In order to improve aforesaid way, as a kind of mode, on the basis of the picture to be shown, Target Photo, institute are obtained
Stating Target Photo is to meet the picture that destination probability is chosen by user in the multiple picture to be selected.Obtain the Target Photo
Color gamut space, if the color gamut space of the Target Photo is consistent with the color gamut space of the picture to be shown, by the screen
Color gamut space be converted to it is consistent with the color gamut space of the picture to be shown.
It is understood that user is during checking picture by some application program, it may be based on certain
Similitude is to check logic.For example, user may check the similar picture of multiple contents continuously to compare.Example again
Such as, user can may also continuously check the picture acquired on the same day.Again alternatively, user may check nearby has carried out full frame show
The picture near picture shown.
It is so based on above content, as a kind of mode, the Target Photo meets at least one of the following conditions: with
The content similarity of the picture to be shown meets specified requirements;It is identical as the acquisition date of the picture to be shown;And with
The picture arranged adjacent to be shown.Wherein, it is same type of picture that similarity, which meets specified requirements to may include,.Example
It such as, is all the picture of landscape class for the picture of figure kind or all.It is understood that in order to reduce data processing amount, electronics
Equipment can carry out the similar judgement of content into multiple pictures to be selected shown by screen.And alternatively mode,
Electronic equipment can be when carrying out picture and being stored with regard to dividing in advance to the type of picture, and stores division result.So
In this manner, it in the case that electronic equipment needs to determine Target Photo by image content, can directly inquire pre-
First division result, and do not have to real-time perfoming content recognition again, and then recognition efficiency can be promoted.
For example, as shown in fig. 7, if the Target Photo is the picture with the picture arranged adjacent to be shown.So exist
In this case, if current picture to be shown is picture A, then Target Photo includes picture B, picture E and picture D.If working as
Preceding picture to be shown is picture E, then Target Photo includes picture A, picture B, picture C, picture D, picture F, picture K, picture
H, picture G and picture D.And if when Target Photo be with the picture arranged adjacent to be shown and content similarity satisfaction refer to
In the case where the picture of fixed condition, if only picture F, picture G, picture H and picture K are recognized, then Target Photo only wraps
Include picture F, picture G, picture H and picture K.
Further, if in the Target Photo color gamut space and the picture to be shown the consistent figure of color gamut space
The quantity of piece is greater than target value, the color gamut space of the screen is converted to consistent with the color gamut space of the picture to be shown.
Furthermore for the color gamut space and current picture to be shown as a kind of mode mode, in detection Target Photo
Color gamut space it is consistent after, can show an outline border, around Target Photo to cause user's note that making user
The selection target picture of more maximum probability is checked.
Step S290: the picture to be shown is displayed in full screen.
A kind of image information processing method provided by the present application passes through during selecting picture to be displayed in full screen
It obtains the color gamut space of picture to be shown and obtains the color gamut space of the screen, by the color gamut space of picture to be shown and institute
The color gamut space for stating screen compares, if the color gamut space of the picture to be shown with the color gamut space of the screen not
Unanimously, and if in the case where meeting color gamut space switch condition, by the color gamut space of the screen be converted to it is described to
It shows that the color gamut space of picture is consistent, and is displayed in full screen.It is to be shown by the way that this method can no matter to be shown
The color gamut space of picture be it is any, picture to be shown can be shown with most true state, improve user's body
It tests.
Referring to Fig. 8, a kind of image information processing method provided by the present application, applied to the electronic equipment with screen,
The screen is supported to perform image display based on a variety of color gamut spaces, which comprises
Step S310: the color gamut space of picture to be shown is obtained.
Step S320: the color gamut space of the screen is obtained.
Step S330: if the color gamut space of the picture to be shown is inconsistent with the color gamut space of the screen, know
Whether the brightness of the not described screen is greater than targets threshold.
Step S340: if the brightness for recognizing the screen is greater than targets threshold, the color gamut space of the screen is converted
It is consistent with the color gamut space of the picture to be shown.
It should be noted that whether shown picture is dark when the brightness of screen is lower than in the case where certain brightness value
It is light or whether supersaturation can't be particularly evident, if that still also carry out colour gamut conversion, be likely to result in resource
Waste.Therefore, when recognize the screen brightness be greater than targets threshold in the case where, then by the color gamut space of the screen turn
It is changed to consistent with the color gamut space of the picture to be shown, practical play of carried out color gamut conversion can be enabled to mention in this way
Rise the effect of user experience.
As a kind of mode, targets threshold can be the current screen intensity of the dynamic setting of user hand.Alternatively
Mode, targets threshold are the screen intensity that electronic equipment is arranged automatically according to current outside ambient light intensity.
Step S350: if the brightness of the screen is not more than the targets threshold, the brightness and targets threshold are detected
Whether irrelevance is greater than specified threshold.
It is understood that between the intrinsic brilliance and preceding aim threshold value of the irrelevance characterization screen in the present embodiment
The size of difference.
As described in foregoing teachings, targets threshold can be the current screen intensity of the dynamic setting of user hand, or electricity
The screen intensity that sub- equipment is arranged automatically according to current outside ambient light intensity.Or it can obviously be perceived to be preconfigured
To the screen intensity of color change.And it should be noted that the screen intensity of usually user's manual setting can be than electronic equipment certainly
The dynamic brightness adjusted according to environment light is brighter, that is, brightness value is higher.It is so used as a kind of mode, if electronic equipment recognizes
It does not open currently in the case where being automatically based upon environment light adjusting screen intensity, the corresponding specified threshold of degree of will deviate from is set as first
Specified threshold, and be automatically based upon in the case that environment light adjusts screen intensity when electronic equipment recognizes current open, it will deviate from
It spends corresponding specified threshold and is set as the second specified threshold, wherein the first specified threshold is greater than the second specified threshold.
Step S360: if the irrelevance is not more than specified threshold, the range for detecting the color gamut space of the screen is less than
The range of the color gamut space of the picture to be shown;
Step S361: if the range of the color gamut space of the screen is less than the model of the color gamut space of the picture to be shown
Enclose, do not execute the color gamut space of the screen is converted to it is consistent with the color gamut space of the picture to be shown.
Step S362: if the range of the color gamut space of the screen is greater than the model of the color gamut space of the picture to be shown
It encloses, execution is converted to the color gamut space of the screen consistent with the color gamut space of the picture to be shown.
It is understood that if the range of the color gamut space of screen is greater than the model of the color gamut space of the picture to be shown
It encloses, without any color gamut space conversion, the opposite picture to be shown of picture meeting is true shown by screen
Truth condition is more dim.But if the range of the color gamut space of screen is less than the range of the color gamut space of the picture to be shown,
Without any color gamut space conversion, the true feelings of the opposite picture to be shown of picture meeting shown by screen
Condition is more supersaturated, then in the case where irrelevance is not also greater than specified threshold, although current intrinsic brilliance is lower than can
Obviously to be perceived the screen intensity of color change, but because even without color gamut conversion, because of the supersaturation of picture
Display effect can also be offseted with the effect of current intrinsic brilliance relatively darker (relative target threshold value is darker), and then even if not
Conversion will not influence very much the visual experience of user, then in this case in line with energy saving purpose, so that it may not into
Row color gamut conversion.
Step S370: if the irrelevance is greater than specified threshold, the color gamut space by the screen is not executed and is converted
For the step consistent with the color gamut space of the picture to be shown.
It is understood that the brightness for characterizing current screen is lower if the irrelevance is greater than specified threshold, so that with
Family can not effectively perceive effect brought by color gamut conversion, then in this case in line with energy saving purpose, just
It can be without color gamut conversion.
A kind of image information processing method provided by the present application, by this method can no matter to be shown to aobvious
The color gamut space of diagram piece be it is any, picture to be shown can be shown with most true state, improve user
Experience.Also, in the inconsistent situation with the color gamut space of the screen for the color gamut space for identifying the picture to be shown
Under, it can be determined whether to carry out color gamut conversion according to the current brightness of screen, and then improve the specific aim and spirit of conversion
Activity.
Referring to Fig. 9, a kind of image information processing device 400 provided by the present application, runs on the electronics with screen and sets
Standby, the screen is supported to perform image display based on a variety of color gamut spaces, and described device 400 includes:
Image information acquisition unit 410, for obtaining the color gamut space of picture to be shown.
As a kind of mode, image information acquisition unit 410, specifically for showing multiple figures to be selected in the screen
Piece;The picture for carrying out full frame displaying will be chosen to be determined as picture to be shown from the multiple picture to be selected.
Described image information acquisition unit 420 is also used to obtain the color gamut space of the screen.
Information comparison unit 430, for color gamut space and the screen to the picture to be shown color gamut space into
Row compares.
Information process unit 440, if the color gamut space with the screen of the color gamut space for the picture to be shown
It is inconsistent;If meeting color gamut space switch condition, the color gamut space of the screen is converted to and the picture to be shown
Color gamut space is consistent.
Optionally, as a kind of mode, the color gamut space switch condition includes: to recognize the brightness of the screen to be greater than
Targets threshold.In this manner, as shown in Figure 10, described device further includes irrelevance detection unit 450, if being used for the screen
The brightness of curtain is not more than the targets threshold, detects the irrelevance of the brightness and targets threshold;If the irrelevance is not more than
Specified threshold, and 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 shown, does not execute
The color gamut space of the screen is converted to consistent with the color gamut space of the picture to be shown.If the irrelevance is greater than specified
Threshold value does not execute the color gamut space by the screen and is converted to the consistent step of color gamut space with the picture to be shown
Suddenly.
Alternatively mode, the color gamut space switch condition include:
The exposure of the picture to be shown exposes angle value, and the color gamut space range of the picture to be shown lower than specified
Less than the range of the color gamut space of the screen;Or
The exposure of the picture to be shown is greater than specified exposure angle value, and the color gamut space range of the picture to be shown
Greater than the range of the color gamut space of the screen.
As a kind of mode, information process unit 440 is specifically used on the basis of the picture to be shown, obtains target
Picture, the Target Photo are to meet the picture that destination probability is chosen by user in the multiple picture to be selected;Described in acquisition
The color gamut space of Target Photo;It, will if the color gamut space of the Target Photo is consistent with the color gamut space of the picture to be shown
The color gamut space of the screen is converted to consistent with the color gamut space of the picture to be shown.
Optionally, information process unit 440, if being specifically used for color gamut space and the figure to be shown in the Target Photo
The quantity of the consistent picture of the color gamut space of piece be greater than target value, by the color gamut space of the screen be converted to it is described to be shown
The color gamut space of picture is consistent.Wherein, the Target Photo meets at least one of the following conditions: with the picture to be shown
Content similarity meet specified requirements;It is identical as the acquisition date of the picture to be shown;And with the picture to be shown
Arranged adjacent.
As a kind of mode, as shown in figure 11, described device 400 further include:
It is displayed in full screen unit 460, the picture to be shown is displayed in full screen.
A kind of electronic equipment provided by the present application is illustrated below in conjunction with Figure 12.
Figure 12 is please referred to, based on above-mentioned image processing method, device, another kind that the embodiment of the present application also provides can be with
Execute the electronic equipment 100 of aforementioned terminals control method.Electronic equipment 100 include the one or more that intercouples (in figure only
Show one) processor 102, memory 104, network module 106, image processing module 108, camera 110 and support base
In the screen 112 that a variety of color gamut spaces perform image display.Wherein, aforementioned implementation can be executed by being stored in the memory 104
The program of content in example, and processor 102 can execute the program stored in the memory 104.
Wherein, processor 102 may include one or more processing core.Processor 102 utilizes various interfaces and route
The various pieces in entire electronic equipment 100 are connected, by running or executing the instruction being stored in memory 104, program, generation
Code collection or instruction set, and the data being stored in memory 104 are called, execute the various functions and processing of electronic equipment 100
Data.Optionally, processor 102 can be using Digital Signal Processing (Digital Signal Processing, DSP), scene
Programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable
Logic Array, PLA) at least one of example, in hardware realize.Processor 102 can integrating central processor (Central
Processing Unit, CPU), in image processor (Graphics Processing Unit, GPU) and modem etc.
One or more of combinations.Wherein, the main processing operation system of CPU, user interface and application program etc.;GPU is for being responsible for
Show the rendering and drafting of content;Modem is for handling wireless communication.It is understood that above-mentioned modem
It can not be integrated into processor 102, be realized separately through one piece of communication chip.
Memory 104 may include random access memory (Random Access Memory, RAM), also may include read-only
Memory (Read-Only Memory).Memory 104 can be used for store instruction, program, code, code set or instruction set.It deposits
Reservoir 104 may include storing program area and storage data area, wherein the finger that storing program area can store for realizing operating system
Enable, for realizing at least one function instruction (such as touch function, sound-playing function, image player function etc.), be used for
Realize the instruction etc. of following each embodiments of the method.Storage data area can also store the number that terminal 100 is created in use
According to (such as phone directory, audio, video data, chat record data) etc..
The network module 106 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, from
And it is communicated with communication network or other equipment, such as communicated with wireless access point.The network module 106 can wrap
Include it is various existing for executing the circuit elements of these functions, for example, antenna, RF transceiver, digital signal processor plus
Close/deciphering chip, subscriber identity module (SIM) card, memory etc..The network module 106 can be with various networks as interconnected
Net, intranet, wireless network communicate or communicated by wireless network and other equipment.Above-mentioned wireless network
Network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN).
The image processing module 108 can be used for encoding 110 acquired image of camera, or to network mould
Block 106 is decoded from the data of network request, is shown to be transferred to screen 112.Specifically, image processing module
108 can be GPU, dedicated DSP, FPGA, asic chip etc..
Figure 13 is please referred to, it illustrates a kind of structural frames of computer readable storage medium provided by the embodiments of the present application
Figure.Program code is stored in the computer-readable medium 800, said program code can be called by processor and execute the above method
Method described in embodiment.
Computer readable storage medium 800 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory),
The electronic memory of EPROM, hard disk or ROM etc.Optionally, computer readable storage medium 800 includes non-volatile meter
Calculation machine readable medium (non-transitory computer-readable storage medium).Computer-readable storage
Medium 800 has the memory space for the program code 810 for executing any method and step in the above method.These program codes can
With from reading or be written in one or more computer program product in this one or more computer program product.
Program code 810 can for example be compressed in a suitable form.
In conclusion a kind of image information processing method, device and electronic equipment provided by the present application, by obtain to
It shows the color gamut space of picture and obtains the color gamut space of the screen, by the color gamut space of picture to be shown and the screen
Color gamut space compare, if the color gamut space of the picture to be shown is inconsistent with the color gamut space of the screen,
If the color gamut space of the screen is converted to and the figure to be shown and in the case where meeting color gamut space switch condition
The color gamut space of piece is consistent.Which the color gamut space that can make the picture to be shown no matter to be shown by this method is
Kind, picture to be shown can be shown with most true state, the user experience is improved.
Finally, it should be noted that above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although
The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding: it still can be with
It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And
These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and
Range.
Claims (12)
1. a kind of image information processing method, which is characterized in that applied to the electronic equipment with screen, the screen supports base
It is performed image display in a variety of color gamut spaces, which comprises
Obtain the color gamut space of picture to be shown;
Obtain the color gamut space of the screen;
If the color gamut space of the picture to be shown is inconsistent with the color gamut space of the screen, detect whether to meet colour gamut
Space switch condition;
If meeting color gamut space switch condition, the color gamut space of the screen is converted to and the colour gamut of the picture to be shown sky
Between it is consistent.
2. the method according to claim 1, wherein the step of color gamut space for obtaining picture to be shown, wraps
It includes:
Multiple pictures to be selected are shown in the screen;
The picture for carrying out full frame displaying will be chosen to be determined as picture to be shown from the multiple picture to be selected;
The color gamut space by the screen is gone back after being converted to the step consistent with the color gamut space of the picture to be shown
Include:
The picture to be shown is displayed in full screen.
3. according to the method described in claim 2, it is characterized in that, the color gamut space by the screen be converted to it is described
The step that the color gamut space of picture to be shown is consistent includes:
On the basis of the picture to be shown, Target Photo is obtained, the Target Photo is full in the multiple picture to be selected
The picture that foot-eye probability is chosen by user;
Obtain the color gamut space of the Target Photo;
It is if the color gamut space of the Target Photo is consistent with the color gamut space of the picture to be shown, the colour gamut of the screen is empty
Between be converted to it is consistent with the color gamut space of the picture to be shown.
4. according to the method described in claim 3, it is characterized in that, the Target Photo have it is multiple, if the target figure
The color gamut space of piece is consistent with the color gamut space of the picture to be shown, by the color gamut space of the screen be converted to it is described to
Show that the consistent step of the color gamut space of picture includes:
If the quantity of the consistent picture of color gamut space of color gamut space and the picture to be shown is greater than mesh in the Target Photo
Scale value is converted to the color gamut space of the screen consistent with the color gamut space of the picture to be shown.
5. the method according to claim 3 or 4, which is characterized in that the Target Photo meets in the following conditions at least
One:
Meet specified requirements with the content similarity of the picture to be shown;
It is identical as the acquisition date of the picture to be shown;And
With the picture arranged adjacent to be shown.
6. the method according to claim 1, wherein the color gamut space switch condition includes:
The brightness for recognizing the screen is greater than targets threshold.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
If the brightness of the screen is not more than the targets threshold, the irrelevance of the brightness and targets threshold is detected;
If the irrelevance is not more than specified threshold, and the range of the color gamut space of the screen is less than the picture to be shown
The range of color gamut space does not execute the color gamut space one be converted to the color gamut space of the screen with the picture to be shown
It causes.
8. the method according to the description of claim 7 is characterized in that the method also includes:
If the irrelevance be greater than specified threshold, do not execute the color gamut space by the screen be converted to it is described to be shown
The consistent step of the color gamut space of picture.
9. the method according to claim 1, wherein the color gamut space switch condition includes:
The exposure of the picture to be shown is lower than specified exposure angle value, and the color gamut space range of the picture to be shown is less than
The range of the color gamut space of the screen;Or
The exposure of the picture to be shown is greater than specified exposure angle value, and the color gamut space range of the picture to be shown is greater than
The range of the color gamut space of the screen.
10. a kind of image information processing device, which is characterized in that run on the electronic equipment with screen, the screen is supported
It is performed image display based on a variety of color gamut spaces, described device includes:
Image information acquisition unit, for obtaining the color gamut space of picture to be shown;
Described image information acquisition unit is also used to obtain the color gamut space of the screen;
Information comparison unit, the color gamut space for color gamut space and the screen to the picture to be shown are compared;
Information process unit, if color gamut space for the picture to be shown is different with the color gamut space of the screen
It causes;If meeting color gamut space switch condition, the color gamut space of the screen is converted to and the colour gamut of the picture to be shown sky
Between it is consistent.
11. a kind of electronic equipment, which is characterized in that including one or more processors, Video Codec and memory;
One or more programs are stored in the memory and are configured as being executed by one or more of processors, institute
It states one or more programs and is configured to carry out any method of claim 1-9.
12. a kind of computer readable storage medium, which is characterized in that be stored with program generation in the computer readable storage medium
Code, wherein perform claim requires any method of 1-9 when said program code is run by processor.
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 true CN110378973A (en) | 2019-10-25 |
CN110378973B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021008345A1 (en) * | 2019-07-17 | 2021-01-21 | Oppo广东移动通信有限公司 | Image information processing method and apparatus, electronic device and storage medium |
Citations (13)
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 |
US20130076776A1 (en) * | 2011-09-26 | 2013-03-28 | Ati Technologies Ulc | Method and apparatus for providing independent gamut remapping for multiple screen subsections |
US20130335439A1 (en) * | 2012-06-18 | 2013-12-19 | Samsung Display Co., Ltd. | System and method for converting color gamut |
CN103634580A (en) * | 2013-12-19 | 2014-03-12 | 敦泰科技有限公司 | Color gamut adjusting method and device for color image |
US20150243248A1 (en) * | 2014-02-21 | 2015-08-27 | Samsung Electronics Co., Ltd. | Image processing apparatus, display apparatus, and image processing system and method, for displaying image data |
CN105118026A (en) * | 2015-07-28 | 2015-12-02 | 小米科技有限责任公司 | Color gamut mode switching method and device |
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 |
CN108184037A (en) * | 2017-12-12 | 2018-06-19 | 维沃移动通信有限公司 | A kind of method for displaying image 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 |
CN109923606A (en) * | 2017-07-31 | 2019-06-21 | 华为技术有限公司 | A kind of wide color gamut images display methods and equipment |
-
2019
- 2019-07-17 CN CN201910647093.XA patent/CN110378973B/en active Active
Patent Citations (13)
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 |
US20130076776A1 (en) * | 2011-09-26 | 2013-03-28 | Ati Technologies Ulc | Method and apparatus for providing independent gamut remapping for multiple screen subsections |
US20130335439A1 (en) * | 2012-06-18 | 2013-12-19 | Samsung Display Co., Ltd. | System and method for converting color gamut |
CN103634580A (en) * | 2013-12-19 | 2014-03-12 | 敦泰科技有限公司 | Color gamut adjusting method and device for color image |
US20150243248A1 (en) * | 2014-02-21 | 2015-08-27 | Samsung Electronics Co., Ltd. | Image processing apparatus, display apparatus, and image processing system and method, for displaying image data |
CN105118026A (en) * | 2015-07-28 | 2015-12-02 | 小米科技有限责任公司 | Color gamut mode switching method and device |
CN105261326A (en) * | 2015-10-09 | 2016-01-20 | 惠州Tcl移动通信有限公司 | Display device for adjusting display color gamut and method for adjusting display color gamut |
CN109923606A (en) * | 2017-07-31 | 2019-06-21 | 华为技术有限公司 | A kind of wide color gamut images display methods and equipment |
CN107845363A (en) * | 2017-11-23 | 2018-03-27 | 维沃移动通信有限公司 | A kind of display control method and mobile terminal |
CN108184037A (en) * | 2017-12-12 | 2018-06-19 | 维沃移动通信有限公司 | A kind of method for displaying image 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 |
Non-Patent Citations (2)
Title |
---|
HAOLIANG LI等: "Color Space Identification from Single Images", 《2016 IEEE INTERNATIONAL SYMPOSIUM ON CIRCUITS AND SYSTEMS (ISCAS)》 * |
孔宪君等: "计算机相关设备的图像颜色处理及其转换", 《煤炭技术》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021008345A1 (en) * | 2019-07-17 | 2021-01-21 | Oppo广东移动通信有限公司 | Image information processing method and apparatus, electronic device and storage medium |
EP4002823B1 (en) * | 2019-07-17 | 2023-07-26 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Image information processing method, apparatus, and storage medium for display gamut adaptation to a display interface |
Also Published As
Publication number | Publication date |
---|---|
CN110378973B (en) | 2022-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108600781B (en) | Video cover generation method and server | |
US8994845B2 (en) | System and method of adjusting a camera based on image data | |
US9451173B2 (en) | Electronic device and control method of the same | |
CN110377391B (en) | Picture display method and device, mobile terminal and storage medium | |
CN104410785A (en) | An information processing method and electronic device | |
US11810529B2 (en) | Screen color gamut control method, electronic device and storage medium | |
CN111932521B (en) | Image quality testing method and device, server and computer readable storage medium | |
US20220139296A1 (en) | Image information processing method, electronic device and storage medium | |
CN110413360A (en) | Image display method, device, mobile terminal and storage medium | |
CN110378973A (en) | Image information processing method, device and electronic equipment | |
US9076207B1 (en) | Image processing method, system and electronic device | |
CN111311500A (en) | Method and device for carrying out color restoration on image | |
CN112419218A (en) | Image processing method and device and electronic equipment | |
EP2658245B1 (en) | System and method of adjusting camera image data | |
CN110377773B (en) | Picture processing method and device, mobile terminal and storage medium | |
WO2023151210A1 (en) | Image processing method, electronic device and computer-readable storage medium | |
CN110365962B (en) | Color gamut conversion processing method and device and electronic equipment | |
CN114089931B (en) | Picture printing method, electronic device and computer-readable storage medium | |
CN110362188B (en) | Picture processing method and device, mobile terminal and storage medium | |
CN114692800A (en) | Two-dimensional code generation method and related equipment | |
CN111866383A (en) | Image processing method, terminal and storage medium | |
RU2794062C2 (en) | Image processing device and method and equipment | |
CA2776009C (en) | System and method of adjusting camera image data | |
CN116363017B (en) | Image processing method and device | |
CN115705663B (en) | Image processing method and electronic equipment |
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 |