CN106445970A - Place holder loading method and device - Google Patents

Place holder loading method and device Download PDF

Info

Publication number
CN106445970A
CN106445970A CN201510490535.6A CN201510490535A CN106445970A CN 106445970 A CN106445970 A CN 106445970A CN 201510490535 A CN201510490535 A CN 201510490535A CN 106445970 A CN106445970 A CN 106445970A
Authority
CN
China
Prior art keywords
color
dominant hue
picture
occupy
place
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
CN201510490535.6A
Other languages
Chinese (zh)
Other versions
CN106445970B (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 CN201510490535.6A priority Critical patent/CN106445970B/en
Publication of CN106445970A publication Critical patent/CN106445970A/en
Application granted granted Critical
Publication of CN106445970B publication Critical patent/CN106445970B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

Embodiments of the invention disclose a place holder loading method and device, and aims at improving the place holder loading speed and satisfying the requirement for previously knowing the to-be-loaded original pictures by the users. The method comprises the following steps of: obtaining a dominant hue corresponding to a picture to be loaded in a delayed manner; setting the color of a place holder according to the dominant hue; and loading the place holder on a display position corresponding to the picture after the color setting.

Description

A kind of loading processing method and apparatus of occupy-place figure
Technical field
The present invention relates to field of computer technology, more particularly, to a kind of loading processing method of occupy-place figure and dress Put.
Background technology
With the fast development of multimedia technology, user can obtain increasing picture from network, But picture can take more information resources with respect to text, this is accomplished by certain memory space to protect Deposit picture, therefore from network to some position of webpage Load Image when, the picture in webpage is also Loading is not had to be accomplished by first carrying out occupy-place using occupy-place figure before completing, the occupy-place figure loading processing commonly used at present Method mainly has following two schemes.
1st, in the method for little picture known to the Pictures location loading one of webpage.
Wherein, need the less known figure of one memory space of position prestrain of load image in webpage Piece, for example, this known picture can be the mark picture of website domain name symbol, treat that artwork piece loads successfully Show artwork piece to user afterwards again.
Above-mentioned prior art is by providing a user with known little picture so that user may determine that picture just Loading, allowing user have expection to the picture that will appear from.But this known little picture is in all figures Piece is all identical before loading, and this can make the interface of webpage seem very dull, easily allows user lose Interest and the patience waiting.
2nd, in the method for the corresponding thumbnail of Pictures location one artwork piece of loading of webpage.
Wherein, before the loading of artwork piece, pre-save one and take the less correspondence of memory space In the thumbnail of artwork piece, when loading thumbnail, thumbnail is shown enlarged in Pictures location, Yong Huke To recognize the artwork piece loading in advance, load after artwork piece and show artwork piece to user again after success. In order to compress memory space further, thumbnail can also be arranged to artwork master.
Above-mentioned prior art can load the image preview of artwork piece to user, allows user to recognize in advance i.e. The artwork piece that will appear from.Although thumbnail passes through compression compared to artwork piece, loading breviary Need the information of the content of loading a lot, so that the loading velocity of thumbnail is very slow during figure.
Content of the invention
Embodiments provide a kind of loading processing method and apparatus of occupy-place figure, for improving occupy-place The loading velocity of figure, and the needs of the artwork piece that user understands that needs load in advance can be met.
For solving above-mentioned technical problem, the embodiment of the present invention provides technical scheme below:
In a first aspect, the embodiment of the present invention provides a kind of loading processing method of occupy-place figure, including:
Obtain the corresponding dominant hue of picture needing time delay to load;
The color of occupy-place figure is set according to described dominant hue;
Occupy-place figure after color is provided with is loaded on the corresponding display location of described picture.
Second aspect, the embodiment of the present invention also provides a kind of loading processing device of occupy-place figure, including:
Mass-tone acquisition module, for obtaining the corresponding dominant hue of picture needing time delay to load;
Color setup module, for arranging the color of occupy-place figure according to described dominant hue;
Occupy-place figure load-on module, is provided with for loading color on the corresponding display location of described picture Occupy-place figure afterwards.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
In embodiments of the present invention, obtain the corresponding dominant hue of picture needing time delay to load first, then The color of occupy-place figure is set according to above-mentioned dominant hue, color is finally loaded on the corresponding display location of picture Occupy-place figure after being provided with.Can be accounted for according to the setting of transferring of the corresponding mass-tone of picture in the embodiment of the present invention The color of bitmap, therefore can load setting in the corresponding display location of picture before picture loading completes The occupy-place figure of good color, therefore no longer shows little picture known on the display location of picture, No longer show thumbnail, and be shown that to carry coloured occupy-place figure, the color of this occupy-place figure by plus The corresponding dominant hue of picture carrying determines, therefore occupy-place figure can reflect the color of the picture loading Attribute, user can first see the color of occupy-place figure before seeing artwork piece, meets user in advance The needs of solution picture, in addition show the color of occupy-place figure on the corresponding display location of picture, occupy-place figure The colour of color only needs to take several bytes and can complete, therefore compared to the mode loading thumbnail, The loading velocity of occupy-place figure is loaded quickly in the embodiment of the present invention.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be in embodiment description The accompanying drawing of required use be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, to those skilled in the art, can also obtain according to these accompanying drawings Other accompanying drawings.
Fig. 1 is that a kind of process blocks of the loading processing method of occupy-place figure provided in an embodiment of the present invention are illustrated Figure;
Fig. 2-a is that a kind of composition structure of the loading processing device of occupy-place figure provided in an embodiment of the present invention is shown It is intended to;
Fig. 2-b is a kind of composition structural representation of mass-tone acquisition module provided in an embodiment of the present invention;
Fig. 2-c is the composition structural representation of another kind mass-tone acquisition module provided in an embodiment of the present invention;
Fig. 2-d is the composition structural representation of another kind mass-tone acquisition module provided in an embodiment of the present invention;
Fig. 2-e is a kind of composition structural representation of color setup module provided in an embodiment of the present invention;
Fig. 3 be occupy-place figure provided in an embodiment of the present invention loading processing method be applied to terminal composition knot Structure schematic diagram.
Specific embodiment
Embodiments provide a kind of loading processing method and apparatus of occupy-place figure, for improving occupy-place The loading velocity of figure, and the needs of the artwork piece that user understands that needs load in advance can be met.
For enabling the goal of the invention of the present invention, feature, advantage more obvious and understandable, below will In conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes it is clear that the embodiments described below are only a part of embodiment of the present invention, and not all Embodiment.Based on the embodiment in the present invention, the every other enforcement that those skilled in the art is obtained Example, broadly falls into the scope of protection of the invention.
Term " comprising " and " having " in description and claims of this specification and above-mentioned accompanying drawing And their any deformation is it is intended that cover non-exclusive comprising, to comprise a series of units Process, method, system, product or equipment are not necessarily limited to those units, but may include not clearly Listing or for these processes, method, product or the intrinsic other units of equipment.
It is described in detail individually below.
One embodiment of the loading processing method of occupy-place figure of the present invention, specifically can apply to need to load In the picture display scene of occupy-place figure, refer to shown in Fig. 1, the loading that one embodiment of the invention provides Processing method, may include steps of:
101st, obtain the corresponding dominant hue of picture needing time delay to load.
In embodiments of the present invention, when terminal Loads Image from network, because picture is compared to text meeting Take larger resource, therefore picture typically requires time delay and loads.In the embodiment of the present invention, obtain first To the corresponding dominant hue of picture needing time delay to load, wherein, the corresponding dominant hue of picture is the master of picture Want tone, dominant hue refers to the primary color attribute showing in the collocation of colour of picture, dominant hue Preponderated with which kind of wavelength in the light referring to picture reflection and to determine, different wave length produces different colours Sensation, dominant hue is the key character of the color of picture.For example, it is desired to the picture that time delay loads adopts RGB (English full name:Red Green Blue, English abbreviation:RGB) color mode, for difference Picture, need to respectively specify that RGB, that is, the intensity of three kinds of primary colors of RGB, in rgb color mould Under formula, each color intensity minimum 0, it is up to 255, and generally all with 16 binary value marks Know, for example, 255 is exactly FF corresponding to hexadecimal, and the numerical value of tri- components of RGB is arranged in order Get up, with # beginning, to represent different colors, for example, color value #FF0000 is redness.In picture Using under rgb color pattern, for example, get the corresponding mass-tone of picture in step 101 and be adjusted to RGB (76,125,158).It should be noted that in embodiments of the present invention, the color of picture can also adopt Other color modes to realize, for example, can be YUV color modes etc., not limit herein.
It should be noted that the dominant hue of picture is currently used primarily in computer technology identification image, but In embodiments of the invention, the dominant hue of picture is used in the loading procedure of occupy-place figure, it is possible to achieve fast Speed loads and meets the needs that user understands picture in advance.In embodiments of the present invention, there are multiple methods The dominant hue of picture can be calculated, the attainable mode of one of which is as follows, step 101 obtains to be needed The corresponding dominant hue of picture that time delay loads, specifically may include steps of:
A1, a colour disk is obtained according to the multiple color selected in colour table data base, colour disk includes multiple Color;
The color code of the corresponding dominant hue of picture that A2, reception background server send;
A3, mated using the color in color code and colour disk, picture pair is determined according to matching result The dominant hue answered.
Wherein, in step A1 can self-defined colour table data base as needed, store in colour table data base The multiple color that may show, selects multiple color according to pre-configured requirement from colour table data base and puts In a colour disk, then include the multiple color selected in this colour disk.Such as, general colour circle 24 kinds of basic colors.Execution step A2 after getting colour disk, after terminal can be received by client Platform server send need time delay load the corresponding dominant hue of picture color code that is to say, that Calculate the corresponding dominant hue of picture needing time delay to load by background server, background server calculates After needing the corresponding dominant hue of picture that time delay loads, background server is by the color code of this dominant hue It is sent to terminal, then terminal can receive the color code of the dominant hue of background server transmission.Connect down In execution step A3, mated using the color in the color code and colour disk of the dominant hue receiving, Generate matching result, record has which kind of color in above-mentioned color code and colour disk permissible in matching result The match is successful, then the color in the colour disk that the match is successful is exactly the corresponding mass-tone of picture needing time delay to load Adjust.
In a kind of aforesaid implementation, terminal needs time delay by interacting to receive with background server The color code of the corresponding dominant hue of picture loading, thus got the corresponding master of picture by colour disk Tone.In another kind of implementation of the present invention, step 101 obtains the picture pair needing time delay to load The dominant hue answered, specifically may include steps of:
B1, by need time delay load picture segmentation be N number of sub-pictures, N is the natural number more than 1;
B2, calculate the corresponding dominant hue of each sub-pictures in N number of sub-pictures respectively, obtain corresponding to N number of N number of dominant hue of sub-pictures;
B3, from N number of dominant hue select there is a most dominant hue of sub-pictures number as picture pair The dominant hue answered.
Wherein, obtaining the corresponding dominant hue of picture can also be corresponding to obtain picture by way of calculating Dominant hue, cuts to the picture needing time delay to load first in step B1, can obtain N number of subgraph Piece, wherein sub-pictures are referred to as the little figure of mosaic, connect lower inner execution step B2 and calculate N number of son respectively The corresponding dominant hue of each sub-pictures in picture, then can obtain the corresponding dominant hue of each sub-pictures, N number of dominant hue can be obtained, step B3 travels through all of sub-pictures, count N number of master respectively The number of different dominant hues in tone, and count each dominant hue and have how many sub-pictures, then Select a most dominant hue of sub-pictures number as the corresponding dominant hue of picture needing time delay to load.
It should be noted that needing to calculate the corresponding dominant hue of each sub-pictures in step B2, calculate The method of the dominant hue of sub-pictures can have multiple, for example, it is possible to calculate all pixels point in sub-pictures Average RGB value, using corresponding for this average RGB value color as the corresponding face of the dominant hue of this sub-pictures Color, and for example, can also calculate the rgb value of all pixels point in sub-pictures, then count different RGB It is worth the number of corresponding pixel, the corresponding color of the most rgb value of capture vegetarian refreshments number is as this subgraph The corresponding color of dominant hue of piece.
Further, in abovementioned steps B1 of the present invention are to the embodiment of step B3, step B3 is from N In individual dominant hue select exist a most dominant hue of sub-pictures number as the corresponding dominant hue of picture it Before, the loading processing method of occupy-place figure provided in an embodiment of the present invention, can also comprise the steps:
B4, remove, from N number of dominant hue, the dominant hue adjusting M color to be black or white, obtain (N - M) individual dominant hue, M is the natural number less than N.
Realize in scene in execution step B4, step B3 selects there are sub-pictures from N number of dominant hue A most dominant hue of number, as the corresponding dominant hue of picture, specifically includes following steps:
Select there is a most dominant hue of sub-pictures number as picture from (N-M) individual dominant hue Corresponding dominant hue.
That is, after step B2 obtains corresponding to N number of dominant hue of N number of sub-pictures, obtaining In N number of dominant hue, color is the dominant hue of black and white, if getting color is black or white The number of dominant hue be M, then by M color for black or white dominant hue from N number of master Get rid of in tone, remaining (N-M) individual dominant hue, traversal is all of black or white except color Sub-pictures, count the number of different dominant hues in (N-M) individual dominant hue respectively, and count each Dominant hue has how many sub-pictures, then selects a most dominant hue of sub-pictures number as needs The corresponding dominant hue of picture that time delay loads.It should be noted that in the case of execution step B4, by son In picture, color removes from N number of dominant hue for the dominant hue of black or white, the need therefore getting Want the corresponding dominant hue of picture that time delay loads to be unlikely to be black or white, certainly implement in the present invention Example in can not also execution step B4, then get need time delay load the corresponding dominant hue of picture It is probably black or white.
The 102nd, the color of occupy-place figure is set according to dominant hue.
In embodiments of the present invention, get need time delay load the corresponding dominant hue of picture after, root Transfer to arrange the color of occupy-place figure according to the corresponding mass-tone of picture, wherein, occupy-place figure refers to the picture in webpage Also do not load the picture for occupy-place before completing.In aforementioned prior art, the occupy-place figure of use can Being little picture (domain name identification of such as website) known to, or the corresponding thumbnail of artwork piece, And in the embodiment of the present invention, occupy-place figure is with a kind of color being determined colour by mass-tone, this occupy-place figure Color can according to mass-tone transfer determine, therefore occupy-place figure can reflect the face of the picture loading Color attribute.Compared to the set-up mode of occupy-place figure in prior art, in the embodiment of the present invention, occupy-place figure is root It is provided with the picture of color attribute according to dominant hue, and in the embodiment of the present invention, occupy-place figure only needs to by color Value just can represent, and colour generally only needs to take several bytes, that is, be less than the information of 0.01k, because The memory space very little that this occupy-place figure provided in an embodiment of the present invention takies.
In some embodiments of the invention, step 102 arranges the color of occupy-place figure, tool according to dominant hue Body may include steps of:
C1, the color of occupy-place figure is set to by corresponding first color of dominant hue according to dominant hue.
Wherein, in the embodiment of execution step C1, get, in abovementioned steps, the figure needing time delay to load After the corresponding dominant hue of piece, terminal determines needs the corresponding mass-tone of picture that time delay loads to be adjusted to the first face Color, the picture that for example if desired time delay loads is the picture of a width blue sky, gets the master of this picture Corresponding first color of tone is blueness, then can be set to the color of occupy-place figure in the embodiment of the present invention First color corresponding with dominant hue, you can so that the color of occupy-place figure is set to blueness.In step C1 Realize under scene, the technology of identification picture dominant tone is used in the occupy-place in figure that picture time delay loads, permissible Using need time delay load picture dominant hue as occupy-place figure color, the color of occupy-place figure and needs prolong When the dominant hue of picture that loads identical so that user picture load complete before can recognize in advance The dominant hue of picture, can either meet user and the curiosity of the picture that will load is added it is also possible to save The flow carrying, the colour loading dominant hue only needs to transmit several bytes, less than the data volume of 0.01K, because This can improve loading velocity, and saves load traffic.
In other embodiments of the present invention, step 102 arranges the color of occupy-place figure according to dominant hue, Specifically may include steps of:
D1, it is modified according to preset color correction parameters the first color corresponding to dominant hue, obtain Second color, the color of occupy-place figure is set to the second color obtaining after the first color correct.
Wherein, in the embodiment of execution step D1, get, in abovementioned steps, the figure needing time delay to load After the corresponding dominant hue of piece, end side pre-sets one group of color correction parameters, such as with picture as RGB As a example color mode, can arrange color correction parameters in 3 components in RGB is+2, for example aforementioned step Suddenly get and need corresponding first color of the corresponding dominant hue of picture that time delay loads to be RGB (76,125,158), then be modified to the first color according to color correction parameters, the second color obtaining For RGB (76+2,125+2,158+2)=RGB (78,127,160).After obtaining above-mentioned second color, The color of occupy-place figure is set to the second color.It should be noted that step D1 and abovementioned steps C1 Implementation is different, is not the corresponding first color conduct of dominant hue that picture is directly used in step D1 The color of occupy-place figure, but corresponding first color of dominant hue of picture is modified, obtain the second face Color, the second color obtaining after this correction is only the color of occupy-place figure, if for example get dominant hue corresponding to The first color be white, the display effect of this color is good, can be repaiied according to color correction parameters Just, to obtain the similar color associated with white as the second color, then the color loading occupy-place figure is Aforementioned second color.Realizing under scene in step D1, the technology of identification picture dominant tone is used in picture The occupy-place in figure that time delay loads, can be by corresponding first color of dominant hue of the picture needing time delay to load As the color of occupy-place figure after being modified, the color of occupy-place figure with need time delay load picture mass-tone Adjust and have direct incidence relation so that user can recognize picture before picture loading completes in advance The related color of dominant hue, can either meet user to the curiosity of the picture that will load it is also possible to save Save the flow loading, the colour loading dominant hue only needs to transmit several bytes, less than the data volume of 0.01K, Therefore loading velocity can be improved, and save load traffic.
In other embodiments of the present invention, step 102 arranges the color of occupy-place figure according to dominant hue, Specifically may include steps of:
Multiple colour disks that E1, acquisition are selected from colour table data base, each colour disk pair in multiple colour disks Should a kind of color;
E2, selected color identical with the first color from multiple colour disks according to corresponding first color of dominant hue Or immediate 3rd color;
E3, the color of occupy-place figure is set to the 3rd color.
Wherein, in step E1 and previous embodiment, step A1 is similar, and terminal can be made by oneself as needed Adopted colour table data base, stores the multiple color that may show in colour table data base, will according to pre-configured Ask and select multiple color from colour table data base and be placed in a colour disk, then include choosing in this colour disk The multiple color selected out.After completing colour disk defined in step E1, the picture that if desired time delay loads corresponds to Mass-tone be adjusted to the first color, the color in this first color and colour disk is mated, if depositing in colour disk With the first color identical color, then the 3rd color is essentially equal with the color code of the first color Color, if or do not exist in colour disk and the first color identical color, select to select face from colour disk Color and immediate 3rd color of the first color.Wherein, color and immediate 3rd color of the first color Also refer to each component value and the immediate color code of the first color of color code, for example may be used To calculate the color code nearest in distance with each component value of the first color as the 3rd color, Wherein calculate two kinds of close colors degree of closeness can be calculated by Euclidean distance naturally it is also possible to Realized by other distance algorithms.
103rd, the occupy-place figure after color is provided with is loaded on the corresponding display location of picture.
In embodiments of the present invention, during artwork piece loads, color can be loaded and set up Occupy-place figure after one-tenth, shows the occupy-place figure of certain color on the corresponding display location of artwork piece, so uses During waiting the loading of artwork piece to complete, user can first see occupy-place before seeing artwork piece at family The color of figure, meets user to the needs understanding picture in advance, in addition on the corresponding display location of picture The color of display occupy-place figure, the colour of the color of occupy-place figure only needs to take several bytes and can complete, because In this embodiment of the present invention, the loading velocity of occupy-place figure is quickly.
By the description to the embodiment of the present invention for the above example, obtain first and need time delay to load The corresponding dominant hue of picture, then arranges the color of occupy-place figure, finally in picture pair according to above-mentioned dominant hue Occupy-place figure after color is provided with is loaded on the display location answered.Can be according to figure in the embodiment of the present invention The corresponding mass-tone of piece transfers to arrange the color of occupy-place figure, therefore can be in picture before picture loading completes Corresponding display location loads the occupy-place figure setting color, therefore no longer aobvious on the display location of picture Show little picture known to, also no longer show thumbnail, and be shown that to carry coloured occupy-place figure, The color of this occupy-place figure determines, therefore occupy-place figure can reflect by the corresponding dominant hue of the picture loading Go out the color attribute of the picture loading, user can first see occupy-place figure before seeing artwork piece Color, meets user to the needs understanding picture in advance, in addition shows on the corresponding display location of picture The color of occupy-place figure, the colour of the color of occupy-place figure only needs to take several bytes and can complete, therefore phase Ratio, in the mode loading thumbnail, loads the loading velocity of occupy-place figure quickly in the embodiment of the present invention.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, therefore by its all table State as a series of combination of actions, but those skilled in the art should know, the present invention is not retouched The restriction of the sequence of movement stated because according to the present invention, some steps can using other orders or Carry out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description Belong to preferred embodiment, necessary to involved action and the module not necessarily present invention.
For ease of the more preferable such scheme implementing the embodiment of the present invention, it is also provided below for implementing State the relevant apparatus of scheme.
Refer to shown in Fig. 2-a, a kind of loading processing device 200 of occupy-place figure provided in an embodiment of the present invention, Can include:Mass-tone acquisition module 201, color setup module 202, occupy-place figure load-on module 203, its In,
Mass-tone acquisition module 201, for obtaining the corresponding dominant hue of picture needing time delay to load;
Color setup module 202, for arranging the color of occupy-place figure according to described dominant hue;
Occupy-place figure load-on module 203, sets up for loading color on the corresponding display location of described picture Occupy-place figure after one-tenth.
In some embodiments of the invention, refer to as shown in Fig. 2-b, described mass-tone acquisition module 201, Including:
Colour disk acquisition submodule 2011, for obtaining one according to the multiple color selected in colour table data base Individual colour disk, described colour disk includes multiple color;
Receiving submodule 2012, for receiving the corresponding dominant hue of described picture that background server sends Color code;
Dominant Colors Matching submodule 2013, for being carried out using the color in described color code and described colour disk Coupling, determines the corresponding dominant hue of described picture according to matching result.
In some embodiments of the invention, refer to as shown in fig. 2-c, described mass-tone acquisition module 201, Including:
Picture segmentation submodule 2014, the picture segmentation for time delay being needed to load is N number of sub-pictures, Described N is the natural number more than 1;
Mass-tone calculating sub module 2015, corresponds to for calculating each sub-pictures in described N number of sub-pictures respectively Dominant hue, obtain the N number of dominant hue corresponding to described N number of sub-pictures;
Mass-tone selects submodule 2016, for selecting to there is sub-pictures number from described N number of dominant hue Many dominant hues is as the corresponding dominant hue of described picture.
In some embodiments of the invention, refer to as shown in Fig. 2-d, described mass-tone acquisition module 201, Also include:Colour removal submodule 2017, wherein,
Described colour removal submodule 2017, selects submodule 2016 from described N number of for described mass-tone Select there is a most dominant hue of sub-pictures number as the corresponding dominant hue of described picture in dominant hue Before, remove, from described N number of dominant hue, the dominant hue adjusting M color to be black or white, obtain (N-M) individual dominant hue, described M is the natural number less than described N;
Described mass-tone selects submodule 2016, specifically for selecting to deposit from described (N-M) individual dominant hue In a most dominant hue of sub-pictures number as the corresponding dominant hue of described picture.
In some embodiments of the invention, described color setup module 202, specifically for according to described master The color of occupy-place figure is set to corresponding first color of described dominant hue by tone.
In some embodiments of the invention, described color setup module 202, specifically for according to preset Color correction parameters first color corresponding to described dominant hue is modified, and obtains the second color, by institute The color stating occupy-place figure is set to the second color obtaining after described first color correct.
In some embodiments of the invention, refer to as shown in Fig. 2-e, described color setup module 202, Including:
Colour disk acquisition submodule 2021, for obtaining one according to the multiple color selected in colour table data base Individual colour disk, described colour disk includes multiple color;
Color selecting submodule 2022, for according to corresponding first color of described dominant hue from described colour disk Middle selection color is identical with described first color or immediate 3rd color;
Color arranges submodule 2023, for the color of described occupy-place figure is set to described 3rd color.
By the above description to the embodiment of the present invention, mass-tone acquisition module obtains first needs time delay The corresponding dominant hue of picture loading, then color setup module is according to above-mentioned dominant hue setting occupy-place figure Color, final color setup module loads accounting for after color is provided with the corresponding display location of picture Bitmap.Can transfer to arrange the color of occupy-place figure according to the corresponding mass-tone of picture in the embodiment of the present invention, because This can load, in the corresponding display location of picture, the occupy-place that set color before picture loading completes Figure, therefore no longer shows little picture known on the display location of picture, also no longer shows breviary Figure, and it is shown that to carry coloured occupy-place figure, the color of this occupy-place figure is corresponded to by the picture loading Dominant hue determine, therefore occupy-place figure can reflect the color attribute of the picture loading, Yong Huke First to see the color of occupy-place figure before seeing artwork piece, meet user to the needs understanding picture in advance, In addition the color of occupy-place figure is shown on the corresponding display location of picture, the colour of the color of occupy-place figure only needs Take several bytes can complete, therefore compared to the mode loading thumbnail, in the embodiment of the present invention Load the loading velocity of occupy-place figure quickly.
The embodiment of the present invention additionally provides another kind of terminal, as shown in figure 3, for convenience of description, only shows Go out the part related to the embodiment of the present invention, particular technique details does not disclose, refer to the present invention real Apply a method part.This terminal can be including mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer etc. appoint Meaning terminal unit, so that terminal is as mobile phone as a example:
Fig. 3 is illustrated that the block diagram of the part-structure of the mobile phone related to terminal provided in an embodiment of the present invention. With reference to Fig. 3, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 310, memorizer 320, Input block 330, display unit 340, sensor 350, voicefrequency circuit 360, Wireless Fidelity (wireless Fidelity, WiFi) module 370, the part such as processor 380 and power supply 390.People in the art Member, it is appreciated that the handset structure shown in Fig. 3 does not constitute the restriction to mobile phone, can include than figure Show more or less of part, or combine some parts, or different part arrangements.
With reference to Fig. 3, each component parts of mobile phone are specifically introduced:
RF circuit 310 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, especially, After the downlink information of base station is received, process to processor 380;In addition, sending out designing up data Give base station.Generally, RF circuit 310 includes but is not limited to antenna, at least one amplifier, transmitting-receiving letter Machine, bonder, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuit 310 can also be communicated with network and other equipment by radio communication.Above-mentioned radio communication is permissible Using arbitrary communication standard or agreement, including but not limited to global system for mobile communications (Global System Of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), broadband CDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memorizer 320 can be used for storing software program and module, and processor 380 is stored in by operation The software program of memorizer 320 and module, thus execute at various function application and the data of mobile phone Reason.Memorizer 320 can mainly include storing program area and storage data field, and wherein, storing program area can Application program needed for storage program area, at least one function (broadcast by such as sound-playing function, image Playing function etc.) etc.;Storage data field can store according to mobile phone using data (the such as audio frequency being created Data, phone directory etc.) etc..Additionally, memorizer 320 can include high-speed random access memory, also Can include nonvolatile memory, for example, at least one disk memory, flush memory device or other Volatile solid-state part.
Input block 330 can be used for numeral or the character information of receives input, and produces the use with mobile phone The key signals input that family is arranged and function control is relevant.Specifically, input block 330 may include touch-control Panel 331 and other input equipments 332.Contact panel 331, also referred to as touch screen, can collect user Thereon or neighbouring touch operation (such as user uses any suitable object or attached such as finger, stylus Part on contact panel 331 or the operation near contact panel 331), and according to formula set in advance Drive corresponding attachment means.Optionally, contact panel 331 may include touch detecting apparatus and touches control Two parts of device processed.Wherein, touch detecting apparatus detect the touch orientation of user, and detect touch operation The signal bringing, transmits a signal to touch controller;Touch controller receives from touch detecting apparatus Touch information, and it is converted into contact coordinate, then give processor 380, and can receiving processor 380 The order sent simultaneously is executed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface The polytypes such as sound wave realize contact panel 331.Except contact panel 331, input block 330 is acceptable Including other input equipments 332.Specifically, other input equipments 332 can include but is not limited to secondary or physical bond In disk, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more.
Display unit 340 can be used for showing by the information of user input or the information and the handss that are supplied to user The various menus of machine.Display unit 340 may include display floater 341, optionally, can adopt liquid crystal Show device (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) etc. form configuring display floater 341.Further, contact panel 331 can cover Display floater 341, when contact panel 331 detects thereon or after neighbouring touch operation, sends place to Reason device 380, to determine the type of touch event, is showing according to the type of touch event with preprocessor 380 Show and corresponding visual output is provided on panel 341.Although in figure 3, contact panel 331 and display surface Plate 341 is input and the input function to realize mobile phone as two independent parts, but in some realities Apply in example, can contact panel 331 is integrated with display floater 341 and input and the output of realizing mobile phone Function.
Mobile phone may also include at least one sensor 350, such as optical sensor, motion sensor and other Sensor.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, environment Optical sensor can adjust the brightness of display floater 341 according to the light and shade of ambient light, and proximity transducer can When mobile phone moves in one's ear, close display floater 341 and/or backlight.As one kind of motion sensor, Accelerometer sensor can detect the size of (generally three axles) acceleration in all directions, can examine when static Measure size and the direction of gravity, can be used for identifying application (such as horizontal/vertical screen switching, the phase of mobile phone attitude Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Extremely The gyroscope that can also configure in mobile phone, barometer, drimeter, thermometer, infrared ray sensor etc. other Sensor, will not be described here.
Voicefrequency circuit 360, speaker 361, microphone 362 can provide the audio frequency between user and mobile phone to connect Mouthful.The signal of telecommunication after the voice data receiving conversion can be transferred to speaker 361 by voicefrequency circuit 360, Acoustical signal output is converted to by speaker 361;On the other hand, the sound collected is believed by microphone 362 Number be converted to the signal of telecommunication, after being received by voicefrequency circuit 360, be converted to voice data, then voice data is defeated Go out after processor 380 processes, through RF circuit 310 being sent to such as another mobile phone, or by audio frequency number According to output to memorizer 320 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user to receive by WiFi module 370 Send e-mails, browse webpage and access streaming video etc., it has provided the user wireless broadband interconnection Net accesses.Although Fig. 3 shows WiFi module 370, but it is understood that, it is simultaneously not belonging to handss Must be configured into of machine, can omit completely as needed in the scope of essence not changing invention.
Processor 380 is the control centre of mobile phone, each using various interfaces and connection whole mobile phone Individual part, by running or executing software program and/or the module being stored in memorizer 320, and adjusts With being stored in the data in memorizer 320, the various functions of execution mobile phone and processing data, thus opponent Machine carries out integral monitoring.Optionally, processor 380 may include one or more processing units;Preferably, Processor 380 can integrated application processor and modem processor, wherein, application processor is mainly located Reason operating system, user interface and application program etc., modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated in processor 380.
Mobile phone also includes the power supply 390 (such as battery) powered to all parts it is preferred that power supply is permissible Logically contiguous with processor 380 by power-supply management system, thus management is realized by power-supply management system The functions such as charging, electric discharge and power managed.
Although not shown, mobile phone can also include photographic head, bluetooth module etc., will not be described here.
In embodiments of the present invention, the processor 380 included by this terminal also have control execution above by The loading processing method flow of the occupy-place figure of terminal execution.
In addition it should be noted that, device embodiment described above is only schematically, wherein said The unit illustrating as separating component can be or may not be physically separate, show as unit The part showing can be or may not be physical location, you can with positioned at a place, or also may be used To be distributed on multiple NEs.Some or all of mould therein can be selected according to the actual needs Block is realizing the purpose of this embodiment scheme.In addition, in the device embodiment accompanying drawing of present invention offer, mould Annexation between block represents there is communication connection between them, specifically can be implemented as one or more Communication bus or holding wire.Those of ordinary skill in the art in the case of not paying creative work, that is, It is appreciated that and implement.
Through the above description of the embodiments, those skilled in the art can be understood that this Invention can be realized by the mode of software plus necessary common hardware naturally it is also possible to pass through specialized hardware To realize including special IC, dedicated cpu, private memory, special components and parts etc..General feelings Under condition, all functions of being completed by computer program can easily be realized with corresponding hardware, and And, the particular hardware structure for realizing same function can also be diversified, such as analog circuit, Digital circuit or special circuit etc..But, more for the purpose of the present invention in the case of software program realize be more Good embodiment.Based on such understanding, technical scheme is substantially in other words to existing skill What art contributed partly can be embodied in the form of software product, and this computer software product stores In the storage medium that can read, the floppy disk of such as computer, USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic Dish or CD etc., including some instructions with so that computer equipment (can be personal computer, Server, or the network equipment etc.) method described in execution each embodiment of the present invention.
In sum, above example, only in order to technical scheme to be described, is not intended to limit; Although being described in detail to the present invention with reference to above-described embodiment, those of ordinary skill in the art should Work as understanding:It still can be modified to the technical scheme described in the various embodiments described above, or to it Middle some technical characteristics carry out equivalent;And these modifications or replacement, do not make appropriate technical solution Essence depart from various embodiments of the present invention technical scheme spirit and scope.

Claims (14)

1. a kind of loading processing method of occupy-place figure is it is characterised in that include:
Obtain the corresponding dominant hue of picture needing time delay to load;
The color of occupy-place figure is set according to described dominant hue;
Occupy-place figure after color is provided with is loaded on the corresponding display location of described picture.
2. method according to claim 1 is it is characterised in that described acquisition needs time delay to load The corresponding dominant hue of picture, including:
One colour disk is obtained according to the multiple color selected in colour table data base, described colour disk includes multiple Color;
Receive the color code of the corresponding dominant hue of described picture that background server sends;
Mated using the color in described color code and described colour disk, institute is determined according to matching result State the corresponding dominant hue of picture.
3. method according to claim 1 is it is characterised in that described acquisition needs time delay to load The corresponding dominant hue of picture, including:
The picture segmentation needing time delay to load is N number of sub-pictures, described N is the natural number more than 1;
Calculate the corresponding dominant hue of each sub-pictures in described N number of sub-pictures respectively, obtain corresponding to described N number of dominant hue of N number of sub-pictures;
Select there is a most dominant hue of sub-pictures number as described figure from described N number of dominant hue The corresponding dominant hue of piece.
4. method according to claim 3 it is characterised in that described from described N number of dominant hue Select exist a most dominant hue of sub-pictures number as the corresponding dominant hue of described picture before, institute Method of stating also includes:
Remove, from described N number of dominant hue, the dominant hue adjusting M color to be black or white, obtain (N - M) individual dominant hue, described M is the natural number less than described N;
Described from described N number of dominant hue select there is a most dominant hue of sub-pictures number as institute State the corresponding dominant hue of picture, including:
Select there is a most dominant hue conduct of sub-pictures number from described (N-M) individual dominant hue The corresponding dominant hue of described picture.
5. method according to any one of claim 1 to 4 it is characterised in that described according to institute State the color that dominant hue arranges occupy-place figure, including:
The color of occupy-place figure is set to by corresponding first color of described dominant hue according to described dominant hue.
6. method according to any one of claim 1 to 4 it is characterised in that described according to institute State the color that dominant hue arranges occupy-place figure, including:
It is modified according to preset color correction parameters the first color corresponding to described dominant hue, obtain Second color, the color of described occupy-place figure is set to the second face obtaining after described first color correct Color.
7. method according to any one of claim 1 to 4 it is characterised in that described according to institute State the color that dominant hue arranges occupy-place figure, including:
One colour disk is obtained according to the multiple color selected in colour table data base, described colour disk includes multiple Color;
Color and described first color are selected from described colour disk according to corresponding first color of described dominant hue Identical or immediate 3rd color;
The color of described occupy-place figure is set to described 3rd color.
8. a kind of loading processing device of occupy-place figure is it is characterised in that include:
Mass-tone acquisition module, for obtaining the corresponding dominant hue of picture needing time delay to load;
Color setup module, for arranging the color of occupy-place figure according to described dominant hue;
Occupy-place figure load-on module, is provided with for loading color on the corresponding display location of described picture Occupy-place figure afterwards.
9. device according to claim 8 is it is characterised in that described mass-tone acquisition module, including:
Colour disk acquisition submodule, for obtaining a color according to the multiple color selected in colour table data base Disk, described colour disk includes multiple color;
Receiving submodule, for receiving the color of the corresponding dominant hue of described picture of background server transmission Code;
Dominant Colors Matching submodule, for being mated using the color in described color code and described colour disk, The corresponding dominant hue of described picture is determined according to matching result.
10. device according to claim 8, it is characterised in that described mass-tone acquisition module, wraps Include:
Picture segmentation submodule, the picture segmentation for time delay being needed to load is N number of sub-pictures, described N is the natural number more than 1;
Mass-tone calculating sub module, for calculating the corresponding master of each sub-pictures in described N number of sub-pictures respectively Tone, obtains the N number of dominant hue corresponding to described N number of sub-pictures;
Mass-tone selects submodule, there is sub-pictures number for selection from described N number of dominant hue most One dominant hue is as the corresponding dominant hue of described picture.
11. devices according to claim 10, it is characterised in that described mass-tone acquisition module, are gone back Including:Colour removal submodule, wherein,
Described colour removal submodule, selects submodule to select from described N number of dominant hue for described mass-tone Select exist a most dominant hue of sub-pictures number as the corresponding dominant hue of described picture before, from institute State in N number of dominant hue and remove the dominant hue adjusting M color to be black or white, obtain (N-M) Individual dominant hue, described M is the natural number less than described N;
Described mass-tone selects submodule, specifically for selecting to there is son from described (N-M) individual dominant hue A most dominant hue of picture number is as the corresponding dominant hue of described picture.
12. devices any one of according to Claim 8 to 11 are it is characterised in that described color Setup module, corresponds to specifically for the color of occupy-place figure being set to described dominant hue according to described dominant hue The first color.
13. devices any one of according to Claim 8 to 11 are it is characterised in that described color Setup module, specifically for according to preset color correction parameters first color corresponding to described dominant hue It is modified, obtains the second color, the color of described occupy-place figure is set to described first color correct The second color obtaining afterwards.
14. devices any one of according to Claim 8 to 11 are it is characterised in that described color Setup module, including:
Colour disk acquisition submodule, for obtaining a color according to the multiple color selected in colour table data base Disk, described colour disk includes multiple color;
Color selecting submodule, for selecting from described colour disk according to corresponding first color of described dominant hue Select that color is identical with described first color or immediate 3rd color;
Color arranges submodule, for the color of described occupy-place figure is set to described 3rd color.
CN201510490535.6A 2015-08-11 2015-08-11 Loading processing method and device for placeholder map Active CN106445970B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510490535.6A CN106445970B (en) 2015-08-11 2015-08-11 Loading processing method and device for placeholder map

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510490535.6A CN106445970B (en) 2015-08-11 2015-08-11 Loading processing method and device for placeholder map

Publications (2)

Publication Number Publication Date
CN106445970A true CN106445970A (en) 2017-02-22
CN106445970B CN106445970B (en) 2020-08-21

Family

ID=58092501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510490535.6A Active CN106445970B (en) 2015-08-11 2015-08-11 Loading processing method and device for placeholder map

Country Status (1)

Country Link
CN (1) CN106445970B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197353A (en) * 2017-05-24 2017-09-22 环球智达科技(北京)有限公司 The processing method of the occupy-place figure of interface images
CN107222773A (en) * 2017-05-24 2017-09-29 环球智达科技(北京)有限公司 The processing system of the occupy-place figure of interface images
CN108334531A (en) * 2017-09-19 2018-07-27 平安普惠企业管理有限公司 Picture tone extracting method, equipment and computer readable storage medium
CN108595235A (en) * 2018-03-20 2018-09-28 车音智能科技有限公司 A kind of picture loading method and device
CN110096662A (en) * 2019-04-22 2019-08-06 华为技术有限公司 Webpage display method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102918492A (en) * 2010-06-11 2013-02-06 微软公司 Adaptive image rendering and use of imposter
CN103218989A (en) * 2013-04-09 2013-07-24 广东欧珀移动通信有限公司 Personalized display method and personalized display terminal during picture preloading
CN103914450A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Method and device for presenting web graphics in mobile terminal platform
CN104050172A (en) * 2013-03-12 2014-09-17 腾讯科技(深圳)有限公司 Webpage picture loading method and system
CN104462312A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Web page displaying method and browser client side
CN105162954A (en) * 2015-07-30 2015-12-16 努比亚技术有限公司 Embedded picture amplifying method and device, and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102918492A (en) * 2010-06-11 2013-02-06 微软公司 Adaptive image rendering and use of imposter
CN103914450A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Method and device for presenting web graphics in mobile terminal platform
CN104050172A (en) * 2013-03-12 2014-09-17 腾讯科技(深圳)有限公司 Webpage picture loading method and system
CN103218989A (en) * 2013-04-09 2013-07-24 广东欧珀移动通信有限公司 Personalized display method and personalized display terminal during picture preloading
CN104462312A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Web page displaying method and browser client side
CN105162954A (en) * 2015-07-30 2015-12-16 努比亚技术有限公司 Embedded picture amplifying method and device, and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
小老妈: ""Android UI设计(一)——胜过千言万语的图片设计"", 《HTTPS://SITE.DOUBAN.COM/169072/WIDGET/NOTES/9233791/NOTE/317606433/》 *
梦想天空: """Gradify-提取图片颜色,创建响应式的CSS渐变""", 《HTTPS://WWW.BBSMAX.COM/A/L1DYYJQVDE/》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197353A (en) * 2017-05-24 2017-09-22 环球智达科技(北京)有限公司 The processing method of the occupy-place figure of interface images
CN107222773A (en) * 2017-05-24 2017-09-29 环球智达科技(北京)有限公司 The processing system of the occupy-place figure of interface images
CN108334531A (en) * 2017-09-19 2018-07-27 平安普惠企业管理有限公司 Picture tone extracting method, equipment and computer readable storage medium
CN108595235A (en) * 2018-03-20 2018-09-28 车音智能科技有限公司 A kind of picture loading method and device
CN110096662A (en) * 2019-04-22 2019-08-06 华为技术有限公司 Webpage display method and related device

Also Published As

Publication number Publication date
CN106445970B (en) 2020-08-21

Similar Documents

Publication Publication Date Title
CN103402190B (en) Method and device for selecting network as well as terminal
CN106502826B (en) Data backup and transmission method and mobile terminal
CN106445970A (en) Place holder loading method and device
CN106412691A (en) Interception method and device of video images
CN110035004B (en) User name card sharing method, friend adding method and related device
CN107392832A (en) Image processing method and related product
CN106332307A (en) Method for application program access to network and mobile terminal
WO2020147645A1 (en) Link aggregation realization method and related product
CN106506321A (en) One population message treatment method and terminal device
CN109089036A (en) Zoom processing method, device, readable storage medium storing program for executing and mobile terminal
CN103390034A (en) Image display method, device, terminal and server
CN103346921A (en) User management method, relevant equipment and communication system
CN107589887A (en) One kind applies startup method and terminal
CN105306802A (en) Photographing mode switching method and device
CN106296623A (en) A kind of image processing method and device
CN106888498A (en) A kind of inter-terminal data transmission method, device and mobile terminal
CN108270764A (en) A kind of application login method, server and mobile terminal
CN106506777A (en) Intelligent terminal and system communication record telephone number processing method and processing device
CN105787982A (en) Method and device for manufacturing e-book
CN108833717A (en) Information clearing method, device, mobile terminal and computer readable storage medium
CN106559311A (en) A kind of communicating control method and communicating terminal
CN108877733A (en) Color temperature adjusting method and relevant apparatus
CN108320265A (en) A kind of image processing method, terminal and computer readable storage medium
CN106658360A (en) Data transmission method and data transmission device
CN104077129B (en) icon processing method, device and terminal device

Legal Events

Date Code Title Description
C06 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