CN110097614A - Hue evaluation method, intelligent typesetting method and apparatus, computer equipment - Google Patents

Hue evaluation method, intelligent typesetting method and apparatus, computer equipment Download PDF

Info

Publication number
CN110097614A
CN110097614A CN201810083828.6A CN201810083828A CN110097614A CN 110097614 A CN110097614 A CN 110097614A CN 201810083828 A CN201810083828 A CN 201810083828A CN 110097614 A CN110097614 A CN 110097614A
Authority
CN
China
Prior art keywords
essential colour
accounting
setting module
colour
essential
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810083828.6A
Other languages
Chinese (zh)
Inventor
章心忆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Positec Power Tools Suzhou Co Ltd
Original Assignee
Positec Power Tools Suzhou 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 Positec Power Tools Suzhou Co Ltd filed Critical Positec Power Tools Suzhou Co Ltd
Priority to CN201810083828.6A priority Critical patent/CN110097614A/en
Publication of CN110097614A publication Critical patent/CN110097614A/en
Pending legal-status Critical Current

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/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The present invention relates to a kind of hue evaluation methods, intelligent typesetting method and apparatus, computer equipment.By reading to setting module, it obtains to the Essential colour in setting module, it obtains to the maximum at least one Essential colour of accounting in setting module, compare the relationship of the Essential colour got and default Essential colour and/or specific Essential colour, according to the relationship of Essential colour and default Essential colour and/or specific Essential colour, the dominant hue to setting module is determined.By the evaluable tone to setting module of the determining dominant hue to setting module, hue evaluation convenience is improved.Typesetting can will be carried out to setting module according to the dominant hue to setting module, and to realize the intelligent typesetting for treating setting module, avoid manual typesetting from taking considerable time, improve operation ease.

Description

Hue evaluation method, intelligent typesetting method and apparatus, computer equipment
Technical field
The present invention relates to digital image processing techniques fields, more particularly to a kind of hue evaluation method, intelligent typesetting side Method and device, computer equipment.
Background technique
With the development of internet technology, at present in the page of many websites or APP (Application, application program), Be directed to image layout, when there is great amount of images in a page, in order to make user when checking image more directly and It is convenient, it needs to classify image according to certain rule.
In traditional composition method, image is classified according to different colours, but need to carry out typesetting manually, compared It is cumbersome, and when picture number is excessive, manual typesetting needs take a substantial amount of time, and operation ease is low.
Summary of the invention
Based on this, it is necessary in view of the above-mentioned problems, providing a kind of hue evaluation side that hue evaluation convenience can be improved Method and Automatic Typesetting may be implemented and expend time short intelligent typesetting method, apparatus, computer equipment and storage medium.
A kind of hue evaluation method, comprising:
It reads to setting module;
It obtains to the Essential colour in setting module;
Obtain to the maximum at least one Essential colour of accounting in setting module, compare Essential colour and default Essential colour and/or The relationship of specific Essential colour;
According to the relationship of Essential colour and default Essential colour and/or specific Essential colour, the dominant hue to setting module is determined.
Above-mentioned hue evaluation method is obtained to the Essential colour in setting module, is obtained wait arrange by reading to setting module The maximum at least one Essential colour of accounting in version component compares the Essential colour got and default Essential colour and/or specific basic The relationship of color determines the dominant hue to setting module according to the relationship of Essential colour and default Essential colour and/or specific Essential colour. By the evaluable tone to setting module of the determining dominant hue to setting module, hue evaluation convenience is improved.
In one embodiment, default Essential colour includes at least one of black, white and grey.
In one embodiment, specific Essential colour includes orange and/or yellow.
In one embodiment, obtain to the maximum at least one Essential colour of accounting in setting module, compare Essential colour with Default Essential colour and/or specific Essential colour include:
Obtain the Essential colour to the Essential colour of accounting first and accounting second in setting module;
Whether the Essential colour of the Essential colour and accounting second that judge accounting first is respectively one of default Essential colour;
If so, output is without tone;
If it is not, then comparing the Essential colour and default Essential colour and/or specific Essential colour of accounting first again.
In one embodiment, compare the Essential colour and default Essential colour and/or specific Essential colour packet of accounting first again It includes:
Whether the Essential colour for judging accounting first is one of default Essential colour;
If the Essential colour of accounting first is one of default Essential colour, first threshold is set for the Essential colour of accounting second Value, and judge whether the Essential colour of accounting second is greater than first threshold, if so, exporting without tone, if it is not, then exporting dominant hue For the Essential colour of accounting second.
If the Essential colour of accounting first is not one of default Essential colour, compare the Essential colour of accounting first with it is specific Essential colour.
In one embodiment, the Essential colour and specific Essential colour for comparing accounting first include:
Whether the Essential colour for judging accounting first is specific Essential colour;
If the Essential colour of accounting first is specific Essential colour, second threshold is set for the Essential colour of accounting second, and sentence Whether the Essential colour of disconnected accounting second is greater than second threshold, if so, exporting without tone, if it is not, then exporting mass-tone is adjusted to accounting First Essential colour;
If the Essential colour of accounting first is not specific Essential colour, third threshold value is set for accounting maximum Essential colour, and Compare the maximum Essential colour of accounting and third threshold value.
In one embodiment, comparing the maximum Essential colour of accounting with third threshold value includes:
Judge whether the Essential colour of accounting first is greater than third threshold value;
If so, output mass-tone is adjusted to the Essential colour of accounting first.
In one embodiment, it obtains to the Essential colour in setting module and includes:
Processing is zoomed in and out to setting module to reading;
Fuzzy Processing will be carried out to setting module after scaling processing;
Color space conversion is carried out to setting module to after Fuzzy Processing;
Calculate the histogram distribution to Essential colour in setting module;
Essential colour is obtained according to histogram distribution.
A kind of intelligence composition method, comprising:
It reads to setting module;
Image procossing is carried out to setting module to reading, obtains Essential colour;
The dominant hue to setting module is determined according to Essential colour;
Setting module, which is treated, according to dominant hue carries out typesetting.
A kind of intelligence composition method, comprising:
It reads to setting module;
Image procossing is carried out to setting module to reading, obtains sum of the grayscale values Essential colour;
The brightness to setting module is determined according to gray value;
The dominant hue to setting module is determined according to Essential colour;
Setting module, which is treated, according to brightness and/or dominant hue carries out typesetting.
A kind of intelligence composing device, comprising:
Read module, for reading to setting module;
Processing module obtains gray value and/or Essential colour for carrying out graphics process to setting module;
Dominant hue determining module, for determining the dominant hue to setting module according to gray value and/or Essential colour;
Type-setting module carries out typesetting for treating setting module according to dominant hue.
A kind of computer equipment, including processor and memory, memory are stored with computer program, computer program quilt When processor executes, so that the step of processor executes above-mentioned intelligent composition method.
A kind of computer readable storage medium is stored with computer program, when computer program is executed by processor, so that Processor executes the step of above-mentioned intelligent composition method.
Above-mentioned intelligence composing device, computer equipment and computer storage medium, handle to obtain by treating setting module Corresponding Essential colour can determine the corresponding dominant hue to setting module according to Essential colour, can be according to the dominant hue to setting module It treats setting module and carries out typesetting, to realize the intelligent typesetting for treating setting module, manual typesetting is avoided to take considerable time, Improve operation ease.
Detailed description of the invention
Fig. 1 is the flow chart of hue evaluation method in an embodiment;
Fig. 2 is the flow chart of hue evaluation method in another embodiment;
Fig. 3 is the flow chart of hue evaluation method in another embodiment;
Fig. 4 is the flow chart of hue evaluation method in another embodiment;
Fig. 5 is the flow chart of hue evaluation method in another embodiment;
Fig. 6 is the flow chart obtained in an embodiment to the Essential colour in setting module;
Fig. 7 is the flow chart of hue evaluation method in an embodiment;
Fig. 8 is the structural schematic diagram of hue evaluation device in an embodiment;
Fig. 9 is the structural schematic diagram of hue evaluation device in another embodiment;
Figure 10 is the structural schematic diagram of hue evaluation device in another embodiment;
Figure 11 is the structural schematic diagram of hue evaluation device in another embodiment;
Figure 12 is the structural schematic diagram of hue evaluation device in another embodiment;
Figure 13 is the structural schematic diagram of hue evaluation device in another embodiment;
Figure 14 is the flow chart of intelligent composition method in an embodiment;
Figure 15 is the flow chart of intelligent composition method in another embodiment;
Figure 16 is the schematic diagram of intelligent type-setting mode in an embodiment;
Figure 17 is the structural schematic diagram of intelligent composing device in an embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
In one embodiment, as shown in Figure 1, providing a kind of hue evaluation method, comprising:
Step S100 is read to setting module.
It include the image that picture, video etc. can carry out typesetting to setting module.In one embodiment, it is reading to typesetting Further include the steps that judging whether to setting module be blank after component, that is, after reading to setting module, when to typesetting group When part is blank, then handles without next step, when setting module is not blank, then image is further processed.
Step S200 is obtained to the Essential colour in setting module.
After reading to setting module, treats setting module and handled to obtain to the corresponding Essential colour of setting module. It in one embodiment, include: black, white, grey, red, orange, yellow, green, blue, blue, purple to the Essential colour of setting module.
Step S300 obtains to the maximum at least one Essential colour of accounting in setting module, compares Essential colour and default base The relationship of true qualities and/or specific Essential colour.
After obtaining to the Essential colour in setting module, obtain maximum at least one basic to accounting in setting module Color can be obtained first to a kind of maximum Essential colour of accounting in setting module, according to the maximum Essential colour of accounting and be preset basic Color and/or specific Essential colour are compared, and specific comparative pattern is not unique, can be the default Essential colour of judgement and/or spy Determine whether Essential colour includes the maximum Essential colour of accounting, when default Essential colour and/or specific Essential colour are maximum not comprising accounting When Essential colour, then obtains to the maximum Essential colour of remaining accounting in setting module, judge default Essential colour and/or specific Essential colour Whether comprising the remaining maximum Essential colour of accounting, be also possible to compare the accounting size of the Essential colour to setting module of acquisition with The default size of default Essential colour and/or specific Essential colour.In one embodiment, default Essential colour include black, white and At least one of grey.In one embodiment, specific Essential colour includes orange and/or yellow.
Step S400 is determined according to the relationship of Essential colour and default Essential colour and/or specific Essential colour to setting module Dominant hue.
According to judge default Essential colour and/or specific Essential colour whether include the maximum Essential colour of accounting judging result, Or compare the Essential colour to setting module of acquisition accounting size and default Essential colour and/or specific Essential colour it is default big Small comparison result determines the dominant hue to setting module.
Above-mentioned hue evaluation method is obtained to the Essential colour in setting module, is obtained wait arrange by reading to setting module The maximum at least one Essential colour of accounting in version component compares the Essential colour got and default Essential colour and/or specific basic The relationship of color determines the dominant hue to setting module according to the relationship of Essential colour and default Essential colour and/or specific Essential colour. By the evaluable tone to setting module of the determining dominant hue to setting module, hue evaluation convenience is improved.
In one embodiment, as shown in Fig. 2, step S300 includes step S320, step S340, step S360 and step S380。
Step S320 obtains the Essential colour to the Essential colour of accounting first and accounting second in setting module.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the Two Essential colour, compare to the Essential colour of the Essential colour of accounting first and accounting second in setting module and default Essential colour and/ Or the relationship of specific Essential colour, the dominant hue to setting module is determined according to comparison result.
Whether the Essential colour of step S340, the Essential colour and accounting second that judge accounting first are respectively in default Essential colour One kind.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, whether the Essential colour of the Essential colour and accounting second that judge accounting first is respectively one preset in Essential colour Kind, the dominant hue to setting module is determined according to judging result.
Step S360, if so, output is without tone.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, whether the Essential colour of the Essential colour and accounting second that judge accounting first is respectively one preset in Essential colour Kind, the dominant hue to setting module is determined according to judging result.When the Essential colour of accounting first and the Essential colour point of accounting second When Wei not preset one of Essential colour, export without tone.
Step S380, if it is not, then comparing the Essential colour and default Essential colour and/or specific Essential colour of accounting first again.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, whether the Essential colour of the Essential colour and accounting second that judge accounting first is respectively one preset in Essential colour Kind, the dominant hue to setting module is determined according to judging result.When accounting first Essential colour and accounting second Essential colour not When being one of default Essential colour respectively, then compare the Essential colour and default Essential colour and/or specific base of accounting first again True qualities.
In one embodiment, as shown in figure 3, step S380 includes step S382, step S384 and step S386.
Step S382 judges whether the Essential colour of accounting first is one of default Essential colour.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, whether the Essential colour of the Essential colour and accounting second that judge accounting first is respectively one preset in Essential colour Kind, the dominant hue to setting module is determined according to judging result.When accounting first Essential colour and accounting second Essential colour not When being one of default Essential colour respectively, judge accounting first Essential colour whether be default Essential colour one kind, according to sentencing Disconnected result determines the dominant hue to setting module.
Step S384, if the Essential colour of accounting first is one of default Essential colour, for the Essential colour of accounting second First threshold is set, and judges whether the Essential colour of accounting second is greater than first threshold, if so, exporting without tone, if it is not, then Output mass-tone is adjusted to the Essential colour of accounting second.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, whether the Essential colour of the Essential colour and accounting second that judge accounting first is respectively one preset in Essential colour Kind, the dominant hue to setting module is determined according to judging result.When accounting first Essential colour and accounting second Essential colour not When being one of default Essential colour respectively, judge whether the Essential colour of accounting first is the one kind for presetting Essential colour.If accounting First Essential colour is one of default Essential colour, then first threshold is arranged for the Essential colour of accounting second, and judge accounting Whether second Essential colour is greater than first threshold, if so, exporting without tone, if it is not, then exporting mass-tone is adjusted to accounting second Essential colour.
Step S386 compares the base of accounting first if the Essential colour of accounting first is not one of default Essential colour True qualities and specific Essential colour.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, whether the Essential colour of the Essential colour and accounting second that judge accounting first is respectively one preset in Essential colour Kind, the dominant hue to setting module is determined according to judging result.When accounting first Essential colour and accounting second Essential colour not When being one of default Essential colour respectively, judge whether the Essential colour of accounting first is the one kind for presetting Essential colour.If accounting First Essential colour is not one of default Essential colour, then compares the Essential colour and specific Essential colour of accounting first.
In one embodiment, as shown in figure 4, step S386 includes step S381, step S383 and step S385.
Step S381 judges whether the Essential colour of accounting first is specific Essential colour.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, whether the Essential colour of the Essential colour and accounting second that judge accounting first is respectively one preset in Essential colour Kind, the dominant hue to setting module is determined according to judging result.When accounting first Essential colour and accounting second Essential colour not When being one of default Essential colour respectively, judge whether the Essential colour of accounting first is the one kind for presetting Essential colour.If accounting First Essential colour is not one of default Essential colour, then compares the Essential colour and specific Essential colour of accounting first, that is, judge Whether the Essential colour of accounting first is specific Essential colour, determines the dominant hue to setting module according to judging result.
Step S383 is arranged second if the Essential colour of accounting first is specific Essential colour for the Essential colour of accounting second Threshold value, and judge whether the Essential colour of accounting second is greater than second threshold, if so, exporting without tone, if it is not, then exporting mass-tone It is adjusted to the Essential colour of accounting first.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, whether the Essential colour of the Essential colour and accounting second that judge accounting first is respectively one preset in Essential colour Kind, the dominant hue to setting module is determined according to judging result.When accounting first Essential colour and accounting second Essential colour not When being one of default Essential colour respectively, judge whether the Essential colour of accounting first is the one kind for presetting Essential colour.If accounting First Essential colour is not one of default Essential colour, then judges whether the Essential colour of accounting first is specific Essential colour, if The Essential colour of accounting first is specific Essential colour, then second threshold is arranged for the Essential colour of accounting second, and judge accounting second The accounting value of Essential colour whether be greater than second threshold, if so, output is without tone, if it is not, then exporting mass-tone is adjusted to accounting the One Essential colour.
Step S385, if the Essential colour of accounting first is not specific Essential colour, for accounting maximum Essential colour setting the Three threshold values, and compare the maximum Essential colour of accounting and third threshold value.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, whether the Essential colour of the Essential colour and accounting second that judge accounting first is respectively one preset in Essential colour Kind, the dominant hue to setting module is determined according to judging result.When accounting first Essential colour and accounting second Essential colour not When being one of default Essential colour respectively, judge whether the Essential colour of accounting first is the one kind for presetting Essential colour.If accounting First Essential colour is not one of default Essential colour, then judges whether the Essential colour of accounting first is specific Essential colour, if The Essential colour of accounting first is not specific Essential colour, then third threshold value is arranged for the maximum Essential colour of accounting, and compare accounting most The accounting value and third threshold value of big Essential colour.
In one embodiment, as shown in figure 5, comparing the maximum Essential colour of accounting and third threshold value, including step S387 With step S388.
Step S387, judges whether the Essential colour of accounting first is greater than third threshold value.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, judge accounting first Essential colour and accounting second Essential colour whether be respectively specific Essential colour in one Kind, the dominant hue to setting module is determined according to judging result.When accounting first Essential colour and accounting second Essential colour not When being one of default Essential colour respectively, judge whether the Essential colour of accounting first is the one kind for presetting Essential colour.If accounting First Essential colour is not one of default Essential colour, then judges whether the Essential colour of accounting first is specific Essential colour, if The Essential colour of accounting first is not specific Essential colour, then is that third threshold value is arranged in the maximum Essential colour of accounting, and judges accounting the Whether the accounting value of one Essential colour is greater than third threshold value.
Step S388, if so, output mass-tone is adjusted to the Essential colour of accounting first.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, judge accounting first Essential colour and accounting second Essential colour whether be respectively specific Essential colour in one Kind, the dominant hue to setting module is determined according to judging result.When accounting first Essential colour and accounting second Essential colour not When being one of default Essential colour respectively, judge whether the Essential colour of accounting first is the one kind for presetting Essential colour.If accounting First Essential colour is not one of default Essential colour, then judges whether the Essential colour of accounting first is specific Essential colour, if The Essential colour of accounting first is not specific Essential colour, then is that third threshold value is arranged in the maximum Essential colour of accounting, and judges accounting the Whether the accounting value of one Essential colour is greater than third threshold value, when the accounting value of the Essential colour of accounting first is greater than third threshold value, Then export the Essential colour that mass-tone is adjusted to accounting first.
In one embodiment, as shown in fig. 6, step S200 includes step S210, step S220, step S230, step S240 and step S250.
Step S210 zooms in and out processing to setting module to reading.
Read to setting module size, not of uniform size, will be converted to setting module by scaling processing convenient for processing Size and size.In one embodiment, image scaling processing, specifically, the scaling of image are carried out by Resize function Ratio is inversely proportional with blur radius, i.e., minification is bigger, and blur radius is answered smaller;Minification is smaller, and blur radius should be got over Greatly.Processing is zoomed in and out by treating setting module, image procossing is carried out to setting module to after scaling processing, obtains gray scale Value and Essential colour, can be improved the convenience of image procossing.
Step S220 will carry out Fuzzy Processing to setting module after scaling processing.
Become the effect far and to become faster to simulate object in human eye vision, needs to carry out mould to setting module to after scaling Paste processing can will carry out Fuzzy Processing, Gaussian Blur to setting module after scaling by Gaussian Blur in one embodiment Processing can adjust the pixel color value of image according to Gaussian curve, carry out selectively blurred picture.
Step S230 carries out color space conversion to setting module to after Fuzzy Processing.
During determining the dominant hue to setting module, it is distributed using all tones of statistics with histogram image, and Statistics with histogram be HSV model information, it is therefore desirable to will after image noise reduction to setting module carry out HSV color space turn It changes, obtains HSV model.HSV model is a kind of color model for user's sense organ, lays particular emphasis on color identification, and Hue indicates color It adjusts, i.e. yellowish green ultramarine purple of blood orange etc., Saturation indicates saturation degree, the i.e. depth of color, and Value indicates brightness value, i.e. color Color light levels.The read primary color space mode to setting module is generally not HSV color space mode, because This, carries out the conversion of HSV color space for the color space mode to setting module, obtains HSV model, the system of Essential colour can be improved Count convenience.In one embodiment, reading is RGB (Red Green to setting module primary color space mode Blue, red, green, blue) color space, then it needs that HSV color will be converted to by rgb color space to setting module empty Between.
Step S240 calculates the histogram distribution to Essential colour in setting module.
What histogram distribution reflected is the distribution of all tones of image, generates the process that histogram is a statistics, according to The value range divided rank in each channel in HSV model, and then count the pixel of some grade.It can be counted by HSV model The histogram distribution to all Essential colour of setting module is calculated, in one embodiment, three channels of HSV model are decoupled, According to value range divided rank, specifically, by the channel H value range (0,180), it is divided into 18 grades;Channel S value model (0,256) is enclosed, 32 grades are divided into;The channel V value range (0,256) is divided into 32 grades, further according to each channel grade With range statistics distribution law, obtains image and be distributed in the stereogram of HSV space.It is calculated by HSV model to setting module The histogram distribution of all Essential colour can reflect the distribution to setting module pixel, can effectively improve the accuracy of data calculating, To improve the accuracy of intelligent typesetting.
In one embodiment, in the step for calculating the histogram distribution to all Essential colour of setting module according to HSV model In rapid, image histogram can be specifically calculated by calcHist function, calcHist function is OpenCV (Open Source Computer Vision Library, increase income computer vision library) provide a kind of function for calculating image histogram.
Step S250 obtains Essential colour according to histogram distribution.
It is calculated after the histogram distribution of all Essential colour of setting module by HSV model, it can be directly from histogram distribution In obtain the Essential colour to setting module, and generate the process that histogram is a statistics, can be more accurate, straight by histogram That sees obtains the Essential colour to setting module.
To facilitate a better understanding of above-mentioned hue evaluation method, detailed explain is carried out combined with specific embodiments below It is bright.
Be with default Essential colour it is black, white, grey, for specific Essential colour is orange or yellow, reads after setting module, sentence Whether be blank, when setting module is not blank, zoom in and out processing to setting module to reading if breaking to setting module. Whether after judging scaling processing is grayscale image to setting module, if not color image, then will be converted to ash to setting module After spending figure, the gray value of each pixel of accumulated image, then averaged is as entirely to the gray value of setting module, if Grayscale image, then the gray value of each pixel of direct accumulated image, then averaged is as entirely to the gray scale of setting module Value.
As shown in fig. 7, carrying out mould to setting module to after scaling processing having been calculated after the gray value of setting module Paste processing, judges whether the color space model to setting module is HSV color space model, if not HSV color space mould Type is calculated according to HSV model to typesetting then by after the color space model of setting module is converted to HSV color space model The histogram distribution of all Essential colour of component.
The maximum two kinds of Essential colour of Essential colour accounting are counted according to histogram distribution, the specific quantity for obtaining Essential colour is not Uniquely, the quantity of selection is more, and corresponding judgement is more complicated, and judging result is more acurrate.Whether judge the maximum Essential colour of accounting For it is black, white, grey any one, when the maximum Essential colour of accounting be it is black, white, grey any one when, then according to preset Essential colour and The maximum two kinds of Essential colour of accounting determine the dominant hue to setting module.Specific steps are as follows: when the maximum Essential colour of accounting be it is black, It is white, grey any one when, then judge whether the accounting value of the Essential colour of accounting second is greater than corresponding setting threshold value, if accounting The accounting value of two Essential colour is greater than corresponding setting threshold value, then the corresponding mass-tone to setting module is adjusted to colourless;If accounting The accounting value of two Essential colour is less than or equal to corresponding setting threshold value, then using the Essential colour of accounting second as corresponding to typesetting The dominant hue of component;When the maximum two kinds of Essential colour of accounting are all black, white, grey any two kinds, the corresponding master to setting module Tone is colourless.
When the maximum Essential colour of accounting be not it is black, white, grey any one when, according to the maximum Essential colour of accounting and specific base True qualities determine the corresponding dominant hue to setting module.Specific steps are as follows: when the maximum Essential colour of accounting is orange or yellow, then Judge whether the accounting value of the Essential colour of accounting most two is greater than corresponding setting threshold value, when the accounting value of the Essential colour of accounting second When greater than corresponding setting threshold value, using the maximum Essential colour of accounting as the corresponding dominant hue to setting module, when accounting second Essential colour accounting value be less than or equal to corresponding setting threshold value when, correspondence to setting module mass-tone be adjusted to it is colourless;When accounting for It is true according to the accounting value of the maximum Essential colour of accounting and corresponding preset threshold when than maximum Essential colour not being orange or yellow The fixed corresponding dominant hue to setting module.
The maximum Essential colour of accounting be not it is black, white, grey any one, and the maximum Essential colour of accounting is also to be orange or yellow When color, then it is respectively the maximum Essential colour setting threshold value of remaining accounting and is prestored, when the accounting of the maximum Essential colour of accounting When value is greater than preset threshold, then using the maximum Essential colour of accounting as the dominant hue to setting module, when remaining accounting is maximum When the accounting value of Essential colour is less than or equal to preset threshold, then it is adjusted to the mass-tone of setting module colourless.With the maximum base of accounting True qualities are that purple judges whether the accounting value of the maximum Essential colour purple of accounting is greater than preset threshold c for preset threshold is c, When purple accounting value is greater than preset threshold c, then it is adjusted to purple to the mass-tone of setting module, when purple accounting value is less than or equal to When preset threshold c, the mass-tone to setting module is adjusted to colourless.
In one embodiment, as shown in figure 8, providing a kind of hue evaluation device, including the first read module 100, Obtain module 200, the first comparison module 300 and determining module 400.
First read module 100 is for reading to setting module.
Module 200 is obtained for obtaining to the Essential colour in setting module.
First comparison module 300 is relatively more basic for obtaining to the maximum at least one Essential colour of accounting in setting module The relationship of color and default Essential colour and/or specific Essential colour.
Determining module 400 is used for the relationship according to Essential colour and default Essential colour and/or specific Essential colour, determines to typesetting The dominant hue of component.
Above-mentioned hue evaluation device is obtained to the Essential colour in setting module, is obtained wait arrange by reading to setting module The maximum at least one Essential colour of accounting in version component compares the Essential colour got and default Essential colour and/or specific basic The relationship of color determines the dominant hue to setting module according to the relationship of Essential colour and default Essential colour and/or specific Essential colour. By the evaluable tone to setting module of the determining dominant hue to setting module, hue evaluation convenience is improved.
In one embodiment, as shown in figure 9, the first comparison module 300 further includes the second acquisition module 320, first sentences Disconnected module 340, the first output module 360 and the second comparison module 380.
Second acquisition module 320 is used to obtain to the basic of the Essential colour of accounting first in setting module and accounting second Color.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the Two Essential colour, compare to the Essential colour of the Essential colour of accounting first and accounting second in setting module and default Essential colour and/ Or the relationship of specific Essential colour, the dominant hue to setting module is determined according to comparison result.
First judgment module 340 is used to judge whether the Essential colour of accounting first and the Essential colour of accounting second to be respectively spy Determine one of Essential colour.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, judge accounting first Essential colour and accounting second Essential colour whether be respectively specific Essential colour in one Kind, the dominant hue to setting module is determined according to judging result.
First output module 360 is for exporting without tone.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, judge accounting first Essential colour and accounting second Essential colour whether be respectively specific Essential colour in one Kind, the dominant hue to setting module is determined according to judging result.When the Essential colour of accounting first and the Essential colour point of accounting second Not Wei one of specific Essential colour when, export without tone.
Second comparison module 380 is used to compare again the Essential colour and default Essential colour and/or specific basic of accounting first Color.
According to obtaining to the Essential colour in setting module, obtain to the Essential colour of accounting first in setting module and accounting the After two Essential colour, judge accounting first Essential colour and accounting second Essential colour whether be respectively specific Essential colour in one Kind, the dominant hue to setting module is determined according to judging result.When accounting first Essential colour and accounting second Essential colour not When being one of default Essential colour respectively, then compare the Essential colour and default Essential colour and/or specific base of accounting first again True qualities.
In one embodiment, as shown in Figure 10, the second comparison module 380 is exported including the second judgment module 382, second Module 384 and third comparison module 386.
Second judgment module 382 is used to judge whether the Essential colour of accounting first to be one of default Essential colour.
When the Essential colour of the Essential colour of accounting first and accounting second is not one of default Essential colour respectively, judgement Whether the Essential colour of accounting first is the one kind for presetting Essential colour, determines the dominant hue to setting module according to judging result.
If the second output module 384 is one of default Essential colour for the Essential colour of accounting first, for accounting the First threshold is arranged in two Essential colour, and judges whether the Essential colour of accounting second is greater than first threshold, if so, output is colourless It adjusts, if it is not, then exporting the Essential colour that mass-tone is adjusted to accounting second.
When the Essential colour of the Essential colour of accounting first and accounting second is not one of default Essential colour respectively, judgement Whether the Essential colour of accounting first is the one kind for presetting Essential colour.If the Essential colour of accounting first is one in default Essential colour Kind, then first threshold is set for the Essential colour of accounting second, and judge whether the Essential colour of accounting second is greater than first threshold, if It is that then output is without tone, if it is not, then exporting the Essential colour that mass-tone is adjusted to accounting second.
If third comparison module 386 is not one of default Essential colour for the Essential colour of accounting first, compares and account for Than first Essential colour and specific Essential colour.
When the Essential colour of the Essential colour of accounting first and accounting second is not one of default Essential colour respectively, judgement Whether the Essential colour of accounting first is the one kind for presetting Essential colour.If the Essential colour of accounting first is not one in default Essential colour Kind, then compare the Essential colour and specific Essential colour of accounting first.
In one embodiment, as shown in figure 11, third comparison module 386 includes third judgment module 381, third output Module 383, the 4th comparison module 385.
Third judgment module 381 is for judging whether the Essential colour of accounting first is specific Essential colour.
When the Essential colour of the Essential colour of accounting first and accounting second is not one of default Essential colour respectively, judgement Whether the Essential colour of accounting first is the one kind for presetting Essential colour.If the Essential colour of accounting first is not one in default Essential colour Kind, then compare the Essential colour and specific Essential colour of accounting first, that is, judge whether the Essential colour of accounting first is specific Essential colour, The dominant hue to setting module is determined according to judging result.
If Essential colour of the third output module 383 for accounting first is specific Essential colour, for the basic of accounting second Second threshold is arranged in color, and judges whether the Essential colour of accounting second is greater than second threshold, if so, export without tone, if it is not, Then export the Essential colour that mass-tone is adjusted to accounting first.
If the Essential colour of accounting first is not one of default Essential colour, judge accounting first Essential colour whether be Second threshold is arranged if the Essential colour of accounting first is specific Essential colour for the Essential colour of accounting second in specific Essential colour, and Judge whether the accounting value of the Essential colour of accounting second is greater than second threshold, if so, exporting without tone, if it is not, then exporting master Tone is the Essential colour of accounting first.
If Essential colour of the 4th comparison module 385 for accounting first is not specific Essential colour, for the maximum base of accounting Third threshold value is arranged in true qualities, and compares the maximum Essential colour of accounting and third threshold value.
If the Essential colour of accounting first is not one of default Essential colour, judge accounting first Essential colour whether be Third threshold value is arranged if the Essential colour of accounting first is not specific Essential colour for the maximum Essential colour of accounting in specific Essential colour, And compare the accounting value and third threshold value of the maximum Essential colour of accounting.
In one embodiment, as shown in figure 12, the 4th comparison module 385 includes that the 4th judgment module 387 and the 4th is defeated Module 388 out.
4th judgment module 387 is for judging whether the Essential colour of accounting first is greater than third threshold value.
If the Essential colour of accounting first is not one of default Essential colour, judge accounting first Essential colour whether be Third threshold value is arranged if the Essential colour of accounting first is not specific Essential colour for the maximum Essential colour of accounting in specific Essential colour, And judge whether the accounting value of the Essential colour of accounting first is greater than third threshold value.
4th output module 388 is for exporting the Essential colour that mass-tone is adjusted to accounting first.
If the Essential colour of accounting first is not one of default Essential colour, judge accounting first Essential colour whether be Third threshold value is arranged if the Essential colour of accounting first is not specific Essential colour for the maximum Essential colour of accounting in specific Essential colour, And judge whether the accounting value of the Essential colour of accounting first is greater than third threshold value, when the accounting value of the Essential colour of accounting first is greater than When third threshold value, then the Essential colour that mass-tone is adjusted to accounting first is exported.
In one embodiment, as shown in figure 13, obtaining module 200 includes Zoom module 210, obfuscation module 220, color Space conversion module 230, computing module 240 and Essential colour module 250.
Zoom module 210 is for zooming in and out processing to setting module to reading.
Read to setting module size, not of uniform size, will be converted to setting module by scaling processing convenient for processing Size and size.
Obfuscation module 220 is used to that Fuzzy Processing will to be carried out to setting module after scaling processing.
Become the effect far and to become faster to simulate object in human eye vision, needs to carry out mould to setting module to after scaling Paste processing.
Color space conversion module 230 is used to carry out color space conversion to setting module to after Fuzzy Processing.
During determining the dominant hue to setting module, it is distributed using all tones of statistics with histogram image, and Statistics with histogram be HSV model information, it is therefore desirable to will after image noise reduction to setting module carry out HSV color space turn It changes, obtains HSV model.
Computing module 240 is used to calculate the histogram distribution to Essential colour in setting module.
What histogram distribution reflected is the distribution of all tones of image, generates the process that histogram is a statistics, according to The value range divided rank in each channel in HSV model, and then count the pixel of some grade.It can be counted by HSV model Calculate the histogram distribution to all Essential colour of setting module
Essential colour module 250 is used to obtain Essential colour according to histogram distribution.
It is calculated after the histogram distribution of all Essential colour of setting module by HSV model, it can be directly from histogram distribution In obtain the Essential colour to setting module
, and the process that histogram is a statistics is generated, it can more accurate, intuitively be obtained to typesetting group by histogram The Essential colour of part.
In one embodiment, as shown in figure 14, a kind of intelligent composition method is provided, comprising:
Step S510 is read to setting module.
It include the image that picture, video etc. can carry out typesetting to setting module.In one embodiment, it is reading to typesetting Further include the steps that judging whether to setting module be blank after component, that is, after reading to setting module, when to typesetting group When part is blank, then handles without next step, when setting module is not blank, then image is further processed.
Step S520 carries out image procossing to setting module to reading, obtains Essential colour.
Image procossing is carried out to setting module to reading, is calculated to setting module Essential colour.Essential colour
For indicating the colouring information to setting module, in one embodiment, Essential colour include: it is black, white, grey, red, It is orange, yellow, green, green, blue, purple.It combs to obtain the Essential colour to setting module by image, can be believed according to the color to setting module Breath carries out typesetting, improves the accuracy of intelligent typesetting.
Step S530 determines the dominant hue to setting module according to Essential colour.
By being carried out after image procossing obtains Essential colour to reading after setting module, according to the Essential colour to setting module Determine the corresponding dominant hue to setting module.In one embodiment, the corresponding dominant hue of each Essential colour can be set in the algorithm Numerical value are as follows: black 1;White is 2;Grey is 3;Red is 4;Orange is 5;Yellow is 6;Green is 7;Cyan is 8;Blue is 9;Purple is 10;No dominant hue is 0.Specifically, by taking Essential colour is red as an example, when carrying out figure to setting module to what is read After processing, when to obtain corresponding Essential colour be red, then corresponding to the dominant hue numerical value of setting module is 4.
Step S540 treats setting module according to dominant hue and carries out typesetting.
After obtaining Essential colour determination to the dominant hue of setting module by image procossing, typesetting group is treated according to dominant hue Part carries out typesetting.Specific type-setting mode is not unique, and user can be configured according to actual needs.In one embodiment, The dominant hue of settable every a line component is identical, then carries out typesetting to every a line component.
In one embodiment, as shown in figure 15, a kind of intelligent composition method is provided, comprising:
Step S610 is read to setting module.
It include the image that picture, video etc. can carry out typesetting to setting module.In one embodiment, it is reading to typesetting Further include the steps that judging whether to setting module be blank after component, that is, after reading to setting module, when to typesetting group When part is blank, then handles without next step, when setting module is not blank, then image is further processed.
Step S620 carries out image procossing to setting module to reading, obtains sum of the grayscale values Essential colour.
Image procossing is carried out to setting module to reading, calculates the sum of the grayscale values Essential colour to setting module.If to Setting module is grayscale image, then the gray value of each pixel of direct accumulated image, and seeks the average gray value of image, will be put down Equal gray value is as entirely to the gray value of setting module, to indicate the bright dark degree to setting module;If being to setting module Color image, then after color image being converted to grayscale image, then the gray value of each pixel of accumulated image, and seek image Average gray value, using average gray value as entirely to the gray value of setting module.By cumulative to each pixel of setting module The gray value of point, and the average gray value finally to seek is as the gray value to setting module whole image, it can be accurate Ground calculates the bright dark degree to setting module, further increases the accuracy of intelligent typesetting.Gray value is used to describe to typesetting The bright dark degree of component, in one embodiment, intensity value ranges are 0~255,0 expression black, and 255 indicate white;Essential colour For indicating the colouring information to setting module, in one embodiment, Essential colour include: it is black, white, grey, red, orange, yellow, green, It is green, blue, purple.The sum of the grayscale values Essential colour to setting module is obtained by image procossing, it can be according to the bright dark journey to setting module Degree and colouring information carry out typesetting, and the accuracy of intelligent typesetting can be improved.
In one embodiment, if reading is color image to setting module, color image is converted into grayscale image tool Body is that color image is converted to grayscale image by integer shifting algorithm.Integer shifting algorithm be in practical applications avoid it is low A kind of common method of fast floating-point operation.Specifically, such as the formula of calculating gray value should are as follows: Gray=R*0.299+G* 0.587+B*0.114, the coefficient in formula is all decimal, indicates decimal using floating type in a computer, but floating type Data calculate a large amount of occupancy cpu resources and speed is very slow.So using the method reduced after first amplifying coefficient.In computer In, shifting function accords with quickly, and moves to left n and be equivalent to the n times side multiplied by 2, and moves to right the n n times being then equivalent to divided by 2 Side.The displacement of so-called integer will each coefficient first multiplied by 2 n times side, after move to right n.For example above-mentioned formula becomes multiplied by 128 Gary=(R*38+G*75+B*15) > > 7, the fractional part that wherein multiplication occurs rounds up, and by the decimal of previous coefficient Partial stack is to the latter coefficient.
Step S630 determines the brightness to setting module according to gray value.
By carrying out image procossing to setting module to reading, after obtaining sum of the grayscale values Essential colour, gray value is used to retouch The bright dark degree to setting module is stated, the brightness to setting module can be determined according to gray value.
Step S640 determines the dominant hue to setting module according to Essential colour.
It after obtaining sum of the grayscale values Essential colour can be according to Essential colour by carrying out image procossing to setting module to reading Determine the dominant hue to setting module.
Step S650 treats setting module according to brightness and/or dominant hue and carries out typesetting.
After obtaining Essential colour determination to the dominant hue of setting module by image procossing, according to brightness and/or dominant hue It treats setting module and carries out typesetting, specific type-setting mode is not unique, and user can be configured according to actual needs.At one In embodiment, setting module is treated according to dominant hue and is sorted out, and according to corresponding grey scale value to after classification to setting module It is ranked up.As shown in figure 16, the dominant hue of settable every a line component is identical, in the Y direction gradually with dominant hue corresponding grade Incremental mode is ranked up, and then with same dominant hue, the mode that gray value is gradually incremented by sorts X-direction.
In one embodiment, as shown in figure 17, a kind of intelligent composing device is provided, including the second read module 50, Processing module 60, dominant hue determining module 70 and type-setting module 80.
Second read module 50 is for reading to setting module.
Processing module 60 is used to carry out graphics process to setting module, obtains gray value and/or Essential colour.
Dominant hue determining module 70 is used to determine the dominant hue to setting module according to gray value and/or Essential colour.
Type-setting module 80, which is used to treat setting module according to dominant hue, carries out typesetting.
Above-mentioned intelligence typesetting method and apparatus carry out image to setting module to reading by reading to setting module Processing, obtains gray value and/or Essential colour, determines the corresponding dominant hue to setting module further according to gray value and/or Essential colour, Setting module is finally treated according to dominant hue and carries out typesetting.By determining the corresponding dominant hue to setting module, according to typesetting The dominant hue of component treats setting module and carries out typesetting, to realize the intelligent typesetting for treating setting module, avoids manual typesetting It takes considerable time, improves operation ease.
In one embodiment, a kind of computer equipment is provided, which can be terminal.The computer is set Standby includes processor and memory, and memory is stored with computer program, when computer program is executed by processor, may make place Manage the step of device executes above-mentioned intelligent composition method.
In one embodiment, a kind of computer readable storage medium is provided, the computer-readable recording medium storage There is computer program, when computer program is executed by processor, the step of may make processor to execute above-mentioned intelligent composition method.
Above-mentioned computer equipment and computer readable storage medium are by reading to setting module, to reading to typesetting group Part carries out image procossing, obtains gray value and/or Essential colour, determines further according to gray value and/or Essential colour corresponding to typesetting group The dominant hue of part finally treats setting module according to dominant hue and carries out typesetting.By determining the corresponding dominant hue to setting module, Typesetting can will be carried out to setting module according to the dominant hue to setting module, thus realize the intelligent typesetting for treating setting module, It avoids manual typesetting from taking considerable time, improves operation ease.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (13)

1. a kind of hue evaluation method, which comprises the following steps:
It reads to setting module;
It obtains to the Essential colour in setting module;
It obtains described to the maximum at least one Essential colour of accounting in setting module, the Essential colour and default Essential colour And/or the relationship of specific Essential colour;
According to the relationship of the Essential colour and default Essential colour and/or specific Essential colour, the mass-tone to setting module is determined It adjusts.
2. intelligence composition method according to claim 1, which is characterized in that the default Essential colour includes black, white At least one of with grey.
3. it is according to claim 1 intelligence composition method, which is characterized in that the specific Essential colour include it is orange and/or Yellow.
4. hue evaluation method according to claim 1, which is characterized in that accounting in setting module described in the acquisition Maximum at least one Essential colour, the Essential colour include: with default Essential colour and/or specific Essential colour
It obtains described to the Essential colour of accounting first in setting module and the Essential colour of accounting second;
Whether the Essential colour of the Essential colour and accounting second that judge accounting first is respectively in the default Essential colour One kind;
If so, output is without tone;
If it is not, then comparing the Essential colour and the default Essential colour and/or the specific Essential colour of accounting first again.
5. hue evaluation method according to claim 4, which is characterized in that the base for comparing accounting first again True qualities include: with the default Essential colour and/or the specific Essential colour
Whether the Essential colour for judging accounting first is one of described default Essential colour;
If the Essential colour of accounting first is one of described default Essential colour, set for the Essential colour of accounting second First threshold is set, and judges whether the Essential colour of accounting second is greater than the first threshold, if so, export without tone, If it is not, then exporting the Essential colour that the mass-tone is adjusted to accounting second;
If the Essential colour of accounting first is not one of described default Essential colour, compare the described basic of accounting first Color and the specific Essential colour.
6. hue evaluation method according to claim 5, which is characterized in that the Essential colour of the relatively accounting first Include: with the specific Essential colour
Whether the Essential colour for judging accounting first is the specific Essential colour;
If the Essential colour of accounting first is the specific Essential colour, second threshold is set for the Essential colour of accounting second, And judge whether the Essential colour of the accounting second is greater than the second threshold, if so, exporting without tone, if it is not, then exporting The mass-tone is adjusted to the Essential colour of the accounting first;
If the Essential colour of accounting first is not the specific Essential colour, third threshold is set for accounting maximum Essential colour Value, and the maximum Essential colour of the accounting and the third threshold value.
7. hue evaluation method according to claim 6, which is characterized in that the maximum Essential colour of accounting Include: with the third threshold value
Judge whether the Essential colour of accounting first is greater than the third threshold value;
If so, exporting the Essential colour that the mass-tone is adjusted to the accounting first.
8. hue evaluation method according to claim 1, which is characterized in that obtain to the Essential colour packet in setting module It includes:
Processing is zoomed in and out to setting module to reading;
Fuzzy Processing will be carried out to setting module after scaling processing;
Color space conversion is carried out to setting module to after Fuzzy Processing;
Calculate the histogram distribution to Essential colour in setting module;
Essential colour is obtained according to the histogram distribution.
9. a kind of intelligence composition method characterized by comprising
It reads to setting module;
Image procossing is carried out to setting module to reading, obtains Essential colour;
The dominant hue to setting module is determined according to the Essential colour;
Setting module, which is treated, according to the dominant hue carries out typesetting.
10. a kind of intelligence composition method characterized by comprising
It reads to setting module;
Image procossing is carried out to setting module to reading, obtains sum of the grayscale values Essential colour;
The brightness to setting module is determined according to the gray value;
The dominant hue to setting module is determined according to the Essential colour;
Setting module, which is treated, according to the brightness and/or the dominant hue carries out typesetting.
11. a kind of intelligence composing device characterized by comprising
Read module, for reading to setting module;
Processing module carries out graphics process to setting module for described, obtains gray value and/or Essential colour;
Dominant hue determining module, for determining the dominant hue to setting module according to the gray value and/or Essential colour;
Type-setting module, for carrying out typesetting to setting module to described according to the dominant hue.
12. a kind of computer equipment, including processor and memory, the memory are stored with computer program, feature exists In when the computer program is executed by the processor, so that the processor perform claim requires any one of 1 to 10 institute The step of stating method.
13. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located When managing device execution, so that the step of processor perform claim requires any one of 1 to 10 the method.
CN201810083828.6A 2018-01-29 2018-01-29 Hue evaluation method, intelligent typesetting method and apparatus, computer equipment Pending CN110097614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810083828.6A CN110097614A (en) 2018-01-29 2018-01-29 Hue evaluation method, intelligent typesetting method and apparatus, computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810083828.6A CN110097614A (en) 2018-01-29 2018-01-29 Hue evaluation method, intelligent typesetting method and apparatus, computer equipment

Publications (1)

Publication Number Publication Date
CN110097614A true CN110097614A (en) 2019-08-06

Family

ID=67442519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810083828.6A Pending CN110097614A (en) 2018-01-29 2018-01-29 Hue evaluation method, intelligent typesetting method and apparatus, computer equipment

Country Status (1)

Country Link
CN (1) CN110097614A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020140981A1 (en) * 2001-03-29 2002-10-03 Fumito Takemoto Method, apparatus and recording medium for setting backround image
CN103645894A (en) * 2013-11-29 2014-03-19 华为技术有限公司 Application program icon displaying and processing method and device
CN105389403A (en) * 2015-12-29 2016-03-09 东软集团股份有限公司 Automatic matching method and system of page style
CN105549928A (en) * 2015-12-02 2016-05-04 广州阿里巴巴文学信息技术有限公司 Color matching method and device of display content

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020140981A1 (en) * 2001-03-29 2002-10-03 Fumito Takemoto Method, apparatus and recording medium for setting backround image
CN103645894A (en) * 2013-11-29 2014-03-19 华为技术有限公司 Application program icon displaying and processing method and device
CN105549928A (en) * 2015-12-02 2016-05-04 广州阿里巴巴文学信息技术有限公司 Color matching method and device of display content
CN105389403A (en) * 2015-12-29 2016-03-09 东软集团股份有限公司 Automatic matching method and system of page style

Similar Documents

Publication Publication Date Title
US7394468B2 (en) Converted digital colour image with improved colour distinction for colour-blinds
US7657090B2 (en) Region detecting method and region detecting apparatus
US7212668B1 (en) Digital image processing system and method for emphasizing a main subject of an image
AU2002336660B2 (en) User definable image reference points
US8035871B2 (en) Determining target luminance value of an image using predicted noise amount
JP4104783B2 (en) Digital color copier and background noise removal method
US20100208946A1 (en) Specifying flesh area on image
JP2007534179A (en) Adjusting the brightness of digital images
CN112767392B (en) Image definition determining method, device, equipment and storage medium
US20040057613A1 (en) Pseudo three dimensional image generating apparatus
US7593590B2 (en) Image status estimating method, image correcting method, image correction apparatus, and storage medium
CN113301409B (en) Video synthesis method and device, electronic equipment and readable storage medium
JP2012073605A (en) Image processing device, image processing method, and program
CN108564558A (en) Wide dynamic images processing method, device, equipment and storage medium
US10348932B2 (en) Image processing apparatus, method of controlling the same, and non-transitory computer-readable storage medium that decrease the lightness of pixels, except for a highlight region, based on a generated lightness histogram
US11178311B2 (en) Context aware color reduction
CN111862040A (en) Portrait picture quality evaluation method, device, equipment and storage medium
CN110097614A (en) Hue evaluation method, intelligent typesetting method and apparatus, computer equipment
JP2004246618A (en) Method, device, and program for generating image used for collating in pattern recognition and pattern recognition using the image
JP2003051004A (en) System and method for selecting image processing path by utilizing estimated appearance of noise
JP2001222683A (en) Method and device for processing picture, device and method for recognizing character and storage medium
US20130208321A1 (en) Image processing device executing halftone process by using determined parameter
CN114445447A (en) Image segmentation method, device, equipment and medium
JP2000032287A (en) Image processor and image processing method
CN112950556B (en) Image reality evaluation method, device, system and computer readable storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190806

RJ01 Rejection of invention patent application after publication