Embodiment
In order to make technical matters solved by the invention, technical scheme and beneficial effect clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
When the embodiment of the present invention mentions the ordinal number such as " first ", " second ", unless the meaning of based on context its certain order of representation, should be understood to has been only the use of differentiation.
Fig. 1, be the schematic flow sheet of the first embodiment of display packing of the present invention, this display packing comprises:
Step S11, the fluorescent color in acquisition environment is as the first color.
In the present embodiment, the fluorescent color in environment can be that the fluorescence such as fluorescent light are in kind, and fluorescent color can be obtained by the filming apparatus of mobile terminal.
Step S12, according to the first color, determines the second color, and the second color is dead color system color, and the contrast difference of the second color and the first color is greater than the first predetermined threshold value.
In the present embodiment, second color and the first color have certain contrast difference, make by the first color and the second color displays when the display interface, two kinds of colors can obviously make a distinction by user, prevent from bringing identification to bear because two kinds of colors are close to user.
Step S13, is applied to display interface by the first color and the second color.
In the present embodiment, display interface comprises system desktop, menu interface, arranges interface and application interface.
The embodiment of the present invention is passed through fluorescent color as the first color, first color can take from the material object in the environment such as fluorescent light, meet the life lighting custom at people's night, sense of discomfort can not be brought to eyes of user, simultaneously by choosing the second color of dark-coloured system, this second color and the first color have larger contrast value, the first color and the second hue distinguishes are being come, be convenient to while user differentiates screen content, avoid the color of the light tone systems such as white light to cause stimulation to human eye.
Fig. 2, be the schematic flow sheet of the second embodiment of display packing of the present invention, this display packing comprises:
Step S201, obtains the image of environment.
Above-mentioned image can be still image, also can be dynamic image, can be the image obtained by shooting, also can be the real-time pictures of environment of the preview window display of finding a view.
Step S202, according to choosing instruction to objective area in image, determines that color that color mean value in target area is corresponding is as the first color.
In the present embodiment, user determines target area by the subregion chosen in image, and the size of this target area can be controlled by aid, so that user freely chooses the fluorescence object as the first color.
Step S203, obtains the rgb value of the first color.
Red, green, blue three Color Channels obtaining its correspondence according to the first color are worth accordingly.
Step S204, according to the rgb value of the first color, determines the HSL value of first color corresponding with the rgb value of the first color.
Form and aspect, saturation degree, the brightness value that the first color is corresponding is determined by the rgb value of the first color.
Step S205, according to the HSL value of the first color, determine the interval of the second color in dead color system color, the difference of the HSL value of the arbitrary hue in interval and the HSL value of the first color is all greater than the second predetermined threshold value.
In the present embodiment, the second predetermined threshold value can comprise three values corresponding with form and aspect, saturation degree, lightness, also can be wherein at least any one or two values.
Step S206, according to preset formula, chooses two or more second color corresponding with the first color in interval.
In the present embodiment, this preset formula can be the formula set by software developer or mobile terminal manufacturer, this preset formula can be determined by limited number of time test, and object is in interval, to choose two or more the color corresponding with the first color as the second color.
Step S207, according to color application instruction, obtains current all first colors of having stored and shows.
Color application instruction can be that user chooses instruction to color application menu item, also can be by light sensor judging that ambient light is lower than automatic control during corresponding predetermined threshold value, can also be detected when current time has arrived Preset Time point by mobile terminal automatically to change color application.
When receiving color application instruction, mobile terminal calls current all first colors stored, and is presented on screen and chooses for user.
Step S208, chooses instruction according to user to the first color, obtains two or more second color corresponding with the first color be selected, the first color and two or more the second color contrast are shown.
Contrast display can be using the first color as main body, the second color display mode as a setting, and the second color can show one by one, also can Display on the same screen, chooses the second applicable color for user.
Step S209, chooses instruction according to user to the second color, determines the second color.
Step S210, is applied as the foreground of display interface by the first color.
Foreground can comprise icon, word, letter, figure and character etc.
Step S211, is applied as the background colour of display interface by the second color.
The present embodiment achieves user's freely choosing the first color, choose mode various, secondly, by the rgb value of the first color is converted to HSL value, and calculate the second color by preset formula, make the determination of the second color more accurately rationally, again, choose the second color by the mode of the visible contrast display of user for user, the different user being convenient to have vision difference determines self scheme of colour applicable, improves the experience of user.
Detailed introduction is done to the embodiment of display packing of the present invention above.Below the mobile terminal corresponding to said method is further elaborated.Wherein, mobile terminal can be mobile phone, panel computer, MP3, MP4 or notebook computer etc.
Fig. 3 is the structural representation of the first embodiment of mobile terminal of the present invention, and the mobile terminal 100 in the embodiment of the present invention can display packing in the first embodiment to implement the above described method.
The mobile terminal 100 of the embodiment of the present invention comprises: the first acquisition module 110, first determination module 120 and execution module 130.
Wherein, the first acquisition module 110, is connected with the first determination module 120, for obtaining fluorescent color in environment as the first color.
In the present embodiment, the fluorescent color in environment can be that the fluorescence such as fluorescent light are in kind, and fluorescent color can be obtained by the filming apparatus of mobile terminal.
First determination module 120, is connected with execution module 130, for according to the first color, determines the second color, and the second color is dead color system color, and the contrast difference of the second color and the first color is greater than the first predetermined threshold value.
In the present embodiment, second color and the first color have certain contrast difference, make by the first color and the second color displays when the display interface, two kinds of colors can obviously make a distinction by user, prevent from bringing identification to bear because two kinds of colors are close to user.
Execution module 130, for being applied to display interface by the first color and the second color.
In the present embodiment, display interface comprises system desktop, menu interface, arranges interface and application interface.
The embodiment of the present invention is passed through fluorescent color as the first color, first color can take from the material object in the environment such as fluorescent light, meet the life lighting custom at people's night, sense of discomfort can not be brought to eyes of user, simultaneously by choosing the second color of dark-coloured system, this second color and the first color have larger contrast value, the first color and the second hue distinguishes are being come, be convenient to while user differentiates screen content, avoid the color of the light tone systems such as white light to cause stimulation to human eye.
Fig. 4 is the structural representation of the second embodiment of mobile terminal of the present invention, and the mobile terminal 200 in the embodiment of the present invention can display packing in the second embodiment to implement the above described method.
The mobile terminal 200 of the embodiment of the present invention comprises: the first acquisition module 210, first determination module 220, second acquisition module 230, the 3rd acquisition module 240, second determination module 250 and execution module 260.
Wherein, the first acquisition module 210, is connected with the first determination module 220, comprises the first acquiring unit 211 and the first determining unit 212.
Wherein, the first acquiring unit 211, is connected with the first determining unit 212, for obtaining the image of environment.
Above-mentioned image can be still image, also can be dynamic image, can be the image obtained by shooting, also can be the real-time pictures of environment of the preview window display of finding a view.
First determining unit 212, for according to choosing instruction to objective area in image, determines that color that color mean value in target area is corresponding is as the first color.
In the present embodiment, user determines target area by the subregion chosen in image, and the size of this target area can be controlled by aid, so that user freely chooses the fluorescence object as the first color.
First determination module 220, is connected with the second acquisition module 230, comprises second acquisition unit 221, second determining unit 222, the 3rd determining unit 223 and chooses unit 224.
Wherein, second acquisition unit 221, is connected with the second determining unit 222, for obtaining the rgb value of the first color.
Red, green, blue three Color Channels obtaining its correspondence according to the first color are worth accordingly.
Second determining unit 222, is connected with the 3rd determining unit 223, for the rgb value according to the first color, determines the HSL value of first color corresponding with the rgb value of the first color.
Form and aspect, saturation degree, the brightness value that the first color is corresponding is determined by rgb value.
3rd determining unit 223, with choose unit 224 and be connected, for the HSL value according to the first color, determine the interval of the second color in dead color system color, the difference of the HSL value of the arbitrary hue in interval and the HSL value of the first color is all greater than the second predetermined threshold value.
In the present embodiment, the second predetermined threshold value can comprise three values corresponding with form and aspect, saturation degree, lightness, also can be wherein at least any one or two values.
Choose unit 224, for according to preset formula, in interval, choose two or more second color corresponding with the first color.
In the present embodiment, this preset formula can be the formula set by software developer or mobile terminal manufacturer, this preset formula can be determined by limited number of time test, and object is in interval, to choose two or more the color corresponding with the first color as the second color.
Second acquisition module 230, is connected with the 3rd acquisition module 240, for according to color application instruction, obtains current all first colors of having stored and shows.
Color application instruction can be that user chooses instruction to color application menu item, also can be by light sensor judging that ambient light is lower than automatic control during corresponding predetermined threshold value, can also be detected when current time has arrived Preset Time point by mobile terminal automatically to change color application.
When receiving color application instruction, mobile terminal calls current all first colors stored, and is presented on screen and chooses for user.
3rd acquisition module 240, be connected with the second determination module 250, for choosing instruction according to user to the first color, obtaining two or more second color corresponding with the first color be selected, the first color and two or more the second color contrast are shown.
Above-mentioned contrast display can be using the first color as main body, the second color display mode as a setting, and the second color can show one by one, also can Display on the same screen, chooses the second applicable color for user.
Second determination module 250, is connected with execution module 260, for choosing instruction according to user to the second color, determines the second color.
Execution module 260, comprises the first performance element 261 and the second performance element 262.
Wherein, the first performance element 261, is connected with the second performance element 262, for the first color being applied as the foreground of display interface.
Foreground can comprise icon, word, letter, figure and character etc.
Second performance element 262, for being applied as the background colour of display interface by the second color.
The present embodiment achieves user's freely choosing the first color, choose mode various, secondly, by the rgb value of the first color is converted to HSL value, and calculate the second color by preset formula, make the determination of the second color more accurately rationally, again, choose the second color by the mode of the visible contrast display of user for user, the different user being convenient to have vision difference determines self scheme of colour applicable, improves the experience of user.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed mobile terminal and display packing can realize by another way.Such as, mobile terminal embodiment described above is only schematic, the division of module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of embodiment of the present invention scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a chip unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising instruction in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of each embodiment method of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
These are only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.