Sketch image generation method, terminal, and computer readable storage medium

An image generation and sketching technology, which is applied in the field of image processing and can solve problems such as the inability to obtain sketch images with realistic sketch effects.

Inactive Publication Date: 2018-10-19
NUBIA TECHNOLOGY CO LTD
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention lies in the fact that the existing sketch image generation method cannot obtain a sketch ima...

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
  • Sketch image generation method, terminal, and computer readable storage medium
  • Sketch image generation method, terminal, and computer readable storage medium
  • Sketch image generation method, terminal, and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0074] In daily life, in order to make images have different artistic styles, people usually process the images through the terminal to stylize the images to generate images with artistic effects, such as generating images with a sketch style. In order to make the generated images have Sketch-style images are more realistic and closer to real sketch images in real life. This embodiment provides a new method for generating sketch images. Please refer to image 3 shown, including:

[0075] S301: Acquire a grayscale image to be converted into a sketch image.

[0076] The grayscale image in step S301 may be directly selected by the user. For example, the user may select any grayscale image locally or in the network as the grayscale image to be converted into a sketch image in step S301.

[0077] It should be noted that, in some embodiments, the grayscale image in step S301 may also be automatically generated by the terminal according to the color image selected by the user, see ...

no. 2 example

[0112] In order to better understand the solution provided by this embodiment, this embodiment provides a more specific sketch image generation method, which is applied to a terminal, wherein a real sketch image N and a sketch background image M are pre-stored on the terminal, and the sketch The background image is a real sketch background image, and the real sketch image can be found in Figure 7 As shown, the sketch background image can be as Image 6 shown. It should be noted that the real sketch image N in this embodiment can be generated according to the sketch image drawn on the paper in real life, and similarly, the real sketch background image M in this embodiment can be generated according to the drawing in real life Generated from sketch texture images on paper.

[0113] The sketch image generation method provided in this embodiment can be found in Figure 8 shown, including:

[0114] S801: Acquire a color image I to be converted into a sketch image.

[0115] Th...

no. 3 example

[0132] This embodiment provides a terminal, please refer to Figure 9 As shown, it includes a processor 901, a memory 902, and a communication bus 903, wherein the communication bus 903 is used to realize connection and communication between the processor 901 and the memory 902, and the processor 901 is used to execute one or more programs stored in the memory 902. A program to realize the steps of any sketch image generating method as described above.

[0133] This embodiment also provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and the one or more programs can be executed by one or more processors to realize any of the sketches described above. Steps of the image generation method.

[0134] The terminal and the computer-readable storage medium provided in this embodiment obtain the grayscale image to be converted into a sketch image, and perform image edge detection on the grayscale image to obtain a...

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 discloses a sketch image generation method, and the method comprises the steps: obtaining a gray scale image to be converted into a sketch image, and carrying out the edge detection of the gray scale image to obtain an edge detection image, wherein the gray scale value of each pixel of the edge detection image is one of 0 and 255; carrying out the image processing on the basis of theedge detection image through taking a preset real sketch image as the reference and employing a preset image processing rule, and obtaining a sketch image of the gray scale image. The invention alsodiscloses a terminal and a computer readable storage medium. Through the above scheme, the preset real sketch image is taken as the reference for the image processing on the basis of the edge detection image and then the sketch image of the gray scale image is generated, so the sketch effect of the obtained sketch image is more vivid, and is closer to the perception effect of a real sketch image.

Description

technical field [0001] The present invention relates to the technical field of image processing, and more specifically, to a method for generating a sketch image, a terminal, and a computer-readable storage medium. Background technique [0002] Sketch is a kind of image stylization. In reality, sketch is an art form that uses pencil as a medium to express scenery or characters with lines. Sketch can be divided into line structure drawing and fine realistic sketch. Creating sketches by hand requires the author to have certain art skills, so computer simulation to generate sketches has important application and entertainment value. [0003] At present, in some image software, there is a sketch image generation function. In the prior art, when processing an image in a sketch style, the image is usually grayscale processed to generate a grayscale image, and then the grayscale image is reversed. process to generate a reversed image, then blur the reversed image, and finally sup...

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
IPC IPC(8): G06T11/00G06T7/13G06T5/40G06T5/50
CPCG06T5/40G06T5/50G06T11/001G06T2207/10024G06T2207/20221G06T7/13
Inventor 李亚军
Owner NUBIA TECHNOLOGY CO LTD
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