Movatterモバイル変換


[0]ホーム

URL:


CN109448093A - A kind of style image generation method and device - Google Patents

A kind of style image generation method and device
Download PDF

Info

Publication number
CN109448093A
CN109448093ACN201811248987.3ACN201811248987ACN109448093ACN 109448093 ACN109448093 ACN 109448093ACN 201811248987 ACN201811248987 ACN 201811248987ACN 109448093 ACN109448093 ACN 109448093A
Authority
CN
China
Prior art keywords
image
kinds
article
point
birds
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
CN201811248987.3A
Other languages
Chinese (zh)
Other versions
CN109448093B (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 IncfiledCriticalGuangdong Intellect Cloud Picture Polytron Technologies Inc
Priority to CN201811248987.3ApriorityCriticalpatent/CN109448093B/en
Publication of CN109448093ApublicationCriticalpatent/CN109448093A/en
Application grantedgrantedCritical
Publication of CN109448093BpublicationCriticalpatent/CN109448093B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention discloses a kind of style image generation method and devices, and described method includes following steps: step S1 establishes the article identification model of people or all kinds of birds, the face recognition model of animal and various objects;Step S2 obtains image to be processed, utilizes established face recognition model and article identification model, identifies to the facial and each human subject article of the people or all kinds of birds, animal that include in image;Step S3 finds out adjacent nearest point and establishes line according to the facial key point of extraction or the characteristic point of article;Step S4, low polygon style image can be processed the image into through the invention automatically by carrying out color filling to the image each region for establishing line.

Description

A kind of style image generation method and device
Technical field
The present invention relates to technical field of image processing, raw more particularly to a kind of low polygon (Low Poly) style imageAt method and device.
Background technique
Low Poly (is also low polygon, bottom surface modeling style), and original is the term in 3D modeling, is referred to using relatively fewerPoint-line-surface come the low accuracy model that makes, the model in general network game belongs to low mould.And it is present, Low Poly is progressed intoPlanar design field, after flattening (Flat Design), the long shade (Long Shadow), low polygon (LowPoly a new design agitation) has been started at top speed, is as shown in Figure 1 a kind of Low Poly Style Design image, is by veryMostly small geometry figure combines and is formed a kind of image of abstract style.
Currently, this style image has much in the method that design field is realized, such as made using level design softwareMake, or is realized by 3D modeling mode.Which kind of however, whether implementation method, the drawing basic training of designer is wantedAsk all high, designer not only needs preferable hand drawing and to structure, the whole assurance ability of light and shade color, being capable of basisThe structure of image, light and shade color draw node and color are taken to fill, and also require the software of designer to grasp using the implementation of modelingIt is very skilled to make ability, meanwhile, above method design process is all more troublesome, and operating process is cumbersome, implements quite time-consumingArduously, meanwhile, the low polygon style image effect of generation is also undesirable.
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 style image generation methodsAnd device, polygon is established to carry out line according to adjacent characteristic point, according to the color value for the pixel that each polygon includesColor is taken to be filled each polygon, to realize the mesh for processing the image into low polygon (Low Poly) style image automatically's.
In view of the above and other objects, the present invention proposes a kind of style image generation method, include the following steps:
Step S1 establishes the article identification model of people or all kinds of birds, the face recognition model of animal and various objects;
Step S2 obtains image to be processed, established face recognition model and article identification model is utilized, in imageThe facial and each human subject article of the people for including or all kinds of birds, animal identifies;
Step S3 finds out adjacent nearest point and establishes company according to the facial key point of extraction or the characteristic point of articleLine;
Step S4 carries out color filling to the image each region for establishing line.
Preferably, crucial by the face for establishing key point and various birds, animal based on human face in step S1Point establishes the face recognition model.
Preferably, the face recognition model foundation process is as follows:
Sample image is obtained, the facial key point of people or all kinds of birds, animal in the sample image of acquisition are markedNote, and record the coordinate position of facial key point;
The sample image inputted is handled according to the coordinate information of the facial key point of label, and by treatedSample image is sent into the crucial point prediction network of training in advance, obtains key point prediction result;
The key point prediction result is adjusted, the mark of the facial key point of people or all kinds of birds, animal is obtainedPoint;
The face recognition model is established according to the facial key point of acquisition.
Preferably, in step S1, the establishment process of the article identification model is as follows:
By the mass picture of all kinds of articles of search engine collecting, pre-processed;
From by pre-processing in all kinds of item pictures, according to different types of article, correspond to close using all kinds of article spacesColor, texture, pattern, shape, the transparency arrangement situation feature of degree, extract the feature vector of certain dimension;
By recognition training repeatedly, it is stored in file from standard form is extracted in each sorting articles of training set, thusEstablish the article identification model of corresponding all kinds of articles.
Preferably, the step of feature vector for extracting certain dimension is that images of items is divided into M*N grid zoneDomain, calculates points in each grid and the ratio between article is always counted, to obtain M*N dimensional feature vector.
Preferably, in step S2, image to be processed is obtained, compares the face recognition model pre-established and article identificationModel identifies facial, each human subject article of the people or all kinds of birds, animal that include in image;If recognizing imageIn the facial area comprising people or all kinds of birds, animal, then according to each face for including in face recognition model extraction facial areaPortion's key point;If recognizing all kinds of articles for including in image, profile, the side of each article are extracted according to article identification modelThe characteristic points such as edge, corner.
Preferably, in step S3, when carrying out line, it is ensured that every line does not intersect when establishing with other lines.
Preferably, in step S4, each pixel color of each tie region is determined, obtaining each region respectively includesAll pixels point HSB value, the HSB value for taking color point most is filled the region.
Preferably, in step S4, each pixel color of each tie region is determined, obtaining each region respectively includesAll pixels point HSB value, take the dominant hue HSB average value in each region to the area filling.
In order to achieve the above objectives, the present invention also provides a kind of style image generating means, comprising:
Identification model establishes unit, for establishing the face recognition model and various objects of people or all kinds of birds, animalArticle identification model;
Recognition unit utilizes established face recognition model and article identification model for obtaining image to be processed, rightThe facial and each human subject article of the people for including in image or all kinds of birds, animal identifies;
Characteristic point line unit, for according to the facial key point of extraction or the characteristic point of article, find out it is adjacent mostClose point establishes line;
Color filling unit, for carrying out color filling to the image each region for establishing line.
Compared with prior art, a kind of style image generation method of the present invention and device are connected according to adjacent characteristic pointLine establishes polygon, and the color value for the pixel for including according to each polygon takes color to be filled each polygon, thus realShow the purpose for processing the image into low polygon (Low Poly) style image automatically, solves the drafting of designer's hand-drawingThe problem of node, the long-time for taking color, coloring in many and diverse operation, saved design time, and do not need designer grasp it is higherDrawing and software operate basic grounding in basic skills, so that it may reach and realize effect well.
Detailed description of the invention
Fig. 1 is the image schematic diagram of low polygon (Low Poly) Style Design;
Fig. 2 is a kind of step flow chart of style image generation method of the present invention;
Fig. 3 is a kind of system architecture diagram of style image generating means of the present 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 canUnderstand further advantage and effect of the invention easily by content disclosed in the present specification.The present invention can also pass through other differencesSpecific example implemented or applied, details in this specification can also be based on different perspectives and applications, without departing substantially fromVarious modifications and change are carried out under spirit of the invention.
Fig. 2 is a kind of step flow chart of style image generation method of the present invention.As shown in Fig. 2, a kind of style of the present inventionImage generating method includes the following steps:
Step S1 establishes the article identification model of people or all kinds of birds, the face recognition model of animal and various objects.
In general, the face structure of people, birds, animal etc. and face form families are respectively provided with respective significant spySign, the present invention is by study and constantly correction, respectively according to people, all kinds of birds, the eyebrow of animal face, eyes, canthus, noseStructure, the profile combination feature of the face face such as son, nostril, mouth, lip, cheekbone and each component part, finding out can embodyIt people or all kinds of birds, the facial assemblage characteristic of animal and projects under external environment influence in various light, each angle offset of faceWhen, stable facial key point, based on face each key point establish face recognition model.Therefore, it is embodied in the present inventionIn example, for face recognition model, the facial key point by establishing 72 points and various birds, animal based on human face is builtFacade portion identification model.Specifically, the face recognition model foundation process is as follows:
Sample image is obtained, hand is carried out to the facial key point of people or all kinds of birds, animal in the sample image of acquisitionDynamic label, and record the coordinate position of key point;
The sample image inputted is handled according to the facial key point coordinate information of label, which includes but notIt is limited to the transformation such as the sample image of input to be cut out, scale and rotated, and sample image is sent into instruction in advance by treatedExperienced crucial point prediction network obtains key point prediction result;
The key point prediction result is adjusted, the mark of the facial key point of people or all kinds of birds, animal is obtainedPoint.Adjustment mentioned here can adjust key point prediction result by manually dragging the movements such as mouse, keep its more acurrate, butInvention is not limited thereto;
The face recognition model of people or all kinds of birds, animal are established according to the facial key point of acquisition.
In the specific embodiment of the invention, for article identification model, establishment process is as follows:
By the mass picture of all kinds of articles of search engine collecting, pre-processed;
From by pre-processing in all kinds of item pictures, according to different types of article, correspond to close using all kinds of article spacesThe arrangement situation feature such as color, texture, pattern, shape, transparency of degree, extracts the feature vector of certain dimension, specifically,Images of items can be divided into M*N grid spaces, points in each grid are calculated and the ratio between article is always counted, to obtain M*NDimensional feature vector;
By recognition training repeatedly, it is stored in file from standard form is extracted in each sorting articles of training set, thusEstablish the identification model of corresponding all kinds of articles.
Step S2 obtains image to be processed, established face recognition model and article identification model is utilized, in imageThe facial and each human subject article of the people for including or all kinds of birds, animal identifies.Specifically, being obtained in step S2Image to be processed is taken, the face recognition model pre-established and article identification model are compared, to the people that includes in image or all kinds ofBirds, animal facial, each human subject article identified: such as recognize the face in image comprising people or all kinds of birds, animalPortion region, then according to each facial key point for including in face recognition model extraction facial area;It such as recognizes in image and includesAll kinds of articles, then the characteristic points such as the profile, edge, corner of each article are extracted according to article identification model.
Step S3 finds out adjacent nearest point and establishes company according to the facial key point of extraction or the characteristic point of articleLine, and ensure that every line does not intersect when establishing with other lines, i.e., it cannot cross existing line and establish between two o'clockLine.
Step S4 carries out color filling to the image each region for establishing line.
In an embodiment of the present invention, it in step S4, determines each pixel color of each tie region, obtains respectivelyH (Hues, form and aspect) S (Saturation, the saturation degree) B (brightness, brightness) for all pixels point that each region includesValue, the HSB value for taking color point most are filled the region.I.e. according to color point quantity trace, the HSB color on vertex is takenValue.
In an alternative embodiment of the invention, it in step S4, determines each pixel color of each tie region, obtains respectivelyThe all pixels point for taking each region to include H (Hues, form and aspect) S (Saturation, saturation degree) B (brightness, it is brightDegree) value, it takes the dominant hue HSB average value in each region to the area filling, that is, extracts the HSB color value of each point in each region,The color mean value in the region is obtained after calculating separately out the average value of H, S, B.
Fig. 3 is a kind of system architecture diagram of style image generating means of the present invention.As shown in figure 3, a kind of style of the present inventionVideo generation device, comprising:
Identification model establishes unit 301, establishes face recognition model and various objects for people or all kinds of birds, animalArticle identification model.
In general, the face structure of people, birds, animal etc. and face form families are respectively provided with respective significant spySign, the present invention is by study and constantly correction, respectively according to people, all kinds of birds, the eyebrow of animal face, eyes, canthus, noseStructure, the profile combination feature of the face face such as son, nostril, mouth, lip, cheekbone and each component part, finding out can embodyIt people or all kinds of birds, the facial assemblage characteristic of animal and projects under external environment influence in various light, each angle offset of faceWhen, stable facial key point, based on face each key point establish face recognition model.Therefore, it is embodied in the present inventionIn example, identification model establishes unit 301 and passes through the facial key point of 72 points and various birds, animal of the foundation based on human faceEstablish face recognition model.Specifically, the identification model establish unit 301 face recognition model foundation process it is as follows:
Sample image is obtained, hand is carried out to the facial key point of people or all kinds of birds, animal in the sample image of acquisitionDynamic label, and record the coordinate position of key point;
The sample image inputted is handled according to the facial key point coordinate information of label, which includes but notIt is limited to the transformation such as the sample image of input to be cut out, scale and rotated, and sample image is sent into instruction in advance by treatedExperienced crucial point prediction network obtains key point prediction result;
The key point prediction result is adjusted, the mark of the facial key point of people or all kinds of birds, animal is obtainedPoint.Adjustment mentioned here can adjust key point prediction result by manually dragging the movements such as mouse, keep its more acurrate, butInvention is not limited thereto.
In the specific embodiment of the invention, the identification model establishes the article identification model establishment process of unit 301 such asUnder:
By the mass picture of all kinds of articles of search engine collecting, pre-processed;
From by pre-processing in all kinds of item pictures, according to different types of article, correspond to close using all kinds of article spacesThe arrangement situation feature such as color, texture, pattern, shape, transparency of degree, extracts the feature vector of certain dimension, specifically,Images of items can be divided into M*N grid spaces, points in each grid are calculated and the ratio between article is always counted, to obtain M*NDimensional feature vector;
By recognition training repeatedly, it is stored in file from standard form is extracted in each sorting articles of training set, thusEstablish the identification model of corresponding all kinds of articles.
Recognition unit 302 utilizes established face recognition model and article identification mould for obtaining image to be processedType identifies the facial and each human subject article of the people or all kinds of birds, animal that include in image.Specifically, knowingOther unit 302 obtains image to be processed first, the face recognition model pre-established and article identification model is compared, in imageFacial, each human subject article for the human or animal for including identifies: such as recognizing in image comprising people or all kinds of birds, animalFacial area, then according to each facial key point for including in face recognition model extraction facial area;Such as recognize in imageAll kinds of articles for including then extract the characteristic points such as the profile, edge, corner of each article according to article identification model.
Characteristic point line unit 303, for finding out adjacent according to the facial key point of extraction or the characteristic point of articleNearest point establishes line, and ensures that every line does not intersect when establishing with other lines, i.e., cannot cross existing lineEstablish the line between two o'clock.
Color filling unit 304, for carrying out color filling to the image each region for establishing line.
In an embodiment of the present invention, for the color filling in each region, color filling unit 304 determines each company firstEach pixel color in line region obtains H (Hues, the form and aspect) S for all pixels point that each region includes respectively(Saturation, saturation degree) B (brightness, brightness) value, the HSB value for taking color point most are filled the region.I.e. according to color point quantity trace, the HSB color value on vertex is taken.
In an alternative embodiment of the invention, for the color filling in each region, color filling unit 304 determines each firstEach pixel color of tie region obtains H (Hues, the form and aspect) S for all pixels point that each region includes respectively(Saturation, saturation degree) B (brightness, brightness) value, takes the dominant hue HSB average value in each region to fill out the regionIt fills, that is, extracts the HSB color value of each point in each region, obtain the color in the region after calculating separately out the average value of H, S, BMean value.
In conclusion a kind of style image generation method of the present invention and device carry out line foundation according to adjacent characteristic pointPolygon, and the color value for the pixel for including according to each polygon takes color to be filled each polygon, to realize certainlyThe dynamic purpose for processing the image into low polygon (Low Poly) style image, solve designer's hand-drawing draw node,Take color, many and diverse operation of the long-time that colors in the problem of, saved design time, and do not need designer grasp higher drawing andSoftware operates basic grounding in basic skills, so that it may reach and realize effect well.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.AnyWithout 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)

CN201811248987.3A2018-10-252018-10-25Method and device for generating style imageActiveCN109448093B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811248987.3ACN109448093B (en)2018-10-252018-10-25Method and device for generating style image

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811248987.3ACN109448093B (en)2018-10-252018-10-25Method and device for generating style image

Publications (2)

Publication NumberPublication Date
CN109448093Atrue CN109448093A (en)2019-03-08
CN109448093B CN109448093B (en)2023-01-06

Family

ID=65547856

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811248987.3AActiveCN109448093B (en)2018-10-252018-10-25Method and device for generating style image

Country Status (1)

CountryLink
CN (1)CN109448093B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110414470A (en)*2019-08-052019-11-05深圳市矽赫科技有限公司Visiting method based on Terahertz and visible light
CN111222519A (en)*2020-01-162020-06-02西北大学 Model construction, method and device for extracting line draft of layered painted cultural relics
CN112818146A (en)*2021-01-262021-05-18山西三友和智慧信息技术股份有限公司Recommendation method based on product image style

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2006323877A (en)*1995-06-162006-11-30Seiko Epson Corp Face image processing method and face image processing apparatus
CN101360246A (en)*2008-09-092009-02-04西南交通大学 Video error concealment method combined with 3D face model
CN103914699A (en)*2014-04-172014-07-09厦门美图网科技有限公司Automatic lip gloss image enhancement method based on color space
KR20160068516A (en)*2014-12-052016-06-15연세대학교 산학협력단Apparatus and Method of portrait image processing for style synthesis
WO2018032630A1 (en)*2016-08-192018-02-22上海葡萄纬度科技有限公司Teaching toy kit and method for identifying programming module by using color and counter
CN107730573A (en)*2017-09-222018-02-23西安交通大学A kind of personal portrait cartoon style generation method of feature based extraction

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2006323877A (en)*1995-06-162006-11-30Seiko Epson Corp Face image processing method and face image processing apparatus
CN101360246A (en)*2008-09-092009-02-04西南交通大学 Video error concealment method combined with 3D face model
CN103914699A (en)*2014-04-172014-07-09厦门美图网科技有限公司Automatic lip gloss image enhancement method based on color space
KR20160068516A (en)*2014-12-052016-06-15연세대학교 산학협력단Apparatus and Method of portrait image processing for style synthesis
WO2018032630A1 (en)*2016-08-192018-02-22上海葡萄纬度科技有限公司Teaching toy kit and method for identifying programming module by using color and counter
CN107730573A (en)*2017-09-222018-02-23西安交通大学A kind of personal portrait cartoon style generation method of feature based extraction

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110414470A (en)*2019-08-052019-11-05深圳市矽赫科技有限公司Visiting method based on Terahertz and visible light
CN111222519A (en)*2020-01-162020-06-02西北大学 Model construction, method and device for extracting line draft of layered painted cultural relics
CN111222519B (en)*2020-01-162023-03-24西北大学Construction method, method and device of hierarchical colored drawing manuscript line extraction model
CN112818146A (en)*2021-01-262021-05-18山西三友和智慧信息技术股份有限公司Recommendation method based on product image style

Also Published As

Publication numberPublication date
CN109448093B (en)2023-01-06

Similar Documents

PublicationPublication DateTitle
JP7526412B2 (en) Method for training a parameter estimation model, apparatus for training a parameter estimation model, device and storage medium
CN103914699B (en)A kind of method of the image enhaucament of the automatic lip gloss based on color space
CN105354876B (en)A kind of real-time volume fitting method based on mobile terminal
CN101371274B (en) Edge Comparison in Segmentation of Video Sequences
CN105427385B (en)A kind of high-fidelity face three-dimensional rebuilding method based on multilayer deformation model
TWI396143B (en)Method and system for picture segmentation and method for image matting of a picture
CN106709931B (en)Method for mapping facial makeup to face and facial makeup mapping device
KR20200027030A (en) Facial Expression Synthesis Methods and Devices, Electronic Devices, and Storage Media
US20180357819A1 (en)Method for generating a set of annotated images
US10540568B2 (en)System and method for coarse-to-fine video object segmentation and re-composition
KR20140033088A (en)Generation of avatar reflecting player appearance
CN108537239A (en)A kind of method of saliency target detection
CN106920277A (en)Simulation beauty and shaping effect visualizes the method and system of online scope of freedom carving
CN101371273A (en) Segmentation of Video Sequences
JP2010507854A (en) Method and apparatus for virtual simulation of video image sequence
CN108694719A (en)image output method and device
CN110544300B (en)Method for automatically generating three-dimensional model based on two-dimensional hand-drawn image characteristics
CN109712223A (en)A kind of threedimensional model automatic colouring method based on textures synthesis
CN109215091B (en)Clothing fashion color automatic extraction method based on graph representation
CN109448093A (en)A kind of style image generation method and device
CN105869217A (en)Virtual method for trying on clothes by real person
CN103295219B (en)Method and device for segmenting image
CN109166172B (en)Clothing model construction method and device, server and storage medium
CN107610239A (en)The virtual try-in method and device of a kind of types of facial makeup in Beijing operas
WO2013160663A2 (en)A system and method for image analysis

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp