Picture generation method and device, electronic device and storage medium

A picture generation and picture technology, applied in the field of data processing, can solve the problem of low efficiency in the picture copywriting process, achieve the effect of reducing generation time and improving efficiency

Pending Publication Date: 2019-09-20
BEIJING BYTEDANCE NETWORK TECH CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Moreover, information such as the position of the text added in the picture is usually manuall...

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
  • Picture generation method and device, electronic device and storage medium
  • Picture generation method and device, electronic device and storage medium
  • Picture generation method and device, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] figure 1 It is a flow chart of a picture generation method in Embodiment 1 of the present disclosure. The embodiment of the present disclosure is applicable to the process of adding text to a picture to generate a new picture. The method is executed by a picture generation device, and the device uses software and / or Or hardware implementation, and specifically configured in an electronic device with a certain data processing capability.

[0030] Such as figure 1 A picture generation method shown includes:

[0031] S110. Acquire the picture to be edited and text information; wherein, the text information includes the text to be added.

[0032] Wherein, the picture to be edited is a picture to which copywriting needs to be added, for example, it may be a poster material picture. The text information includes text information of the text to be added, including text quantity and text content. Of course, the text information may also include other text attribute informat...

Embodiment 2

[0047] figure 2 It is a flow chart of a method for generating a picture in Embodiment 2 of the present disclosure. This embodiment is optimized and improved on the basis of each optional solution in the foregoing embodiments.

[0048] Further, the operation "determine the target area for adding the text to be added in the picture to be edited according to each of the feature values ​​in the saliency map and the coverage area of ​​the text to be added in the saliency map" It is refined as "according to the text information, determine at least one text rectangle corresponding to the text to be added; for each text rectangle, traverse different regions of the saliency map in turn, and cover the saliency map according to the text rectangle Each characteristic value in, determine the coverage score of described text rectangle in different regions; According to the corresponding coverage scores of each described text rectangle in different regions, determine the target of adding th...

Embodiment 3

[0072] image 3 It is a flow chart of a method for generating a picture in Embodiment 3 of the present disclosure. This embodiment is optimized and improved on the basis of each optional solution in the foregoing embodiments.

[0073] Further, before the operation "add the text to be added to the target area", add "according to the picture to be edited, determine the text attributes of the text to be added; wherein, the text attributes include font type and / or font color", to realize the automatic determination of the text properties of the text to be added, and further improve the text property determination mechanism.

[0074] Such as image 3 A picture generation method shown includes:

[0075] S310. Acquire the image to be edited and text information; wherein, the text information includes the text to be added.

[0076] S320. Perform saliency detection on the picture to be edited to obtain feature values ​​of each pixel, and form a saliency map corresponding to the pic...

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 embodiment of the invention discloses a picture generation method and device, an electronic device and a storage medium. The method comprises the steps of obtaining a to-be-edited picture and the copywriting information, wherein the copywriting information comprises a copywriting to be added; carrying out saliency detection on the to-be-edited picture to obtain the characteristic values of all pixel points, and forming a saliency map corresponding to the to-be-edited picture; according to the feature values in the saliency map and the coverage area of the to-be-added copywriting in the saliency map, determining a target area where the to-be-added copywriting is added in the to-be-edited picture; and adding the to-be-added copywriting to the target area to generate a to-be-displayed picture. According to the embodiment of the invention, by introducing the saliency map corresponding to the to-be-edited picture, and combining the coverage area of the to-be-added character in the saliency map, the automatic determination of the target area when the copywriting is added in the to-be-edited picture is realized, and the copywriting addition in the determined target area is realized, the efficiency of copywriting typesetting in the picture is improved, and the generation time of the displayed picture is shortened.

Description

technical field [0001] Embodiments of the present disclosure relate to the technical field of data processing, and in particular, to a method, device, electronic device, and storage medium for generating an image. Background technique [0002] During event promotion or content display, display images such as posters are usually generated by adding text information to images related to the event or displayed content. [0003] In the prior art, during the process of generating display pictures, the user usually provides pictures and text information, and manually adds corresponding text to the pictures. Moreover, information such as the position of the text added in the picture is usually manually selected by the operating user, which makes the process of typesetting the picture copy less efficient. Contents of the invention [0004] The present disclosure provides a picture generation method, device, electronic equipment and storage medium, so as to improve the copy layout...

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/60
CPCG06T11/60
Inventor 黄晨婕
Owner BEIJING BYTEDANCE NETWORK TECH 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