Summary of the invention
According to one embodiment of present invention, providing a kind of method for generating the smart machine operation detail page, comprising: custom pack is containing the common controls of various function; Image characteristics extraction algorithm is utilized to carry out the dominant hue of extraction equipment publicity pictures; Automatically the tone of common controls is adjusted based on extracted dominant hue; And generate the equipment operating details page with unique color.
Preferably, the step utilizing image characteristics extraction algorithm to carry out the dominant hue of extraction equipment publicity pictures comprises further: traversal picture pixel, calculates the colour that color is maximum; According to occurring that the colour that color is maximum calculates immediate color value; And according to the color value calculated, calculate and can provide the color that can distinguish with described background color under particular color background.
Preferably, the step automatically adjusting the tone of common controls based on extracted dominant hue comprises further: the general icon in common controls is made icon font, to call and to adjust size, color; Dominant hue is obtained according to the picture uploaded; According to the picture uploaded, generate head common segment layout and the operational zone background of the manipulation page; And the colour at icon font in described common controls, word, highlighted place is adjusted according to the dominant hue extracted.
Preferably, described common controls comprise following at least one: button, input frame, drop-down choice box, radio button, multifunctional button, slide switch, player module, slide bar control and knob control.
According to another embodiment of the invention, providing a kind of system for generating the smart machine operation detail page, comprising: customized module, for customizing a set of common controls comprising various function; Tone extraction module, for the dominant hue utilizing image characteristics extraction algorithm to carry out extraction equipment publicity pictures; Tone adjusting section, for automatically adjusting the tone of common controls based on extracted dominant hue; And page generation module, for generating the equipment operating details page with unique color.
Preferably, described tone extraction module is configured to further: traversal picture pixel, calculates the colour that color is maximum; According to occurring that the colour that color is maximum calculates immediate color value; And according to the color value calculated, calculate and can provide the color that can distinguish with described background color under particular color background.
Preferably, described tone adjusting section is configured to further: the general icon in common controls is made icon font, to call and to adjust size, color; Dominant hue is obtained according to the picture uploaded; According to the picture uploaded, generate head common segment layout and the operational zone background of the manipulation page; And the colour at icon font in described common controls, word, highlighted place is adjusted according to the dominant hue extracted.
According to the detailed description below the disclosure and accompanying drawing, other object, feature and advantage will be apparent to those skilled in the art.
Embodiment
A kind of method and system for generating smart machine operation detail page is disclosed according to embodiments of the invention.In the following description, for illustrative purposes, multiple detail has been set forth to provide the complete understanding to embodiments of the invention.But it is evident that for those skilled in the art, embodiments of the invention can realize when not having these details.
According to technical scheme of the present invention, the equipment operating details page of publicity pictures oneself product style applicable for businessman customizes rapidly using businessman to provide simply.The publicity pictures that businessman provides is all colored usually, and be therefore applicable in the equipment operating details page of oneself product style for businessman's customization, choosing appropriate color for product is very important program.
As is known to persons skilled in the art, color is the key character of coloured image, in content-based image management and retrieval, have important effect.At present, the method for Description Image color mainly contains color histogram, colour consistency vector, color correlogram and color moment etc.These describing methods are all the statisticss to color of image feature, colour vision concept or the color semantic feature of image can not be reflected, and when people observe image, often first feel the dominant hue of image, namely which image has plant main color, then just observes the color detail of image.Therefore, the dominant hue of color of image is extracted and describes most important.
The dominant hue of image refers to the main color of coloured image and important color, by extracting the dominant hue of image, can realize the semantic tagger to color of image, significant to image retrieval, classification etc. based on semanteme.Therefore, technical scheme of the present invention carries out suitable colouring information extraction and extracted colouring information is applied to the corresponding device operation detail page realizing generating equipment operating details page fast by the publicity pictures provided businessman.
Fig. 1 is according to an embodiment of the invention for generating the block diagram of the system 100 of smart machine operation detail page.In FIG, system 100 comprises customized module 102, for the common controls of custom pack containing various function; Tone extraction module 104, for the dominant hue utilizing image characteristics extraction algorithm to carry out extraction equipment publicity pictures; Tone adjusting section 106, for automatically adjusting the tone of common controls based on extracted dominant hue; And page generation module 108, for being generated the equipment operating details page with unique color by simple layout.
Fig. 2 is according to an embodiment of the invention for generating the process flow diagram of the method 200 of smart machine operation detail page.The method 200 starts in step 202 place.In step 204, customize a set of common controls comprising various function.Such as, common controls can comprise button (comprising word button and icon), clicks this button and can trigger certain class event (such as, machine open/close); Input frame, for input characters; Drop-down choice box, for selecting the option that will select in the option ejected; Radio button, for showing option in groups and the item chosen of highlighted display; Multifunctional button, this multifunctional button is made up of two buttons of contrary operation of the same type, and the different piece clicking this multifunctional button has different event responses (increase of such as volume and reduction); Slide switch, for realizing switching manipulation by slip; Player module, for the multimedia file such as audio plays, video, its sub-component that can comprise F.F., retrogressing, volume increase or reduce; Slide bar control, for the progression of display file, and can by the progress of slide selectivity control documents; And knob control, this knob control can be controlled by rotary knob.
Then, in step 206, according to the dominant hue of the equipment publicity pictures extraction picture that businessman uploads.Various image characteristics extraction algorithm well known by persons skilled in the art can be adopted to carry out the dominant hue of extraction equipment publicity pictures.Such as, clustering algorithm etc.According to one embodiment of present invention, following algorithm is adopted to carry out the dominant hue of extraction equipment publicity pictures:
1. travel through picture pixel, calculate the colour that color is maximum;
2. according to occurring that the colour that color is maximum calculates immediate color value;
3. calculate according to the color value calculated the color that good reading experience can be provided under the particular color background of such as white background again, the color of described good reading experience is the color that can distinguish with background color, such as, for white background, color can not be too shallow, in order to avoid cause identification difficulty under white background.
Special processing mode is had, in order to avoid the interface generated cannot use in identification for some color (such as, white, black) in above step 2 and 3.Because the current background colour of button is white, or some dominant hue directly can on the background colour generated, so color can not be too shallow, or too dark, may cause and be beyond recognition close to background colour very much.
For the color that some calculates, may too close to the background colour of such as white or black.Such as, light border is fixed tentatively as rgb (221,221,221), and dark border is fixed tentatively as rgb (51,51,51); When colour is too high (color is too shallow): when two looks of rg or gb of the rgb of the color value calculated can not exceed the border of light color simultaneously, if exceeded, all colours can be deducted the difference of most high color value and boundary value.Such as rgb (255,230,204), the difference of mxm. and boundary value is 44, and last colour can be processed into rgb (211,186,160).
When three colours of the rgb of the color value calculated can not exceed dark border simultaneously, now all colours can be added the difference of upper boundary values and minimum colour.Such as rgb (12,34,52), the difference of minimum and boundary value is 39, and colour finally can be treated as rgb (51,73,91).
Then, in step 208, the tone of common controls is automatically adjusted based on extracted dominant hue.Concrete operation step is as follows:
1. the general icon in common controls is made icon font, size, color are called and adjusted to convenient future;
2., according to the picture (such as, the background picture of an ocean) uploaded, obtain dominant hue, such as, be numbered #4499DD;
3., according to the picture uploaded, generate head common segment layout and the operational zone background (generating mode is generated by a set of create-rule provided according to picture, has certain size dimension restriction to the picture uploaded) of the manipulation page;
4. according to the colour at icon font, word, highlighted place in the dominant hue adjustment common controls extracted, such as, common controls tone when dominant hue is orange, blue, green after adjustment.
In step 210, generated the equipment operating details page with unique color by simple layout, such as, can by simply arranging (arranging size, word, icon etc.) to common controls, pulling the operation interface generating oneself satisfaction.Afterwards, the method 200 terminates.
According to technical scheme of the present invention, it can be the equipment operating details page that different home equipments generates different-style rapidly.Businessman can upload according to the dominant hue of the color of Products, corporate culture or logo, company's propagating poster the picture oneself liked, system can according to the picture automatic acquisition dominant hue (can allow manual fine-tuning after acquisition) uploaded, and the tone of common controls is automatically adjusted based on extracted dominant hue, the dominant hue obtained due to different pictures is also different, so each operation pages finally generated can have its color, thus it can be the equipment operating details page that businessman customizes oneself product style applicable rapidly.
Above-described embodiment is only the preferred embodiments of the present invention, is not limited to the present invention.It will be apparent for a person skilled in the art that without departing from the spirit and scope of the present invention, various amendment and change can be carried out to embodiments of the invention.Therefore, the invention is intended to contain all amendments within the scope of the present invention as defined by the appended claims of falling into or modification.