CN109859284A - A kind of drawing realization method and system based on dot - Google Patents

A kind of drawing realization method and system based on dot Download PDF

Info

Publication number
CN109859284A
CN109859284A CN201910007066.6A CN201910007066A CN109859284A CN 109859284 A CN109859284 A CN 109859284A CN 201910007066 A CN201910007066 A CN 201910007066A CN 109859284 A CN109859284 A CN 109859284A
Authority
CN
China
Prior art keywords
color
dot
drawing image
image
target
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
CN201910007066.6A
Other languages
Chinese (zh)
Other versions
CN109859284B (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.)
Guangdong Intellect Cloud Picture Polytron Technologies Inc
Original Assignee
Guangdong Intellect Cloud Picture Polytron Technologies Inc
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 Guangdong Intellect Cloud Picture Polytron Technologies Inc filed Critical Guangdong Intellect Cloud Picture Polytron Technologies Inc
Priority to CN201910007066.6A priority Critical patent/CN109859284B/en
Publication of CN109859284A publication Critical patent/CN109859284A/en
Application granted granted Critical
Publication of CN109859284B publication Critical patent/CN109859284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The drawing realization method and system based on dot that the invention discloses a kind of extracts the N kind dominant hue color of the drawing image this method comprises: step S1, obtains current drawing image;The color of each pixel of the drawing image is successively substituted for the dominant hue color most like with it by step S2;The drawing image is divided into multiple dots by step S3, primarily determines each dot color;Step S4 successively selects a dot as target dot, judges that whether adjacent thereto target dot dot color be identical, is finely adjusted to color identical target circle point;Step S5, the image after output fine tuning is as final drawing image, by means of the invention it is possible to simplify electronic painting step, optimizes electronic painting effect, electronic painting effect is made more to meet user demand.

Description

A kind of drawing realization method and system based on dot
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of drawing implementation method based on dot and are System.
Background technique
With the continuous development of social economy and science and technology, human living standard is continuously improved, to Substances and spirit requirement It is higher and higher.In order to improve life & amusement and meet human demand, various amusement and recreation projects are come into being.
Amusement and recreation are referred in non-labour and are realized that body and mind is adjusted and put in the non-working time in a manner of various " objects for appreciation " Pine, reach life health care, physical efficiency recovery, body and mind pleasure purpose a kind of free life, display form mainly has: drawing, photography, Tourism, sing and dance etc..Wherein, drawing collect delicate observation ability, imaginal thinking capability, high efficient memory power, creative imagination power, Abundant ability to express is favored in one by numerous people.
Drawing is that one kind copies naturally art manually in two-dimensional plane.Traditional drawing teaching and study In field, it is paintbrush used by universal, takes colour disk and drawing board, what is carried out is the drawing of entity, since drawing needs instead Multiple practice many times, it will cause the maximum marble paper of quantity, paintbrush and the consumption for taking colour disk.This does not obviously meet energy conservation and subtracts The society need of row virtually causes the high cost of drawing study, affects the enthusiasm that people learn to paint and is therefore Allow drawing education to become vivid and interesting, using electronic product, such as mobile phone, plate, computer, electronic drawing board etc. paint by Gradually become the new development trend of drawing industry.
Consider the ease of use and different drawing techniques levels of user, market electronic painting product is in rich and varied Property, however and its paint realization principle it is roughly the same, it may be assumed that user need in display screen on create blank drawing board, selection drawing Classification, setting paintbrush parameter (such as color, thickness, brush shape and transparency), could paint, step is considerably complicated numerous It is trivial, wherein the thickness of paintbrush also will affect the whole profile construction of drawing, and the collocation of color also will affect the whole vision of drawing Effect, and user is needed to have art foundation knowledge;In addition, painting effect is only shown with lines, lack creative, it is difficult to swash Hair family enthusiasm and interest.
Summary of the invention
In order to overcome the deficiencies of the above existing technologies, purpose of the present invention is to provide a kind of image border recognition methods And system, electronic painting step can be simplified, optimize electronic painting effect, electronic painting effect is made more to meet user demand.
In view of the above and other objects, the present invention proposes a kind of drawing implementation method based on dot, include the following steps:
Step S1 obtains current drawing image, extracts the N kind dominant hue color of the drawing image;
The color of each pixel of the drawing image is successively substituted for the dominant hue color most like with it by step S2;
The drawing image is divided into multiple dots by step S3, primarily determines each dot color;
Step S4 successively selects a dot as target dot, judges target dot dot face whether adjacent thereto Color is identical, is finely adjusted to color identical target circle point;
Step S5, the image after output fine tuning is as final drawing image.
Preferably, step S1 further comprises:
Step S100 obtains the drawing image;
The drawing image is divided into several color lumps, and is ranked up according to color lump size by step S101;
Step S102 extracts dominant hue of the N kind color forward in sequence as the drawing image.
Preferably, the value range of N is [20,50].
Preferably, in step S101, the drawing image is divided by several color lumps based on color cluster method.
Preferably, step S2 further comprises:
Step S200 calculates the face of each color of each pixel color of the drawing image and extracted dominant hue one by one Color difference value;
Step S201 obtains the most like mass-tone of each pixel color of the drawing image according to the color difference value of acquisition Color is adjusted, and each pixel color is replaced with and its most similar dominant hue color.
Preferably, step S3 further comprises:
The drawing image is divided into the dot of multiple specified pixel sizes by step S300;
Step S301 statisticallys analyze the color and each distribution of color quantity of pixel contained by each dot, by distribution of color Color of the most color of quantity as the dot.
Preferably, step S4 further comprises:
Step S400 chooses a target dot, judges that whether adjacent thereto target dot dot color be identical;
Tone value belonging to the target dot color and intensity value are then finely adjusted by step S401 if they are the same, and S402 is entered step, if it is different, being then directly entered step S402;
Step S402, selects next adjacent dot, and return step S400 continue to compare until all adjacent dots all Compare and finishes;
Step S403, using next dot of the target dot as target dot, return step S400, until the last one Dot.
Preferably, the fine tuning is that the target dot current affiliated tone value and intensity value are reduced at random A certain threshold values makes target dot color be different from its adjacent dot color.
Preferably, the threshold range of the tone value reduction is [5 °, 10 °], and the threshold range of intensity value reduction is [0.1,0.5]。
In order to achieve the above objectives, the present invention also provides a kind of drawing of dot to realize system, comprising:
Dominant hue extraction unit extracts the dominant hue of the drawing image for obtaining current drawing image;
Color replacement unit, for the color of each pixel of the drawing image to be successively substituted for the master most like with it Tonal color;
Dot divides and color determination unit for the drawing image to be divided into multiple dots primarily determines each circle Point color;
Fine-adjusting unit judges whether the target dot is adjacent thereto for successively selecting a dot as target dot Dot color is identical, is finely adjusted to color identical target circle point;
Output unit, for exporting the image after finely tuning as final drawing image.
Compared with prior art, a kind of drawing realization method and system based on dot of the present invention is by obtaining current draw Image extracts the N kind dominant hue color of the drawing image, successively by the color of each pixel of the drawing image be substituted for Its most like dominant hue color, and the drawing image is divided into multiple dots, primarily determines each dot color, finally according to It is secondary to select a dot as target dot, judge that whether adjacent thereto target dot dot color be identical, it is identical to color Target circle point be finely adjusted, realize simplified electronic painting step, optimize the purpose of electronic painting effect, so that electronic painting Effect more meets user demand.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the drawing implementation method based on dot of the present invention;
Fig. 2 is a kind of system architecture diagram of the drawing realization system based on dot of the present invention;
Fig. 3 is the detail structure chart of dominant hue extraction unit in the specific embodiment of the invention;
Fig. 4 is the detail structure chart of color replacement unit in the specific embodiment of the invention;
Fig. 5 is the detail structure chart of the division of specific embodiment of the invention orbicular spot and color determination unit;
Fig. 6 is the detail structure chart of fine-adjusting unit in the specific embodiment of the invention;
Fig. 7 is the flow chart of the drawing implementation method based on dot in the specific embodiment of the invention.
Specific embodiment
Below by way of specific specific example and embodiments of the present invention are described with reference to the drawings, those skilled in the art can Understand further advantage and effect of the invention easily by content disclosed in the present specification.The present invention can also pass through other differences Specific example implemented or applied, details in this specification can also be based on different perspectives and applications, without departing substantially from Various modifications and change are carried out under spirit of the invention.
Fig. 1 is a kind of step flow chart of the drawing implementation method based on dot of the present invention.As shown in Figure 1, the present invention one Drawing implementation method of the kind based on dot, includes the following steps:
Step S1 obtains current drawing image, extracts the dominant hue of the drawing image.
Specifically, step S1 further comprises:
Step S100 obtains drawing image after Image Rendering.
In the specific embodiment of the invention, user is before drawing without carrying out drawing classification selection, paintbrush parameter setting etc. Drawing setting only need to carry out random clicking operation in the screen of terminal device.After the completion of painting production, then system obtains The image that user is drawn, the terminal can be the daily mobile phone generally used of user, plate, drawing boards, touching screen etc. and set It is standby.The pictorial image is RGB pattern color image, is made of M × N number of pixel.
The drawing image is divided into several color lumps, and is ranked up according to color lump size by step S101.Specifically The drawing image can be divided into multiple color lumps by color cluster method after obtaining the drawing image by ground, and according to The descending sequence of color lump area.Color cluster is a kind of aggregation to color data, is that similar color data is polymerized to one Class, cluster are a kind of unsupervised mode classifications, the advantage is that and do not need preparatory training process, and more commonly used at present is poly- Class mode has a K-means, mixed Gauss model (Gaussian Mixture Models, GMM) etc., the present invention not as Limit,.
Step S102 extracts dominant hue of the N kind color forward in sequence as the drawing image.Wherein, N is to mention The color category quantity taken, the present invention is not limited to specific values, can define according to actual needs, and the general value range of N is [20,50]。
Step S2 successively compares each color of each pixel color of the drawing image and extracted dominant hue, The color of each pixel of the drawing image is substituted for the dominant hue color most like with it respectively according to comparison result.
Specifically, step S2 further comprises:
Step S200, the one by one colour-difference of each color of each pixel color of calculating and plotting image and extracted dominant hue Different value.That is, after obtaining the dominant hue of N kind color of the drawing image according to step S1, by the drawing image The color of each pixel carries out the calculating of color difference value with each color of the N kind dominant hue one by one, specifically, using such as hypostome Color ratio calculates formula the color difference value of the two:
Wherein, r1, g1, b1 represent the rgb value of dominant hue a certain kind color, and r, g, b represent certain picture of the drawing image The rgb value of vegetarian refreshments color.
Step S201 obtains the most like mass-tone of each pixel color of the drawing image according to the color difference value of acquisition Color is adjusted, and each pixel color is replaced with into its most similar dominant hue color.It is described most like to refer to color difference It is worth the smallest.
For example, its face is calculated separately to first pixel of the first row first row of the drawing image first The color difference value of each color of color and N kind dominant hue color selects color difference value the smallest in all colours difference value That dominant hue color, and the color of first pixel is replaced with into the dominant hue color, then to second pixel point Similar processing is carried out, until all pixels point of the drawing image is disposed.
The drawing image is divided into multiple dots by step S3, primarily determines each dot color.In the present invention, described Dot not refers to a point, but includes a zonule of several pixels.Specifically, step S3 further comprises:
The drawing image is divided into the dot of multiple specified pixel sizes by step S300.
It is compared according to each pixel color based on drawing image of step S2 with each color of dominant hue, at this time draws this Imaged each pixel color is substituted for the dominant hue color most like with it respectively, then, according to from left to right, on to Lower sequence divides the image into the dot of multiple specified pixel sizes, such as dot size includes 5 × 5 pixels.
Step S301 statisticallys analyze the color and each distribution of color quantity of pixel contained by each dot, by distribution of color Color of the most color of quantity as the dot, to primarily determine the color of each dot of the drawing image.
For example, the pixel size of certain dot is 5 × 5pixel in the drawing image, pixel number contained by the dot is then It is 5 × 5=25, statisticallys analyze the color and each distribution of color quantity of above-mentioned 25 pixels, 25 pictures of statistical analysis It is as follows to obtain each distribution of color quantity result for the color of vegetarian refreshments: the rgb value of 3 pixels is [255,250,250], 8 pixels The rgb value of point is [102,139,139], the rgb value of 10 pixels is [255,228,255], the rgb value of 4 pixels is [192,255,62], color of the color for selecting distribution of color quantity most as the dot, then the dot color primarily determines It is [255,228,255].
Step S4 successively selects a dot as target dot, judges target dot dot face whether adjacent thereto Color is identical, is finely adjusted to color identical target circle point.
In order to enhance image visual effect, highlight image outline, also by step S4 adjacent dot identical to color into The fine tuning of row color.Specifically, step S4 further comprises:
Step S400 judges whether a target dot is identical as an adjacent dot color.In the specific embodiment of the invention, First according to from left to right, from top to bottom sequence, using the first dot of drawing image as target, judge the target dot and one Whether the color of adjacent dot is identical.Since the color of each dot having been determined according to step S3, then can be easy to compare It is whether identical compared with the color of two dots.
Tone value belonging to the target dot color and intensity value are then finely adjusted by step S401 if they are the same, and S402 is entered step, if it is different, being then directly entered step S402;
Step S402, selects next adjacent dot, and return step S400 continue to compare until all adjacent dots all Compare and finish, the color of the target dot is all different with its all adjacent dot color at this time.That is, a target circle Point have multiple adjacent dots (be up to 8), need to by the target dot dot adjacent thereto, successively color compares, simply by the presence of Color is identical, then the fine tuning target dot color, until target dot dot color adjacent thereto is all different, then the mesh Mark dot is disposed i.e.: so that target dot color must dot (most 8) color adjacent thereto be different from;
Step S403, using next dot of the target dot as target dot, return step S400, until the last one Dot.That is, when target dot color dot color adjacent thereto is all different, then under the target dot As target dot, the color for continuing to compare its dot adjacent thereto compares one dot, when the last one target dot of image Color judgement finish, then the image dot color fine tuning terminate.In the specific embodiment of the invention, the target dot it is next A dot can be the adjacent dot in right (that is: the latter dot of current goal dot) of current goal dot, belong to current One of adjacent dot of target dot, but the present invention is also possible to adjacent dot in lower section of current goal dot etc. not to be limited.
The fine tuning is then that target dot current affiliated tone value and intensity value are reduced a certain valve at random Value makes target dot color be different from its adjacent dot color;Wherein, it is [5 °, 10 °], intensity value that tone value, which reduces range, Reducing range is [0.1,0.5], and the adjacent dot is respectively distributed to thereon centered on target dot current location The dot of side, upper left side, left, lower left, lower section, lower right, right, this 8 relative positions of upper right side.
According to the above method, finished until the last one dot color judgement of the drawing image.
Step S5, the image after output fine tuning is as final drawing image.
At this point, the color based on target dot dot adjacent thereto judges, target identical with adjacent dot color The fine tuning of dot color finishes, and above-mentioned dot image is then fed back to user by terminal, achievees the purpose that paint based on dot, Improve painting effect.
Fig. 2 is a kind of system architecture diagram of the drawing realization system based on dot of the present invention.As shown in Fig. 2, the present invention one Drawing of the kind based on dot realizes system, comprising:
Dominant hue extraction unit 20 extracts the dominant hue of the drawing image for obtaining current drawing image.
Specifically, as shown in figure 3, dominant hue extraction unit 20 further comprises:
Image acquisition unit 201, for obtaining drawing image after Image Rendering.
In the specific embodiment of the invention, user is before drawing without carrying out drawing classification selection, paintbrush parameter setting etc. Drawing setting only need to carry out random clicking operation in the screen of terminal device.After the completion of painting production, then system obtains The image that user is drawn, the terminal can be the daily mobile phone generally used of user, plate, drawing boards, touching screen etc. and set It is standby.The pictorial image is RGB pattern color image, is made of M × N number of pixel.
Image block unit 202, for the drawing image to be divided into several color lumps, and according to color lump size into Row sequence.Specifically, after obtaining the drawing image, the drawing image can be divided by color cluster method multiple Color lump, and according to the descending sequence of color lump area.
Extraction unit 203, for extracting dominant hue of the N kind color forward in sequence as the drawing image.Its In, N is the color category quantity extracted, and the present invention is not limited to specific values, can define according to actual needs, the general value of N Range is [20,50].
Color replacement unit 21, for successively by each pixel color of the drawing image and extracted dominant hue Each color compares, and the color of each pixel of the drawing image is substituted for the mass-tone most like with it respectively according to comparison result Adjust color.
Specifically, as shown in figure 4, color replacement unit 21 further comprises:
Color difference value computing unit 211, for each pixel color of calculating and plotting image one by one and extracted mass-tone The color difference value for each color adjusted.That is, when the N kind face for obtaining the drawing image according to dominant hue extraction unit 20 After the dominant hue of color, the color of each pixel of the drawing image is subjected to colour-difference with each color of the N kind dominant hue one by one Different value calculates.
Replacement unit 212 obtains each pixel color most phase of the drawing image for the color difference value according to acquisition As dominant hue color, and each pixel color is replaced with into its most similar dominant hue color.Described most like refers to Color difference value is the smallest.
For example, its face is calculated separately to first pixel of the first row first row of the drawing image first The color difference value of each color of color and N kind dominant hue color selects color difference value the smallest in all colours difference value That dominant hue color, and the color of first pixel is replaced with into the dominant hue color, then to second pixel point Similar processing is carried out, until all pixels point of the drawing image is disposed.
Dot divides and color determination unit 22 for the drawing image to be divided into multiple dots primarily determines each circle Point color.In the present invention, the dot not refers to a point, but includes a zonule of several pixels.Tool Body, as shown in figure 5, dot divides and color determination unit 22 further comprises:
Dot division unit 220, for the drawing image to be divided into the dot of multiple specified pixel sizes.
Each pixel color of the drawing image has been substituted for and its most phase respectively at this time according to color replacement unit 21 As dominant hue color, dot division unit 220 is then multiple specified according to sequentially dividing the image into from left to right, from top to bottom The dot of pixel size, such as dot size include 5 × 5 pixels.
Color Statistical determination unit 221, for statisticalling analyze the color and each distribution of color of pixel contained by each dot Quantity, using the most color of distribution of color quantity as the color of the dot, to primarily determine each dot of the drawing image Color.
For example, the pixel size of certain dot is 5 × 5pixel in the drawing image, pixel number contained by the dot is then It is 5 × 5=25, statisticallys analyze the color and each distribution of color quantity of above-mentioned 25 pixels, 25 pictures of statistical analysis It is as follows to obtain each distribution of color quantity result for the color of vegetarian refreshments: the rgb value of 3 pixels is [255,250,250], 8 pixels The rgb value of point is [102,139,139], the rgb value of 10 pixels is [255,228,255], the rgb value of 4 pixels is [192,255,62], color of the color for selecting distribution of color quantity most as the dot, then the dot color primarily determines It is [255,228,255].
Fine-adjusting unit 23, for successively selecting a dot as target dot, judge the target dot whether with its phase Adjacent dot color is identical, is finely adjusted to color identical target circle point.
In order to enhance image visual effect, image outline is highlighted, is also needed identical to color adjacent by fine-adjusting unit 23 Dot carries out color fine tuning.Specifically, as shown in fig. 6, fine-adjusting unit 23 further comprises:
Color judging unit 230, for judging that whether adjacent with one target dot dot color be identical.In the present invention In specific embodiment, sequence judges to be somebody's turn to do basis using the first dot of drawing image as target from left to right, from top to bottom first Whether the color of target dot dot adjacent with one is identical.Due to being had been determined according to dot division and color determination unit 22 The color of each dot, therefore whether the color that then can easily compare two dots is identical.
Judge processing unit 231, in judging result be it is identical when, by tone value belonging to the target dot color with And intensity value is finely adjusted, and starts next adjacent dot selecting unit 232, when judging result is different, is then directly opened Move next adjacent dot selecting unit 232;
Next adjacent dot selecting unit 232, for selecting next adjacent dot, and returns to color judging unit 230 Continue to compare current goal dot it is whether identical as the adjacent dot color until all adjacent dots all compared with finish, Yu Suoyou Adjacent dot all compares when finishing, and the color of the target dot is all different with its all adjacent dot color at this time.Namely It says, a target dot has multiple adjacent dots (be up to 8), need to be by the target dot dot adjacent thereto successively color Compare, then fine tuning target dot color identical simply by the presence of color, until target dot dot color adjacent thereto not phase With until, then the target dot is disposed i.e.: so that a target dot color must dot (most 8) face adjacent thereto Color is different from;
Target dot replaces unit 233, for using next dot of the target dot as target dot, and return step Color judging unit 230, until the last one dot.That is, working as target dot color dot color adjacent thereto When being all different, then using next dot of the target dot as target dot, continue the face for comparing its dot adjacent thereto Color ratio is compared with when the color judgement of image the last one target dot finishes, then image dot color fine tuning terminates.In the present invention In specific embodiment, next dot of the target dot can be the adjacent dot in right (that is: the current mesh of current goal dot Mark the latter dot of dot), belong to one of adjacent dot of current goal dot, but the present invention is also possible to not to be limited Adjacent dot in the lower section of current goal dot etc.
The fine tuning is then that target dot current affiliated tone value and intensity value are reduced a certain valve at random Value makes target dot color be different from its adjacent dot color;Wherein, it is [5 °, 10 °], intensity value that hue value, which reduces range, Reducing range is [0.1,0.5], and the adjacent dot is respectively distributed to thereon centered on target dot current location The dot of side, upper left side, left, lower left, lower section, lower right, right, this 8 relative positions of upper right side.
Output unit 24, for exporting the image after finely tuning as final drawing image.
At this point, the color based on target dot dot adjacent thereto judges, target identical with adjacent dot color The fine tuning of dot color finishes, and then above-mentioned dot image is fed back to user by terminal by output unit, is reached and is drawn based on dot The purpose of picture, improves painting effect.
Fig. 7 is the flow chart of the drawing implementation method based on dot in the specific embodiment of the invention.Specifically, process is such as Under:
Step 1, user uploads pictorial image by terminal, and system receives image;
Step 2, by color cluster method, multiple color lumps are divided the image into, and are sorted according to color lump size, the row of extraction The forward N kind color of sequence, as image dominant hue, then each pixel color of image one by one with each color ratio of dominant hue It is right, the corresponding most like dominant hue color of each pixel of image is respectively obtained, and be substituted into corresponding pixel points;
Step 3, according to the dot for sequentially dividing the image into multiple specified pixel sizes from left to right, from top to bottom, such as: 5 × 5pixel statisticallys analyze the color and distributed quantity of pixel contained by each dot, and the most color of distributed quantity is made For affiliated dot color, each dot color of image is primarily determined.
Step 4, according to said sequence, using the first dot of image as target, system judges the dot and adjacent dot color It is whether identical;
Step 5, if they are the same, then tone value belonging to the dot color and intensity value are finely adjusted, if not identical, Using the next dot of the dot as target, and judge whether it is identical as adjacent dot color;And so on, until image most The judgement of the latter dot color finishes;
Step 6, the dot image that fine tuning finishes is fed back to user by terminal, achievees the effect that dot is painted.
In conclusion a kind of drawing realization method and system based on dot of the present invention, which passes through, obtains current drawing image, The color of each pixel of the drawing image, is successively substituted for it most by the N kind dominant hue color for extracting the drawing image Similar dominant hue color, and the drawing image is divided into multiple dots, it primarily determines each dot color, finally successively selects A dot is selected as target dot, judges that whether adjacent thereto target dot dot color be identical, mesh identical to color Mark dot is finely adjusted, and realizes simplified electronic painting step, optimizes the purpose of electronic painting effect, so that electronic painting effect More meet user demand.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.Any Without departing from the spirit and scope of the present invention, modifications and changes are made to the above embodiments by field technical staff.Therefore, The scope of the present invention, should be as listed in the claims.

Claims (10)

1. a kind of drawing implementation method based on dot, includes the following steps:
Step S1 obtains current drawing image, extracts the N kind dominant hue color of the drawing image;
The color of each pixel of the drawing image is successively substituted for the dominant hue color most like with it by step S2;
The drawing image is divided into multiple dots by step S3, primarily determines each dot color;
Step S4 successively selects a dot as target dot, judges target dot dot color phase whether adjacent thereto Together, color identical target circle point is finely adjusted;
Step S5, the image after output fine tuning is as final drawing image.
2. a kind of drawing implementation method based on dot as described in claim 1, which is characterized in that step S1 is further wrapped It includes:
Step S100 obtains the drawing image;
The drawing image is divided into several color lumps, and is ranked up according to color lump size by step S101;
Step S102 extracts dominant hue of the N kind color forward in sequence as the drawing image.
3. a kind of drawing implementation method based on dot as claimed in claim 2, it is characterised in that: the value range of N is [20,50]。
4. a kind of drawing implementation method based on dot as claimed in claim 2, it is characterised in that: in step S101, base The drawing image is divided into several color lumps in color cluster method.
5. a kind of drawing implementation method based on dot as described in claim 1, which is characterized in that step S2 is further wrapped It includes:
Step S200 calculates the colour-difference of each color of each pixel color of the drawing image and extracted dominant hue one by one Different value;
Step S201 obtains the most like dominant hue face of each pixel color of the drawing image according to the color difference value of acquisition Color, and each pixel color is replaced with and its most similar dominant hue color.
6. a kind of drawing implementation method based on dot as described in claim 1, which is characterized in that step S3 is further wrapped It includes:
The drawing image is divided into the dot of multiple specified pixel sizes by step S300;
Step S301 statisticallys analyze the color and each distribution of color quantity of pixel contained by each dot, by distribution of color quantity Color of most colors as the dot.
7. a kind of drawing implementation method based on dot as described in claim 1, which is characterized in that step S4 is further wrapped It includes:
Step S400 chooses a target dot, judges that whether adjacent thereto target dot dot color be identical;
Tone value belonging to the target dot color and intensity value are then finely adjusted, and enter by step S401 if they are the same Step S402, if it is different, being then directly entered step S402;
Step S402 selects next adjacent dot, and return step S400 continues to compare until all adjacent dots all compare It finishes;
Step S403, using next dot of the target dot as target dot, return step S400, until the last one circle Point.
8. a kind of drawing implementation method based on dot as claimed in claim 7, it is characterised in that: the fine tuning is described in Tone value and intensity value belonging to target dot is current reduce a certain threshold values at random, and target dot color is made to be different from it Adjacent dot color.
9. a kind of drawing implementation method based on dot as claimed in claim 8, it is characterised in that: what the tone value was reduced Threshold range is [5 °, 10 °], and the threshold range of intensity value reduction is [0.1,0.5].
10. a kind of drawing of dot realizes system, comprising:
Dominant hue extraction unit extracts the dominant hue of the drawing image for obtaining current drawing image;
Color replacement unit, for the color of each pixel of the drawing image to be successively substituted for the dominant hue most like with it Color;
Dot divides and color determination unit for the drawing image to be divided into multiple dots primarily determines each dot face Color;
Fine-adjusting unit judges target dot dot whether adjacent thereto for successively selecting a dot as target dot Color is identical, is finely adjusted to color identical target circle point;
Output unit, for exporting the image after finely tuning as final drawing image.
CN201910007066.6A 2019-01-04 2019-01-04 Dot-based drawing implementation method and system Active CN109859284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910007066.6A CN109859284B (en) 2019-01-04 2019-01-04 Dot-based drawing implementation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910007066.6A CN109859284B (en) 2019-01-04 2019-01-04 Dot-based drawing implementation method and system

Publications (2)

Publication Number Publication Date
CN109859284A true CN109859284A (en) 2019-06-07
CN109859284B CN109859284B (en) 2023-04-18

Family

ID=66893884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910007066.6A Active CN109859284B (en) 2019-01-04 2019-01-04 Dot-based drawing implementation method and system

Country Status (1)

Country Link
CN (1) CN109859284B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110349239A (en) * 2019-07-05 2019-10-18 厦门大学 The dot method for drafting that characteristics of image is kept
CN111062993A (en) * 2019-12-12 2020-04-24 广东智媒云图科技股份有限公司 Color-merged drawing image processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004274689A (en) * 2003-03-10 2004-09-30 Kenichi Ueda Similar picture drawing system
JP2014043084A (en) * 2012-08-28 2014-03-13 Ricoh Co Ltd Image processing method, image processor, and program
CN104574307A (en) * 2014-12-30 2015-04-29 北京科技大学 Method for extracting primary colors of painting work image
CN108986181A (en) * 2018-06-15 2018-12-11 广东数相智能科技有限公司 Image processing method, device and computer readable storage medium based on dot

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004274689A (en) * 2003-03-10 2004-09-30 Kenichi Ueda Similar picture drawing system
JP2014043084A (en) * 2012-08-28 2014-03-13 Ricoh Co Ltd Image processing method, image processor, and program
CN104574307A (en) * 2014-12-30 2015-04-29 北京科技大学 Method for extracting primary colors of painting work image
CN108986181A (en) * 2018-06-15 2018-12-11 广东数相智能科技有限公司 Image processing method, device and computer readable storage medium based on dot

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
余丽娟等: ""改进区域划分的圆 Packing 变分算法"", 《计算机辅助设计与图形学学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110349239A (en) * 2019-07-05 2019-10-18 厦门大学 The dot method for drafting that characteristics of image is kept
CN111062993A (en) * 2019-12-12 2020-04-24 广东智媒云图科技股份有限公司 Color-merged drawing image processing method, device, equipment and storage medium
CN111062993B (en) * 2019-12-12 2023-09-26 广东智媒云图科技股份有限公司 Color combined painting image processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN109859284B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
CN105719327B (en) A kind of artistic style image processing method
CN106778788B (en) The multiple features fusion method of aesthetic evaluation is carried out to image
CN106652025B (en) A kind of three-dimensional face modeling method and printing equipment based on video flowing Yu face multi-attribute Matching
CN110378985B (en) Animation drawing auxiliary creation method based on GAN
CN101779218B (en) Makeup simulation system, makeup simulation apparatus, makeup simulation method, and makeup simulation program
CN101324961B (en) Human face portion three-dimensional picture pasting method in computer virtual world
CN107845072B (en) Image generating method, device, storage medium and terminal device
US9449253B2 (en) Learning painting styles for painterly rendering
CN101706780A (en) Image semantic retrieving method based on visual attention model
JP2010507854A (en) Method and apparatus for virtual simulation of video image sequence
CN105787974A (en) Establishment method for establishing bionic human facial aging model
Wang et al. Towards photo watercolorization with artistic verisimilitude
CN109147023A (en) Three-dimensional special efficacy generation method, device and electronic equipment based on face
CN109859284A (en) A kind of drawing realization method and system based on dot
CN110097616A (en) A kind of joint drawing method, device, terminal device and readable storage medium storing program for executing
CN108364207A (en) A kind of facial skin care product and skin care proposal recommending method
JP2021077365A (en) Using convolutional neural network-style transfer to automate graphic design creation
Zhang et al. Inkthetics: a comprehensive computational model for aesthetic evaluation of Chinese ink paintings
CN108334589A (en) A kind of facial skin care product recommendation method
Zhao et al. Research on the application of computer image processing technology in painting creation
CN108805095A (en) image processing method, device, mobile terminal and computer readable storage medium
CN109558851A (en) A kind of joint picture-drawing method and system based on facial expression
CN106340024B (en) A kind of image partition method, application and calculate equipment
Lee et al. Emotion-inspired painterly rendering
CN103198469A (en) Image processing apparatus and image processing method

Legal Events

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