CN107102791A - Control colour changing method and device - Google Patents

Control colour changing method and device Download PDF

Info

Publication number
CN107102791A
CN107102791A CN201710209142.2A CN201710209142A CN107102791A CN 107102791 A CN107102791 A CN 107102791A CN 201710209142 A CN201710209142 A CN 201710209142A CN 107102791 A CN107102791 A CN 107102791A
Authority
CN
China
Prior art keywords
color
component value
mode
color component
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710209142.2A
Other languages
Chinese (zh)
Other versions
CN107102791B (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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201710209142.2A priority Critical patent/CN107102791B/en
Publication of CN107102791A publication Critical patent/CN107102791A/en
Application granted granted Critical
Publication of CN107102791B publication Critical patent/CN107102791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Abstract

The invention discloses a kind of control colour changing method and apparatus, belong to image processing field.This method includes:Calculate each color component value of first color in the first color mode and distinguish corresponding exposure;Using in the first color mode, exposure corresponding with the color component value of the first color of the same color component of the color component value of the second color, color component value of second color in the first color mode is modified, obtain in the first color mode, the color component value with the 3rd color of the same color component of color component value of the second color;By the 3rd color application in target widget.Solve when user changes the color at interface, control can be replaced with the color that the interface is being applied automatically, cause the color of interface and control unified, the problem of user is to the operation of control can be disturbed to a certain extent;While having reached the indisposed sense that reduction heterochromia is caused, it is easy to the effect of user area interface and the control on interface.

Description

Control colour changing method and device
Technical field
The present invention relates to image processing field, more particularly to a kind of control colour changing method and device.
Background technology
Because different user has different color preferences, therefore control colour changing is supported in increasing application.
In order to avoid the indisposed sense that heterochromia is caused between the control on interface and interface, when user changes the face at interface During color, control can be replaced with the color that the interface is being applied automatically.
Although the indisposed sense that the heterochromia that aforesaid way can reduce is caused, because the color of interface and control is unified, Operation of the user to control can be disturbed to a certain extent.
The content of the invention
In order to solve in the prior art when user changes the color at interface, control can be replaced with the interface automatically and should Color, causes the color of interface and control unified, and the problem of user is to the operation of control can be disturbed to a certain extent, this Inventive embodiments provide a kind of control colour changing method and device.The technical scheme is as follows:
First aspect includes there is provided a kind of control colour changing method, methods described:
Each color component value and second color of first color in the first color mode are obtained respectively in first color Each color component value in color pattern, first color is the color applied of target interface, second color be for Change the color of first color;
According to each color component value of first color in first color mode, calculate first color and exist Each color component value in first color mode distinguishes corresponding exposure;
For each color component value of second color in first color mode, using in the first color mould It is corresponding with the color component value of first color of the same color component of color component value of second color to expose in formula Luminosity, is modified to color component value of second color in first color mode, obtains in first color In color pattern, the color component value with the 3rd color of the same color component of color component value of second color;
By the 3rd color application in target widget, the target widget is located in the target interface.
Second aspect includes there is provided a kind of control color changing device, described device:
First acquisition module, for obtaining each color component value and second of first color in the first color mode respectively Each color component value of the color in first color mode, first color is the color that target interface is being applied, Second color is the color for replacing first color;
Computing module, for each color component value according to first color in first color mode, is calculated Each color component value of first color in first color mode distinguishes corresponding exposure;
Correcting module, for each color component value for the second color in first color mode, using In first color mode, the color with first color of the same color component of color component value of second color The corresponding exposure of component value, is modified to color component value of second color in first color mode, obtains To in first color mode, the color with the 3rd color of the same color component of color component value of second color Component value;
Application module, for, in target widget, the target widget to be located at target circle by the 3rd color application In face.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
Corresponding exposure is distinguished by each color component value for calculating the color that target interface is being applied, exposure is utilized Spend and each color component value for replacing the color that target interface is being applied is modified, by replacement target circle obtained after amendment The corresponding color application of each color component value for the color that face is being applied is in target widget, because target widget is located at target circle In face, the color applied to target widget is to being obtained after replacing the color correct that target interface is being applied, with replacing mesh Tone is similar between the color that face applying of demarcating but there is aberration;Therefore solve when user changes the color at interface, Control can be replaced with the color that the interface is being applied automatically, cause the color of interface and control unified, to a certain extent can Disturb the problem of user is to the operation of control;While having reached the indisposed sense that reduction heterochromia is caused, it is easy to user to distinguish Interface and the effect of the control on interface.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the method flow diagram for the control colour changing method that one embodiment of the invention is provided;
Fig. 2 is the method flow diagram for the control colour changing method that another embodiment of the present invention is provided;
Fig. 3 A are the block diagrams of the control color changing device provided in one embodiment of the invention;
Fig. 3 B are the block diagrams of the control color changing device provided in another embodiment of the present invention;
Fig. 4 is the block diagram of the electronic equipment provided in section Example of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is refer to, the method flow diagram of the control colour changing method provided it illustrates one embodiment of the invention.The control Part colour changing method may include steps of:
Step 101, each color component value and second color of first color in the first color mode are obtained respectively Each color component value in one color mode, first color is the color applied of target interface, second color be for Change the color of the first color.
It should be noted that first color mode can for rgb color pattern, HSL color modes, HSB color modes, HSV color modes etc., the present embodiment does not limit the specific color mode of the first color mode.
When the first color mode is rgb color pattern, each color component of first color in the first color mode Value is respectively red value, the green value of the first color, the blue valve of the first color of the first color, when the first color mode is During HSL color modes, each color component value of first color in the first color mode be respectively the first color hue value, The brightness value of the intensity value of first color, the first color.
Similarly, when the first color mode is rgb color pattern, each color of second color in the first color mode Component value is respectively the red value of the second color, the green value of the second color, the blue valve of the second color, when the first color mode During for HSL color modes, each color component value of second color in the first color mode is respectively the form and aspect of the second color Value, the intensity value of the second color, the brightness value of the second color.
Step 102, each color component value according to the first color in first color mode, calculates the first color and exists Each color component value in first color mode distinguishes corresponding exposure.
Optionally, terminal is according to each color component value of first color in the first color mode and exposure related Calculation formula, calculates each color component value of first color in the first color mode and distinguishes corresponding exposure.
Wherein, the related calculation formula of exposure is:
P=pow ((Q-a), b)=(Q-a)b,
Wherein, P is each color component value corresponding exposure of first color in the first color mode, and pow is power letter Number formula, Q is any color component value in each color component value of first color in the first color mode, and a and b are pre- If fixed value.
It should be noted that because Q span is between 0 to 255, thus a span between 0 to 255, Such as a value is 50.
It should be noted that b span is between 0 to 1, such as the value of b is 0.88.
It should be noted that a and b value can also artificially be set by systemic presupposition, the present embodiment do not limit a and The specific setting means of b value.
Citing, if the first color mode is rgb color pattern, the red value of the first color is that 100, a is that 75, b is 0.5, So, the corresponding exposure of the red value of the first color is 5 (P=(100-75)0.5)。
Step 103, each color component value for the second color in the first color mode, using in the first color mould In formula, exposure corresponding with the color component value of the first color of the same color component of the color component value of the second color is right Color component value of second color in the first color mode is modified, and is obtained in the first color mode, with the second color The same color component of color component value the 3rd color color component value.
Specifically, each color component value for the second color in the first color mode, will be in the first color mode In, exposure corresponding with the color component value of the first color of the same color component of the color component value of the second color, with Color component value of the second colors in the first color mode is added, and is obtained in the first color mode, the color with the second color The color component value of 3rd color of the same color component of component value.
Citing, if the first color mode is RGB, the red value of the second color is 50, according to the red value meter of the first color The corresponding exposure 5 of red value calculated, then, the red value of the 3rd color is 55.
Step 104, by the 3rd color application in target widget, the target widget is located in target interface.
After being modified using exposure to each color component value in the first color mode of the second color, obtain 3rd color, is the color after the target widget is changed, because target widget is located in target interface, applied to target widget Color be to being obtained after replacing the color correct applied of target interface, with replacing the color that target interface is being applied Between tone it is similar but there is aberration, therefore while the indisposed sense that heterochromia is caused is reduced, be easy to user area interface With the control on interface.
In summary, control colour changing method provided in an embodiment of the present invention, by calculating the face that target interface is being applied Each color component value of color distinguishes corresponding exposure, the colors for the color applied to replacement target interface using exposure Color component value is modified, and each color component value for the color that the replacement target interface obtained after amendment is being applied is corresponding Color application is in target widget, because target widget is located in target interface, and the color applied to target widget is to replacing mesh Obtained after the color correct that face applying of demarcating, it is similar replacing tone between the color that target interface is being applied but deposit In aberration;Therefore solve when user changes the color at interface, control can be replaced with the color that the interface is being applied automatically, Cause the color of interface and control unified, the problem of user is to the operation of control can be disturbed to a certain extent;Reduction is reached While the indisposed sense that heterochromia is caused, it is easy to the effect of user area interface and the control on interface.
In actual applications, human eye is very sensitive to light intensity, brightness light and shade, that is to say, that except manufacture circle The aberration of color between control on face and interface, can also manufacture the luminance difference of color between the control on interface and interface, To be easy to user area interface and the control on interface.
Fig. 2 is refer to, the method flow diagram of the control colour changing method provided it illustrates another embodiment of the present invention.Should Control colour changing method may include steps of:
Step 201, each color component value and second color of first color in the second color mode are obtained respectively Each color component value in two color modes, first color is the color applied of target interface, second color be for Change the color of the first color.
Step 202, each color component value of first color in the second color mode is converted into the first color first Each color component value in color mode, the second face is converted to by each color component value of second color in the second color mode Each color component value of the color in the first color mode, second color mode is different from the color mode of the first color mode.
In the present embodiment, the second color mode is rgb color pattern, and the first color mode is HSL color modes.
Optionally, each color point using integer arithmetic and/or floating-point arithmetic by the first color in the second color mode Value is converted to each color component value of first color in the first color mode, by the second color in the second color mode Each color component value is converted to each color component value of second color in the first color mode.
HSL is mathematically defined as color r, g, b in rgb space transformation of coordinates.If (r, g, b) is one respectively Red coordinate, green coordinate and the blue coordinate of color, r, g, b value are the real numbers between 0 to 1.If max is number in r, g, b It is worth maximum value.If min is the value of numerical value minimum in r, g and b.(h, s, the l) value of (r, g, b) in HSL spaces is sought, wherein, h Represent the hue angle of angle, h span be [0,360), s represents saturation degree, and s span is [0,1], and l represents bright Degree, l span is [0,1], and the specific calculating process that (r, g, b) is converted to (h, s, l) is as follows:
Step 203, each color component value and second color of first color in the first color mode are obtained respectively Each color component value in one color mode.
Step 204, each color component value according to the first color in first color mode, calculates the first color and exists Each color component value in first color mode distinguishes corresponding exposure.
Step 205, each color component value for the second color in the first color mode, using in the first color mould In formula, exposure corresponding with the color component value of the first color of the same color component of the color component value of the second color is right Color component value of second color in the first color mode is modified, and is obtained in the first color mode, with the second color The same color component of color component value the 3rd color color component value.
It should be noted that terminal can be only to the second color in the first color mode (i.e. HSL colors mould in this implementation Formula) in color component l (i.e. brightness) value be modified.
Step 206, each color component value of the 3rd color in the first color mode is converted into the 3rd color second Each color component value in color mode.
Optionally, each color point using integer arithmetic and/or floating-point arithmetic by the 3rd color in the first color mode Value is converted to each color component value of the 3rd color in the second color mode.
A color C defined in HSL spaces, the color C coordinate are (h, s, l), wherein, h represents the form and aspect of angle Angle, h span be [0,360), s represents saturation degree, and s span is [0,1], and l represents brightness, l span It is [0,1], if (r, g, b) is the red coordinate, green coordinate and blue coordinate of a color respectively, r, g, b value are from 0 to 1 Between real number, the specific calculating process that (h, s, l) is converted to (r, g, b) is as follows:
First, if s=0, the color of result is achromaticity or is grey.In this special circumstances, r, g and b are etc. In l.
When s ≠ 0, following processes can be used:
P=2 × l-q
(h standardization to codomain [0,1) in)
tG=hk
if tC0 → t of <C=tC+ 1.0 for each C ∈ { R, G, B }
if tC1 → t of >C=tC- 1.0 for each C ∈ { R, G, B }
For each color vector Color=(ColorR, ColorG, ColorB)=(r, g, b),
For each C ∈ { R, G, B }
Step 207, by the 3rd color application in target widget, the target widget is located in target interface.
It should be noted that step 203 is similar to step 103 to step 101 respectively to step 205 in the present embodiment, step Rapid 207 is similar to step 104, therefore the present embodiment no longer repeats explanation to step 203 to step 205, step 207.
In summary, control colour changing method provided in an embodiment of the present invention, by calculating the face that target interface is being applied Each color component value of color distinguishes corresponding exposure, the colors for the color applied to replacement target interface using exposure Color component value is modified, and each color component value for the color that the replacement target interface obtained after amendment is being applied is corresponding Color application is in target widget, because target widget is located in target interface, and the color applied to target widget is to replacing mesh Obtained after the color correct that face applying of demarcating, it is similar replacing tone between the color that target interface is being applied but deposit In aberration;Therefore solve when user changes the color at interface, control can be replaced with the color that the interface is being applied automatically, Cause the color of interface and control unified, the problem of user is to the operation of control can be disturbed to a certain extent;Reduction is reached While the indisposed sense that heterochromia is caused, it is easy to the effect of user area interface and the control on interface.
In the present embodiment, except manufacture interface and interface on control between color aberration, can also manufacture interface with The luminance difference of color between control on interface, to be easy to user area interface and the control on interface.
Following is apparatus of the present invention embodiment, for the details of not detailed description in device embodiment, be may be referred to above-mentioned One-to-one embodiment of the method.
It refer to Fig. 3 A, Fig. 3 A are the block diagrams of the control color changing device provided in one embodiment of the invention.Should Device includes:First acquisition module 301, computing module 302, correcting module 303 and application module 304.
First acquisition module 301, for obtain respectively each color component value of first color in the first color mode and Each color component value of second color in the first color mode, the first color is the color that target interface is being applied, second Color is the color for replacing the first color;
Computing module 302, for each color component value and the second color according to the first color in the first color mode Each color component value in the first color mode, calculates each color component value correspondence of first color in the first color mode Exposure;
Correcting module 303, for each color component value for the second color in the first color mode, using It is corresponding with the color component value of the first color of the same color component of the color component value of the second color to expose in one color mode Luminosity, is modified to color component value of second color in the first color mode, obtains in the first color mode, with The color component value of 3rd color of the same color component of color component value of second colors;
Application module 304, for, in target widget, target widget to be located in target interface by the 3rd color application.
It refer to Fig. 3 B, Fig. 3 B are the block diagrams of the control color changing device provided in another embodiment of the present invention. In a kind of possible implementation, the computing module 302 is additionally operable to:It is each in the first color mode according to the first color Color component value and the related calculation formula of exposure, calculate each color component value of first color in the first color mode The corresponding exposure of difference;
Wherein, calculation formula is:
P=pow ((Q-a), b),
Wherein, P is each color component value corresponding exposure of first color in the first color mode, and pow is power letter Number formula, L is any color component value in each color component value of first color in the first color mode, and a and b are pre- If fixed value.、
In a kind of possible implementation, the correcting module 303 is additionally operable to:For the second color in the first color mould Each color component value in formula, will be in the first color mode, with the same color component of color component value of the second color The corresponding exposure of color component value of first color, is added with color component value of second color in the first color mode, Obtain in the first color mode, the color component with the 3rd color of the same color component of color component value of the second color Value.
In a kind of mode in the cards, the device also includes:Second acquisition module 305, the and of the first modular converter 306 Second modular converter 307.
Second acquisition module 305, for obtaining each color component value of first color in the first color mode respectively Before each color component value of second color in the first color mode, the first color is obtained respectively in the second color mode Each color component value in the second color mode of each color component value and the second color;
First modular converter 306, for each color component value of first color in the second color mode to be converted into Each color component value of one color in the first color mode, by each color component value of second color in the second color mode Be converted to the color of each color component value of second color in the first color mode, the second color mode and the first color mode Pattern is different;
Second modular converter 307, for by the 3rd color application before target widget, by the 3rd color in the first color Each color component value in color pattern is converted to each color component value of the 3rd color in the second color mode.
In a kind of mode in the cards, the first modular converter 306 is additionally operable to:Calculated using integer arithmetic and/or floating-point It is each in the first color mode that each color component value of first color in the second color mode is converted to the first color by method Color component value, the second color is converted in the first color mould by each color component value of second color in the second color mode Each color component value in formula;
Second modular converter 307, is additionally operable to:Using integer arithmetic and/or floating-point arithmetic by the 3rd color in the first color Each color component value in pattern is converted to each color component value of the 3rd color in the second color mode.
In summary, control color changing device provided in an embodiment of the present invention, by calculating the face that target interface is being applied Color and the exposure for replacing color component value correlation between the color that target interface is being applied, using exposure to the first color Each color component value be modified, by the corresponding color application of each color component value obtained after amendment in target widget, by It is located in target widget in target interface, color and replacement that the color applied to target widget is being applied between target interface Between the color that target interface is being applied, tone is similar between the color that replacement target interface is being applied but there is color Difference;Therefore solve when user changes the color at interface, control can be replaced with the color that the interface is being applied automatically, cause The color of interface and control is unified, and the problem of user is to the operation of control can be disturbed to a certain extent;Reduction color is reached While the indisposed sense that difference is caused, it is easy to the effect of user area interface and the control on interface.
In the present embodiment, except manufacture interface and interface on control between color aberration, can also manufacture interface with The luminance difference of color between control on interface, to be easy to user area interface and the control on interface.
It should be noted that:The control color changing device provided in above-described embodiment to control carry out colour changing when, only more than The division progress of each functional module is stated for example, in practical application, as needed can distribute above-mentioned functions by difference Functional module complete, i.e., the internal structure of electronic equipment is divided into different functional modules, with complete it is described above entirely Portion or partial function.In addition, the control color changing device that above-described embodiment is provided belongs to same with control colour changing embodiment of the method Design, it implements process and refers to embodiment of the method, repeats no more here.
Shown in Figure 4, it illustrates the block diagram of the electronic equipment provided in section Example of the present invention.Should Electronic equipment 400 is used for the control colour changing method for implementing above-described embodiment offer.Electronic equipment 400 in the present invention can include One or more following parts:For performing computer program instructions to complete the processor of various flows and method, use In information and storage program instruction random access memory (RAM) and read-only storage (ROM), for data storage and information Memory, I/O equipment, interface, antenna etc..Specifically:
Electronic equipment 400 can include RF (Radio Frequency, radio frequency) circuit 410, memory 420, input block 430th, display unit 440, sensor 450, voicefrequency circuit 460, WiFi (wireless fidelity, Wireless Fidelity) module 470th, the part such as processor 480, power supply 482, camera 490.It will be understood by those skilled in the art that the electronics shown in Fig. 4 The restriction of device structure not structure paired terminal, can be included than illustrating more or less parts, or combine some parts, Or different part arrangements.
Each component parts of electronic equipment 400 is specifically introduced with reference to Fig. 4:
RF circuits 410 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, handled to processor 480;In addition, being sent to base station by up data are designed.Generally, RF circuits bag Include but be not limited to antenna, (LowNoiseAmplifier, low noise is put by least one amplifier, transceiver, coupler, LNA Big device), duplexer etc..In addition, RF circuits 410 can also be communicated by radio communication with network and other equipment.It is described wireless Communication can use any communication standard or agreement, including but not limited to GSM (Global System ofMobile Communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet without Line service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code DivisionMultipleAccess, WCDMA), LTE (Long Term Evolution, Long Term Evolution), electronics postal Part, SMS (ShortMessaging Service, Short Message Service) etc..
Memory 420 can be used for storage software program and module, and processor 480 is stored in memory 420 by operation Software program and module, so as to perform various function application and the data processing of electronic equipment 400.Memory 420 can Mainly include storing program area and storage data field, wherein, storing program area can be needed for storage program area, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored according to electronic equipment 400 Use created data (such as voice data, phone directory etc.) etc..In addition, memory 420 can include depositing at random at a high speed Access to memory, can also include nonvolatile memory, for example, at least one disk memory, flush memory device or other are easy The property lost solid-state memory.
Input block 430 can be used for the numeral or character information for receiving input, and produce the user with electronic equipment 400 Set and the relevant key signals of function control are inputted.Specifically, input block 430 may include contact panel 431 and other Input equipment 432.Contact panel 431, also referred to as touch-screen, collect touch operation of the user on or near it and (such as use Family uses the behaviour of any suitable object or annex on contact panel 431 or near contact panel 431 such as finger, stylus Make), and corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 431 may include that touch detection is filled Put and two parts of touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects that touch operation is brought Signal, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and it is turned Change contact coordinate into, then give processor 480, and the order sent of reception processing device 480 and can be performed.Furthermore, it is possible to Contact panel 431 is realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 431, input block 430 can also include other input equipments 432.Specifically, other input equipments 432 can include but not limit One kind in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. or It is a variety of.
Display unit 440 can be used for the information and electronic equipment for showing the information inputted by user or being supplied to user 400 various menus.Display unit 440 may include display panel 441, optionally, can use LCD (Liquid Crystal Display, liquid crystal display), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) comes Configure display panel 441.Further, contact panel 431 can cover display panel 441, when contact panel 431 is detected at it On or near touch operation after, send processor 480 to determine the type of touch event, with preprocessor 480 according to touch The type for touching event provides corresponding visual output on display panel 441.Although in Fig. 4, contact panel 431 and display surface Plate 441 is input and the input function that electronic equipment 400 is realized as two independent parts, but in some embodiments In, can be by contact panel 431 and the input that is integrated and realizing electronic equipment 400 of display panel 441 and output function.
Electronic equipment 400 may also include at least one sensor 450, such as gyro sensor, magnetic induction sensor, light Sensor, motion sensor and other sensors.Specifically, optical sensor may include ambient light sensor and close sensing Device, wherein, ambient light sensor can adjust the brightness of display panel 441 according to the light and shade of ambient light, and proximity transducer can When electronic equipment 400 is moved in one's ear, display panel 441 and/or backlight are closed.As one kind of motion sensor, accelerate The size that sensor can detect in all directions (generally three axles) acceleration is spent, size and the side of gravity are can detect that when static To application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), vibration available for identification electronic equipment posture Recognize correlation function (such as pedometer, percussion) etc.;The barometer that can also configure as electronic equipment 400, hygrometer, temperature The other sensors such as meter, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 460, loudspeaker 461, microphone 462 can provide the COBBAIF between user and electronic equipment 400. Electric signal after the voice data received conversion can be transferred to loudspeaker 461, is changed by loudspeaker 461 by voicefrequency circuit 460 Exported for voice signal;On the other hand, the voice signal of collection is converted to electric signal by microphone 462, is connect by voicefrequency circuit 460 Be converted to voice data after receipts, then after voice data output processor 480 is handled, it is such as another to be sent to through RF circuits 410 One terminal, or voice data is exported to memory 420 so as to further processing.
WiFi belongs to short range wireless transmission technology, and electronic equipment 400 can help user to receive and dispatch by WiFi module 470 Email, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 4 WiFi module 470 is shown, but it is understood that, it is simultaneously not belonging to must be configured into for electronic equipment 400, completely can root Omitted according to needs in the scope for not changing disclosed essence.
Processor 480 is the control centre of electronic equipment 400, utilizes various interfaces and the whole electronic equipment of connection Various pieces, by operation or perform and are stored in software program and/or module in memory 420, and call and be stored in Data in reservoir 420, perform the various functions and processing data of electronic equipment 400, so as to carry out overall prison to electronic equipment Control.Optionally, processor 480 may include one or more processing units;It is preferred that, processor 480 can integrated application processor And modem processor, wherein, application processor mainly handles operating system, user interface and application program etc., modulatedemodulate Processor is adjusted mainly to handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor In 480.
Electronic equipment 400 also includes the power supply 482 (such as battery) powered to all parts, it is preferred that power supply can lead to Cross power-supply management system and processor 482 be logically contiguous, thus by power-supply management system realize management charging, electric discharge and The functions such as power managed.
Camera 490 is general by groups such as camera lens, imaging sensor, interface, digital signal processor, CPU, display screens Into.Wherein, camera lens is fixed on the top of imaging sensor, can change focusing by adjusting camera lens manually;Imaging sensor It is the heart of camera collection image equivalent to " film " of traditional camera;Interface is used for camera using winding displacement, plate to plate Connector, spring connected mode are connected with electronic equipment mainboard, and the image of collection is sent into the memory 420;Numeral Signal processor is handled the image of collection by mathematical operation, and the analog image of collection is converted into digital picture and led to Cross interface and be sent to memory 420.
Although not shown, electronic equipment 400 can also will not be repeated here including bluetooth module etc..
Electronic equipment 400 except including one or more processor 480, also including memory, and one or Multiple programs, one or more program storage is configured to be held by one or more processor in memory OK.Said one or multiple programs have following function:
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can be by hardware To complete, the hardware of correlation can also be instructed to complete by program, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (10)

1. a kind of control colour changing method, it is characterised in that methods described includes:
Each color component value and second color of first color in the first color mode are obtained respectively in the first color mould Each color component value in formula, first color is the color that target interface is being applied, and second color is replacement institute State the color of the first color;
According to each color component value of first color in first color mode, first color is calculated described Each color component value in first color mode distinguishes corresponding exposure;
For each color component value of second color in first color mode, using in first color mode In, exposure corresponding with the color component value of first color of the same color component of color component value of second color Degree, is modified to color component value of second color in first color mode, obtains in first color In pattern, the color component value with the 3rd color of the same color component of color component value of second color;
By the 3rd color application in target widget, the target widget is located in the target interface.
2. according to the method described in claim 1, it is characterised in that it is described according to first color in the first color mould Each color component value in formula, calculates each color component value of first color in first color mode and corresponds to respectively Exposure, including:
According to each color component value and exposure related calculating public affairs of first color in first color mode Formula, calculates each color component value of first color in first color mode and distinguishes corresponding exposure;
Wherein, the calculation formula is:
P=pow ((Q-a), b),
Wherein, the P is each color component value corresponding exposure of first color in first color mode, institute Pow is stated for power function formula, the Q is times in each color component value of first color in first color mode One color component value, a and b are default fixed value.
3. according to the method described in claim 1, it is characterised in that it is described for second color in the first color mould Each color component value in formula, using in first color mode, the color component value with second color is same The corresponding exposure of color component value of first color of color component, to second color in the first color mould Color component value in formula is modified, and is obtained in first color mode, the color component value with second color The color component value of 3rd color of same color component, including:
For each color component value of second color in first color mode, will in first color mode, Exposure corresponding with the color component value of first color of the same color component of color component value of second color, It is added, is obtained in first color mode with color component value of second color in first color mode, With the color component value of the 3rd color of the same color component of color component value of second color.
4. according to any described method in claim 1-3, it is characterised in that in first color that obtains respectively described Before each color component value of each color component value and the second color in first color mode in first color mode, Methods described also includes:
Each color component value and second color of first color in the second color mode are obtained respectively described Each color component value in two color modes;
Each color component value of first color in second color mode is converted into first color described Each color component value in first color mode, by each color component value of second color in second color mode Be converted to each color component value of second color in first color mode, second color mode and described the The color mode of one color mode is different;
It is described by the 3rd color application before target widget, methods described also includes:
Each color component value of 3rd color in first color mode is converted into the 3rd color described Each color component value in second color mode.
5. method according to claim 4, it is characterised in that it is described by first color in second color mode In each color component value be converted to each color component value of first color in first color mode, by described Each color component value of the second colors in second color mode is converted to second color in first color mode In each color component value, including:
Each color component value using integer arithmetic and/or floating-point arithmetic by first color in second color mode Each color component value of first color in first color mode is converted to, by second color described second Each color component value in color mode is converted to each color component value of second color in first color mode;
It is described each color component value of 3rd color in first color mode is converted into the 3rd color to exist Each color component value in second color mode, including:
Colors using the integer arithmetic and/or the floating-point arithmetic by the 3rd color in first color mode Color component value is converted to each color component value of the 3rd color in second color mode.
6. a kind of control color changing device, it is characterised in that described device includes:
First acquisition module, for obtaining each color component value and second color of first color in the first color mode respectively Each color component value in first color mode, first color is the color that target interface is being applied, described Second color is the color for replacing first color;
Computing module, for each color component value according to first color in first color mode, calculates described Each color component value of first color in first color mode distinguishes corresponding exposure;
Correcting module, for each color component value for the second color in first color mode, using described In first color mode, the color component with first color of the same color component of color component value of second color It is worth corresponding exposure, color component value of second color in first color mode is modified, obtained In first color mode, the color component with the 3rd color of the same color component of color component value of second color Value;
Application module, for, in target widget, the target widget to be located in the target interface by the 3rd color application.
7. device according to claim 6, it is characterised in that the computing module, is additionally operable to:According to first color The calculation formula of each color component value and exposure correlation in first color mode, calculates first color and exists Each color component value in first color mode distinguishes corresponding exposure;
Wherein, the calculation formula is:
P=pow ((Q-a), b),
Wherein, the P is each color component value corresponding exposure of first color in first color mode, institute Pow is stated for power function formula, the Q is times in each color component value of first color in first color mode One color component value, a and b are default fixed value.
8. device according to claim 6, it is characterised in that the correcting module, is additionally operable to:For second color Each color component value in first color mode, will be in first color mode, with second color The corresponding exposure of color component value of first color of the same color component of color component value, exists with second color Color component value in first color mode is added, and is obtained in first color mode, with second color The color component value of 3rd color of the same color component of color component value.
9. according to any described device in claim 6-8, it is characterised in that described device also includes:
Second acquisition module, in each color component value for obtaining the first color respectively in first color mode Before each color component value of second color in first color mode, first color is obtained respectively in the second color Each color component value of each color component value and second color in second color mode in color pattern;
First modular converter, for each color component value of first color in second color mode to be converted into institute Each color component value of first color in first color mode is stated, by second color in second color mode In each color component value be converted to each color component value of second color in first color mode, described second Color mode is different from the color mode of first color mode;
Second modular converter, for it is described by the 3rd color application before target widget, the 3rd color is existed Each color component value in first color mode is converted to colors of the 3rd color in second color mode Color component value.
10. device according to claim 9, it is characterised in that first modular converter, is additionally operable to:
Each color component value using integer arithmetic and/or floating-point arithmetic by first color in second color mode Each color component value of first color in first color mode is converted to, by second color described second Each color component value in color mode is converted to each color component value of second color in first color mode;
Second modular converter, is additionally operable to:The 3rd color is existed using the integer arithmetic and/or the floating-point arithmetic Each color component value in first color mode is converted to colors of the 3rd color in second color mode Color component value.
CN201710209142.2A 2017-03-31 2017-03-31 Control color changing method and device Active CN107102791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710209142.2A CN107102791B (en) 2017-03-31 2017-03-31 Control color changing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710209142.2A CN107102791B (en) 2017-03-31 2017-03-31 Control color changing method and device

Publications (2)

Publication Number Publication Date
CN107102791A true CN107102791A (en) 2017-08-29
CN107102791B CN107102791B (en) 2020-01-14

Family

ID=59676226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710209142.2A Active CN107102791B (en) 2017-03-31 2017-03-31 Control color changing method and device

Country Status (1)

Country Link
CN (1) CN107102791B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704052A (en) * 2018-07-10 2020-01-17 腾讯科技(深圳)有限公司 Service platform color configuration method and device, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479994A (en) * 2001-10-11 2004-03-03 ������������ʽ���� Colour coverting device and colour converting method
JP2005051593A (en) * 2003-07-30 2005-02-24 Olympus Corp Camera
JP2005204095A (en) * 2004-01-16 2005-07-28 Sanyo Electric Co Ltd Exposure control apparatus
CN1812481A (en) * 2005-01-27 2006-08-02 佳能株式会社 Image processing apparatus and its method
CN103314572A (en) * 2010-07-26 2013-09-18 新加坡科技研究局 Method and device for image processing
CN105812674A (en) * 2014-12-29 2016-07-27 浙江大华技术股份有限公司 Signal lamp color correction method, monitoring method, and device thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1479994A (en) * 2001-10-11 2004-03-03 ������������ʽ���� Colour coverting device and colour converting method
JP2005051593A (en) * 2003-07-30 2005-02-24 Olympus Corp Camera
JP2005204095A (en) * 2004-01-16 2005-07-28 Sanyo Electric Co Ltd Exposure control apparatus
CN1812481A (en) * 2005-01-27 2006-08-02 佳能株式会社 Image processing apparatus and its method
CN103314572A (en) * 2010-07-26 2013-09-18 新加坡科技研究局 Method and device for image processing
CN105812674A (en) * 2014-12-29 2016-07-27 浙江大华技术股份有限公司 Signal lamp color correction method, monitoring method, and device thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙茜雅: "一种色彩校正算法研究与实现", 《电子科技》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704052A (en) * 2018-07-10 2020-01-17 腾讯科技(深圳)有限公司 Service platform color configuration method and device, storage medium and electronic device
CN110704052B (en) * 2018-07-10 2022-02-08 腾讯科技(深圳)有限公司 Service platform color configuration method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN107102791B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
CN107038681B (en) Image blurring method and device, computer readable storage medium and computer device
WO2017071219A1 (en) Method for detecting skin region and device for detecting skin region
CN108282561A (en) Terminal display screen, control method, mobile terminal and readable storage medium storing program for executing
CN109189281A (en) Color adaptation method, terminal and the computer storage medium of wallpaper and icon
CN107908383A (en) A kind of screen color method of adjustment, device and mobile terminal
US11363196B2 (en) Image selection method and related product
CN110021256A (en) Display brightness method of adjustment and Related product
CN108510955A (en) Adjust the method and Related product of brightness of display screen
CN107038715A (en) A kind of image processing method and device
CN108494974A (en) Adjusting method, mobile terminal and the storage medium of display brightness
CN107506732A (en) Method, equipment, mobile terminal and the computer-readable storage medium of textures
CN106296623B (en) A kind of image processing method and device
CN107895352A (en) A kind of image processing method and mobile terminal
CN107315515A (en) Color change method, terminal and the computer-readable recording medium of status bar icon
CN112229507A (en) Ambient light detection method and device, storage medium and mobile terminal
CN110417999A (en) Screen luminance adjustment method, mobile terminal and computer readable storage medium
CN107067842A (en) Colour method of adjustment, mobile terminal and storage medium
CN107846583A (en) A kind of image shadow compensating method and mobile terminal
CN107240072A (en) A kind of screen luminance adjustment method, terminal and computer-readable recording medium
CN106993136A (en) Mobile terminal and its image denoising method and device based on multi-cam
CN109377531A (en) Image color cast method of adjustment, device, mobile terminal and readable storage medium storing program for executing
CN107295251A (en) Image processing method, device, terminal and storage medium
CN110189368A (en) Method for registering images, mobile terminal and computer readable storage medium
CN106873755A (en) Screen electricity-saving control method, device and mobile terminal
CN105635553B (en) Image shooting method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant