Method and device for generating pencil drawing style image

A pencil drawing and image technology, applied in the field of image processing, can solve the problems of time-consuming design, unable to meet automatic generation, and pencil drawing is not universal, and achieves the effect of small amount of calculation, full integration of cartoon interest, and improved processing speed.

Inactive Publication Date: 2016-08-24
深圳深讯和科技有限公司
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The model-based non-photorealistic rendering generation method needs to model the scene and interact with people to generate it, and requires certain painting techniques to create a satisfactory painting, so it cannot meet the needs of various scenes and automatic processing , is not universal in automatically generating pencil drawings
[0005] The image processing and rendering generation method based on real images meets the needs of various scenes. At present, it is generally generated by complex design of real images through image editing software such as Photoshop. This method needs to be completed on the PC side, and requires certain computer and art skills. Basic, time-consuming design, unable to meet the needs of automatic generation

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for generating pencil drawing style image
  • Method and device for generating pencil drawing style image
  • Method and device for generating pencil drawing style image

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] In one embodiment, such as figure 1 As shown, a method of generating a pencil drawing style image, including:

[0049] Step S102, acquiring an original image.

[0050] The original image is the image to which the pencil-drawing-style artistic effect needs to be added. In one embodiment, the photographing event of the smart terminal can be monitored, and when the photographing event of the smart terminal is captured, the photographed photo is automatically obtained as the original image.

[0051] Step S104, performing grayscale processing on the original image to generate a grayscale image.

[0052] Grayscale processing is the process of making the RGB components of a color image equal.

[0053] In one embodiment, according to the formula:

[0054] p(i,j)=0.299×r(i,j)+0.587×g(i,j)+0.114×b(i,j)

[0055] Calculate the grayscale value corresponding to the pixel in the original image to generate a grayscale image. Where p(i,j) is the gray value at pixel point (i,j), r(...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for generating a pencil drawing style image, comprising: acquiring an original image; performing grayscale processing on the original image to generate a grayscale image; performing a maximum value filtering operation on the grayscale image to generate a filtered image; The filtered image is processed with inverse color to generate an inverse image, and the inverse image and the grayscale image are mixed according to the first Alpha blending operator to generate a mixed image; the original image and the mixed The image is blended according to the second Alpha blending operator to generate a pencil drawing style image. Additionally, a means for generating a pencil drawing style image is included. The above-mentioned method and device for generating a pencil drawing style image can improve the processing speed, and the generated pencil drawing style image shows a full fusion of shape and color, full of beautiful pencil light color and cartoon interest.

Description

technical field [0001] The invention relates to the field of image processing, in particular to a method and device for generating pencil drawing style images. Background technique [0002] In daily life, in order to make the photos have a certain artistic style after taking pictures, people usually post-process the photos to stylize the photos to generate pictures with artistic effects, such as generating pictures with pencil drawing style. [0003] At present, there are two methods for generating pencil drawing style images, one is the image processing rendering method (IBR) based on real images, and the other is the non-photorealistic rendering generation method (NPR) based on the model. [0004] The model-based non-photorealistic rendering generation method needs to model the scene and interact with people to generate it, and requires certain painting techniques to create a satisfactory painting, so it cannot meet the needs of various scenes and automatic processing , i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06T5/00
Inventor 杨志雄李冰王标陈小平
Owner 深圳深讯和科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products