CN104978198A - Method and apparatus for configuring keyboard skin - Google Patents

Method and apparatus for configuring keyboard skin Download PDF

Info

Publication number
CN104978198A
CN104978198A CN201510390060.3A CN201510390060A CN104978198A CN 104978198 A CN104978198 A CN 104978198A CN 201510390060 A CN201510390060 A CN 201510390060A CN 104978198 A CN104978198 A CN 104978198A
Authority
CN
China
Prior art keywords
color
keyboard
skin
image
keyboard skin
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.)
Pending
Application number
CN201510390060.3A
Other languages
Chinese (zh)
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201510390060.3A priority Critical patent/CN104978198A/en
Publication of CN104978198A publication Critical patent/CN104978198A/en
Pending legal-status Critical Current

Links

Abstract

The present application discloses a method and apparatus for configuring keyboard skin. According to one embodiment, the method comprises: responding to a popped keyboard and acquiring an image which is currently displayed by a screen; extracting color information of the image; and based on the color information, configuring current cutaneous keyboard. According to the embodiment, the keyboard skin matched with the color information can be automatically switched into by analyzing the color information of the current screen image.

Description

The method and apparatus of configuration keyboard skin
Technical field
The application relates to field of computer technology, is specifically related to field of terminal technology, particularly relates to a kind of method and apparatus configuring keyboard skin.
Background technology
The skin of application program refers under image display mode, and based on the program ways of presentation of picture, image content is not limit, but does not usually affect software function.The skin of application program can have multiple, under normal circumstances, can be automatically switched by system or be switched by user.Input method, as a kind of application software, also can have various skin.When using input method in terminal device, usually keyboard can be ejected.Similar, keyboard skin also can have multiple, can be automatically switched by system or be switched by user.
In prior art, change keyboard skin and all manually carried out by user, if user does not carry out manual operation, keyboard skin can not change.Further, replacing keyboard skin generally includes and obtains skin file by modes such as web download, then carries out the steps such as installation operation, complex operation.
Summary of the invention
In view of above-mentioned defect of the prior art or deficiency, expect the scheme that a kind of keyboard skin that can automatically switch can be provided.In order to realize above-mentioned one or more object, this application provides a kind of method and apparatus configuring keyboard skin.
First aspect, this application provides a kind of method configuring keyboard skin, described method comprises: in response to ejection keyboard, obtain the image of current screen display; Extract the color information of described image; Based on described color information, configure current keyboard skin.
Second aspect, this application provides a kind of device configuring keyboard skin, described device comprises: acquisition module, in response to ejection keyboard, obtains the image of current screen display; Extraction module, for extracting the color information of described image; Configuration module, for based on described color information, configures current keyboard skin.
The method and apparatus of the configuration keyboard skin that the application provides, first in response to ejection keyboard, can obtain the image of current screen display, then extracts the color information of image, finally based on color information, configure current keyboard skin.The application by analyzing the color information of current screen image, can automatically switch to the keyboard skin matched with color information.
Accompanying drawing explanation
By reading the detailed description done non-limiting example done with reference to the following drawings, the other features, objects and advantages of the application will become more obvious:
Fig. 1 shows the process flow diagram of an embodiment of the method for the configuration keyboard skin provided according to the application;
Fig. 2 shows the example effect schematic diagram according to current screen image configurations keyboard skin;
Fig. 3 shows the process flow diagram of another embodiment of the method for the configuration keyboard skin provided according to the application;
Fig. 4 shows the process flow diagram of another embodiment of the method for the configuration keyboard skin provided according to the application;
Fig. 5 shows the process flow diagram of another embodiment of the method for the configuration keyboard skin provided according to the application;
Fig. 6 shows the process flow diagram of another embodiment of the method for the configuration keyboard skin provided according to the application;
Fig. 7 shows the functional module framework schematic diagram of an embodiment of the device of the configuration keyboard skin provided according to the application; And
Fig. 8 shows the structural representation of the computer system 800 of terminal device or the server be suitable for for realizing the embodiment of the present application.
Embodiment
Below in conjunction with drawings and Examples, the application is described in further detail.Be understandable that, specific embodiment described herein is only for explaining related invention, but not the restriction to this invention.It also should be noted that, for convenience of description, in accompanying drawing, illustrate only the part relevant to Invention.
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.Below with reference to the accompanying drawings and describe the application in detail in conjunction with the embodiments.
Please refer to Fig. 1, the flow process 100 of an embodiment of the method for the configuration keyboard skin provided according to the application is provided.The present embodiment is mainly applied in this way can use in the terminal device of dummy keyboard input of character string and illustrates, this terminal device can be various intelligent terminal, such as, smart mobile phone, panel computer, pocket computer on knee and Wearable device etc. can be included but not limited to.The method of the configuration keyboard skin of the present embodiment, comprises the following steps:
As shown in Figure 1, in a step 101, in response to ejection keyboard, the image of current screen display is obtained.
In terminal device, some application programs can be installed, as short message, WPS, Email, micro-letter etc.User, when using application program, often needs to use input method, inputs some word, symbols etc.Such as, user can use input method to write mail or replied mail etc. in the e-mail.In each application program, usually have input frame, such as, the editing area in short message editing area, WPS, writes mail region in Email, chat area and editor circle of friends region etc. in micro-letter.When user uses mouse or touch screen moves the cursor to input frame, show that user wants to carry out input operation on the terminal device.At this moment, terminal device screen can eject keyboard, input use for user.
Application program can have different skin, under normal circumstances, can be automatically switched by system or be switched by user.Such as, user can switch its skin by the theme arranging application program.Under certain situation, the change of terminal device system theme also may affect the skin display situation of some application programs.
In the present embodiment, when ejecting keyboard, terminal device can obtain the image of current screen display.Such as, terminal device can obtain the image of current screen display by screenshotss function.Above-mentioned image can comprise the image in the whole region shown by current screen, and such as, when carrying out text event detection in certain application program, the image of current screen display can comprise the image of current application program and the image etc. of keyboard area.
Please refer to Fig. 2, it illustrates the example effect schematic diagram according to current screen image configurations keyboard skin.As shown in Figure 2, when user's create message ceases, terminal device can eject keyboard.The image of the current screen display that terminal device obtains can comprise short message viewing area image 210, and keyboard & display area image 220.
In a step 102, the color information of image is extracted.
When after the image obtaining current screen display in a step 101, terminal device can extract the color information of image.Above-mentioned color information can be the color attribute of image.Particularly, can will occur in image that maximum colors is called dominant hue, go out the many colors of occurrence and be called auxiliary tone.By extracting the dominant hue of image and auxiliary tone, the color information of image can be obtained.Such as, the image in a width sea, its color information can be blue.After user uses the skin of different application programs or user's switch application program, the color information of the image of terminal device screen display may be different.Therefore, in the present embodiment, terminal device based on the image of current acquisition, can extract its color information.
In an optional implementation of the present embodiment, first terminal device can extract the color-values of each pixel in image.Generally, image is described in rgb color space.Therefore, terminal device can extract the rgb value of each pixel in image.Such as, green corresponding rgb value be (0,255,0), and the rgb value of red correspondence is (255,0,0) etc.Terminal device can be analyzed the image pixel by pixel got, and extracts the rgb value of each pixel as its color-values.Then, terminal device can add up pixel number corresponding to each color-values.After analysis obtains the rgb value of each pixel in image, terminal device can add up the number that each rgb value occurs, the pixel number that namely each rgb value is corresponding.The rgb value of each pixel all comprises 3 parameters, i.e. R, G, B component.When R, G, B component homogeneous phase of each pixel while, can determine that the rgb value of corresponding pixel points is identical.By adding up pixel number corresponding to each rgb value, the color information of image can be determined.Such as, can will occur that maximum color-values is as dominant hue color, secondary many auxiliary tonal color of conduct, add up successively, obtain multiple color-values that occurrence number in image is descending.
Please refer to Fig. 2, as shown in Figure 2, short message viewing area image 210 and keyboard & display area image 220 can comprise different color informations.As, short message viewing area image 210 presents redness, and keyboard & display area image 220 presents white.
In step 103, based on color information, configure current keyboard skin.
When after the color information obtaining image in a step 102, terminal device based on color information, can configure current keyboard skin.Skin and the keyboard skin of application program can comprise different color informations, namely present different colors.In order to enable application program skin and current keyboard skin more agree with, display image screen is coordinated more, and terminal device can configure current keyboard skin.Such as, terminal device can change the color of current keyboard skin, makes its color identical with application program skin color or close.
Please refer to Fig. 2, as shown in Figure 2, short message viewing area image 210 presents redness, and keyboard & display area image 220 presents white.Therefore, terminal device can change the color of keyboard & display area image 220, and as the keyboard skin 230 after change, its color becomes redness, makes the color of image of whole on-screen display (osd) area identical.
The method of the configuration keyboard skin that the present embodiment provides, can first in response to ejection keyboard, obtain the image of current screen display, then the color information of image is extracted, last based on color information, configuring current keyboard skin, by analyzing the color information of current screen image, the keyboard skin matched with color information can be automatically switched to.
With further reference to Fig. 3, it illustrates the flow process 300 of another embodiment of the method for the configuration keyboard skin provided according to the application.
As shown in Figure 3, in step 301, in response to ejection keyboard, the image of current screen display is obtained.
In step 302, the color information of image is extracted.
In the present embodiment, the step 301 in above-mentioned realization flow 300 and step 302 are substantially identical with step 202 with the step 201 in aforementioned realization flow 200 respectively, do not repeat them here.
In step 303, based on color information, replace current keyboard skin.
In the present embodiment, terminal device based on the image color information obtained in step 302, can replace current keyboard skin.Such as, terminal device can use the keyboard skin identical or close with above-mentioned image color information to replace current keyboard skin.
In an optional implementation of the present embodiment, terminal device can preserve multiple keyboard skin in advance.Such as, terminal device can obtain keyboard skin as much as possible from network or other resources bank in advance, and is kept at terminal device, server or high in the clouds etc.When current keyboard skin replaced by needs, terminal device can select the keyboard skin the highest with the color information matching degree of screen picture in the multiple keyboard skins preset.Such as, terminal device can extract the color information of default multiple keyboard skins, then the color information of the color information of the display image screen of acquisition and each keyboard skin is compared, obtain the keyboard skin the highest with the color information matching degree of display image screen.Then, the keyboard skin obtained can be used to replace current keyboard skin.
The method of the configuration keyboard skin that the present embodiment provides, can first in response to ejection keyboard, obtain the image of current screen display, then the color information of image is extracted, last based on color information, replacing current keyboard skin, by analyzing the color information of current screen image, the keyboard skin matched with color information can be automatically switched to.
With further reference to Fig. 4, it illustrates the flow process 400 of another embodiment of the method for the configuration keyboard skin provided according to the application.
As shown in Figure 4, in step 401, in response to ejection keyboard, the image of current screen display is obtained.
In step 402, the color information of image is extracted.
In the present embodiment, the step 401 in above-mentioned realization flow 400 and step 402 are substantially identical with step 202 with the step 201 in aforementioned realization flow 200 respectively, do not repeat them here.
In step 403, based on color information, adjust the color attribute of current keyboard skin.
In the present embodiment, terminal device based on the image color information obtained in step 402, can adjust the color attribute of current keyboard skin.Above-mentioned color attribute such as can comprise following at least one item: tone, saturation degree and brightness.Such as, terminal device can carry out hue adjustment to current keyboard skin, to adjust the color of current keyboard skin.
In an optional implementation of the present embodiment, current keyboard skin can be converted to another color space by rgb color space by terminal device.Generally, current keyboard skin is described in rgb color space.When carrying out color adjustment to current keyboard skin, first current keyboard skin can be converted to another color space by rgb color space by terminal device.This another color space such as can comprise HSL (Hue tone, Saturation saturation degree, Lightness, lightness) color space, HSI (Hue tone, Saturation saturation degree, Intensity intensity) color space or HSV (Hue tone, Saturation saturation degree, Value brightness) color space.HSV color space is a kind of color space created according to the intuitive nature of color, and HSI color space is a kind of color space created from the vision system of people.HSL color space is similar to HSV color space, but HSL color space better reflects " saturation degree " and " brightness " intuition idea as two independent parameters.Such as, current keyboard skin can be converted to HSL color space in this realization and carry out color adjustment.
Particularly, first can extract R, G, B component of current keyboard skin, then calculate H, S, L component corresponding in HSL color space according to R, G, B component in the steps below.First R, G, B component is converted to the numerical value of 0-1, finds out the maximal value maxcolor in R, G, B and minimum value mincolor.Lightness L component is: L=(maxcolor+mincolor)/2.
If maximal value maxcolor is identical with the color value of minimum value mincolor, namely represent grey, so saturation degree S is defined as 0.Otherwise, calculate saturation degree S according to lightness L:
If L<0.5,S=(maxcolor-mincolor)/(maxcolor+mincolor);
If L>=0.5,S=(maxcolor-mincolor)/(2.0-maxcolor-mincolor)。
Finally can calculate tone H according to R, G, B component:
If R=maxcolor,H 1=(G-B)/(maxcolor-mincolor);
If G=maxcolor,H 1=2.0+(B-R)/(maxcolor-mincolor);
If B=maxcolor,H 1=4.0+(R-G)/(maxcolor-mincolor)
H=H 1* 60.0, if H is negative value, then add 360.
After current keyboard skin is converted to HSL color space, terminal device can adjust at the color attribute of HSL color space to current keyboard skin.According to the difference between the color information of screen picture and the color information of current keyboard skin, terminal device can adjust one or more color attributes of current keyboard skin, to reach the object that the keyboard skin after adjustment and screen picture match.Such as, when the tone of screen picture is identical with the tone of current keyboard skin, when both difference is brightness difference, terminal device can only adjust the luminance component of current keyboard skin.
The method of the configuration keyboard skin that the present embodiment provides, can first in response to ejection keyboard, obtain the image of current screen display, then the color information of image is extracted, last based on color information, adjusting the color attribute of current keyboard skin, by analyzing the color information of current screen image, the color attribute of current keyboard skin can be adjusted.This method when not changing keyboard skin, can make current keyboard skin and screen picture match, improve the allocative efficiency of keyboard skin.
With further reference to Fig. 5, it illustrates the flow process 500 of another embodiment of the method for the configuration keyboard skin provided according to the application.
As shown in Figure 5, in step 501, in response to ejection keyboard, the image of current screen display is obtained.
In step 502, the color information of image is extracted.
In step 503, based on color information, replace current keyboard skin.
In the present embodiment, the step 501 in above-mentioned realization flow 500, step 502 and step 503 are substantially identical with step 303 with the step 301 in aforementioned realization flow 300, step 302 respectively, do not repeat them here.
In step 504, the color attribute of current keyboard skin is adjusted.
In the present embodiment, terminal device can also adjust the color attribute of current keyboard skin after using in the keyboard skin preset and replacing current keyboard skin with the keyboard skin that screen picture mates most further.
Quantity, the color attribute of the keyboard skin preset are limited.When selecting the keyboard skin mated with screen picture, due to differing greatly between screen picture, the matching degree difference between different screen pictures with its keyboard skin mated most also may be larger.Such as, for the screen picture comparing common colors, the matching degree between itself and the keyboard skin mated most may reach more than 90%; For the screen picture of more rare color, the matching degree between itself and the keyboard skin mated most may only have 60%.Therefore, be similarly and use the keyboard skin mated most with screen picture to replace current keyboard skin, its effect possibility difference is larger.
In the present embodiment, terminal device can adjust the color attribute of the current keyboard skin after replacement further.Above-mentioned color attribute can comprise following at least one item: tone, saturation degree and brightness.Particularly, terminal device can according to the matching degree of current keyboard skin and screen picture, one or more color attributes of adjustment keyboard skin.Such as, when the matching degree between screen picture and the keyboard skin mated most reaches more than 90%, show that the matching degree of screen picture and current keyboard skin is higher, terminal device can only adjust the brightness of current keyboard skin or saturation degree.Matching degree between screen picture and the keyboard skin mated most only have 60% or lower time, show that the matching degree of screen picture and current keyboard skin is lower, terminal device can adjust the tone of current keyboard skin and brightness, or terminal device all can adjust the tone of current keyboard skin, brightness and saturation degree.
As can be seen from Figure 5, the embodiment corresponding with Fig. 3 unlike, the flow process of the method for the configuration keyboard skin that the present embodiment provides adds the step 504 of the color attribute adjusting current keyboard skin.By the step 504 increased, the scheme of the present embodiment statement, after the current keyboard skin of replacement, is carried out color adjustment to current keyboard skin further, can be provided the keyboard mated with screen picture skin more accurately.
With further reference to Fig. 6, it illustrates the flow process 600 of another embodiment of the method for the configuration keyboard skin provided according to the application.
As shown in Figure 6, in step 601, in response to ejection keyboard, the image in the non-keyboard region of current screen display is obtained.
In the present embodiment, when in the input frame of user in application program during input content, terminal device screen can eject keyboard, input use for user.When ejecting keyboard, terminal device can obtain the image in the non-keyboard region of current screen display.In general, when in the input frame of user in application program during input content, mainly can display application program area and keyboard area on the screen of terminal device.In whole screen, keyboard area may occupy a larger part.Therefore, if obtain the complete image of current screen display, configure keyboard skin according to the color information of this complete image further, the color of keyboard area may affect configuration result.Such as, when the half that keyboard area occupies screen area even area over half time, the color of keyboard area may become the main col information of extraction, when configuring keyboard skin, former keyboard skin may become the keyboard skin mated most with color information, thus can not reach the object that keyboard skin mates with application program skin.Therefore, in order to improve matching effect, when obtaining screen picture, the image in non-keyboard region can be obtained, namely obtain the image mainly comprising application area.
In one implementation, first terminal device can obtain the complete image of current screen display, and the image then using this complete image to deduct keyboard & display region can obtain the image in the non-keyboard region of current screen display.For the terminal device determined, its resolution can be known, and the height in keyboard & display region also can obtain.Therefore, the height using screen resolution to deduct keyboard & display region can obtain the image of the non-keyboard viewing area of screen display in terminal device.
In step 602, the color information of image is extracted.
In step 603, based on color information, replace current keyboard skin.
In step 604, the color attribute of current keyboard skin is adjusted.
In the present embodiment, the step 602 in above-mentioned realization flow 600, step 603 and step 604 are substantially identical with step 504 with the step 502 in aforementioned realization flow 500, step 503 respectively, do not repeat them here.
The method of the configuration keyboard skin that the present embodiment provides, terminal device can first in response to ejection keyboard, obtain the image in the non-keyboard region of current screen display, then the color information of image is extracted, afterwards based on color information, replace current keyboard skin, finally adjust the color attribute of current keyboard skin, the keyboard mated with screen picture skin can be provided more accurately.
Although it should be noted that the operation describing the inventive method in the accompanying drawings with particular order, this is not that requirement or hint must perform these operations according to this particular order, or must perform the result that all shown operation could realize expectation.On the contrary, the step described in process flow diagram can change execution sequence.Additionally or alternatively, some step can be omitted, multiple step be merged into a step and perform, and/or a step is decomposed into multiple step and perform.
With further reference to Fig. 7, it illustrates the functional module framework schematic diagram of an embodiment of the device 700 of the configuration keyboard skin provided according to the application.
As shown in Figure 7, the device 700 of configuration keyboard skin that the present embodiment provides comprises: acquisition module 710, extraction module 720 and configuration module 730.Wherein, acquisition module 710, in response to ejection keyboard, obtains the image of current screen display; Extraction module 720 is for extracting the color information of image; Configuration module 730, for based on color information, configures current keyboard skin.
In an optional implementation of the present embodiment, extraction module 720 is for extracting the color information of image according to the following steps: the color-values extracting each pixel in image; Add up the pixel number that each color-values is corresponding; According to statistics, determine the color information of image.
In another optional implementation of the present embodiment, configuration module 730 comprises: replace submodule, for replacing current keyboard skin; And/or adjustment submodule, for adjusting the color attribute of current keyboard skin, wherein, color attribute comprises following at least one item: tone, saturation degree and brightness.
In another optional implementation of the present embodiment, replace submodule and be used for replacing current keyboard skin according to the following steps: in the multiple keyboard skins preset, select the keyboard skin the highest with color information matching degree; Current keyboard skin is replaced with keyboard skin.
In another optional implementation of the present embodiment, adjustment submodule is used for the color attribute adjusting current keyboard skin according to the following steps: current keyboard skin is converted to the second color space by the first color space, wherein, first color space is rgb color space, and the second color space comprises following any one: HSL color space, HSI color space and HSV color space; The color attribute of current keyboard skin is adjusted in the second color space; Current keyboard skin after adjustment is converted back the first color space.
In another optional implementation of the present embodiment, acquisition module 710 is also for the image in non-keyboard region that obtains current screen display.
Should be appreciated that all unit of recording in the device of the keyboard of configuration shown in Fig. 7 skin or module corresponding with each step in the method described with reference to figure 1-6.Thus, above for the module that operation and the feature of method description are equally applicable to the equipment shown in Fig. 7 and wherein comprise, do not repeat them here.
The device of the configuration keyboard skin that the present embodiment provides, can first by acquisition module in response to ejection keyboard, obtain the image of current screen display, then extraction module extracts the color information of image, last configuration module is based on color information, configuring current keyboard skin, by analyzing the color information of current screen image, the keyboard skin matched with color information can be automatically switched to.
Below with reference to Fig. 8, it illustrates the structural representation of the computer system 800 of terminal device or the server be suitable for for realizing the embodiment of the present application.
As shown in Figure 8, computer system 800 comprises CPU (central processing unit) (CPU) 801, and it or can be loaded into the program random access storage device (RAM) 803 from storage area 808 and perform various suitable action and process according to the program be stored in ROM (read-only memory) (ROM) 802.In RAM 803, also store system 800 and operate required various program and data.CPU 801, ROM 802 and RAM 803 are connected with each other by bus 804.I/O (I/O) interface 805 is also connected to bus 804.
I/O interface 805 is connected to: the importation 806 comprising keyboard, mouse etc. with lower component; Comprise the output 807 of such as cathode-ray tube (CRT) (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.; Comprise the storage area 808 of hard disk etc.; And comprise the communications portion 809 of network interface unit of such as LAN card, modulator-demodular unit etc.Communications portion 809 is via the network executive communication process of such as the Internet.Driver 810 is also connected to I/O interface 805 as required.Detachable media 811, such as disk, CD, magneto-optic disk, semiconductor memory etc., be arranged on driver 810 as required, so that the computer program read from it is mounted into storage area 808 as required.
Especially, according to embodiment of the present disclosure, the process that reference flow sheet describes above may be implemented as computer software programs.Such as, embodiment of the present disclosure comprises a kind of computer program, and it comprises the computer program visibly comprised on a machine-readable medium, and described computer program comprises the program code for the method shown in flowchart.In such embodiments, this computer program can be downloaded and installed from network by communications portion 809, and/or is mounted from detachable media 811.
Process flow diagram in accompanying drawing and block diagram, illustrate according to the architectural framework in the cards of the system of various embodiments of the invention, method and computer program product, function and operation.In this, each square frame in process flow diagram or block diagram can represent a part for module, program segment or a code, and a part for described module, program segment or code comprises one or more executable instruction for realizing the logic function specified.Also it should be noted that at some as in the realization of replacing, the function marked in square frame also can be different from occurring in sequence of marking in accompanying drawing.Such as, in fact the square frame that two adjoining lands represent can perform substantially concurrently, and they also can perform by contrary order sometimes, and this determines according to involved function.Also it should be noted that, the combination of the square frame in each square frame in block diagram and/or process flow diagram and block diagram and/or process flow diagram, can realize by the special hardware based system of the function put rules into practice or operation, or can realize with the combination of specialized hardware and computer instruction.
Be described in unit module involved in the embodiment of the present application to be realized by the mode of software, also can be realized by the mode of hardware.Described unit module also can be arranged within a processor, such as, can be described as: a kind of processor comprises acquisition module, extraction module and configuration module.Wherein, the title of these unit modules does not form the restriction to this unit module itself under certain conditions, and such as, acquisition module can also be described to " in response to ejection keyboard, obtaining the module of the image of current screen display ".
As another aspect, present invention also provides a kind of computer-readable recording medium, this computer-readable recording medium can be the computer-readable recording medium comprised in device described in above-described embodiment; Also can be individualism, be unkitted the computer-readable recording medium allocated in terminal.Described computer-readable recording medium stores more than one or one program, and described program is used for performance description in the method for the configuration keyboard skin of the application by one or more than one processor.
More than describe and be only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art are to be understood that, invention scope involved in the application, be not limited to the technical scheme of the particular combination of above-mentioned technical characteristic, also should be encompassed in when not departing from described inventive concept, other technical scheme of being carried out combination in any by above-mentioned technical characteristic or its equivalent feature and being formed simultaneously.The technical characteristic that such as, disclosed in above-mentioned feature and the application (but being not limited to) has similar functions is replaced mutually and the technical scheme formed.

Claims (12)

1. configure a method for keyboard skin, it is characterized in that, described method comprises:
In response to ejection keyboard, obtain the image of current screen display;
Extract the color information of described image;
Based on described color information, configure current keyboard skin.
2. method according to claim 1, is characterized in that, the color information of the described image of described extraction comprises:
Extract the color-values of each pixel in described image;
Add up the pixel number that each color-values is corresponding;
According to statistics, determine the color information of described image.
3. method according to claim 1, is characterized in that, the current keyboard skin of described configuration comprises:
Replace described current keyboard skin; And/or
Adjust the color attribute of described current keyboard skin, wherein, described color attribute comprises following at least one item: tone, saturation degree and brightness.
4. method according to claim 3, is characterized in that, the described current keyboard skin of described replacement comprises:
The keyboard skin the highest with described color information matching degree is selected in the multiple keyboard skins preset;
Described current keyboard skin is replaced with described keyboard skin.
5. method according to claim 3, is characterized in that, the color attribute of the described current keyboard skin of described adjustment comprises:
Described current keyboard skin is converted to the second color space by the first color space, and wherein, described first color space is rgb color space, and described second color space comprises following any one: HSL color space, HSI color space and HSV color space;
The color attribute of described current keyboard skin is adjusted in described second color space;
Current keyboard skin after adjustment is converted back described first color space.
6. according to the arbitrary described method of claim 1-5, it is characterized in that, the image of described acquisition current screen display comprises:
Obtain the image in the non-keyboard region of current screen display.
7. configure a device for keyboard skin, it is characterized in that, described device comprises:
Acquisition module, in response to ejection keyboard, obtains the image of current screen display;
Extraction module, for extracting the color information of described image;
Configuration module, for based on described color information, configures current keyboard skin.
8. device according to claim 7, is characterized in that, described extraction module is used for the color information extracting described image according to the following steps:
Extract the color-values of each pixel in described image;
Add up the pixel number that each color-values is corresponding;
According to statistics, determine the color information of described image.
9. device according to claim 7, is characterized in that, described configuration module comprises:
Replace submodule, for replacing described current keyboard skin; And/or
Adjustment submodule, for adjusting the color attribute of described current keyboard skin, wherein, described color attribute comprises following at least one item: tone, saturation degree and brightness.
10. device according to claim 9, is characterized in that, described replacement submodule is used for replacing described current keyboard skin according to the following steps:
The keyboard skin the highest with described color information matching degree is selected in the multiple keyboard skins preset;
Described current keyboard skin is replaced with described keyboard skin.
11. devices according to claim 9, is characterized in that, described adjustment submodule is used for the color attribute adjusting described current keyboard skin according to the following steps:
Described current keyboard skin is converted to the second color space by the first color space, and wherein, described first color space is rgb color space, and described second color space comprises following any one: HSL color space, HSI color space and HSV color space;
The color attribute of described current keyboard skin is adjusted in described second color space;
Current keyboard skin after adjustment is converted back described first color space.
12., according to the arbitrary described device of claim 7-11, is characterized in that, described acquisition module also for:
Obtain the image in the non-keyboard region of current screen display.
CN201510390060.3A 2015-07-06 2015-07-06 Method and apparatus for configuring keyboard skin Pending CN104978198A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510390060.3A CN104978198A (en) 2015-07-06 2015-07-06 Method and apparatus for configuring keyboard skin

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510390060.3A CN104978198A (en) 2015-07-06 2015-07-06 Method and apparatus for configuring keyboard skin

Publications (1)

Publication Number Publication Date
CN104978198A true CN104978198A (en) 2015-10-14

Family

ID=54274736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510390060.3A Pending CN104978198A (en) 2015-07-06 2015-07-06 Method and apparatus for configuring keyboard skin

Country Status (1)

Country Link
CN (1) CN104978198A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204750A (en) * 2015-10-28 2015-12-30 百度在线网络技术(北京)有限公司 Method and device of configuring keyboard skin
CN105912335A (en) * 2016-04-11 2016-08-31 珠海市魅族科技有限公司 Method and apparatus for changing background color of image
CN107741820A (en) * 2017-09-12 2018-02-27 维沃移动通信有限公司 A kind of entering method keyboard display methods and mobile terminal
CN108700978A (en) * 2016-04-20 2018-10-23 谷歌有限责任公司 Texture is distributed to graphic keyboard by the theme texture based on application
CN109298912A (en) * 2018-09-29 2019-02-01 Oppo广东移动通信有限公司 Adjusting method, device, storage medium and the electronic equipment of subject color
CN109814956A (en) * 2017-11-20 2019-05-28 厦门歌乐电子企业有限公司 A method of display equipment and its replacement skin
CN111352685A (en) * 2020-02-28 2020-06-30 北京百度网讯科技有限公司 Input method keyboard display method, device, equipment and storage medium
CN111510554A (en) * 2020-04-03 2020-08-07 深圳传音控股股份有限公司 Dial switching method, dial switching equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402367A (en) * 2010-09-14 2012-04-04 上海三旗通信科技股份有限公司 Method for implementing dynamic theme in mobile phone terminal
CN103164210A (en) * 2011-12-13 2013-06-19 北京千橡网景科技发展有限公司 Method and device of changing surface of application program interface
CN103677640A (en) * 2013-12-16 2014-03-26 安徽科大讯飞信息科技股份有限公司 Virtual keyboard self-adaptation application theme method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402367A (en) * 2010-09-14 2012-04-04 上海三旗通信科技股份有限公司 Method for implementing dynamic theme in mobile phone terminal
CN103164210A (en) * 2011-12-13 2013-06-19 北京千橡网景科技发展有限公司 Method and device of changing surface of application program interface
CN103677640A (en) * 2013-12-16 2014-03-26 安徽科大讯飞信息科技股份有限公司 Virtual keyboard self-adaptation application theme method and system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204750A (en) * 2015-10-28 2015-12-30 百度在线网络技术(北京)有限公司 Method and device of configuring keyboard skin
CN105912335A (en) * 2016-04-11 2016-08-31 珠海市魅族科技有限公司 Method and apparatus for changing background color of image
US10614595B2 (en) 2016-04-20 2020-04-07 Google Llc Assigning textures to graphical keyboards based on thematic textures of applications
CN108700978A (en) * 2016-04-20 2018-10-23 谷歌有限责任公司 Texture is distributed to graphic keyboard by the theme texture based on application
EP3400513A4 (en) * 2016-04-20 2018-12-05 Google LLC Assigning textures to graphical keyboards based on thematic textures of applications
CN108700978B (en) * 2016-04-20 2021-05-25 谷歌有限责任公司 Assigning textures to graphical keyboards based on subject textures of an application
CN107741820A (en) * 2017-09-12 2018-02-27 维沃移动通信有限公司 A kind of entering method keyboard display methods and mobile terminal
CN107741820B (en) * 2017-09-12 2020-04-03 维沃移动通信有限公司 Input method keyboard display method and mobile terminal
CN109814956A (en) * 2017-11-20 2019-05-28 厦门歌乐电子企业有限公司 A method of display equipment and its replacement skin
CN109814956B (en) * 2017-11-20 2022-03-18 厦门歌乐电子企业有限公司 Display device and skin replacing method thereof
CN109298912B (en) * 2018-09-29 2020-06-02 Oppo广东移动通信有限公司 Theme color adjusting method and device, storage medium and electronic equipment
CN109298912A (en) * 2018-09-29 2019-02-01 Oppo广东移动通信有限公司 Adjusting method, device, storage medium and the electronic equipment of subject color
CN111352685A (en) * 2020-02-28 2020-06-30 北京百度网讯科技有限公司 Input method keyboard display method, device, equipment and storage medium
CN111352685B (en) * 2020-02-28 2024-04-09 北京百度网讯科技有限公司 Display method, device, equipment and storage medium of input method keyboard
CN111510554A (en) * 2020-04-03 2020-08-07 深圳传音控股股份有限公司 Dial switching method, dial switching equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104978198A (en) Method and apparatus for configuring keyboard skin
US9547427B2 (en) User interface with color themes based on input image data
US10319085B2 (en) Metadata-based image processing method and apparatus
US9930218B2 (en) Content aware improvement of captured document images
CN104935902B (en) Image color Enhancement Method, device and electronic equipment
US11462002B2 (en) Wallpaper management method, apparatus, mobile terminal, and storage medium
US7342585B2 (en) Use of an input overscaled bitmap to generate emboldened overscaled bitmap
US20160283819A1 (en) Image processing apparatus, image processing method, image processing system, and non-transitory computer readable medium storing program
US20220139296A1 (en) Image information processing method, electronic device and storage medium
US8830251B2 (en) Method and system for creating an image
CN103680403A (en) Methods and devices for controlling operations of an organic light-emitting diode display
US10418000B2 (en) Method and apparatus for screen capture on a display device
JP4646735B2 (en) Image processing apparatus and image processing method
US8085279B2 (en) Drawing an image with transparent regions on top of another image without using an alpha channel
US10679383B2 (en) Interface color branding
US10574958B2 (en) Display apparatus and recording medium
CN112927321B (en) Intelligent image design method, device, equipment and storage medium based on neural network
CN107341770B (en) Dynamic range extension highlight information recovery
KR20120035360A (en) Apparatus for recognizing character and method thereof
JP4944068B2 (en) Image processing apparatus, image processing method, program, and recording medium
US11217205B2 (en) Method and apparatus for rendering contents for vision accessibility
US11062171B2 (en) Data capturing method and system thereof
JP7059799B2 (en) Information processing equipment and programs
US8929666B2 (en) Method and apparatus of generating a multi-format template image from a single format template image
TWI442329B (en) Image processing method for deriving text characteristic image from input image and related apparatus thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151014

RJ01 Rejection of invention patent application after publication