CN106856542A - The method and device of Icon Color is automatically adjusted according to wallpaper color - Google Patents

The method and device of Icon Color is automatically adjusted according to wallpaper color Download PDF

Info

Publication number
CN106856542A
CN106856542A CN201611225476.0A CN201611225476A CN106856542A CN 106856542 A CN106856542 A CN 106856542A CN 201611225476 A CN201611225476 A CN 201611225476A CN 106856542 A CN106856542 A CN 106856542A
Authority
CN
China
Prior art keywords
color
icon
region
wallpaper
components
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
CN201611225476.0A
Other languages
Chinese (zh)
Other versions
CN106856542B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201611225476.0A priority Critical patent/CN106856542B/en
Publication of CN106856542A publication Critical patent/CN106856542A/en
Application granted granted Critical
Publication of CN106856542B publication Critical patent/CN106856542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of method and device that Icon Color is automatically adjusted according to wallpaper color, described device includes:Dominant hue extraction module, the dominant hue for extracting current wallpaper according to presetting method;Icon information acquisition module, the transparence information for obtaining each icon from default subject resource storehouse;Color adaptation module, for the icon that the color of each icon is adjusted according to the transparence information and the dominant hue to obtain being adapted to the current wallpaper color.Compared with prior art, the present invention realizes the color that icon is adjusted according to the color synchronization of current wallpaper, icon is coordinated with wallpaper color keep.

Description

The method and device of Icon Color is automatically adjusted according to wallpaper color
Technical field
The present invention relates to mobile communication technology field, more particularly to a kind of Icon Color is automatically adjusted according to wallpaper color Method and device.
Background technology
In android system, user can include wall according to oneself many beautiful theme of hobby selection, usual theme Paper and many icons on individual Sexual Themes, all of icon can all show the pattern related to theme.As user from theme After a certain theme is selected in application program and being applied, the wallpaper and icon shown on mobile terminal can be changed simultaneously.At certain Under one theme, user can also select any picture as wallpaper from photograph album or picture library, and after wallpaper is changed, current figure Mark will not change, if therefore the color as the picture of wallpaper differs larger with the color of original wallpaper, figure can be caused Mark with change after wallpaper color it is lofty, display it is uncoordinated.
For this reason, it is necessary to it is above-mentioned to overcome to provide a kind of method and device that Icon Color is automatically adjusted according to wallpaper color Defect.
The content of the invention
It is a primary object of the present invention to propose a kind of method and device that Icon Color is automatically adjusted according to wallpaper color, When aiming at desktop wallpaper change, the Icon Color on interface synchronously changes, and realizes the coordination of color.
To achieve the above object, the present invention provides a kind of device that Icon Color is automatically adjusted according to wallpaper color, application In mobile terminal, described device includes:
Dominant hue extraction module, the dominant hue for extracting current wallpaper according to presetting method;
Icon information acquisition module, the transparence information for obtaining each icon from default subject resource storehouse;
Color adaptation module, for adjusting the color of each icon according to the transparence information and the dominant hue to obtain To the icon being adapted to the current wallpaper color.
Alternatively, the icon is the picture with preset shape, transparent shape;
The color adaptation module specifically for:
It is the dominant hue by the color adaptation of the icon of each preset shape;
The transparency of the corresponding icon of transparency regulation according to corresponding to the transparence information.
Alternatively, the icon information acquisition module specifically for:
The subject resource storehouse dynamically generates and the icon number identical transparency;
The transparency is randomly assigned to transparence information of each icon as the icon.
Alternatively, the dominant hue extraction module includes:
Data capture unit, for obtain H components in HSB color spaces of each pixel in current wallpaper, S components and B component, the form and aspect of pixel wherein described in H representation in components, the saturation degree of pixel described in S representation in components, B component represents the pixel Brightness;
Division unit, for the runner corresponding to the H components to be divided into multiple regions;
Judging unit, the H components for judging each pixel in the current wallpaper successively are affiliated on the runner Region;
Statistic unit, for according to region of the judged result statistics with most number of pixels;
HSB value acquiring units, the typical value of the H components for obtaining the region with most number of pixels, by institute State typical value and combined with default S components and B component and obtain a HSB value;
Dominant hue acquiring unit, for the HSB values to be converted to the rgb value in rgb color space, the rgb value institute Corresponding color is the dominant hue of the current wallpaper.
Alternatively, the dominant hue extraction module also includes:
Pixel filters unit, for the black picture element in the current wallpaper, gray pixels and white pixel to be filtered;
The division unit specifically for:
Runner corresponding to the H components divide for the first time and is equally divided into n region with by the runner, wherein N is the natural number more than 1;
Runner corresponding to the H components is carried out into second division and is equally divided into n region with by the runner, its In, each region in n region obtained by the runner is divided for the first time and divides the n obtained by the runner for the second time Each region in individual region has the region that partly overlaps;
The judging unit specifically for:
H points of each pixel in the current wallpaper beyond black picture element, gray pixels and white pixel is judged successively Measure in n region obtained by first time divides the runner affiliated region and divide the runner institute for the second time Affiliated region in the n region for obtaining.
Compared to prior art, the device root first that Icon Color is automatically adjusted according to wallpaper color proposed by the invention The dominant hue of current wallpaper is extracted according to presetting method, the transparency letter of each icon is then obtained from default subject resource storehouse Breath, the color of each icon is adjusted finally according to the transparence information and the dominant hue, it is achieved thereby that according to working as antetheca The color synchronization of paper adjusts the color of icon, icon is coordinated with wallpaper color keep.
Additionally, to achieve the above object, the present invention also provides a kind of side that Icon Color is automatically adjusted according to wallpaper color Method, is applied to mobile terminal, the described method comprises the following steps:
The dominant hue of current wallpaper is extracted according to presetting method;
The transparence information of each icon is obtained from default subject resource storehouse;
The color of each icon is adjusted to obtain and the current wallpaper according to the transparence information and the dominant hue The icon of color adaptation.
Alternatively, the icon is the picture with preset shape, transparent shape;
It is described to specifically include the step of adjust the color of each icon according to the transparence information and the dominant hue:
It is the dominant hue by the color adaptation of the icon of each preset shape;
The transparency of the corresponding icon of transparency regulation according to corresponding to the transparence information.
Alternatively, it is described to include the step of obtain the transparence information of each icon from default subject resource storehouse:
The subject resource storehouse dynamically generates and the icon number identical transparency;
The transparency is randomly assigned to transparence information of each icon as the icon.
Alternatively, it is described according to presetting method extract current wallpaper dominant hue the step of include:
Obtain H component of each pixel in HSB color spaces, S components and B component, wherein H subscales in current wallpaper Show the form and aspect of the pixel, the saturation degree of pixel described in S representation in components, B component represents the brightness of the pixel;
Runner corresponding to the H components is divided into multiple regions;
The affiliated region on the runner of the H components of each pixel in the current wallpaper is judged successively;
According to region of the judged result statistics with most number of pixels;
The typical value of the H components in the region with most number of pixels is obtained, the typical value is divided with default S Amount and B component combination obtain a HSB value;
The HSB values are converted to the rgb value in rgb color space, the color corresponding to the rgb value is described current The dominant hue of wallpaper.
Alternatively, the affiliated area on the runner of the H components that each pixel in the current wallpaper is judged successively Also include before the step of domain:
Black picture element in the current wallpaper, gray pixels and white pixel are filtered;
The step of runner by corresponding to the H components is divided into multiple regions includes:
Runner corresponding to the H components divide for the first time and is equally divided into n region with by the runner, wherein N is the natural number more than 1;
Runner corresponding to the H components is carried out into second division and is equally divided into n region with by the runner, its In, each region in n region obtained by the runner is divided for the first time and divides the n obtained by the runner for the second time Each region in individual region has the region that partly overlaps;
The step of H components for judging each pixel in the current wallpaper successively region affiliated on the runner Including:
H points of each pixel in the current wallpaper beyond black picture element, gray pixels and white pixel is judged successively Measure in n region obtained by first time divides the runner affiliated region and divide the runner institute for the second time Affiliated region in the n region for obtaining.
Compared to prior art, the method root first that Icon Color is automatically adjusted according to wallpaper color proposed by the invention The dominant hue of current wallpaper is extracted according to presetting method, the transparency letter of each icon is then obtained from default subject resource storehouse Breath, the color of each icon is adjusted finally according to the transparence information and the dominant hue, it is achieved thereby that according to working as antetheca The color synchronization of paper adjusts the color of icon, icon is coordinated with wallpaper color keep.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing each optional mobile terminal of embodiment one of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the function mould of the device first embodiment that Icon Color is automatically adjusted according to wallpaper color of the present invention Block schematic diagram;
Fig. 4 is the high-level schematic functional block diagram of the embodiment of dominant hue extraction module one in Fig. 3;
Fig. 5 is the implementation stream of the method first embodiment that Icon Color is automatically adjusted according to wallpaper color of the present invention Journey schematic diagram;
Fig. 6 is the implementation stream of the method second embodiment that Icon Color is automatically adjusted according to wallpaper color of the present invention Journey schematic diagram;
Fig. 7 is the schematic diagram when runner corresponding to H components to be averagely divided into 12 regions;
Fig. 8 a are when the runner corresponding to H components being carried out into first time division and the runner being equally divided into 4 regions Schematic diagram;
Fig. 8 b are when the runner corresponding to H components being carried out into second division and the runner being equally divided into 4 regions Schematic diagram;
Fig. 8 c are distribution schematic diagram of the pixel of current wallpaper in the regional obtained by being divided for the first time shown in Fig. 8 a;
Fig. 8 d are distribution schematic diagram of the pixel of current wallpaper in the regional obtained by second division shown in Fig. 8 b;
Fig. 9 is the schematic diagram that each icon carries out color adaptation latter embodiment according to dominant hue and transparence information.
Reference:
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal 1 00 of each embodiment of the invention is realized referring now to Description of Drawings.In follow-up description, make With the suffix of such as " module ", " part " or " unit " for representing element only for being conducive to explanation of the invention, its Body does not have specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration for realizing each optional mobile terminal of embodiment one of the invention is illustrated.
Mobile terminal 1 00 can include, but are not limited to sensing unit 10, memory 20, controller 30, wireless communication unit 40th, output unit 50, input block 60, interface unit 70 and power subsystem 80.Fig. 1 shows the mobile end with various assemblies End 100, it should be understood that being not required for implementing all components for showing.More or less group can alternatively be implemented Part.The element of mobile terminal 1 00 will be discussed in more detail below.
Sensing unit 10 is used to detect the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 is opened or closed State), the presence or absence of the contact (that is, touch input) of the position of mobile terminal 1 00, user for mobile terminal 1 00, mobile terminal The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 10 can be sensed The sliding-type phone is opened or closed.In addition, sensing unit 10 can detect power subsystem 190 whether provide electric power or Whether interface unit 170 couples with external device (ED).
Wireless communication unit 40 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module, mobile communication module, nothing At least one of line the Internet module, short range communication module and location information module.
Broadcasting reception module receives broadcast singal from external broadcast management server via broadcast channel and/or broadcast is related Information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can generate and send broadcast The server of signal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and Send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting signal Etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.The related letter of broadcast Breath can also be provided via mobile communications network, and in this case, broadcast related information can be come by mobile communication module Receive.Broadcast singal can exist in a variety of manners, for example, it can be referred to the electronic programming of DMB (DMB) The form of southern (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast reception mould Block can receive signal and broadcast by using various types of broadcast systems.Especially, broadcasting reception module can be by using Such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), DVB-hand-held (DVB- H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. number Word broadcast system receives digital broadcasting.Broadcasting reception module may be constructed such that the various broadcast systems for being adapted to provide for broadcast singal And above-mentioned digit broadcasting system.The broadcast singal and/or broadcast related information received via broadcasting reception module can be stored In memory 20 (or other types of storage medium).
Mobile communication module send radio signals to base station (for example, access point, node B etc.), exterior terminal with And at least one of server and/or receive from it radio signal.Such radio signal can include voice call Signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be coupled internally or externally To terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (nothings Line width band), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module is the module for supporting junction service.Some examples of short-range communication technology include bluetoothTM、 Radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module is the module for checking or obtaining the positional information of mobile terminal.The allusion quotation of location information module Type example is GPS (global positioning system).According to current technology, GPS module calculates the distance from three or more satellites Information and correct time information and the Information application triangulation for calculating, so as to according to longitude, latitude and height Three-dimensional current location information is calculated exactly.Currently, for calculate position and temporal information method use three satellites and The position calculated by using other satellite correction and the error of temporal information.Additionally, GPS module can be by reality When ground Continuous plus current location information carry out calculating speed information.
Output unit 50 be configured to vision, audio and/or tactile manner provide output signal (for example, audio signal, Vision signal, alarm signal, vibration signal etc.).Output unit 50 can include display unit 51, dio Output Modules 52, Alarm unit 53 etc..
Display unit 51 may be displayed on the information processed in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity During words call mode, display unit 51 can show and converse or other communicate (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 51 can show the image of capture and/or the image of reception, show video or image And the UI or GUI of correlation function etc..
Meanwhile, when display unit 51 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 51 Can serve as input unit and output device.Display unit 51 can include liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), at least in Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. Kind.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent aobvious Show device, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..Thought according to specific The implementation method wanted, mobile terminal 1 00 can include two or more display units (or other display devices), for example, mobile Terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used to detect that touch is defeated Enter pressure and touch input position and touch input area.
Dio Output Modules 52 can be in call signal reception pattern, call mode, logging mode, language in mobile terminal It is that wireless communication unit 40 is received or deposited in memory 20 when under the isotypes such as sound recognition mode, broadcast reception mode The voice data transducing audio signal of storage and it is output as sound.And, dio Output Modules 52 can be provided and mobile terminal The related audio output of 100 specific functions for performing (for example, call signal receives sound, message sink sound etc.).Audio Output module 52 can include loudspeaker, buzzer etc..
Alarm unit 53 can provide output and be notified to mobile terminal 1 00 with by event.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit 53 can in a different manner provide output with the generation of notification event.For example, alarm unit 53 can be carried in the form of vibrating For output, when calling, message or some other entrance communication (incoming communication) are received, alarm unit 53 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even if in user Mobile phone be in user pocket in when, user also can recognize that the generation of various events.Alarm unit 53 can also The output of the generation of notification event is provided via display unit 51 or dio Output Modules 52.
Input block 60 can generate key input data to control the various behaviour of mobile terminal according to the order of user input Make.Input block 60 allow the various types of information of user input, and can include keyboard, metal dome, touch pad (for example, The sensitive component of the change of resistance, pressure, electric capacity etc. caused by detecting due to being touched), roller, rocking bar etc..Especially Ground, when touch pad is superimposed upon on display unit 50 in the form of layer, can form touch-screen.
Interface unit 70 is connected the interface that can pass through with mobile terminal 1 00 as at least one external device (ED).For example, outer Part device can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connect the port of device with identification module, audio input/output (I/O) port, Video i/o port, ear port etc..Identification module can be that storage uses the various of mobile terminal 1 00 for verifying user Information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc. can be included Deng.In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, identification Device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for receiving from outer The input (for example, data message, electric power etc.) of part device and the input that will be received are transferred in mobile terminal 1 00 Individual or multiple element can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 70 can serve as allowing by it by electric power There is provided to the path of mobile terminal 1 00 from base or can serve as allowing the various command signals being input into from base to be passed by it The defeated path to mobile terminal.Be can serve as whether recognizing mobile terminal from the various command signals or electric power of base input It is accurately fitted within the signal on base.
Memory 20 can store software program for the treatment and control operation performed by controller 30 etc., or can be with Temporarily store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And, Memory 20 can store vibration and the data of audio signal of the various modes on being exported when touching and being applied to touch-screen.
Memory 20 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many matchmakers Body card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access memory (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 10 can perform memory 20 with by network connection Store function network storage device cooperation.
The overall operation of the generally control mobile terminal of controller 30.For example, controller 30 is performed leading to voice call, data Letter, video calling etc. related control and treatment.In addition, controller 30 can be included for reproducing (or playback) multimedia number According to multi-media module, multi-media module can be constructed in controller 30, or be can be structured as and separated with controller 30.Control Device processed 30 can be drawn input and be identified as with execution pattern identifying processing, the handwriting input that will be performed on the touchscreen or picture Character or image.
Power subsystem 80 receives external power or internal power and provides operation each element under the control of the controller 30 With the appropriate electric power needed for component.
Various implementation methods described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, implementation method described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such implementation method can be implemented in controller 180. For software implementation, the implementation method of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any appropriate programming language Implement, software code can be stored in memory 160 and performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is used as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system are operated.
The communication system that mobile terminal wherein of the invention can be operated is described referring now to Fig. 2.
Such communication system can use different air interface and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base station (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. If any one in the interface that back haul link can be known according to Ganji is constructed, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed intersects can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed It is multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to broadcsting transmitter (BT) 295 mobile terminal operated in system 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps position multiple mobile terminals At least one of 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful Location information.GPS module in wireless communication unit 40 as shown in Figure 1 be generally configured to satellite 300 coordinate with Obtain desired location information.Substitute GPS tracking techniques or outside GPS tracking techniques, it is possible to use movement can be tracked Other technologies of the position of terminal.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb Transmission.
Used as a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270 is anti- Processed in specific BS270 to link signal.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of the coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the invention is proposed.
First, the present invention proposes a kind of device 400 that Icon Color is automatically adjusted according to wallpaper color, described according to wallpaper The device 400 that color automatically adjusts Icon Color is applied to any mobile terminal.
As shown in figure 3, being that the device 400 first for automatically adjusting Icon Color according to wallpaper color of the present invention is implemented The high-level schematic functional block diagram of example.In the present embodiment, the device 400 for automatically adjusting Icon Color according to wallpaper color can be with It is divided into one or more modules, one or more of modules are stored in the memory 20, and by one or many Individual controller (being the controller 30 in the present embodiment) is performed, to complete the present invention.For example, in figure 3, it is described according to wall The device 400 that paper color automatically adjusts Icon Color can be divided into dominant hue extraction module 401, icon information acquisition module 402 and color adaptation module 403.Module wherein alleged by the present invention refers to a series of a kind of meters that can complete specific function Calculation machine programmed instruction section, adjusts than program more suitable for describing the device 400 for automatically adjusting Icon Color according to wallpaper color Save the process of Icon Color.The concrete function of just above-mentioned each functional module 401-403 is described in detail below.
The dominant hue extraction module 401, the dominant hue for extracting current wallpaper according to presetting method.Wherein, it is mobile The wallpaper of terminal is a picture, and the dominant hue for extracting current wallpaper is the dominant hue for extracting the picture.Dominant hue, i.e. picture Topmost color or occupy the maximum color of proportion in all colours, and the method for extracting dominant hue has various.
In the present embodiment, dominant hue extraction module 401 includes:
(1) data capture unit, for obtain H components in HSB color spaces of each pixel in current wallpaper, S points Amount and B component, the form and aspect of pixel wherein described in H representation in components, the saturation degree of pixel described in S representation in components, B component represent described The brightness of pixel.Wherein, form and aspect are the primary features of color, are the most accurate standards for distinguishing various different colors, it is any it is black, In vain, the color beyond ash has an attribute of form and aspect, and what form and aspect were namely made up of primary colors, secondary color and secondary color, common It is when using, form and aspect are identified by color designation, such as red, green or orange etc., black and white without form and aspect, at 0~360 ° In standard colour wheel, form and aspect are opsition dependent measurements;Saturation degree represents the purity of color, and pixel is grey when saturation degree is 0, wherein In vain, black and other grey colors are all without saturation degree;Brightness is used to represent the lightness of color, and pixel is black when brightness is 0. Additionally, the current wallpaper in mobile terminal is usually rgb format, therefore data capture unit may be additionally operable to:Antetheca is worked as in acquisition The rgb value of each pixel on paper;The current wallpaper is converted into HSB color spaces by rgb color space, will current wallpaper The rgb value of upper each pixel is converted to corresponding HSB values.
(2) division unit, for the runner corresponding to the H components to be divided into multiple regions.Wherein it is possible to will be current Runner corresponding to the H components of wallpaper is averagely divided into n region, the runner corresponding to the H components of current wallpaper be one 0 to 360 ° of circle, the angle in each region is used to represent the different spans of H components.The value of n can be for 2,3,4,5 etc. more than 1 Natural number, and in actual applications, it is necessary to consider the degree of accuracy that dominant hue is extracted, therefore the value of n is needed for one is suitable Numerical value, rather than value is smaller or during bigger value the degree of accuracy it is higher.Fig. 7 is refer to, Fig. 7 is by the runner corresponding to H components Average schematic diagram when being divided into 12 regions, wherein each region are in 30 ° of angles, the H components for representing certain span, Each region has a form and aspect corresponding with H components simultaneously, as shown in fig. 7, the form and aspect represented by 12 regions are respectively Red, purplish red, purple, royal purple, indigo plant, bluish-green, green, yellowish green, yellow, yellow orange, orange, blood orange, wherein the region corresponding to red is 0 to 30 °, Purplish red corresponding region is 30 ° to 60 °, and the rest may be inferred.
(3) judging unit, the H components for judging each pixel in the current wallpaper successively are affiliated on the runner Region.
(4) statistic unit, for according to region of the judged result statistics with most number of pixels.
(5) HSB values acquiring unit, the typical value of the H components for obtaining the region with most number of pixels will The typical value is combined with default S components and B component and obtains a HSB value.Such as:In 12 regions shown in Fig. 7, when yellowish green When the number of pixels that region has is most, then obtain the typical value of H components in yellowish green region, then by the typical value with it is default S components and B component combination obtain a HSB value.Wherein, some region of typical value can be H in the region in runner The numerical value such as the average value or median of component, in the present embodiment by taking the median during the typical value of H components is as respective regions as an example Illustrate.Default S components and B component are the standards that developer or user are set according to itself custom or demand Parameter, the saturation degree of the dominant hue that default S representation in components user intentionally gets, default B component represents that user intentionally gets Dominant hue brightness, the typical value of the H components of the current wallpaper being calculated combines with the default S components and B component To a HSB value.
(6) dominant hue acquiring unit, for the HSB values to be converted to the rgb value in rgb color space, the rgb value Corresponding color is the dominant hue of the current wallpaper.Wherein, to that should have a color, such as rgb value is each rgb value When (255,0,0), corresponding color is red;When rgb value is (255,127,80), corresponding color is coral;RGB It is worth during for (255,255,0), corresponding color is yellow;When rgb value is (255,235,205), corresponding color is apricot Benevolence ash etc., the dominant hue of current wallpaper can be determined by the rgb value being calculated.When realizing, can be pre- in mobile terminal The mapping table of a rgb value and the color of being first stored with, color corresponding with rgb value can be obtained by searching the mapping table, this Color is the dominant hue of the desired current wallpaper for obtaining.
The icon information acquisition module 402, the transparency for obtaining each icon from default subject resource storehouse Information.In the present embodiment, the transparence information of each icon under a certain theme that is stored with default subject resource storehouse, this is transparent Degree information is stored in the form of Alpha passages, and wherein Alpha passages are the gray channels of 8, and the passage is with 256 grades of ashes The transparence information that degree comes in recordable picture (picture corresponding to each icon), defines transparent, opaque and translucent area, It is wherein black to represent transparent, represent opaque in vain, ash represents translucent.Therefore, the data for reading Alpha passages can get respectively The transparence information of individual icon.
The color adaptation module 403, for adjusting each icon according to the transparence information and the dominant hue Icon of the color to obtain being adapted to the current wallpaper color.Such as:When the transparency corresponding to icon A is 40%, will scheme The color adaptation for marking A is dominant hue, the transparency of icon A then is adjusted into 40%, wherein corresponding to the transparence information The value of lightness be any value in 0~100%, the value is set or dynamic generation according to user's request.Need explanation It is that, to color for the icon of dominant hue carries out transparency regulation, can cause that the color of icon has with the dominant hue of current wallpaper There is certain difference, fade effect is such as presented, so that the color of icon shows with the color of current wallpaper more coordinate.Please With reference to Fig. 9, Fig. 9 illustrates each icon and the signal of color adaptation latter embodiment is carried out according to dominant hue and transparence information Figure, each icon has a different shapes in wherein Fig. 9, and its color of each icon shadow representation is dominant hue in Fig. 9.
By above-mentioned module 401 to 403, the present invention automatically adjusts the device basis first of Icon Color according to wallpaper color Presetting method extracts the dominant hue of current wallpaper, and the transparency letter of each icon is then obtained from default subject resource storehouse Breath, the color of each icon is adjusted finally according to the transparence information and the dominant hue, it is achieved thereby that according to working as antetheca The color synchronization of paper adjusts the color of icon, icon is coordinated with wallpaper color keep.
Based on above-mentioned first embodiment, the device that Icon Color is automatically adjusted according to wallpaper color of the present invention is proposed 400 second embodiment.In the present embodiment, the icon is with preset shape, the picture without colouring information, the present embodiment The transparent shape of the middle picture without colouring information.Wherein, each icon in default subject resource storehouse is with preset shape, is in The shape and transparence information of each icon only need to be stored in the picture of transparence, i.e. subject resource storehouse, and picture need not be stored Colouring information, the relatively existing subject resource database data amount of data volume in subject resource storehouse is less, and it takes less internal memory. It should be noted that the transparence information of each icon can both be pre-designed and be stored in subject resource storehouse, its Can be that stochastic and dynamic is obtained.When transparence information is dynamic access, icon information acquisition module 402 specifically for:(1) The subject resource storehouse dynamically generates and the icon number identical transparency;(2) transparency is randomly assigned to respectively Individual icon as the icon transparence information.At random for each icon generates different transparencies, so as to ought repeatedly become After changing wallpaper, although each icon has identical dominant hue, the transparency that it is used will not be every time identical, can bring More preferable interesting and Consumer's Experience.
The color adaptation module 403 specifically for:It is the master by the color adaptation of the icon of each preset shape Tone;The transparency of the corresponding icon of transparency regulation according to corresponding to the transparence information.Wherein, when extracting After the dominant hue of current wallpaper, the icon without colouring information with preset shape is used as with the color corresponding to the dominant hue Color, then transparency according to corresponding to the transparence information adjust the transparency of respective icon, i.e., according to each figure Target transparence information adjusts the transparency of icon, when the transparency as corresponding to as icon A is 40%, regulation icon A Transparency be 40% refer to the transparency of the relatively current wallpapers of icon A for 40%, wherein saturating corresponding to the transparence information The value of lightness is any value in 0~100%, and the value is randomly provided or dynamic generation according to user's request.Need explanation , by adjusting the transparency of icon, can cause that the color of icon has certain difference with the dominant hue of current wallpaper, Make the color of icon to be shown with the color of current wallpaper more coordinate.
Fig. 4 is refer to again, and dominant hue extraction module 401 includes data capture unit 4011, division unit in the present embodiment 4012nd, judging unit 4013, statistic unit 4014, HSB values acquiring unit 4015, dominant hue acquiring unit 4016 and pixel filter Except unit 4017.
The pixel filters unit 4017, for by the black picture element in the current wallpaper, gray pixels and white picture Element is filtered.Specifically, the HSB values according to each pixel can determine whether whether the pixel is black picture element, gray pixels or white Pixel.Wherein, when the value of B component is 0, the pixel is represented for black picture element, in order to filter black, approach in the present embodiment The pixel of black, can set a luminance threshold, when the B component (brightness) of a certain pixel is less than the luminance threshold, by it It is defaulted as black picture element and filters.Additionally, grey, white and black are no saturation degrees, i.e., black, grey, white pixel S points The value of amount is 0, therefore the black picture element in current wallpaper, gray pixels or white can also be filtered by the value of S components Color pixel.Similarly, in order to filter white, the pixel close to white or grey, it is also possible to a saturation degree threshold value is set, when a certain When the S components (saturation degree) of pixel are less than the saturation degree threshold value, it is defaulted as white pixel or gray pixels and is filtered.
In the present embodiment, the division unit 4012 specifically for:Runner corresponding to the H components is carried out for the first time Division is equally divided into n region with by the runner, and wherein n is the natural number more than 1;By the runner corresponding to the H components Carry out second division and be equally divided into n region with by the runner, wherein, n obtained by the runner is divided for the first time Each region in each region in region and n region for dividing for the second time obtained by the runner is with the area that partly overlaps Domain.The value of n in Fig. 8 a and Fig. 8 b, Fig. 8 a and Fig. 8 b illustrated embodiments be refer to for 4, Fig. 8 a are by turning corresponding to H components Schematic diagram when wheel carries out first time division and the runner is equally divided into 4 regions, Fig. 8 b are by turning corresponding to H components Schematic diagram when wheel carries out second division and the runner is equally divided into 4 regions, the is can be seen that from Fig. 8 a and Fig. 8 b Once divide each region in 4 regions obtained by the runner and divide 4 areas obtained by the runner for the second time Each region in domain has the region that partly overlaps, wherein divided twice to runner, and makes each in partition process twice There is the purpose of overlapping region to be for region and corresponding region:In order to more accurately find the region with most pixels, Allow the classification of the H components of pixel in border smooth transition.For example:For Fig. 8 a illustrated embodiments, when the picture of current wallpaper A When plain major part is distributed in (schematic diagram is as shown in Figure 8 c) near 90 ° of positions, then the region with most number of pixels may be Region 1 (correspondence form and aspect 1) or region 2 (correspondence form and aspect 2), and the result is inaccurate, because the most region of pixel is 90 ° Near position, and after runner is carried out into second division shown in Fig. 8 b, as shown in figure 8d, it can be deduced that with most number of pixels Region be region 2 ' (correspondence form and aspect 2 '), now the region 2 ' is more accurate as the region with most number of pixels 's.It should be noted that the stain in Fig. 8 c and Fig. 8 d is only used for illustrating the distributed areas of pixel, and actual pixel is not indicated that Or number of pixels.Preferably, each region in n region obtained by the runner and the is divided in the present embodiment for the second time The overlapping region for once dividing the respective regions in n region obtained by the runner is 1/2nd of the region, i.e., Equivalent to the central value of the boundary value equivalent to regional in second partition process of regional in first time partition process. Such as Fig. 8 a and Fig. 8 b illustrated embodiments, when dividing for the first time, the corresponding angular range of form and aspect 1 is 0 to 90 °, the correspondence of form and aspect 2 Angular range be 90 ° to 180 °, the corresponding angular range of form and aspect 3 is 180 ° to 270 °, and the corresponding angular range of form and aspect 4 is 270 ° to 360 °, during second division, the corresponding angular range of form and aspect 1 ' is 0 to 45 ° and 315 ° to 360 °, the correspondence of form and aspect 2 ' Angular range be 45 ° to 135 °, the corresponding angular range of form and aspect 3 ' is 135 ° to 225 °, and the corresponding angular range of form and aspect 4 ' is 225 ° to 315 °, it can be seen that the boundary value of regional is regional in second partition process in first time partition process Central value.
The judging unit 4013 specifically for:Judge successively in the current wallpaper except black picture element, gray pixels and Each pixel outside white pixel region, Yi Ji affiliated in n region obtained by first time divides the runner Affiliated region in n region obtained by the runner is divided for the second time.Judge successively in current wallpaper except black picture element, The H components of each pixel outside gray pixels and white pixel are affiliated in common 2n region in runner shown in Fig. 8 a and Fig. 8 b Region.
By above-mentioned module 401 to 403, the device that Icon Color is automatically adjusted according to wallpaper color proposed by the invention When the dominant hue of current wallpaper is extracted, it is contemplated that the background colour of wallpaper is often black, grey, white, by filtering black picture element, ash Color pixel and white pixel, are conducive to being extracted from wallpaper the dominant hue of colour, and its result is more accurate;Additionally, to runner Divided twice, and make each region and corresponding region in partition process twice that there is overlapping region, can be more accurate True finds the region with most pixels, allows the classification of the H components of pixel in border smooth transition so that dominant hue Statistics is more accurate;After the dominant hue of current wallpaper is extracted, by the color adaptation of the icon of each preset shape It is the dominant hue, then the transparency according to corresponding to the transparence information adjusts the transparency of the corresponding icon, It is achieved thereby that the color synchronization according to current wallpaper adjusts the color of icon, icon is set to coordinate with wallpaper color keep.
Further, the present invention proposes a kind of method that Icon Color is automatically adjusted according to wallpaper color, the method application In mobile terminal.As shown in figure 5, being the reality of method first that Icon Color is automatically adjusted according to wallpaper color of the present invention Apply the implementing procedure figure of example.In the present embodiment, according to different demands, the execution of the step in flow chart shown in Fig. 5 is suitable Sequence can change, and some steps can be omitted.
Step S501, the dominant hue of current wallpaper is extracted according to presetting method.Wherein, the wallpaper of mobile terminal is a figure Piece, the dominant hue for extracting current wallpaper is the dominant hue for extracting the picture.It is main in all colours of dominant hue, i.e. picture Color or occupy the maximum color of proportion, and the method for extracting dominant hue has various, in the present embodiment, extracts current wallpaper master The method of tone is comprised the following steps:
(1) H component of each pixel in HSB color spaces, S components and B component in current wallpaper, wherein H points are obtained Amount represents the form and aspect of the pixel, and the saturation degree of pixel described in S representation in components, B component represents the brightness of the pixel.Wherein, Form and aspect are the primary features of color, are the most accurate standards for distinguishing various different colors, it is any it is black, white, grey beyond color Have an attribute of form and aspect, and what form and aspect were namely made up of primary colors, secondary color and secondary color, it is common when using, form and aspect be by Color designation mark, such as red, green or orange etc., black and white is without form and aspect, in 0~360 ° of standard colour wheel, form and aspect It is opsition dependent measurement;Saturation degree represents the purity of color, and pixel is grey when saturation degree is 0, wherein in vain, black and other grey Color is all without saturation degree;Brightness is used to represent the lightness of color, and pixel is black when brightness is 0.Additionally, in mobile terminal Current wallpaper be usually rgb format, therefore step S501 before may also include step:Obtain each pixel on current wallpaper Rgb value;The current wallpaper is converted into HSB color spaces by rgb color space, will each pixel on current wallpaper Rgb value is converted to corresponding HSB values.
(2) runner corresponding to the H components is divided into multiple regions.Wherein it is possible to by the H components institute of current wallpaper Corresponding runner is averagely divided into n region, and the runner corresponding to the H components of current wallpaper is one 0 to 360 ° of circle, each area The angle in domain is used to represent the different spans of H components.The value of n can be the natural number more than 1 such as 2,3,4,5, and , it is necessary to consider the degree of accuracy that dominant hue is extracted in practical application, therefore the value of n needs to be suitable a numerical value, Er Feiqu The degree of accuracy is higher when being worth smaller or bigger value.Fig. 7 is refer to, Fig. 7 is that the runner corresponding to H components is averagely divided into 12 Schematic diagram during region, wherein each region are in 30 ° of angles, the H components for representing certain span, while each region has There are a form and aspect corresponding with H components, as shown in fig. 7, form and aspect represented by 12 regions are respectively red, purplish red, purple, indigo plant Purple, blue, bluish-green, green, yellowish green, yellow, yellow orange, orange, blood orange, it is purplish red corresponding wherein the region corresponding to red is 0 to 30 ° Region is 30 ° to 60 °, and the rest may be inferred.
(3) the affiliated region on the runner of the H components of each pixel in the current wallpaper is judged successively.
(4) according to region of the judged result statistics with most number of pixels.
(5) typical value of the H components in the region is obtained, the typical value is combined with default S components and B component Obtain a HSB value.Such as:In 12 regions shown in Fig. 7, when the number of pixels having when yellowish green region is most, then obtain yellow The typical value of H components in the domain of Green Zone, then the typical value is combined obtain a HSB value with default S components and B component. Wherein, some region of typical value can be the numerical value, the present embodiment such as the average value or median of H components in the region in runner In illustrated by taking the median during the typical value of H components is as respective regions as an example.Default S components and B component are exploit persons The canonical parameter that member or user are set according to itself custom or demand, what default S representation in components user intentionally got The saturation degree of dominant hue, default B component represents the brightness of the dominant hue that user intentionally gets, the current wallpaper being calculated The typical value of H components is combined with the default S components and B component and obtains a HSB value.
(6) the HSB values are converted to the rgb value in rgb color space, the color corresponding to the rgb value is described The dominant hue of current wallpaper.Wherein, each rgb value be to that should have a color, when such as rgb value is (255,0,0), corresponding face Color is red;When rgb value is (255,127,80), corresponding color is coral;When rgb value is (255,255,0), institute is right The color answered is yellow;When rgb value is (255,235,205), corresponding color is almond ash etc., by what is be calculated Rgb value can determine the dominant hue of current wallpaper.A rgb value and face can be previously stored with when realizing, in mobile terminal The mapping table of color, by searching the mapping table by obtain corresponding with rgb value color, the color be it is desired obtain ought The dominant hue of preceding wallpaper.
By above-mentioned steps (1) to (6), you can extract the dominant hue of current wallpaper, the dominant hue is used for subsequent adjustment The color of icon.
Step S502, obtains the transparence information of each icon from default subject resource storehouse.In the present embodiment, preset Subject resource storehouse in be stored with the transparence information of each icon under a certain theme, the transparence information is with Alpha passages Form is stored, and wherein Alpha passages are the gray channels of 8, and the passage is with 256 grades of gray scales come recordable picture (each figure The corresponding picture of mark) in transparence information, transparent, opaque and translucent area is defined, wherein transparent, the white table of black expression Show opaque, ash represents translucent.Therefore, reading the data of Alpha passages can get the transparence information of each icon.
Step S503, the color of each icon is adjusted according to the transparence information and the dominant hue with obtain with it is described The icon of current wallpaper color adaptation.Such as:When the transparency corresponding to icon A is 40%, based on the color adaptation of icon A Tone, is then adjusted to 40% by the transparency of icon A, wherein the value of the transparency corresponding to the transparence information is 0 Any value in~100%, the value is set or dynamic generation according to user's request.It should be noted that being mass-tone to color The icon of tune carries out transparency regulation, can cause that the color of icon has certain difference with the dominant hue of current wallpaper, such as Fade effect etc. is presented, so that the color of icon shows with the color of current wallpaper more coordinate.Refer to Fig. 9, Fig. 9 displayings Each icon carries out the schematic diagram of color adaptation latter embodiment according to dominant hue and transparence information, in wherein Fig. 9 each Icon has a different shapes, and its color of each icon shadow representation is dominant hue in Fig. 9.
By above-mentioned steps S501 to S503, the present invention automatically adjusts the method root first of Icon Color according to wallpaper color The dominant hue of current wallpaper is extracted according to presetting method, the transparency letter of each icon is then obtained from default subject resource storehouse Breath, the color of each icon is adjusted finally according to the transparence information and the dominant hue, it is achieved thereby that according to working as antetheca The color synchronization of paper adjusts the color of icon, icon is coordinated with wallpaper color keep.
Based on above-mentioned first embodiment, the method that Icon Color is automatically adjusted according to wallpaper color of the present invention is proposed Second embodiment.
As shown in fig. 6, being the method second embodiment that Icon Color is automatically adjusted according to wallpaper color of the present invention Implementing procedure figure.In the present embodiment, according to different demands, the execution sequence of the step in flow chart shown in Fig. 6 can To change, some steps can be omitted.
Step S601, obtains the rgb value of each pixel on current wallpaper.
Step S602, is converted to HSB color spaces, in acquisition current wallpaper by the current wallpaper by rgb color space H component of each pixel in HSB color spaces, S components and B component.
Step S603, the black picture element in the current wallpaper, gray pixels and white pixel are filtered.Specifically, root Can determine whether whether the pixel is black picture element, gray pixels or white pixel according to the HSB values of each pixel.Wherein, B component is worked as Value when being 0, the pixel is represented for black picture element, in order to filter black, connect pullous pixel, Ke Yishe in the present embodiment A luminance threshold is put, when the B component (brightness) of a certain pixel is less than the luminance threshold, black picture element is defaulted as and filtered Remove.Additionally, grey, white and black are no saturation degrees, i.e., the value of black, grey, white pixel S components is 0, therefore Black picture element in current wallpaper, gray pixels or white pixel can be filtered by the value of S components.Similarly, in order to filter Except white, the pixel close to white or grey, it is also possible to a saturation degree threshold value is set, when the S component (saturations of a certain pixel Degree) less than the saturation degree threshold value when, be defaulted as white pixel or gray pixels and filtered.
Step S604, carries out the runner corresponding to the H components division for the first time and is equally divided into n with by the runner Region, and the runner corresponding to the H components is carried out into second division be equally divided into n region with by the runner, wherein The each region in n region obtained by the runner is divided for the first time and divides n obtained by the runner for the second time Each region in region has the region that partly overlaps, and the n is the natural number more than 1.Refer to Fig. 8 a and Fig. 8 b, Fig. 8 a and In Fig. 8 b illustrated embodiments the value of n be 4, Fig. 8 a will described turn for the runner corresponding to H components is carried out into first time division Schematic diagram when wheel is equally divided into 4 regions, Fig. 8 b will described turn for the runner corresponding to H components is carried out into second division Schematic diagram when wheel is equally divided into 4 regions, 4 divided for the first time obtained by the runner are can be seen that from Fig. 8 a and Fig. 8 b Each region in each region in individual region and 4 regions for dividing for the second time obtained by the runner has and partly overlaps Region, wherein divided twice to runner, and makes each region and corresponding region in partition process twice have weight Folding the purpose in region is:In order to more accurately find the region with most pixels, allow the classification of H components of pixel on side Boundary's smooth transition.For example:For Fig. 8 a illustrated embodiments, when the pixel major part of current wallpaper A is distributed near 90 ° of positions When (schematic diagram is as shown in Figure 8 c), then the region with most number of pixels may be that region 1 (correspondence form and aspect 1) or region 2 are (right Answer form and aspect 2), and the result is inaccurate, because the most region of pixel is near 90 ° of positions, and runner is carried out into Fig. 8 b After shown second divides, as shown in figure 8d, it can be deduced that the region with most number of pixels is (the correspondence form and aspect of region 2 ' 2 '), now the region 2 ' is accurate as the region with most number of pixels.It should be noted that Fig. 8 c and figure Stain in 8d is only used for illustrating the distributed areas of pixel, and does not indicate that actual pixel or number of pixels.Preferably, this implementation Each region in n region for dividing for the second time obtained by the runner in example divides obtained by the runner with first time The overlapping region of the respective regions in n region is 1/2nd of the region, i.e., each equivalent in first time partition process Central value of the boundary value in individual region equivalent to regional in second partition process.Implement as shown in for Fig. 8 a and Fig. 8 b Example, when dividing for the first time, the corresponding angular range of form and aspect 1 is 0 to 90 °, and the corresponding angular range of form and aspect 2 is 90 ° to 180 °, color The corresponding angular range of phase 3 is 180 ° to 270 °, and the corresponding angular range of form and aspect 4 is 270 ° to 360 °, during second division, color The corresponding angular range of phase 1 ' is 0 to 45 ° and 315 ° to 360 °, and the corresponding angular range of form and aspect 2 ' is 45 ° to 135 °, form and aspect 3 ' corresponding angular ranges are 135 ° to 225 °, and the corresponding angular range of form and aspect 4 ' is 225 ° to 315 °, it can be seen that for the first time The boundary value of regional is the central value of regional in second partition process in partition process.
Step S605, judges every in addition to black picture element, gray pixels and white pixel in the current wallpaper successively The H components of one pixel affiliated region and in second division in n region obtained by first time divides the runner Affiliated region in n region obtained by the runner.Judge successively in current wallpaper except black picture element, gray pixels and The affiliated region in common 2n region in runner shown in Fig. 8 a and Fig. 8 b of the H components of each pixel outside white pixel.
Step S606, according to region of the judged result statistics with most number of pixels.Such as Fig. 8 c illustrated embodiments, The result according to Fig. 8 a and Fig. 8 b, the region with most number of pixels is region 2 ', and the form and aspect corresponding to region 2 ' are color Phase 2 '.
Step S607, obtains the typical value of the H components in the region, by the typical value and default S components and B points Amount combination obtains a HSB value.
Step S608, the HSB values are converted to the rgb value in rgb color space, the color corresponding to the rgb value It is the dominant hue of the current wallpaper.
Step S609, obtains the preset shape and transparence information of each icon from default subject resource storehouse.This reality Apply in example, each icon in default subject resource storehouse is with preset shape, the picture without colouring information, in the present embodiment The transparent shape of picture without colouring information, i.e., need to only store the shape and transparence information of each icon in subject resource storehouse, and The colouring information of picture need not be stored, the relatively existing subject resource database data amount of data volume in subject resource storehouse is less, and it is accounted for With less internal memory.It should be noted that the transparence information of each icon both can be to be pre-designed and be stored in theme money In the storehouse of source, it can also be that stochastic and dynamic is obtained.When transparence information is dynamic access, from default subject resource storehouse The step of transparence information of middle each icon of acquisition, includes:(1) the subject resource storehouse dynamically generates and the icon number Identical transparency;(2) transparency is randomly assigned to transparence information of each icon as the icon.At random For each icon generates different transparencies, so that after wallpaper is repeatedly converted, although each icon has identical dominant hue, But the transparency that it is used will not be every time identical, preferably interesting and Consumer's Experience can be brought.
Step S610, is the dominant hue by the color adaptation of the icon of each preset shape.Ought extract current It is dominant hue by the color adaptation of picture after the dominant hue of wallpaper.
Step S611, the corresponding icon transparency of transparency regulation according to corresponding to the transparence information.I.e. Transparence information according to each icon adjusts the transparency of icon, when the transparency as corresponding to as icon A is 40%, adjusts It 40% refers to that the transparency of the relatively current wallpapers of icon A is 40% that the transparency of section icon A is, wherein transparence information institute The value of corresponding transparency is any value in 0~100%, and the value is randomly provided or dynamic generation according to user's request. It should be noted that the transparency by adjusting icon, can cause that the color of icon has one with the dominant hue of current wallpaper Fixed difference, makes the color of icon be shown with the color of current wallpaper and more coordinate.
By above-mentioned steps S601 to S611, the side that Icon Color is automatically adjusted according to wallpaper color proposed by the invention Method extract current wallpaper dominant hue when, it is contemplated that the background colour of wallpaper is often black, grey, white, by filter black picture element, Gray pixels and white pixel, are conducive to being extracted from wallpaper the dominant hue of colour, and its result is more accurate;Additionally, to turning Wheel is divided twice, and each region and corresponding region in partition process twice is had overlapping region, Ke Yigeng The region with most pixels accurately is found, allows the classification of the H components of pixel in border smooth transition so that dominant hue Statistics it is more accurate;After the dominant hue of current wallpaper is extracted, the color of the icon of each preset shape is adjusted It is the dominant hue to save, and then the transparency according to corresponding to the transparence information adjusts the transparency of corresponding icon, from And the color that icon is adjusted according to the color synchronization of current wallpaper is realized, icon is coordinated with wallpaper color keep.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably implementation method.Based on such understanding, technical scheme is substantially done to prior art in other words The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used to so that a station terminal equipment (can be mobile phone, computer, clothes Business device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of device that Icon Color is automatically adjusted according to wallpaper color, is applied to mobile terminal, it is characterised in that the dress Put including:
Dominant hue extraction module, the dominant hue for extracting current wallpaper according to presetting method;
Icon information acquisition module, the transparence information for obtaining each icon from default subject resource storehouse;
Color adaptation module, for the color of each icon is adjusted according to the transparence information and the dominant hue with obtain with The icon of the current wallpaper color adaptation.
2. the device of Icon Color is automatically adjusted according to wallpaper color as claimed in claim 1, it is characterised in that the icon It is the picture with preset shape, transparent shape;
The color adaptation module specifically for:
It is the dominant hue by the color adaptation of the icon of each preset shape;
The transparency of the corresponding icon of transparency regulation according to corresponding to the transparence information.
3. the device that Icon Color is automatically adjusted according to wallpaper color that such as claim 1 is stated, it is characterised in that the icon letter Breath acquisition module specifically for:
The subject resource storehouse dynamically generates and the icon number identical transparency;
The transparency is randomly assigned to transparence information of each icon as the icon.
4. the device of Icon Color is automatically adjusted according to wallpaper color as claimed in claim 1, it is characterised in that the mass-tone Adjusting extraction module includes:
Data capture unit, for obtaining H components in HSB color spaces of each pixel in current wallpaper, S components and B points Amount, the form and aspect of pixel wherein described in H representation in components, the saturation degree of pixel described in S representation in components, B component represents the pixel Brightness;
Division unit, for the runner corresponding to the H components to be divided into multiple regions;
Judging unit, the affiliated region on the runner of H components for judging each pixel in the current wallpaper successively;
Statistic unit, for according to region of the judged result statistics with most number of pixels;
HSB value acquiring units, the typical value of the H components for obtaining the region with most number of pixels, by the generation Tabular value is combined with default S components and B component and obtains a HSB value;
Dominant hue acquiring unit, for the HSB values to be converted to the rgb value in rgb color space, corresponding to the rgb value Color be the current wallpaper dominant hue.
5. the device of Icon Color is automatically adjusted according to wallpaper color as claimed in claim 4, it is characterised in that the mass-tone Adjusting extraction module also includes:
Pixel filters unit, for the black picture element in the current wallpaper, gray pixels and white pixel to be filtered;
The division unit specifically for:
Runner corresponding to the H components divide for the first time and is equally divided into n region with by the runner, wherein n is Natural number more than 1;
Runner corresponding to the H components is carried out into second division and is equally divided into n region with by the runner, wherein, the Once divide each region in n region obtained by the runner and divide n area obtained by the runner for the second time Each region in domain has the region that partly overlaps;
The judging unit specifically for:
Judge that the H components of each pixel in the current wallpaper beyond black picture element, gray pixels and white pixel exist successively Affiliated region and obtained by the runner is divided for the second time in n region for dividing obtained by the runner for the first time N region in affiliated region.
6. a kind of method that Icon Color is automatically adjusted according to wallpaper color, is applied to mobile terminal, it is characterised in that the side Method is comprised the following steps:
The dominant hue of current wallpaper is extracted according to presetting method;
The transparence information of each icon is obtained from default subject resource storehouse;
The color of each icon is adjusted to obtain and the current wallpaper color according to the transparence information and the dominant hue The icon of adaptation.
7. the method for Icon Color being automatically adjusted according to wallpaper color as claimed in claim 6, it is characterised in that the icon It is the picture with preset shape, transparent shape;
It is described to specifically include the step of adjust the color of each icon according to the transparence information and the dominant hue:
It is the dominant hue by the color adaptation of the icon of each preset shape;
The transparency of the corresponding icon of transparency regulation according to corresponding to the transparence information.
8. the method that Icon Color is automatically adjusted according to wallpaper color stated such as claim 6, it is characterised in that described from default Subject resource storehouse in include the step of obtain the transparence information of each icon:
The subject resource storehouse dynamically generates and the icon number identical transparency;
The transparency is randomly assigned to transparence information of each icon as the icon.
9. the method for Icon Color being automatically adjusted according to wallpaper color as claimed in claim 6, it is characterised in that the basis The step of presetting method extracts the dominant hue of current wallpaper includes:
Obtain H component of each pixel in HSB color spaces, S components and B component, wherein H representation in components institute in current wallpaper The form and aspect of pixel are stated, the saturation degree of pixel described in S representation in components, B component represents the brightness of the pixel;
Runner corresponding to the H components is divided into multiple regions;
The affiliated region on the runner of the H components of each pixel in the current wallpaper is judged successively;
According to region of the judged result statistics with most number of pixels;
Obtain the typical value of the H components in the region with most number of pixels, by the typical value and default S components with And B component combination obtains a HSB value;
The HSB values are converted to the rgb value in rgb color space, the color corresponding to the rgb value is the current wallpaper Dominant hue.
10. the as claimed in claim 9 method that Icon Color is automatically adjusted according to wallpaper color, it is characterised in that it is described according to Also include before the step of secondary H components for judging each pixel in current wallpaper region affiliated on the runner:
Black picture element in the current wallpaper, gray pixels and white pixel are filtered;
The step of runner by corresponding to the H components is divided into multiple regions includes:
Runner corresponding to the H components divide for the first time and is equally divided into n region with by the runner, wherein n is Natural number more than 1;
Runner corresponding to the H components is carried out into second division and is equally divided into n region with by the runner, wherein, the Once divide each region in n region obtained by the runner and divide n area obtained by the runner for the second time Each region in domain has the region that partly overlaps;
The step of H components for judging each pixel in the current wallpaper successively region affiliated on the runner, wraps Include:
Judge that the H components of each pixel in the current wallpaper beyond black picture element, gray pixels and white pixel exist successively Affiliated region and obtained by the runner is divided for the second time in n region for dividing obtained by the runner for the first time N region in affiliated region.
CN201611225476.0A 2016-12-27 2016-12-27 Method and device for automatically adjusting icon color according to wallpaper color Active CN106856542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611225476.0A CN106856542B (en) 2016-12-27 2016-12-27 Method and device for automatically adjusting icon color according to wallpaper color

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611225476.0A CN106856542B (en) 2016-12-27 2016-12-27 Method and device for automatically adjusting icon color according to wallpaper color

Publications (2)

Publication Number Publication Date
CN106856542A true CN106856542A (en) 2017-06-16
CN106856542B CN106856542B (en) 2020-03-31

Family

ID=59126102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611225476.0A Active CN106856542B (en) 2016-12-27 2016-12-27 Method and device for automatically adjusting icon color according to wallpaper color

Country Status (1)

Country Link
CN (1) CN106856542B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203312A (en) * 2017-05-04 2017-09-26 捷开通讯(深圳)有限公司 Rendering intent, the storage device of mobile terminal and its picture
CN111562955A (en) * 2020-02-27 2020-08-21 华为技术有限公司 Method and device for configuring theme colors of terminal equipment and terminal equipment
US11830224B2 (en) 2020-04-08 2023-11-28 Beijing Baidu Netcom Science Technology Co., Ltd. Page displaying method and apparatus, electronic device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706724A (en) * 2009-09-29 2010-05-12 宇龙计算机通信科技(深圳)有限公司 Icon generation method and icon processing device
CN102810306A (en) * 2012-07-26 2012-12-05 广东欧珀移动通信有限公司 Method for automatically controlling brightness of display screen wallpaper
CN104731453A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Method and device for adjusting colors of terminal icon texts
CN104778047A (en) * 2015-04-29 2015-07-15 魅族科技(中国)有限公司 Content display method and terminal
CN104935747A (en) * 2015-06-17 2015-09-23 努比亚技术有限公司 Processing method and device for application icon, and terminal
CN105096273A (en) * 2015-08-20 2015-11-25 北京邮电大学 Automatic adjustment method of color image brightness
CN105843625A (en) * 2016-04-01 2016-08-10 乐视控股(北京)有限公司 Method and device for setting application icon
CN105900411A (en) * 2014-11-28 2016-08-24 华为技术有限公司 Adjustment method and device for terminal-setting parameter
CN106201477A (en) * 2016-06-29 2016-12-07 乐视控股(北京)有限公司 Theme update method and device and terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706724A (en) * 2009-09-29 2010-05-12 宇龙计算机通信科技(深圳)有限公司 Icon generation method and icon processing device
CN102810306A (en) * 2012-07-26 2012-12-05 广东欧珀移动通信有限公司 Method for automatically controlling brightness of display screen wallpaper
CN105900411A (en) * 2014-11-28 2016-08-24 华为技术有限公司 Adjustment method and device for terminal-setting parameter
CN104731453A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Method and device for adjusting colors of terminal icon texts
CN104778047A (en) * 2015-04-29 2015-07-15 魅族科技(中国)有限公司 Content display method and terminal
CN104935747A (en) * 2015-06-17 2015-09-23 努比亚技术有限公司 Processing method and device for application icon, and terminal
CN105096273A (en) * 2015-08-20 2015-11-25 北京邮电大学 Automatic adjustment method of color image brightness
CN105843625A (en) * 2016-04-01 2016-08-10 乐视控股(北京)有限公司 Method and device for setting application icon
CN106201477A (en) * 2016-06-29 2016-12-07 乐视控股(北京)有限公司 Theme update method and device and terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107203312A (en) * 2017-05-04 2017-09-26 捷开通讯(深圳)有限公司 Rendering intent, the storage device of mobile terminal and its picture
CN107203312B (en) * 2017-05-04 2020-09-25 Tcl移动通信科技(宁波)有限公司 Mobile terminal and picture rendering method and storage device thereof
CN111562955A (en) * 2020-02-27 2020-08-21 华为技术有限公司 Method and device for configuring theme colors of terminal equipment and terminal equipment
CN111562955B (en) * 2020-02-27 2022-02-08 华为技术有限公司 Method and device for configuring theme colors of terminal equipment and terminal equipment
US11830224B2 (en) 2020-04-08 2023-11-28 Beijing Baidu Netcom Science Technology Co., Ltd. Page displaying method and apparatus, electronic device and storage medium

Also Published As

Publication number Publication date
CN106856542B (en) 2020-03-31

Similar Documents

Publication Publication Date Title
CN106780634B (en) Picture dominant tone extracting method and device
CN105825485B (en) A kind of image processing system and method
CN104866265B (en) Multi-media file display method and device
CN106603823A (en) Content sharing method and device and terminal
CN106851003A (en) The method and device of text color is adjusted according to wallpaper color
CN106534619A (en) Method and apparatus for adjusting focusing area, and terminal
CN105095915A (en) Information processing method and information processing apparatus, terminal
CN106569709A (en) Device and method for controlling mobile terminal
CN107071329A (en) The method and device of automatic switchover camera in video call process
CN105430231A (en) Image processing device and method
CN106791365A (en) Facial image preview processing method and processing device
CN105763710A (en) Picture setting system and method
CN106856542A (en) The method and device of Icon Color is automatically adjusted according to wallpaper color
CN106056552A (en) Image processing method and mobile terminal
CN106855997A (en) The processing method and processing device of picture
CN104731508B (en) Audio frequency playing method and device
CN104834473B (en) The method and device of input
CN105979097A (en) Mobile terminal and method for adjusting backlight brightness of display screen of mobile terminal
CN106713661B (en) A kind of mobile terminal and the method for showing text
CN106980460A (en) A kind of mobile terminal and image processing method
CN105959520B (en) A kind of photo camera and method
CN105183830B (en) picture browsing method and device
CN106846323A (en) A kind of method for realizing interactive image segmentation, device and terminal
CN106331476A (en) Image processing method and device
CN106791449A (en) Method, photo taking and device

Legal Events

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