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, inability to satisfy automatic generation, and non-universal pencil drawing, etc., achieve the effect of small amount of calculation, fully integrate the interest of cartoons, and improve the processing speed

Inactive Publication Date: 2013-05-08
深圳深讯和科技有限公司
View PDF2 Cites 22 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. The method comprises that an original image is acquired; the original image is subjected to grey level processing, a grey level image is generated; maximum value filter operation is carried out on the grey level image, a filter image is generated; the filter image is subjected to inverse color processing, an inverse color image is generated; the grey level image and the inverse color image are subjected to image mixing according to a first Alpha mixing operator, a mixed image is generated; the original image and the mixed image are subjected to image mixing according to a second Alpha mixing operator, and the pencil drawing style image is generated. In addition, the invention further provides a device for generating the pencil drawing style image. According to the method and the device for generating the pencil drawing style image, processing speed can be improved, and the generated pencil drawing style image shows complete merging of color and shape, and aesthetic pencil pastel color and cartoon interest are fully achieved.

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 Applications(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