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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com