CN106997265A - A kind of method and device of the setting excessive color of background - Google Patents

A kind of method and device of the setting excessive color of background Download PDF

Info

Publication number
CN106997265A
CN106997265A CN201610053217.8A CN201610053217A CN106997265A CN 106997265 A CN106997265 A CN 106997265A CN 201610053217 A CN201610053217 A CN 201610053217A CN 106997265 A CN106997265 A CN 106997265A
Authority
CN
China
Prior art keywords
color
background
pixel compartments
music
excessive
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
CN201610053217.8A
Other languages
Chinese (zh)
Other versions
CN106997265B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610053217.8A priority Critical patent/CN106997265B/en
Publication of CN106997265A publication Critical patent/CN106997265A/en
Application granted granted Critical
Publication of CN106997265B publication Critical patent/CN106997265B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Auxiliary Devices For Music (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of method and device of the setting excessive color of background, belong to internet arena.Methods described includes:The cover image of music to be played is compressed, a kind of color of each pixel compartments correspondence cover image in preset number pixel compartments, the preset number pixel compartments is obtained;The mass-tone of the cover image is determined according to the preset number pixel compartments;The excessive color of background of the music to be played is set according to the mass-tone.The tone difference of cover image with the excessive color of background for reducing setting and music, it is ensured that the continuous effect of background of display.

Description

A kind of method and device of the setting excessive color of background
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method and device for extracting the excessive color of background.
Background technology
It is a kind of amusement and recreation mode often done to listen music, and music player can display background when playing music Image simultaneously shows the lyrics in background, and current music player usually shows the cover image of music as background Show.But, the cover image of music is all square, and the display interface of music player is rectangle, music Player in display background image by the width of the reduced width of the cover image to the display interface, then The cover image of diminution is included in display interface.
Because cover image is all square, and display interface is rectangle, so will in the lower section of display interface One piece of white space is vacated, as shown in Figure 1., at present can be by default color in order to fill the white space The excessive color of background is set to, the white space is filled with the excessive color of the background, so by the cover image and this The excessive color formation background image of background.For example, default color can be black, with the filled black clear area Domain forms background image.
During the present invention is realized, inventor has found that prior art at least has problems with:
The excessive color of background set at present often differs larger with the tone of the cover image of music, causes display Background it is discontinuous.
The content of the invention
In order that the background of display is continuous, the invention provides a kind of method and device for extracting the excessive color of background. The technical scheme is as follows:
Set background excessive in a first aspect, disclosure first aspect provides one kind according to the embodiment of the present disclosure The method of color, methods described includes:
The cover image of music to be played is compressed, preset number pixel compartments, the present count are obtained A kind of color of each pixel compartments correspondence cover image in mesh pixel compartments;
The mass-tone of the cover image is determined according to the preset number pixel compartments;
The excessive color of background of the music to be played is set according to the mass-tone.
According to the second aspect of the embodiment of the present disclosure, it is excessive that disclosure second aspect provides a kind of setting background The device of color, described device includes:
Compression module, for the cover image of music to be played to be compressed, obtains preset number pixel A kind of color of each pixel compartments correspondence cover image in lattice, the preset number pixel compartments;
Determining module, described in the preset number pixel compartments for being compressed according to the compression module are determined The mass-tone of cover image;
First setup module, the mass-tone for being determined according to the determining module sets the sound to be played The excessive color of happy background.
The beneficial effect for the technical scheme that the present invention is provided is:
In embodiments of the present invention, the front cover of music to be played is determined by the preset number pixel compartments of compression The mass-tone of image, the excessive color of background is set according to the mass-tone, reduces the background excessive color and music of setting The tone difference of cover image, it is ensured that the background of display is continuous.
Brief description of the drawings
Fig. 1 is a kind of display interface schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram for excessive color of setting background that the embodiment of the present invention 1 is provided;
Fig. 3 is a kind of method flow diagram for excessive color of setting background that the embodiment of the present invention 2 is provided;
Fig. 4 A are a kind of structure drawing of device for excessive color of setting background that the embodiment of the present invention 3 is provided;
Fig. 4 B are the determination modular structure schematic diagrams that the embodiment of the present invention 3 is provided;
Fig. 4 C are the first setup module structural representations that the embodiment of the present invention 3 is provided;
Fig. 4 D are the structure drawing of device for another excessive color of setting background that the embodiment of the present invention 3 is provided;
Fig. 4 E are the second setup module structural representations that the embodiment of the present invention 3 is provided;
Fig. 5 is a kind of electronic devices structure figure for excessive color of setting background that the embodiment of the present invention 4 is provided.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention Embodiment is described in further detail.
The present invention be applied to music player, music player play music when, by square wait broadcast The width for the cover image put the music on zoom in or out it is identical with the width of the display interface of music player, so The top of the display interface is shown in afterwards.The bottom at the display interface can reserve a white space, by such as Lower any embodiment can set the excessive color of background, and the excessive color of the background is filled in the white space, will be The excessive color of background and the cover image of white space filling collectively constitute the background image of music to be played.
Optionally, the music player can for music application, can also be integrated in it is in webpage or integrated In the application such as instant messaging.
Embodiment 1
Referring to Fig. 2, the embodiments of the invention provide a kind of method for setting the excessive color of background, including:
Step 101:The cover image of music to be played is compressed, preset number pixel compartments are obtained, should Each pixel compartments in preset number pixel compartments to should cover image a kind of color.
Step 102:The mass-tone of the cover image is determined according to the preset number pixel compartments.
Step 103:The excessive color of the background of the music to be played is set according to the mass-tone.
In embodiments of the present invention, the front cover of music to be played is determined by the preset number pixel compartments of compression The mass-tone of image, the excessive color of background is set according to the mass-tone, reduces the background excessive color and music of setting The tone difference of cover image, it is ensured that the background of display is continuous.
Embodiment 2
Referring to Fig. 3, the embodiments of the invention provide a kind of method for setting the excessive color of background, including:
Step 201:The cover image of music to be played is compressed, preset number pixel compartments are obtained.
Wherein, the audio file of per song includes the cover image of the music, therefore to be played playing The cover image of music to be played can be obtained during music from the audio file of music to be played.Preset number Each pixel compartments in individual pixel compartments to should cover image a kind of color, in the preset number pixel compartments It there may be the corresponding color of partial pixel lattice identical, the corresponding color of each pixel compartments is the cover image In topmost several colors.
Optionally, cover image is compressed into 4px*4px image in the present embodiment, 16 pixels are obtained Lattice, i.e. preset number can be that the corresponding color of each pixel compartments in 16,16 pixel compartments is the envelope The topmost color of face image.
Optionally, the lightness, colour, saturation of each pixel compartments are also obtained when being compressed to cover image The parameters such as degree.Wherein, the lightness of pixel compartments is used to represent the corresponding color depth of the pixel compartments, and lightness is smaller, The corresponding color depth of the pixel compartments is deeper, and lightness is bigger, and the corresponding color depth of the pixel compartments is more shallow;Should The colour of pixel compartments is used to represent the corresponding color of the pixel compartments, and each color has corresponding colour.For example, Blueness, red, cyan have each self-corresponding colour respectively;The corresponding saturation degree of the pixel compartments is used to represent this The purity of pixel compartments corresponding color, saturation degree is bigger, and the corresponding color of the pixel compartments is purer.
Step 202:The colour of each pixel compartments in the preset number pixel compartments, it is determined that each pixel The corresponding color of lattice.
Wherein, before this step is performed, the colour of color is divided into seven colour intervals in advance, this seven Individual colour interval is respectively that the corresponding colour of seven kinds of colors of red, orange, yellow, green, cyan, blue, purple is interval;Often A kind of color of color depth of any colour correspondence during individual colour is interval.For example, blue corresponding colour area Between, have that some colour correspondence is light blue in the colour is interval, have that some colour correspondence is light blue, exist Some colour correspondence navy blue etc., the blueness of the different blue depth of colour region correspondence.
This step can be:For each pixel compartments, colour is interval where determining the colour of the pixel compartments, obtains The interval corresponding color of the colour is taken, the color of acquisition is the corresponding color of the pixel compartments.
After this step, each pixel compartments in preset number pixel compartments correspondence is red, orange, yellow, green, A kind of color in blue or green, blue, purple seven kinds of colors., wherein it is desired to which explanation is:It there may be multiple pixels A kind of color of lattice correspondence, but the plurality of pixel compartments distinguish the possible difference of corresponding color depth.For example, it is assumed that There are multiple pixel compartments correspondences blue, presumable pixel compartments correspondence is light blue in the plurality of pixel compartments, has Pixel compartments correspondence is light blue, some pixel compartments correspondence navy blues;For another example, it is assumed that there are multiple pixel compartments correspondences Presumable pixel compartments correspondence is faint yellow in yellow, the plurality of pixel compartments, and some pixel compartments correspondences are light yellow, Some pixel compartments correspondence buffs.
Step 203:According to the corresponding color of each pixel compartments, the corresponding pixel compartments number of statistics each color.
For example, the cover image of music to be played is compressed into 16 pixel compartments, respectively A1, A2, A3 ... A16, it is assumed that it is orange, pixel compartments A3, A4, A5 couple to determine the corresponding color of pixel compartments A1 and A2 The color answered is green, and the corresponding colors of pixel compartments A6, A7, A8 ... A16 are blueness;According to A1, A2, A3 ... A16 distinguish corresponding color, and it is 2 to count orange corresponding pixel compartments number, and green is right The pixel compartments number answered is 3, and blue corresponding pixel compartments number is 11.
Step 204:The maximum color of respective pixel lattice number is defined as to the mass-tone of cover image.
And all it is that the cover image is main because each pixel compartments are to a kind of color that should be in cover image Several colors, so the corresponding color of maximum pixel lattice number is that surface area is maximum in the cover image Color block, therefore the corresponding color of maximum pixel lattice number can be defined as to the mass-tone of cover image.
For example, it is 2, green corresponding pixel compartments to count orange corresponding pixel compartments number in step 203 Number is 3, and blue corresponding pixel compartments number is 11, therefore can be with the maximum blueness of respective pixel lattice number It is defined as the mass-tone of the cover image.
Step 205:The minimum pixel compartments of lightness are selected from the corresponding pixel compartments of the mass-tone.
Wherein, lightness is lower shows that the corresponding color of the pixel compartments is deeper, typically all can when selecting background colour The deeper color of selection is as background colour, and the color of the usual lyrics is all shallower, is so easy to user to distinguish the lyrics And background.For example, it is assumed that mass-tone is blueness, it is for another example, false it is generally advisable to select navy blue as background colour If mass-tone is yellow, buff is typically chosen as background colour.Therefore, selection lightness is minimum in this step Pixel compartments, so select as far as possible compared with dark colour pixel compartments.
Step 206:The excessive color of background of music to be played is set according to the corresponding color of the pixel compartments of selection.
Specifically, the corresponding color depth size of pixel compartments of selection is judged, if the pixel compartments correspondence of selection Color depth meet preparatory condition, then the corresponding color of the pixel compartments of selection is set to music to be played The excessive color of background;If the corresponding color depth of pixel compartments of selection is unsatisfactory for preparatory condition, reduction selection The color depth of pixel compartments corresponding color obtain the first color, and the first color is set to music to be played The excessive color of background.
Wherein, lightness is used to represent color depth, therefore can be with the lightness of the pixel compartments of selection alternatively The corresponding color depth size of pixel compartments.Correspondingly, this step can be:Judge the pixel compartments pair of selection The lightness size answered, if the corresponding lightness size of pixel compartments of selection is less than or equal to default lightness threshold, The corresponding color of the pixel compartments of selection is then set to the excessive color of background of music to be played;If the picture of selection The corresponding lightness of plain lattice is more than default lightness threshold, then the lightness for reducing the pixel compartments corresponding color of selection is obtained First color, and the excessive color of background that the first color is set to music to be played.
Optionally, the lightness of the pixel compartments corresponding color of selection can be reduced to default first offset and obtain the One color.First offset can be the numerical value such as 0.1,0.15 or 0.2.
Step 207:The cover image is included in display interface, and in the white space of the display interface The excessive color of background being filled with, forms background image.
The cover image is square-shaped image.Specifically, referring to Fig. 1, by the width compression of the cover image with The width of the display interface, the cover image is included at the top of the display interface, due to the display interface For rectangle, so occurring white space below display interface, filled out in the white space of the display interface Fill the excessive color of background of setting.
Optionally, a color lump can be superimposed in the cover image, the width of the color lump and display interface Width is identical, highly can be preset height, and color is the excessive color of background set, and the bottom of the color lump Bottom with the cover image is concordant;The color lump is set to fade to this by the excessive color of the background set from bottom to up The color of cover image.
Optionally, it can be realized by the way that the color lump is gradually become into transparent by opaque from bottom to up by the color Block is faded to the color of the cover image by the excessive color of the background set from bottom to up.
Step 208:According to the color depth that the background is excessive, the corresponding lyrics color of music to be played is set.
According to the corresponding color depth of the excessive color of the background, the color depth of the excessive color of the background is increased or decreased Obtain the second color;Second color is set to the corresponding lyrics color of music to be played.
, can be with if the color depth of the excessive color of background is shallower in order to allow the lyrics to be clearly distinguishable from background By increasing the color depth of the excessive color of the background, the deeper lyrics color of color depth is obtained;If background The color depth of excessive color is deeper, can obtain color deep by reducing the color depth of the excessive color of the background The shallower lyrics color of degree, so that background image has obvious differentiation with the lyrics.
Wherein it is possible to represent color depth with lightness.Accordingly, this step can be:According to the background The corresponding lightness of excessive color, the lightness for increasing or decreasing the excessive color of the background obtains the second color;Implement When, it is if the corresponding lightness of the excessive color of the background is less than or equal to preset first threshold value, the background is excessive Corresponding default second offset of lightness increase of color obtains the second color, if the excessive color of the background is corresponding bright Degree is more than or equal to default Second Threshold, then the corresponding lightness of the excessive color of the background is reduced into default 3rd skew Measure to the second color, first threshold is less than Second Threshold;The second color is set to music pair to be played again The lyrics color answered.
Set up after lyrics color, can be according to the lyrics color of setting, at this when playing music to be played The lyrics of music to be played are shown on background image.
In embodiments of the present invention, the front cover of music to be played is determined by the preset number pixel compartments of compression The mass-tone of image, the excessive color of background is set according to the mass-tone, reduces the background excessive color and music of setting The tone difference of cover image, it is ensured that the background of display is continuous.
Following is apparatus of the present invention embodiment, can be used for performing the inventive method embodiment.For the present invention The details not disclosed in device embodiment, refer to the inventive method embodiment.
Referring to Fig. 4 A, the embodiments of the invention provide a kind of device of the setting excessive color of background, including:Compression Module 301, determining module 302, the first setup module 303.
Compression module 301, for the cover image of music to be played to be compressed, obtains preset number picture Each pixel compartments in plain lattice, the preset number pixel compartments to should cover image a kind of color;
Determining module 302, the preset number pixel compartments for being compressed according to the compression module 301 are determined should The mass-tone of cover image;
First setup module 303, mass-tone for being determined according to the determining module 302 sets the sound to be played The excessive color of happy background.
Optionally, referring to Fig. 4 B, the determining module 302, including:First determination sub-module 3021, statistics Submodule 3022, the second determination sub-module 3023.
First determination sub-module 3021, for determining each pixel compartments correspondence according to the colour of each pixel compartments Color;
Statistic submodule 3022, for each pixel compartments pair determined according to first determination sub-module 3021 The color answered, the corresponding pixel compartments number of statistics each color;
Second determination sub-module 3023, for the statistic submodule 3022 to be counted into obtained maximum pixel lattice number The corresponding color of mesh determines the mass-tone of the cover image.
Optionally, referring to Fig. 4 C, first setup module 303, including:Select submodule 3031, first Set submodule 3032, reduction that submodule 3033 is set.
Submodule 3031 is selected, for selecting the minimum pixel compartments of lightness from the corresponding pixel compartments of the mass-tone;
First sets submodule 3032, if the corresponding face of pixel compartments selected for the selection submodule 3031 Color depth meets preparatory condition, then the corresponding color of the pixel compartments of the selection is set into the music to be played The excessive color of background;
Reduction sets submodule 3033, if corresponding for the pixel compartments that the selection submodule 3031 is selected Color depth is unsatisfactory for preparatory condition, then the color depth for reducing the pixel compartments corresponding color of the selection obtains One color, and the excessive color of background that first color is set to the music to be played.
Optionally, referring to Fig. 4 D, the device also includes:
Second setup module 304, for according to the corresponding color depth of the excessive color of the background, setting this to be played The corresponding lyrics color of music.
Optionally, referring to Fig. 4 E, second setup module 304, including:Increase reduction submodule 3041, Second sets submodule 3042
Increase reduction submodule 3041, for according to the corresponding color depth of the excessive color of the background, increase or drop The color depth of the low excessive color of the background obtains the second color;
Second sets submodule 3042, for the increase to be reduced into the second color setting that submodule 3041 is obtained For the corresponding lyrics color of the music to be played.
In embodiments of the present invention, the front cover of music to be played is determined by the preset number pixel compartments of compression The mass-tone of image, the excessive color of background is set according to the mass-tone, reduces the background excessive color and music of setting The tone difference of cover image, it is ensured that the background of display is continuous.
It should be noted that:The excessive color device of setting background and terminal that above-described embodiment is provided are providing setting , can be with only with the division progress of above-mentioned each functional module for example, in practical application during the excessive color of background Distribute and completed by different functional modules as needed and by above-mentioned functions, i.e., divide the internal structure of equipment Into different functional modules, to complete all or part of function described above.In addition, above-described embodiment The excessive color device box terminal of setting background of offer is with setting the embodiment of the method for the excessive color method of background to belong to same One design, it implements process and refers to embodiment of the method, repeats no more here.
Fig. 5 is refer to, the excessive color electronic equipment of setting background provided it illustrates one embodiment of the invention Structural representation.The electronic equipment is used for the excessive color method of setting background for implementing to provide in above-described embodiment. Specifically:
Electronic equipment 400 can include RF (Radio Frequency, radio frequency) circuit 410, include one Individual or more than one computer-readable recording medium memory 420, input block 430, display unit 440, Sensor 450, voicefrequency circuit 460, WiFi (wireless fidelity, Wireless Fidelity) module 470, include The parts such as the processor 480 and power supply 490 of one or more than one processing core.People in the art Member is appreciated that the electronic devices structure shown in Fig. 5 does not constitute the restriction to electronic equipment, can wrap Include than illustrating more or less parts, either combine some parts or different parts arrangement.Wherein:
RF circuits 410 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, After the downlink information of base station is received, transfer to one or more than one processor 480 is handled;In addition, will It is related to up data and is sent to base station.Generally, RF circuits 410 include but is not limited to antenna, at least one Amplifier, tuner, one or more oscillators, subscriber identity module (SIM) card, transceiver, coupling Clutch, LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..In addition, RF circuits 410 can also be communicated by radio communication with network and other equipment.The radio communication can use any logical Beacon standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..
Memory 420 can be used for storage software program and module, and processor 480 is stored in by operation The software program and module of reservoir 420, so as to perform various function application and data processing.Memory 420 can mainly include storing program area and storage data field, wherein, storing program area can storage program area, Application program (such as sound-playing function, image player function etc.) needed at least one function etc.;Deposit Storage data field can be stored uses created data (such as voice data, phone according to electronic equipment 400 This etc.) etc..In addition, memory 420 can include high-speed random access memory, it can also include non-easy The property lost memory, for example, at least one disk memory, flush memory device or the storage of other volatile solid-states Device.Correspondingly, memory 420 can also include Memory Controller, to provide processor 480 and defeated Enter access of the unit 430 to memory 420.
Input block 430 can be used for receive input numeral or character information, and produce with user set with And the relevant keyboard of function control, mouse, action bars, optics or the input of trace ball signal.Specifically, Input block 430 may include image input device 431 and other input equipments 432.Image input device 431 can be camera or photoelectric scanning device.Except image input device 431, input block 430 can also include other input equipments 432.Specifically, other input equipments 432 can include but not limit In physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operation One or more in bar etc..
Display unit 440 can be used for the information and electronics for showing the information inputted by user or being supplied to user The various graphical user interface of equipment 400, these graphical user interface can by figure, text, icon, Video is constituted with its any combination.Display unit 440 may include display panel 441, optionally, can adopt With LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. form configure display panel 441.
Electronic equipment 400 may also include at least one sensor 450, such as optical sensor, motion sensor with And other sensors.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, Ambient light sensor can adjust the brightness of display panel 441, proximity transducer according to the light and shade of ambient light Display panel 441 and/or backlight can be closed when electronic equipment 400 is moved in one's ear.It is used as motion-sensing One kind of device, gravity accelerometer can detect in all directions the size of (generally three axles) acceleration, Size and the direction of gravity are can detect that when static, application (the such as horizontal/vertical screen available for identification mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) Deng;Gyroscope, barometer, hygrometer, thermometer, the infrared ray that can also configure as electronic equipment 400 are passed The other sensors such as sensor, will not be repeated here.
Voicefrequency circuit 460, loudspeaker 461, microphone 462 can be provided between user and electronic equipment 400 COBBAIF.Electric signal after the voice data received conversion can be transferred to and raised one's voice by voicefrequency circuit 460 Device 461, voice signal output is converted to by loudspeaker 461;On the other hand, microphone 462 is by the sound of collection Message number is converted to electric signal, by voicefrequency circuit 460 receive after be converted to voice data, then by voice data After the processing of output processor 480, through RF circuits 410 to be sent to such as another electronic equipment, or by sound Frequency data output is to memory 420 so as to further processing.Voicefrequency circuit 460 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and electronic equipment 400.
WiFi belongs to short range wireless transmission technology, and electronic equipment 400 can be helped by WiFi module 470 User sends and receive e-mail, browses webpage and access streaming video etc., and it has provided the user wireless broadband Internet access.Although Fig. 5 shows WiFi module 470, but it is understood that, it is simultaneously not belonging to Electronic equipment 400 must be configured into, completely can as needed in the essential scope for do not change invention and Omit.
Processor 480 is the control centre of electronic equipment 400, utilizes various interfaces and the whole hand of connection The various pieces of machine, software program and/or module in memory 420 are stored in by operation or execution, with And the data being stored in memory 420 are called, the various functions and processing data of electronic equipment 400 are performed, So as to carry out integral monitoring to mobile phone.Optionally, processor 480 may include one or more processing cores; It is preferred that, processor 480 can integrated application processor and modem processor, wherein, application processor Main processing operating system, user interface and application program etc., modem processor mainly handles channel radio Letter.It is understood that above-mentioned modem processor can not also be integrated into processor 480.
Electronic equipment 400 also includes the power supply 490 (such as battery) powered to all parts, it is preferred that electricity Source can be logically contiguous by power-supply management system and processor 480, so as to be realized by power-supply management system The functions such as management charging, electric discharge and power managed.Power supply 490 can also include one or more Direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or inverter, The random components such as power supply status indicator.
Although not shown, electronic equipment 400 can also will not be repeated here including bluetooth module etc..
Specifically in the present embodiment, electronic equipment 400 also includes memory, and one or one with On program, one of them or more than one program storage in memory, and be configured to by one or More than one computing device of person.Said one or more than one program bag, which contain, is used for what is operated below Instruction:
The cover image of music to be played is compressed, preset number pixel compartments, the present count are obtained A kind of color of each pixel compartments correspondence cover image in mesh pixel compartments;
The mass-tone of the cover image is determined according to the preset number pixel compartments;
The excessive color of background of the music to be played is set according to the mass-tone.
Assuming that above-mentioned is the first possible embodiment, then based on the first possible embodiment And in second of the possible embodiment provided, in the memory of the electronic equipment 400, also comprising use In the instruction for performing following operation:
The mass-tone that the cover image is determined according to the preset number pixel compartments, including:
The corresponding color of each pixel compartments is determined according to the colour of each pixel compartments;
According to the corresponding color of each pixel compartments, the corresponding pixel compartments number of statistics each color;
The corresponding color of maximum pixel lattice number is determined to the mass-tone of the cover image.
In the third the possible embodiment provided based on the first possible embodiment, institute In the memory for stating electronic equipment 400, also comprising for performing the instruction operated below:
The excessive color of background according to the mass-tone setting music to be played, including:
The minimum pixel compartments of lightness are selected from the corresponding pixel compartments of the mass-tone;
If the corresponding color depth of the pixel compartments of the selection meets preparatory condition, by the picture of the selection The corresponding color of plain lattice is set to the excessive color of background of the music to be played;
If the corresponding color depth of the pixel compartments of the selection is unsatisfactory for preparatory condition, the selection is reduced The color depth of pixel compartments corresponding color obtain the first color, and first color is set to described treat Play the excessive color of background of music.
At the first to the 4th kind of possible embodiment party provided based on the third possible embodiment In formula, in the memory of the electronic equipment 400, also comprising for performing the instruction operated below:
After the excessive color of background according to the mass-tone setting music to be played, in addition to:
According to the corresponding color depth of the excessive color of the background, the corresponding lyrics face of the music to be played is set Color.
In the 5th kind of possible embodiment provided based on the 4th kind of possible embodiment, institute In the memory for stating electronic equipment 400, also comprising for performing the instruction operated below:
It is described according to the corresponding color depth of the excessive color of the background, the corresponding song of the music to be played is set Word color, including:
According to the corresponding color depth of the excessive color of the background, the color of the excessive color of the background is increased or decreased Depth obtains the second color;
Second color is set to the corresponding lyrics color of the music to be played.
One of ordinary skill in the art will appreciate that realizing all or part of step of above-described embodiment can pass through Hardware is completed, and the hardware of correlation can also be instructed to complete by program, described program can be stored in In a kind of computer-readable recording medium, storage medium mentioned above can be read-only storage, disk or CD etc..
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all the present invention's Within spirit and principle, any modification, equivalent substitution and improvements made etc. should be included in the present invention's Within protection domain.

Claims (10)

1. a kind of method that the excessive color of background is set, it is characterised in that methods described includes:
The cover image of music to be played is compressed, preset number pixel compartments, the present count are obtained A kind of color of each pixel compartments correspondence cover image in mesh pixel compartments;
The mass-tone of the cover image is determined according to the preset number pixel compartments;
The excessive color of background of the music to be played is set according to the mass-tone.
2. the method as described in claim 1, it is characterised in that described according to the preset number pixel Lattice determine the mass-tone of the cover image, including:
The corresponding color of each pixel compartments is determined according to the colour of each pixel compartments;
According to the corresponding color of each pixel compartments, the corresponding pixel compartments number of statistics each color;
The corresponding color of maximum pixel lattice number is determined to the mass-tone of the cover image.
3. the method as described in claim 1, it is characterised in that described to be treated according to being set the mass-tone The excessive color of background of music is played, including:
The minimum pixel compartments of lightness are selected from the corresponding pixel compartments of the mass-tone;
If the corresponding color depth of the pixel compartments of the selection meets preparatory condition, by the picture of the selection The corresponding color of plain lattice is set to the excessive color of background of the music to be played;
If the corresponding color depth of the pixel compartments of the selection is unsatisfactory for preparatory condition, the selection is reduced The color depth of pixel compartments corresponding color obtain the first color, and first color is set to described treat Play the excessive color of background of music.
4. the method as described in any one of claims 1 to 3 claim, it is characterised in that the basis The mass-tone is set after the excessive color of background of the music to be played, in addition to:
According to the corresponding color depth of the excessive color of the background, the corresponding lyrics face of the music to be played is set Color.
5. method as claimed in claim 4, it is characterised in that described according to the excessive color correspondence of the background Color depth, the corresponding lyrics color of the music to be played is set, including:
According to the corresponding color depth of the excessive color of the background, the color of the excessive color of the background is increased or decreased Depth obtains the second color;
Second color is set to the corresponding lyrics color of the music to be played.
6. a kind of device of the setting excessive color of background, it is characterised in that described device includes:
Compression module, for the cover image of music to be played to be compressed, obtains preset number pixel A kind of color of each pixel compartments correspondence cover image in lattice, the preset number pixel compartments;
Determining module, described in the preset number pixel compartments for being compressed according to the compression module are determined The mass-tone of cover image;
First setup module, the mass-tone for being determined according to the determining module sets the sound to be played The excessive color of happy background.
7. device as claimed in claim 6, it is characterised in that the determining module, including:
First determination sub-module, for determining that each pixel compartments are corresponding according to the colour of each pixel compartments Color;
Statistic submodule, each pixel compartments for being determined according to first determination sub-module are corresponding Color, the corresponding pixel compartments number of statistics each color;
Second determination sub-module, for the statistic submodule to be counted into obtained maximum pixel lattice number correspondence Color determine the mass-tone of the cover image.
8. device as claimed in claim 6, it is characterised in that first setup module, including:
Submodule is selected, for selecting the minimum pixel compartments of lightness from the corresponding pixel compartments of the mass-tone;
First sets submodule, if the corresponding color depth of pixel compartments for the selection submodule selection Preparatory condition is met, then the corresponding color of the pixel compartments of the selection is set to the back of the body of the music to be played The excessive color of scape;
Reduction sets submodule, if the corresponding color depth of pixel compartments for the selection submodule selection Preparatory condition is unsatisfactory for, then the color depth for reducing the pixel compartments corresponding color of the selection obtains the first color, And first color is set to the excessive color of background of the music to be played.
9. the device as described in any one of claim 6 to 8 claim, it is characterised in that described device Also include:
Second setup module, for waiting to broadcast described according to the corresponding color depth of the excessive color of the background, setting Put the music on corresponding lyrics color.
10. device as claimed in claim 9, it is characterised in that second setup module, including:
Increase reduction submodule, for according to the corresponding color depth of the excessive color of the background, increasing or decreasing The color depth of the excessive color of background obtains the second color;
Second sets submodule, and the second color for the increase reduction submodule to be obtained is set to described The corresponding lyrics color of music to be played.
CN201610053217.8A 2016-01-26 2016-01-26 Method and device for setting background excessive color Active CN106997265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610053217.8A CN106997265B (en) 2016-01-26 2016-01-26 Method and device for setting background excessive color

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610053217.8A CN106997265B (en) 2016-01-26 2016-01-26 Method and device for setting background excessive color

Publications (2)

Publication Number Publication Date
CN106997265A true CN106997265A (en) 2017-08-01
CN106997265B CN106997265B (en) 2020-11-10

Family

ID=59428371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610053217.8A Active CN106997265B (en) 2016-01-26 2016-01-26 Method and device for setting background excessive color

Country Status (1)

Country Link
CN (1) CN106997265B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287744A (en) * 2018-02-09 2018-07-17 腾讯科技(深圳)有限公司 Character displaying method, device and storage medium
CN109032492A (en) * 2018-07-27 2018-12-18 腾讯音乐娱乐科技(深圳)有限公司 A kind of method and device for cutting song
CN110597589A (en) * 2019-09-11 2019-12-20 北京达佳互联信息技术有限公司 Page coloring method and device, electronic equipment and storage medium
CN110609649A (en) * 2019-09-25 2019-12-24 北京小米移动软件有限公司 Interface display method, device and storage medium
CN113204658A (en) * 2021-05-27 2021-08-03 北京字跳网络技术有限公司 Page display updating method and device, electronic equipment and storage medium
WO2023088183A1 (en) * 2021-11-17 2023-05-25 维沃移动通信有限公司 Image display method and apparatus, and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215428A (en) * 2011-06-23 2011-10-12 深圳市茁壮网络股份有限公司 Picture processing method and STB (Set Top Box)
US20140201683A1 (en) * 2013-01-15 2014-07-17 Leap Motion, Inc. Dynamic user interactions for display control and measuring degree of completeness of user gestures
CN104391691A (en) * 2014-11-07 2015-03-04 久邦计算机技术(广州)有限公司 Icon and text processing method
CN104504107A (en) * 2014-12-30 2015-04-08 百度在线网络技术(北京)有限公司 Search picture display method and device
US20150227272A1 (en) * 2005-10-07 2015-08-13 Apple Inc Multimedia control center
CN104932790A (en) * 2015-06-26 2015-09-23 联想(北京)有限公司 Information processing method and electronic equipment
CN104965631A (en) * 2015-05-26 2015-10-07 深圳市万普拉斯科技有限公司 Desktop color matching method, desktop color matching apparatus and intelligent terminal
CN105144282A (en) * 2013-04-25 2015-12-09 埃西勒国际通用光学公司 Method of customizing an electronic image display device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150227272A1 (en) * 2005-10-07 2015-08-13 Apple Inc Multimedia control center
CN102215428A (en) * 2011-06-23 2011-10-12 深圳市茁壮网络股份有限公司 Picture processing method and STB (Set Top Box)
US20140201683A1 (en) * 2013-01-15 2014-07-17 Leap Motion, Inc. Dynamic user interactions for display control and measuring degree of completeness of user gestures
CN105144282A (en) * 2013-04-25 2015-12-09 埃西勒国际通用光学公司 Method of customizing an electronic image display device
CN104391691A (en) * 2014-11-07 2015-03-04 久邦计算机技术(广州)有限公司 Icon and text processing method
CN104504107A (en) * 2014-12-30 2015-04-08 百度在线网络技术(北京)有限公司 Search picture display method and device
CN104965631A (en) * 2015-05-26 2015-10-07 深圳市万普拉斯科技有限公司 Desktop color matching method, desktop color matching apparatus and intelligent terminal
CN104932790A (en) * 2015-06-26 2015-09-23 联想(北京)有限公司 Information processing method and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108287744A (en) * 2018-02-09 2018-07-17 腾讯科技(深圳)有限公司 Character displaying method, device and storage medium
CN108287744B (en) * 2018-02-09 2022-04-05 腾讯科技(深圳)有限公司 Character display method, device and storage medium
CN109032492A (en) * 2018-07-27 2018-12-18 腾讯音乐娱乐科技(深圳)有限公司 A kind of method and device for cutting song
CN110597589A (en) * 2019-09-11 2019-12-20 北京达佳互联信息技术有限公司 Page coloring method and device, electronic equipment and storage medium
CN110609649A (en) * 2019-09-25 2019-12-24 北京小米移动软件有限公司 Interface display method, device and storage medium
CN110609649B (en) * 2019-09-25 2021-03-23 北京小米移动软件有限公司 Interface display method, device and storage medium
CN113204658A (en) * 2021-05-27 2021-08-03 北京字跳网络技术有限公司 Page display updating method and device, electronic equipment and storage medium
WO2023088183A1 (en) * 2021-11-17 2023-05-25 维沃移动通信有限公司 Image display method and apparatus, and electronic device

Also Published As

Publication number Publication date
CN106997265B (en) 2020-11-10

Similar Documents

Publication Publication Date Title
CN106997265A (en) A kind of method and device of the setting excessive color of background
CN105867730B (en) The display methods and device of status bar
CN103325107B (en) Image processing method, device and terminal unit
CN103941982B (en) A kind of method sharing interface processing and terminal
CN103414982B (en) A kind of method and apparatus that sound is provided
CN108287744A (en) Character displaying method, device and storage medium
CN106534962A (en) Television content playing method and device
CN107707827A (en) A kind of high-dynamics image image pickup method and mobile terminal
CN108040313A (en) A kind of play parameter control method and electronic equipment
CN107845363B (en) A kind of display control method and mobile terminal
CN107621738A (en) The control method and mobile terminal of a kind of mobile terminal
CN107392832A (en) Image processing method and related product
CN107895352A (en) A kind of image processing method and mobile terminal
CN109032741A (en) Screen luminance of terminal adjusting method, mobile terminal and storage medium
CN109453523A (en) A kind of game picture display processing method, terminal and computer readable storage medium
CN106993136A (en) Mobile terminal and its image denoising method and device based on multi-cam
CN106296623A (en) A kind of image processing method and device
CN107797643A (en) Reduce method, terminal and the computer-readable recording medium of terminal operating power consumption
CN106296634A (en) A kind of method and apparatus detecting similar image
CN110536388A (en) A kind of Poewr control method and terminal device
CN106339894A (en) Pushing method of screen locking magazine, playing method and related device
CN110475312A (en) A kind of connection control method, message broadcasting method and relevant device
CN111314517A (en) Display panel and mobile terminal
CN107977261A (en) Method, equipment, mobile terminal and the computer-readable storage medium of limiting process
CN105376640B (en) Filter processing method, device and electronic equipment

Legal Events

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