CN117972673B - Semantic verification code generation method, device, equipment and medium based on style transfer - Google Patents
Semantic verification code generation method, device, equipment and medium based on style transfer Download PDFInfo
- Publication number
- CN117972673B CN117972673B CN202311780775.0A CN202311780775A CN117972673B CN 117972673 B CN117972673 B CN 117972673B CN 202311780775 A CN202311780775 A CN 202311780775A CN 117972673 B CN117972673 B CN 117972673B
- Authority
- CN
- China
- Prior art keywords
- style
- picture
- content
- target
- description information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/36—User authentication by graphic or iconic representation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/53—Querying
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/45—Structures or tools for the administration of authentication
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2133—Verifying human interaction, e.g., Captcha
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Computer Hardware Design (AREA)
- Processing Or Creating Images (AREA)
Abstract
本发明实施例公开了一种基于风格迁移的语义验证码生成方法、装置、设备及介质,涉及验证码技术领域。所述方法包括:基于风格图片构建风格图片库;基于内容图片构建内容图片库;基于风格迁移化图片构建风格迁移化图片库;从风格图片库中获取目标风格图片以及干扰风格图片,从风格迁移化图片库中获取与目标风格图片对应的目标风格迁移化图片,从内容图片库中获取与目标风格迁移化图片对应的目标内容图片,基于目标风格图片、干扰风格图片、目标风格迁移化图片以及目标内容图片,生成语义验证码。本发明提出的方法生成风格迁移的语义验证码的效率高,且易于人类准确识别。
The embodiment of the present invention discloses a method, device, equipment and medium for generating a semantic verification code based on style transfer, and relates to the field of verification code technology. The method comprises: constructing a style picture library based on style pictures; constructing a content picture library based on content pictures; constructing a style transfer picture library based on style transfer pictures; obtaining a target style picture and an interference style picture from the style transfer picture library, obtaining a target style transfer picture corresponding to the target style picture from the style transfer picture library, obtaining a target content picture corresponding to the target style transfer picture from the content picture library, and generating a semantic verification code based on the target style picture, the interference style picture, the target style transfer picture and the target content picture. The method proposed by the present invention is highly efficient in generating a semantic verification code of style transfer, and is easy for humans to accurately identify.
Description
技术领域Technical Field
本发明涉及验证码技术领域,尤其涉及一种基于风格迁移的语义验证码生成方法、装置、设备及介质。The present invention relates to the field of verification code technology, and in particular to a semantic verification code generation method, device, equipment and medium based on style transfer.
背景技术Background technique
近年来,神经风格迁移在文字点选图形验证码中主要用于干扰文字内容识别,然而,风格化的图片仍然无法隐藏文字或物体目标在图片中的位置,由于现代ocr技术拥有强大的从复杂图案图片中提取识别内容的能力,上述方法容易被破解,安全性低。In recent years, neural style transfer has been mainly used to interfere with text content recognition in text-clicking graphic verification codes. However, stylized images still cannot hide the position of text or object targets in the image. Since modern OCR technology has a powerful ability to extract and recognize content from complex pattern images, the above method is easy to crack and has low security.
现有文献提出了一种基于神经网络风格迁移的风格匹配验证码。用户观察内容图片和风格迁移化的图片后,需要感知二者之间的语义关联,然后从可选风格图片中选择正确的风格来匹配感知到的语义关联。这个方法巧妙的将内容识别问题变成了风格识别问题。利用神经风格迁移算法虽然能轻松根据指定风格图片风格化内容图片,但是从风格化后的图片中提取图片风格对于机器是一件非常困难的任务。反而人类在区分不同图片风格方面有着强大的能力。风格匹配验证码在使用性和安全性上具有良好的平衡优点。然而,该方法依赖于对vgg19神经网络模型进行微调,需要准备大量图片用于训练以实现风格迁移算法,该算法本身存在计算时间长的问题。该文献所使用的图片数据均是从公开数据集收集,图片数量有限,难以投入生产。另一方面,当干扰风格和目标风格在纹理特征,色彩等方面相似的情况下,会增大人类识别的难度,单纯增加图片风格种类只能减少问题出现的概率。Existing literature proposes a style matching verification code based on neural network style transfer. After observing the content image and the style-transferred image, the user needs to perceive the semantic association between the two, and then select the correct style from the optional style images to match the perceived semantic association. This method cleverly turns the content recognition problem into a style recognition problem. Although the neural style transfer algorithm can easily stylize the content image according to the specified style image, it is a very difficult task for the machine to extract the image style from the stylized image. On the contrary, humans have a strong ability to distinguish different image styles. The style matching verification code has a good balance between usability and security. However, this method relies on fine-tuning the vgg19 neural network model, and a large number of images need to be prepared for training to realize the style transfer algorithm. The algorithm itself has the problem of long calculation time. The image data used in this document are all collected from public data sets, and the number of images is limited, making it difficult to put into production. On the other hand, when the interference style and the target style are similar in texture features, color, etc., it will increase the difficulty of human recognition. Simply increasing the number of image styles can only reduce the probability of problems.
发明内容Summary of the invention
本发明实施例提供了一种基于风格迁移的语义验证码生成方法、装置、设备及介质,旨在解决现有的风格迁移的语义验证码生成效率低下且难以识别的问题。The embodiments of the present invention provide a method, apparatus, device and medium for generating a semantic verification code based on style transfer, aiming to solve the problem that the existing semantic verification code generation based on style transfer is inefficient and difficult to identify.
第一方面,本发明实施例提供了一种基于风格迁移的语义验证码生成方法,其包括:In a first aspect, an embodiment of the present invention provides a method for generating a semantic verification code based on style transfer, which includes:
获取风格文本描述信息,基于预设的文生图大模型生成与所述风格文本描述信息匹配的风格图片,并基于所述风格图片构建风格图片库;Acquire style text description information, generate style pictures matching the style text description information based on a preset style picture model, and build a style picture library based on the style pictures;
获取内容文本描述信息,基于预设的文生图大模型生成与所述内容文本描述信息匹配的内容图片,并基于所述内容图片构建内容图片库;Acquire content text description information, generate content pictures matching the content text description information based on a preset text image macro model, and build a content picture library based on the content pictures;
从所述内容图片库中获取所述内容图片输入到预设的图生图大模型中,从所述风格图片库中获取所述风格图片输入到预设的适配器中,所述适配器以所述风格图片作为风格控制的引导,控制所述图生图大模型对所述内容图片进行风格化迁移,得到风格迁移化图片,基于所述风格迁移化图片构建风格迁移化图片库;The content image is obtained from the content image library and input into a preset image-generated image model; the style image is obtained from the style image library and input into a preset adapter; the adapter uses the style image as a guide for style control to control the image-generated image model to perform stylized migration on the content image to obtain a style-migrated image, and a style-migrated image library is constructed based on the style-migrated image;
从所述风格图片库中获取目标风格图片以及干扰风格图片,从所述风格迁移化图片库中获取与所述目标风格图片对应的目标风格迁移化图片,从所述内容图片库中获取与所述目标风格迁移化图片对应的目标内容图片,基于所述目标风格图片、所述干扰风格图片、所述目标风格迁移化图片以及所述目标内容图片,生成语义验证码。A target style picture and an interference style picture are obtained from the style picture library, a target style migration picture corresponding to the target style picture is obtained from the style migration picture library, a target content picture corresponding to the target style migration picture is obtained from the content picture library, and a semantic verification code is generated based on the target style picture, the interference style picture, the target style migration picture and the target content picture.
其进一步的技术方案为,所述获取风格文本描述信息,包括:A further technical solution is that the step of obtaining the style text description information includes:
从预设的对象库中获取对象,从预设的颜色库中获取颜色以及从预设的艺术风格库中获取艺术风格;Get objects from the preset object library, colors from the preset color library, and art styles from the preset art style library;
将所述对象、所述颜色以及所述艺术风格组成所述风格文本描述信息。The object, the color and the artistic style are combined into the style text description information.
其进一步的技术方案为,所述基于预设的文生图大模型生成与所述风格文本描述信息匹配的风格图片,包括:A further technical solution is that the method of generating a style picture matching the style text description information based on a preset style picture model includes:
将所述风格文本描述信息包含的所述对象、所述颜色以及所述艺术风格输入到预设的第一提示词模板中,得到第一提示词语句,其中,所述第一提示词模板中,限定了输出的图片为无缝纹理图片;Inputting the object, the color, and the artistic style included in the style text description information into a preset first prompt word template to obtain a first prompt word sentence, wherein the first prompt word template defines that the output image is a seamless texture image;
将所述第一提示词语句输入到所述文生图大模型中,得到与所述风格文本描述信息匹配的风格图片。The first prompt word sentence is input into the style picture model to obtain a style picture matching the style text description information.
其进一步的技术方案为,所述获取内容文本描述信息,包括:A further technical solution is that the step of obtaining the content text description information includes:
从预设的内容库中获取内容对象,随机选择白色或者黑色为背景颜色;Get the content object from the preset content library and randomly select white or black as the background color;
将所述内容对象以及所述背景颜色组成所述内容文本描述信息。The content object and the background color are combined into the content text description information.
其进一步的技术方案为,所述基于预设的文生图大模型生成与所述内容文本描述信息匹配的内容图片,包括:A further technical solution is that the content image matching the content text description information is generated based on the preset text image macro model, including:
将所述内容文本描述信息包含的所述内容对象以及所述背景颜色输入到预设的第二提示词模板中,得到第二提示词语句;Inputting the content object and the background color included in the content text description information into a preset second prompt word template to obtain a second prompt word sentence;
将所述第二提示词语句输入到所述文生图大模型中,得到与所述内容文本描述信息匹配的内容图片。The second prompt word sentence is input into the text image macro model to obtain a content image matching the content text description information.
其进一步的技术方案为,所述从所述风格图片库中获取目标风格图片以及干扰风格图片,包括:A further technical solution is that obtaining the target style picture and the interference style picture from the style picture library includes:
基于所述对象库、所述颜色库以及所述艺术风格库确定目标风格文本描述信息以及干扰风格文本描述信息,其中,所述目标风格文本描述信息以及所述干扰风格文本描述信息均包括对象、颜色以及艺术风格;Determining target style text description information and interference style text description information based on the object library, the color library, and the art style library, wherein the target style text description information and the interference style text description information both include objects, colors, and art styles;
基于所述目标风格文本描述信息从所述风格图片库中获取所述目标风格图片,基于所述干扰风格文本描述信息从所述风格图片库中获取所述干扰风格图片。The target style picture is obtained from the style picture library based on the target style text description information, and the interference style picture is obtained from the style picture library based on the interference style text description information.
其进一步的技术方案为,所述基于所述目标风格图片、所述干扰风格图片、所述目标风格迁移化图片以及所述目标内容图片,生成语义验证码,包括:A further technical solution is that the semantic verification code is generated based on the target style picture, the interference style picture, the target style migration picture and the target content picture, including:
基于所述目标内容图片以及所述目标风格迁移化图片构建题目,以及基于所述目标风格图片以及所述干扰风格图片构建选项,生成所述语义验证码;Constructing a topic based on the target content picture and the target style transfer picture, and constructing options based on the target style picture and the interference style picture to generate the semantic verification code;
所述基于风格迁移的语义验证码生成方法还包括:The method for generating a semantic verification code based on style transfer also includes:
判断用户选中的选项是否为所述目标风格图片;Determine whether the option selected by the user is the target style picture;
若用户选中的选项为所述目标风格图片,判定验证通过;If the option selected by the user is the target style picture, the verification is determined to be successful;
若用户选中的选项不是所述目标风格图片,判定验证不通过。If the option selected by the user is not the target style image, the verification is determined to have failed.
第二方面,本发明实施例还提供了一种基于风格迁移的语义验证码生成装置,其包括用于执行上述方法的单元。In a second aspect, an embodiment of the present invention further provides a semantic verification code generation device based on style transfer, which includes a unit for executing the above method.
第三方面,本发明实施例还提供了一种计算机设备,其包括存储器及处理器,所述存储器上存储有计算机程序,所述处理器执行所述计算机程序时实现上述方法。In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
第四方面,本发明实施例还提供了一种计算机可读存储介质,所述存储介质存储有计算机程序,所述计算机程序当被处理器执行时可实现上述方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.
本发明实施例的技术方案,利用了适配器(例如ip-adapter)进行图片风格迁移,相比于VGG16这种传统的卷积神经网络,适配器拥有强大的泛化能力,几乎能迁移任意图片风格而无需重复训练模型,而且能够兼容图生图大模型(例如stable diffusion XL),使得风格迁移图片的生成效率极大提高。The technical solution of the embodiment of the present invention utilizes an adapter (such as ip-adapter) to transfer the style of an image. Compared with the traditional convolutional neural network such as VGG16, the adapter has a strong generalization ability and can transfer almost any image style without repeatedly training the model. It is also compatible with large image generation models (such as stable diffusion XL), which greatly improves the generation efficiency of style transfer images.
另一方面,利用文生图大模型(例如,dalle3)生成风格图片可以精准控制风格的颜色,对象和艺术风格,生成干扰风格图片能精准避免和目标风格图片相似或者重复的情况。使得生成人类易于通过的风格迁移验证码图片在稳定性上大幅提高。在防止黑灰产破解的能力上,现有的ocr技术对于这种风格迁移验证码没有效果,从图片中提取风格在科研领域仍然是非常困难的事情。利用文生图大模型大量生成风格图片样本,可以进一步增加黑灰产收集图片人工打标训练模型的成本。本发明同时兼顾了易用性和安全性。On the other hand, using a large model of Vincent graphs (for example, dalle3) to generate style images can accurately control the color, object and artistic style of the style, and generating interference style images can accurately avoid situations where the style images are similar or repeated to the target style images. This greatly improves the stability of generating style transfer verification code images that are easy for humans to pass. In terms of the ability to prevent black and gray industries from cracking, existing OCR technology has no effect on this style transfer verification code, and extracting style from images is still a very difficult task in the field of scientific research. Using a large model of Vincent graphs to generate a large number of style image samples can further increase the cost of the black and gray industries to collect images for manual labeling and training models. The present invention takes into account both ease of use and security.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
图1为本发明实施例提供的一种基于风格迁移的语义验证码生成方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a method for generating a semantic verification code based on style transfer provided by an embodiment of the present invention;
图2为本发明实施例提供的一种基于风格迁移的语义验证码生成方法的另一流程示意图;FIG2 is another schematic flow chart of a method for generating a semantic verification code based on style transfer provided by an embodiment of the present invention;
图3为本发明实施例提供的一种风格图片;FIG3 is a style picture provided by an embodiment of the present invention;
图4为本发明实施例提供的一种内容图片;FIG4 is a content picture provided by an embodiment of the present invention;
图5为本发明实施例提供的一种参考题目的示意图;FIG5 is a schematic diagram of a reference topic provided by an embodiment of the present invention;
图6为本发明实施例提供的一种语义验证码的示意图;FIG6 is a schematic diagram of a semantic verification code provided by an embodiment of the present invention;
图7为本发明实施例提供的基于风格迁移的语义验证码生成装置的示意性框图;FIG7 is a schematic block diagram of a semantic verification code generation device based on style transfer provided by an embodiment of the present invention;
图8为本发明实施例提供的计算机设备的示意性框图。FIG8 is a schematic block diagram of a computer device provided in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and/or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and/or combinations thereof.
还应当理解,在此本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should be further understood that the term "and/or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
请参阅图1并结合图2,本发明实施例提供一种基于风格迁移的语义验证码生成方法,如图1所示,该方法包括以下步骤:Referring to FIG. 1 and FIG. 2 , an embodiment of the present invention provides a semantic verification code generation method based on style transfer. As shown in FIG. 1 , the method includes the following steps:
S1、获取风格文本描述信息,基于预设的文生图大模型生成与所述风格文本描述信息匹配的风格图片,并基于所述风格图片构建风格图片库。S1. Acquire style text description information, generate style pictures matching the style text description information based on a preset style picture model, and build a style picture library based on the style pictures.
具体实施中,风格图片素材应当选择单一对象,风格鲜明,简单易识别的图片,无缝纹理图片非常适合作为风格图片素材。In specific implementation, style picture materials should select pictures of a single object, with a distinctive style, and simple and easy to identify. Seamless texture pictures are very suitable as style picture materials.
风格文本描述信息包括对象、颜色以及艺术风格等信息。基于不同得对象、颜色以及艺术风格能够组合得到多个风格文本描述信息。The style text description information includes information such as object, color, and artistic style, etc. Based on different objects, colors, and artistic styles, multiple style text description information can be combined.
文生图大模型可具体为dalle3。dalle3是一个适合自动生成纹理图片的文生图大模型。dalle3目前已经开放了api和python库,通过python可以免费生成图片。dalle3拥有强大的自然语言理解能力,可以简单构造文本提示词生成和文本输入高度匹配的图片。利用这一特点,可以实现自动生成风格图片并打上风格对应的特征标签。The large model of texture images can be specifically dalle3. Dalle3 is a large model of texture images suitable for automatically generating texture images. Dalle3 has currently opened its API and Python library, and images can be generated for free through Python. Dalle3 has a strong natural language understanding ability and can simply construct text prompt words to generate images that are highly matched with text input. Using this feature, it is possible to automatically generate style images and label them with feature tags corresponding to the style.
通过将风格文本描述信息输入到文生图大模型中,可由文生图大模型生成与所述风格文本描述信息匹配的风格图片。多个风格文本描述信息能够得到多个风格图片。将多个风格图片储存到数据库中从而构建得到风格图片库。By inputting the style text description information into the Wenshengtu model, the Wenshengtu model can generate a style picture matching the style text description information. Multiple style text description information can obtain multiple style pictures. Multiple style pictures are stored in a database to construct a style picture library.
在一实施例中,以上步骤“获取风格文本描述信息”,具体包括:In one embodiment, the above step of “obtaining style text description information” specifically includes:
S11,从预设的对象库中获取对象,从预设的颜色库中获取颜色以及从预设的艺术风格库中获取艺术风格。S11, obtaining an object from a preset object library, obtaining a color from a preset color library, and obtaining an art style from a preset art style library.
具体实施中,预先构建对象库、颜色库以及艺术风格库。对象库中包括多个对象,例如墙壁、气泡等。颜色库中包括多种颜色,例如白色、黑色以及银色等。艺术风格库中包括多种艺术风格,例如,科幻赛博朋克风格等。In the specific implementation, an object library, a color library, and an art style library are pre-built. The object library includes multiple objects, such as walls, bubbles, etc. The color library includes multiple colors, such as white, black, and silver, etc. The art style library includes multiple art styles, such as science fiction cyberpunk style, etc.
具体地,分别从预设的对象库中获取对象,从预设的颜色库中获取颜色以及从预设的艺术风格库中获取艺术风格。Specifically, objects are acquired from a preset object library, colors are acquired from a preset color library, and art styles are acquired from a preset art style library.
S12,将所述对象、所述颜色以及所述艺术风格组成所述风格文本描述信息。S12, combining the object, the color and the artistic style into the style text description information.
具体实施中,分别从所述对象库中选择一个对象,从所述颜色库中选择一种颜色以及从所述艺术风格库中选择一种艺术风格即可组合得到一个风格文本描述信息。进一步地,穷举所有的组合,即可得到多个风格文本描述信息,进而对应得到多个风格图片。In a specific implementation, an object is selected from the object library, a color is selected from the color library, and an art style is selected from the art style library to combine and obtain a style text description information. Furthermore, by exhaustively enumerating all combinations, multiple style text description information can be obtained, and then multiple style images can be obtained accordingly.
在一实施例中,以上步骤“基于预设的文生图大模型生成与所述风格文本描述信息匹配的风格图片”,具体包括:In one embodiment, the above step of “generating a style picture matching the style text description information based on a preset style picture model” specifically includes:
S101,将所述风格文本描述信息包含的所述对象、所述颜色以及所述艺术风格输入到预设的第一提示词模板中,得到第一提示词语句,其中,所述第一提示词模板中,限定了输出的图片为无缝纹理图片。S101, inputting the object, the color and the artistic style included in the style text description information into a preset first prompt word template to obtain a first prompt word sentence, wherein the first prompt word template defines that the output image is a seamless texture image.
具体实施中,第一提示词模板预留有所述对象、所述颜色以及所述艺术风格的填入位置,同时,第一提示词模板中,限定了输出的图片为无缝纹理图片,具体地,第一提示词模板使用“无缝纹理(seamless texture)”作为无缝纹理图片激活词语,保证输出的图片为纹理图片,便于用户区分。例如,在一实施例中,提示词模板为:(颜色),(对象)无缝纹理图,(艺术风格)。In a specific implementation, the first prompt word template reserves the filling positions of the object, the color and the artistic style. At the same time, in the first prompt word template, it is limited that the output image is a seamless texture image. Specifically, the first prompt word template uses "seamless texture" as the activation word for the seamless texture image to ensure that the output image is a texture image, which is convenient for users to distinguish. For example, in one embodiment, the prompt word template is: (color), (object) seamless texture image, (artistic style).
在一实施例中,第一提示词语句为:高饱和度蓝色+银色的金属墙壁无缝纹理图,科幻赛博朋克风格。其中物体为金属墙壁,颜色为高饱和度蓝色+银色,艺术风格为科幻赛博朋克风格。In one embodiment, the first prompt word sentence is: highly saturated blue + silver metal wall seamless texture map, science fiction cyberpunk style. The object is a metal wall, the color is highly saturated blue + silver, and the art style is science fiction cyberpunk style.
可以理解地,为了便于dalle3识别,可将第一提示词语句翻译为英文。翻译过程可通过调用翻译软件的接口实现。It is understandable that, in order to facilitate dale3 recognition, the first prompt word sentence can be translated into English. The translation process can be implemented by calling the interface of the translation software.
S102,将所述第一提示词语句输入到所述文生图大模型中,得到与所述风格文本描述信息匹配的风格图片。S102: Input the first prompt word sentence into the style picture model to obtain a style picture matching the style text description information.
具体实施中,将所述第一提示词语句输入到所述文生图大模型中,由所述文生图大模型基于所述第一提示词语句生成与所述风格文本描述信息匹配的风格图片。具体地,通过python库调用dalle3接口将第一提示词语句输入所述文生图大模型中,产出风格图片,可以设置一次输出4张图片提高单个风格的图片多样性。然后利用python调用dalle3接口下载风格图片,将风格图片导入风格图片库,同时生成风格图片的本地存储路径,生成时间,和对应的对象、颜色以及艺术风格等风格相关的特征字段。In a specific implementation, the first prompt word sentence is input into the Wenshengtu model, and the Wenshengtu model generates a style picture matching the style text description information based on the first prompt word sentence. Specifically, the first prompt word sentence is input into the Wenshengtu model through the python library calling the dalle3 interface to generate a style picture. It can be set to output 4 pictures at a time to improve the diversity of pictures of a single style. Then, the dalle3 interface is called by python to download the style picture, and the style picture is imported into the style picture library. At the same time, the local storage path of the style picture, the generation time, and the corresponding object, color, artistic style and other style-related feature fields are generated.
例如,基于第一提示词语句生成的风格图片如图3所示。For example, the style image generated based on the first prompt word sentence is shown in FIG3 .
S2、获取内容文本描述信息,基于预设的文生图大模型生成与所述内容文本描述信息匹配的内容图片,并基于所述内容图片构建内容图片库。S2. Obtain content text description information, generate content pictures matching the content text description information based on a preset text-image macro model, and build a content picture library based on the content pictures.
具体实施中,内容图片是用于与风格图片合成产生风格化图片的基础图片,可以理解为图生图模型中的垫图。内容图片不要求过于复杂的内容组成,也不要求特定的艺术风格。内容图片尽量选择主体明确,背景简单,接近现实生活的图片。In the specific implementation, the content image is the basic image used to synthesize with the style image to generate the stylized image, which can be understood as the pad image in the image generation model. The content image does not require overly complex content composition, nor does it require a specific artistic style. The content image should try to choose a clear subject, a simple background, and a picture close to real life.
本发明实施例中,内容文本描述信息包括内容对象以及背景颜色,背景颜色为黑色或者白色。基于不同的内容对象以及背景颜色可以组合得到多个内容文本描述信息。文生图大模型可具体为dalle3。In the embodiment of the present invention, the content text description information includes content objects and background colors, and the background colors are black or white. Based on different content objects and background colors, multiple content text description information can be combined. The large model of the text image can be specifically dalle3.
通过将内容文本描述信息输入到文生图大模型中,可由文生图大模型生成与所述内容文本描述信息匹配的内容图片。多个内容文本描述信息能够得到多个内容图片。将多个内容图片储存到数据库中从而构建得到内容图片库。By inputting the content text description information into the text image model, the text image model can generate a content image matching the content text description information. Multiple content text description information can obtain multiple content images. Multiple content images are stored in a database to construct a content image library.
在一实施例中,以上步骤“获取内容文本描述信息”,具体包括:In one embodiment, the above step of “obtaining content text description information” specifically includes:
S21,从预设的内容库中获取内容对象,随机选择白色或者黑色为背景颜色。S21, obtaining a content object from a preset content library, and randomly selecting white or black as the background color.
具体实施中,预先构建内容库,内容库包括多个内容对象,内容对象例如为机器人,房子等。从预设的内容库中随机获取内容对象,并随机选择白色或者黑色为背景颜色。In a specific implementation, a content library is pre-built, and the content library includes multiple content objects, such as robots, houses, etc. Content objects are randomly obtained from the preset content library, and white or black is randomly selected as the background color.
S22,将所述内容对象以及所述背景颜色组成所述内容文本描述信息。S22: Combining the content object and the background color into the content text description information.
具体实施中,一个对象与一个背景颜色可组合得到一条内容文本描述信息。穷举所有对象与背景颜色的组合可得到多条内容文本描述信息,进而可得到多个内容图片。In a specific implementation, an object and a background color can be combined to obtain a content text description information. Exhaustive combinations of all objects and background colors can obtain multiple content text description information, and then multiple content images can be obtained.
在一实施例中,以上步骤“基于预设的文生图大模型生成与所述内容文本描述信息匹配的内容图片”,具体包括:In one embodiment, the above step of “generating a content image matching the content text description information based on a preset text image macro model” specifically includes:
S201,将所述内容文本描述信息包含的所述内容对象以及所述背景颜色输入到预设的第二提示词模板中,得到第二提示词语句。S201: Input the content object and the background color included in the content text description information into a preset second prompt word template to obtain a second prompt word sentence.
具体实施中,第二提示词模板预留有内容对象以及背景颜色的填入位置。例如,在一实施例中,提示词模板为:一个(内容对象)在(背景颜色)的背景中,照相写实主义。In a specific implementation, the second prompt word template reserves positions for content objects and background colors. For example, in one embodiment, the prompt word template is: a (content object) in a (background color) background, photorealism.
例如,从内容库中随机选择一个内容对象输入到第二提示词模板中,该对象可以带有形容词属性,例如”怪兽形状的钢铁机器人”,机器人是对象,怪兽形状的钢铁是属性形容词。属性形容词可以增加内容图片的多样性。随机选择白色或者黑色作为背景颜色,得到的第二提示词语句为:一个白色的怪兽形状的钢铁机器人在一个黑色的背景中,照相写实主义。For example, a content object is randomly selected from the content library and input into the second prompt word template. The object can have an adjective attribute, such as "a steel robot in the shape of a monster". The robot is the object, and the steel in the shape of a monster is the attribute adjective. Attribute adjectives can increase the diversity of content images. Randomly select white or black as the background color, and the second prompt word sentence obtained is: a white steel robot in the shape of a monster on a black background, photorealism.
可以理解地,为了便于dalle3识别,可将第二提示词语句翻译为英文。翻译过程可通过调用翻译软件的接口实现。It is understandable that, in order to facilitate dalle3 recognition, the second prompt word sentence can be translated into English. The translation process can be implemented by calling the interface of the translation software.
S202,将所述第二提示词语句输入到所述文生图大模型中,得到与所述内容文本描述信息匹配的内容图片。S202: Input the second prompt word sentence into the text-generated image macro model to obtain a content image that matches the content text description information.
具体实施中,将所述第二提示词语句输入到所述文生图大模型中,由所述文生图大模型基于所述第二提示词语句生成与所述内容文本描述信息匹配的内容图片。In a specific implementation, the second prompt word sentence is input into the text-generated image large model, and the text-generated image large model generates a content image matching the content text description information based on the second prompt word sentence.
具体地,通过python库调用dalle3接口将第二提示词语句输入所述文生图大模型中,产出内容图片,可以设置一次输出4张图片提高单个内容的图片多样性。然后利用python调用dalle3接口下载内容图片,将内容图片导入内容图片库,同时生成内容图片的本地存储路径,生成时间,和对应的内容对象、背景颜色等内容相关的特征字段。Specifically, the second prompt word sentence is input into the text image model through the python library calling the dalle3 interface to generate content images. It can be set to output 4 images at a time to improve the image diversity of a single content. Then, the dalle3 interface is called by python to download the content image, import the content image into the content image library, and generate the local storage path of the content image, the generation time, and the corresponding content object, background color and other content-related feature fields.
例如,基于第二提示词语句生成的内容图片如图4所示。For example, a content picture generated based on the second prompt word sentence is shown in FIG4 .
S3、从所述内容图片库中获取所述内容图片输入到预设的图生图大模型中,从所述风格图片库中获取所述风格图片输入到预设的适配器中,所述适配器以所述风格图片作为风格控制的引导,控制所述图生图大模型对所述内容图片进行风格化迁移,得到风格迁移化图片,基于所述风格迁移化图片构建风格迁移化图片库。S3. Obtain the content image from the content image library and input it into a preset image-generated large model. Obtain the style image from the style image library and input it into a preset adapter. The adapter uses the style image as a guide for style control to control the image-generated large model to perform stylized migration on the content image to obtain a style-migrated image, and construct a style-migrated image library based on the style-migrated image.
具体实施中,图生图大模型可具体为stable diffusion模型。适配器为Ip-adapte。Ip-adapter是一个轻量级的将图像输入作为提示词引导stable diffusion模型生成图片的适配器,通过将内容图片作为stable diffusion图生图模式的输入,风格图片输入ip-adapter作为风格控制的引导,实现图片风格化迁移,即可实现自动风格迁移的目的,ip-adapter的优点在于灵活兼容性强,只需要一张风格图片即可引导文生图大模型生成图片,无需准备图片微调模型。ip-adapter的功能不是单纯引导风格生成,而是将参考图片的内容风格等特征转化为文本提示结合垫图引导图生图。只要控制好图像生成的重绘幅度在0.5-0.55之间,图像生成的内容会更加符合垫图的内容,不会过多受到参考图的影响,而风格则会受到参考图片的很大影响。因此,ip-adapter可以较好的实现风格迁移图片的效果。具体地操作步骤如下:In the specific implementation, the image generation model can be specifically a stable diffusion model. The adapter is Ip-adapter. Ip-adapter is a lightweight adapter that uses image input as a prompt word to guide the stable diffusion model to generate images. By using the content image as the input of the stable diffusion image generation mode and the style image input to the ip-adapter as a guide for style control, the image stylization migration is achieved, and the purpose of automatic style migration can be achieved. The advantage of ip-adapter is its flexibility and strong compatibility. Only one style image is needed to guide the image generation model, and there is no need to prepare an image fine-tuning model. The function of ip-adapter is not to simply guide style generation, but to convert the content style and other features of the reference image into text prompts combined with the pad image to guide the image generation. As long as the redrawing amplitude of the image generation is controlled between 0.5-0.55, the content of the image generation will be more consistent with the content of the pad image, and will not be too affected by the reference image, while the style will be greatly affected by the reference image. Therefore, ip-adapter can better achieve the effect of style migration of images. The specific operation steps are as follows:
从内容图片库中获取一张内容图片,输入ip-adapter,配置好参数,从风格图片库中获取一张风格图片,输入stablediffusion XL 1.0base图生图模式,图片大小设置为1024x1024,重绘幅度选择0.55,采样方法设置为DPM+2M SDE Karras,采样步骤设置为32,批次大小设置为4(一张内容图片和一张风格图片生成4张风格迁移化图片),将生成的风格化图片导入风格化图片库中,同时生成风格化图片的存储路径,生成时间,内容图片ID以及风格图片ID等关联字段。Get a content image from the content image library, input ip-adapter, configure the parameters, get a style image from the style image library, input stablediffusion XL 1.0base image generation mode, set the image size to 1024x1024, select 0.55 for the redrawing amplitude, set the sampling method to DPM+2M SDE Karras, set the sampling step to 32, and set the batch size to 4 (one content image and one style image generate four style-transferred images). Import the generated stylized image into the stylized image library, and generate the storage path, generation time, content image ID, style image ID and other associated fields of the stylized image.
S4、从所述风格图片库中获取目标风格图片以及干扰风格图片,从所述风格迁移化图片库中获取与所述目标风格图片对应的目标风格迁移化图片,从所述内容图片库中获取与所述目标风格迁移化图片对应的目标内容图片,基于所述目标风格图片、所述干扰风格图片、所述目标风格迁移化图片以及所述目标内容图片,生成语义验证码。S4. Obtain a target style picture and an interference style picture from the style picture library, obtain a target style migration picture corresponding to the target style picture from the style migration picture library, obtain a target content picture corresponding to the target style migration picture from the content picture library, and generate a semantic verification code based on the target style picture, the interference style picture, the target style migration picture and the target content picture.
具体实施中,从所述风格图片库中获取目标风格图片以及干扰风格图片。目标风格图片为一张,干扰风格图片可以是多张,例如为8张。In a specific implementation, a target style picture and an interference style picture are obtained from the style picture library. The target style picture is one, and the interference style picture may be multiple, for example, 8 pictures.
从所述风格迁移化图片库中获取与所述目标风格图片对应的目标风格迁移化图片,即基于所述目标风格图片进行风格迁移后得到的风格迁移化图片。A target style-transferred picture corresponding to the target style picture is obtained from the style-transferred picture library, that is, a style-transferred picture obtained after style transfer based on the target style picture.
从所述内容图片库中获取与所述目标风格迁移化图片对应的目标内容图片,即所述目标风格迁移化图片在风格迁移之前的内容图片。A target content picture corresponding to the target style-transferred picture is obtained from the content picture library, that is, a content picture of the target style-transferred picture before style migration.
进一步地,基于所述目标内容图片以及所述目标风格迁移化图片构建题目,以及基于所述目标风格图片以及所述干扰风格图片构建选项,生成所述语义验证码。Furthermore, a topic is constructed based on the target content picture and the target style transfer picture, and an option is constructed based on the target style picture and the interference style picture to generate the semantic verification code.
为了便于用户理解题目的含义,可提供参考题目,具体如下:从风格迁移化图片库中随机选择一张风格迁移化图片作为参考题答案,然后从内容图片库和风格图片库中分别选择与该风格迁移化图片对应的内容图片和风格图片组成参考题。In order to help users understand the meaning of the questions, reference questions can be provided, as follows: randomly select a style-transferred picture from the style-transferred picture library as the answer to the reference question, and then select a content picture and a style picture corresponding to the style-transferred picture from the content picture library and the style picture library respectively to form the reference question.
具体地,题目可以是:目标内容图片+?=目标风格迁移化图片。选项则由所述目标风格图片以及所述干扰风格图片组成。Specifically, the question may be: target content picture +? = target style transfer picture. The options are composed of the target style picture and the interference style picture.
基于上述语义验证码,具体地验证过程包括:判断用户选中的选项是否为所述目标风格图片;若用户选中的选项为所述目标风格图片,判定验证通过;若用户选中的选项不是所述目标风格图片,判定验证不通过。Based on the above semantic verification code, the specific verification process includes: determining whether the option selected by the user is the target style picture; if the option selected by the user is the target style picture, determining that the verification is passed; if the option selected by the user is not the target style picture, determining that the verification is failed.
在一实施例中,以上步骤“从所述风格图片库中获取目标风格图片以及干扰风格图片”,具体包括:In one embodiment, the above step of “obtaining the target style picture and the interference style picture from the style picture library” specifically includes:
S41,基于所述对象库、所述颜色库以及所述艺术风格库确定目标风格文本描述信息以及干扰风格文本描述信息,其中,所述目标风格文本描述信息以及所述干扰风格文本描述信息均包括对象、颜色以及艺术风格。S41 : determining target style text description information and interference style text description information based on the object library, the color library, and the artistic style library, wherein the target style text description information and the interference style text description information both include objects, colors, and artistic styles.
具体实施中,首先从对象库中随机获取三个对象,该三个对象与参考题目中风格图片的对象不同。从三个对象中随机选择一个作为目标对象,剩下两个作为干扰对象。In the specific implementation, three objects are randomly obtained from the object library, which are different from the objects in the style image in the reference topic. One of the three objects is randomly selected as the target object, and the remaining two are used as interference objects.
从所述颜色库以及所述艺术风格库中随机选择颜色和艺术风格,组成三个颜色-艺术风格组合,要求3个颜色-艺术风格组合的颜色和艺术风格都互不相同,随机选择一个颜色-艺术风格组合作为目标颜色-艺术风格组合,另外两个颜色-艺术风格组合作为干扰颜色-艺术风格组合。其中,目标对象和目标颜色-艺术风格组合即构成目标风格文本描述信息,目标对象分别和两个干扰颜色-艺术风格组合即构成两个干扰风格文本描述信息。Randomly select colors and artistic styles from the color library and the artistic style library to form three color-artistic style combinations, requiring that the colors and artistic styles of the three color-artistic style combinations are different from each other, randomly select one color-artistic style combination as the target color-artistic style combination, and the other two color-artistic style combinations as interference color-artistic style combinations. The target object and the target color-artistic style combination constitute the target style text description information, and the target object and the two interference color-artistic style combinations respectively constitute two interference style text description information.
进一步地,对于另外2个干扰对象则从所述颜色库以及所述艺术风格库中选择6种颜色-艺术风格组合,这6种颜色-艺术风格组合要求和目标颜色-艺术风格组合的颜色或者艺术风格中有一项不同即可。这6种颜色-艺术风格组合之间不要求互不相同,即使这6种颜色-艺术风格组合存在相同也可以,虽然出现这种情况的概率极低(在颜色库以及艺术风格库数据量足够的情况下)。之后一个干扰对象分别与上述6种颜色-艺术风格组合中的其中三种颜色-艺术风格组合构成三个干扰风格文本描述信息,两个干扰对象可得到6个干扰风格文本描述信息。Furthermore, for the other two interference objects, six color-artistic style combinations are selected from the color library and the art style library. The six color-artistic style combinations are required to be different from the target color-artistic style combination in one of the colors or art styles. The six color-artistic style combinations are not required to be different from each other, and even if there are the same six color-artistic style combinations, it is OK, although the probability of this happening is extremely low (when the color library and the art style library have sufficient data). After that, one interference object and three of the above six color-artistic style combinations respectively form three interference style text description information, and the two interference objects can obtain six interference style text description information.
由此,可总共得到1个目标风格文本描述信息以及8个干扰风格文本描述信息。Thus, a total of 1 target style text description information and 8 interference style text description information can be obtained.
S42,基于所述目标风格文本描述信息从所述风格图片库中获取所述目标风格图片,基于所述干扰风格文本描述信息从所述风格图片库中获取所述干扰风格图片。S42: acquiring the target style picture from the style picture library based on the target style text description information, and acquiring the interference style picture from the style picture library based on the interference style text description information.
具体实施中,经过上述步骤S42后,得到1个目标风格文本描述信息以及8个干扰风格文本描述信息,基于目标风格文本描述信息可从所述风格图片库中获取所述目标风格图片,分别基于8个干扰风格文本描述信息,从所述风格图片库中获取8个干扰风格图片。In a specific implementation, after the above step S42, 1 target style text description information and 8 interference style text description information are obtained. Based on the target style text description information, the target style picture can be obtained from the style picture library, and based on the 8 interference style text description information, 8 interference style pictures can be obtained from the style picture library.
验证码生成案例如下:The verification code generation example is as follows:
参考题目如图5所示。The reference topic is shown in Figure 5.
参考题目中中风格图片的对象为有毒的气泡。则随机选择雪花形状的水晶,石头墙壁以及地毯这三个对象。然后随机选择地毯作为目标对象。接下来随机选择出蓝绿色摄影风格,红蓝色国潮风格,金色和翠绿色装饰艺术风格三种组合,从中随机选择蓝绿色摄影风格作为目标风格图片颜色和艺术风格组合,另外2种则是干扰组合。雪花形状的水晶,石头墙壁这2个对象则从风格图片库中分别选择3个和蓝绿色摄影风格不同的组合与2个对象组合成另外6个干扰组合。例如为黄铜色蒸汽朋克石墙,银蓝色科幻赛博朋克石墙,灰白色摄影风格石墙。水墨素描与水彩相结合的暗金色水晶。蓝绿色抽象表现主义水晶,卡通风格紫色水晶。最后得到的语义验证码如图6所示。The object of the style picture in the reference question is poisonous bubbles. Then randomly select three objects: snowflake-shaped crystal, stone wall and carpet. Then randomly select carpet as the target object. Next, randomly select three combinations of blue-green photography style, red-blue national trend style, gold and emerald green decorative art style, and randomly select blue-green photography style as the target style picture color and art style combination, and the other two are interference combinations. For the two objects of snowflake-shaped crystal and stone wall, select 3 combinations different from blue-green photography style from the style picture library and combine them with 2 objects to form another 6 interference combinations. For example, brass steampunk stone wall, silver-blue science fiction cyberpunk stone wall, gray-white photography style stone wall. Dark gold crystal combined with ink sketch and watercolor. Blue-green abstract expressionism crystal, cartoon style purple crystal. The semantic verification code obtained at the end is shown in Figure 6.
本发明实施例的技术方案,利用了适配器(例如ip-adapter)进行图片风格迁移,相比于VGG16这种传统的卷积神经网络,适配器拥有强大的泛化能力,几乎能迁移任意图片风格而无需重复训练模型,而且能够兼容图生图大模型(例如stable diffusion XL),使得风格迁移图片的生成效率极大提高。The technical solution of the embodiment of the present invention utilizes an adapter (such as ip-adapter) to transfer the style of an image. Compared with the traditional convolutional neural network such as VGG16, the adapter has a strong generalization ability and can transfer almost any image style without repeatedly training the model. It is also compatible with large image generation models (such as stable diffusion XL), which greatly improves the generation efficiency of style transfer images.
另一方面,利用文生图大模型(例如,dalle3)生成风格图片可以精准控制风格的颜色,对象和艺术风格,生成干扰风格图片能精准避免和目标风格图片相似或者重复的情况。使得生成人类易于通过的风格迁移验证码图片在稳定性上大幅提高。在防止黑灰产破解的能力上,现有的ocr技术对于这种风格迁移验证码没有效果,从图片中提取风格在科研领域仍然是非常困难的事情。利用文生图大模型大量生成风格图片样本,可以进一步增加黑灰产收集图片人工打标训练模型的成本。本发明同时兼顾了易用性和安全性。On the other hand, using a large model of Vincent graphs (for example, dalle3) to generate style images can accurately control the color, object and artistic style of the style, and generating interference style images can accurately avoid situations where the style images are similar or repeated to the target style images. This greatly improves the stability of generating style transfer verification code images that are easy for humans to pass. In terms of the ability to prevent black and gray industries from cracking, existing OCR technology has no effect on this style transfer verification code, and extracting style from images is still a very difficult task in the field of scientific research. Using a large model of Vincent graphs to generate a large number of style image samples can further increase the cost of the black and gray industries to collect images for manual labeling and training models. The present invention takes into account both ease of use and security.
参见图7,图7是本发明实施例提供的一种基于风格迁移的语义验证码生成装置20的示意性框图。对应于以上基于风格迁移的语义验证码生成方法,本发明还提供一种基于风格迁移的语义验证码生成装置20。该基于风格迁移的语义验证码生成装置20包括用于执行上述基于风格迁移的语义验证码生成方法的单元,该基于风格迁移的语义验证码生成装置20可以被配置于台式电脑、平板电脑、手提电脑、等终端中。具体地,该基于风格迁移的语义验证码生成装置20包括:See Figure 7, which is a schematic block diagram of a semantic verification code generation device 20 based on style transfer provided by an embodiment of the present invention. Corresponding to the above semantic verification code generation method based on style transfer, the present invention also provides a semantic verification code generation device 20 based on style transfer. The semantic verification code generation device 20 based on style transfer includes a unit for executing the above semantic verification code generation method based on style transfer, and the semantic verification code generation device 20 based on style transfer can be configured in a desktop computer, a tablet computer, a laptop, and other terminals. Specifically, the semantic verification code generation device 20 based on style transfer includes:
第一构建单元21,用于获取风格文本描述信息,基于预设的文生图大模型生成与所述风格文本描述信息匹配的风格图片,并基于所述风格图片构建风格图片库;The first construction unit 21 is used to obtain style text description information, generate a style picture matching the style text description information based on a preset style picture model, and construct a style picture library based on the style picture;
第二构建单元22,用于获取内容文本描述信息,基于预设的文生图大模型生成与所述内容文本描述信息匹配的内容图片,并基于所述内容图片构建内容图片库;A second construction unit 22 is used to obtain content text description information, generate content pictures matching the content text description information based on a preset text image macro model, and construct a content picture library based on the content pictures;
第三构建单元23,用于从所述内容图片库中获取所述内容图片输入到预设的图生图大模型中,从所述风格图片库中获取所述风格图片输入到预设的适配器中,所述适配器以所述风格图片作为风格控制的引导,控制所述图生图大模型对所述内容图片进行风格化迁移,得到风格迁移化图片,基于所述风格迁移化图片构建风格迁移化图片库;The third construction unit 23 is used to obtain the content image from the content image library and input it into a preset image-generated image model, obtain the style image from the style image library and input it into a preset adapter, the adapter uses the style image as a guide for style control, controls the image-generated image model to perform stylized migration on the content image, obtains a style-migrated image, and constructs a style-migrated image library based on the style-migrated image;
生成单元24,用于从所述风格图片库中获取目标风格图片以及干扰风格图片,从所述风格迁移化图片库中获取与所述目标风格图片对应的目标风格迁移化图片,从所述内容图片库中获取与所述目标风格迁移化图片对应的目标内容图片,基于所述目标风格图片、所述干扰风格图片、所述目标风格迁移化图片以及所述目标内容图片,生成语义验证码。A generating unit 24 is used to obtain a target style picture and an interference style picture from the style picture library, obtain a target style migration picture corresponding to the target style picture from the style migration picture library, obtain a target content picture corresponding to the target style migration picture from the content picture library, and generate a semantic verification code based on the target style picture, the interference style picture, the target style migration picture and the target content picture.
在一实施例中,所述获取风格文本描述信息,包括:In one embodiment, the obtaining of the style text description information includes:
从预设的对象库中获取对象,从预设的颜色库中获取颜色以及从预设的艺术风格库中获取艺术风格;Get objects from the preset object library, colors from the preset color library, and art styles from the preset art style library;
将所述对象、所述颜色以及所述艺术风格组成所述风格文本描述信息。The object, the color and the artistic style are combined into the style text description information.
在一实施例中,所述基于预设的文生图大模型生成与所述风格文本描述信息匹配的风格图片,包括:In one embodiment, the generating of a style picture matching the style text description information based on a preset style picture model includes:
将所述风格文本描述信息包含的所述对象、所述颜色以及所述艺术风格输入到预设的第一提示词模板中,得到第一提示词语句,其中,所述第一提示词模板中,限定了输出的图片为无缝纹理图片;Inputting the object, the color, and the artistic style included in the style text description information into a preset first prompt word template to obtain a first prompt word sentence, wherein the first prompt word template defines that the output image is a seamless texture image;
将所述第一提示词语句输入到所述文生图大模型中,得到与所述风格文本描述信息匹配的风格图片。The first prompt word sentence is input into the style picture model to obtain a style picture matching the style text description information.
在一实施例中,所述获取内容文本描述信息,包括:In one embodiment, obtaining content text description information includes:
从预设的内容库中获取内容对象,随机选择白色或者黑色为背景颜色;Get the content object from the preset content library and randomly select white or black as the background color;
将所述内容对象以及所述背景颜色组成所述内容文本描述信息。The content object and the background color are combined into the content text description information.
在一实施例中,所述基于预设的文生图大模型生成与所述内容文本描述信息匹配的内容图片,包括:In one embodiment, the generating of a content image matching the content text description information based on a preset text image macro model includes:
将所述内容文本描述信息包含的所述内容对象以及所述背景颜色输入到预设的第二提示词模板中,得到第二提示词语句;Inputting the content object and the background color included in the content text description information into a preset second prompt word template to obtain a second prompt word sentence;
将所述第二提示词语句输入到所述文生图大模型中,得到与所述内容文本描述信息匹配的内容图片。The second prompt word sentence is input into the text image macro model to obtain a content image matching the content text description information.
在一实施例中,所述从所述风格图片库中获取目标风格图片以及干扰风格图片,包括:In one embodiment, obtaining the target style picture and the interference style picture from the style picture library includes:
基于所述对象库、所述颜色库以及所述艺术风格库确定目标风格文本描述信息以及干扰风格文本描述信息,其中,所述目标风格文本描述信息以及所述干扰风格文本描述信息均包括对象、颜色以及艺术风格;Determining target style text description information and interference style text description information based on the object library, the color library, and the art style library, wherein the target style text description information and the interference style text description information both include objects, colors, and art styles;
基于所述目标风格文本描述信息从所述风格图片库中获取所述目标风格图片,基于所述干扰风格文本描述信息从所述风格图片库中获取所述干扰风格图片。The target style picture is obtained from the style picture library based on the target style text description information, and the interference style picture is obtained from the style picture library based on the interference style text description information.
在一实施例中,所述基于所述目标风格图片、所述干扰风格图片、所述目标风格迁移化图片以及所述目标内容图片,生成语义验证码,包括:In one embodiment, the generating a semantic verification code based on the target style picture, the interference style picture, the target style migration picture and the target content picture includes:
基于所述目标内容图片以及所述目标风格迁移化图片构建题目,以及基于所述目标风格图片以及所述干扰风格图片构建选项,生成所述语义验证码;Constructing a topic based on the target content picture and the target style transfer picture, and constructing options based on the target style picture and the interference style picture to generate the semantic verification code;
所述基于风格迁移的语义验证码生成装置20还包括:The semantic verification code generation device 20 based on style transfer also includes:
判断单元,用于判断用户选中的选项是否为所述目标风格图片;A judging unit, used to judge whether the option selected by the user is the target style picture;
第一判定单元,用于若用户选中的选项为所述目标风格图片,判定验证通过;A first determination unit, configured to determine that the verification is successful if the option selected by the user is the target style picture;
第二判定单元,用于若用户选中的选项不是所述目标风格图片,判定验证不通过。The second determination unit is configured to determine that the verification fails if the option selected by the user is not the target style picture.
需要说明的是,所属领域的技术人员可以清楚地了解到,上述基于风格迁移的语义验证码生成装置20和各单元的具体实现过程,可以参考前述方法实施例中的相应描述,为了描述的方便和简洁,在此不再赘述。It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned semantic verification code generation device 20 based on style transfer and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
上述基于风格迁移的语义验证码生成装置可以实现为一种计算机程序的形式,该计算机程序可以在如图8所示的计算机设备上运行。The above-mentioned semantic verification code generation device based on style transfer can be implemented in the form of a computer program, and the computer program can be run on the computer device shown in FIG. 8 .
请参阅图8,图8是本申请实施例提供的一种计算机设备的示意性框图。该计算机设备500可以是终端,也可以是服务器,其中,终端可以是智能手机、平板电脑、笔记本电脑、台式电脑、个人数字助理和穿戴式设备等具有通信功能的电子设备。服务器可以是独立的服务器,也可以是多个服务器组成的服务器集群。Please refer to FIG8 , which is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.
该计算机设备500包括通过系统总线501连接的处理器502、存储器和网络接口505,其中,存储器可以包括非易失性存储介质503和内存储器504。The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
该非易失性存储介质503可存储操作系统5031和计算机程序5032。该计算机程序5032被执行时,可使得处理器502执行一种基于风格迁移的语义验证码生成方法。The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 may execute a semantic verification code generation method based on style transfer.
该处理器502用于提供计算和控制能力,以支撑整个计算机设备500的运行。The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
该内存储器504为非易失性存储介质503中的计算机程序5032的运行提供环境,该计算机程序5032被处理器502执行时,可使得处理器502执行一种基于风格迁移的语义验证码生成方法。The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a semantic verification code generation method based on style transfer.
该网络接口505用于与其它设备进行网络通信。本领域技术人员可以理解,The network interface 505 is used to communicate with other devices over the network.
上述结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备500的限定,具体的计算机设备500可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The above structure is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
其中,所述处理器502用于运行存储在存储器中的计算机程序5032,以实现上述任一方法实施例提供的一种基于风格迁移的语义验证码生成方法的步骤:The processor 502 is used to run a computer program 5032 stored in the memory to implement the steps of a semantic verification code generation method based on style transfer provided in any of the above method embodiments:
应当理解,在本申请实施例中,处理器502可以是中央处理单元(CentralProcessing Unit,CPU),该处理器502还可以是其他通用处理器、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
本领域普通技术人员可以理解的是实现上述实施例的方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成。该计算机程序可存储于一存储介质中,该存储介质为计算机可读存储介质。该计算机程序被该计算机系统中的至少一个处理器执行,以实现上述方法的实施例的流程步骤。It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
因此,本发明还提供一种存储介质。该存储介质可以为计算机可读存储介质。该存储介质存储有计算机程序。该计算机程序被处理器执行时使处理器执行上述任一方法实施例提供的一种基于风格迁移的语义验证码生成方法的步骤。Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program. When the computer program is executed by a processor, the processor executes the steps of a semantic verification code generation method based on style transfer provided in any of the above method embodiments.
所述存储介质为实体的、非瞬时性的存储介质,例如可以是U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的实体存储介质。所述计算机可读存储介质可以是非易失性,也可以是易失性。The storage medium is a physical, non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which can store program codes. The computer-readable storage medium can be non-volatile or volatile.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的。例如,各个单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。本发明实施例装置中的单元可以根据实际需要进行合并、划分和删减。另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术作出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,终端,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,尚且本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311780775.0A CN117972673B (en) | 2023-12-21 | 2023-12-21 | Semantic verification code generation method, device, equipment and medium based on style transfer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311780775.0A CN117972673B (en) | 2023-12-21 | 2023-12-21 | Semantic verification code generation method, device, equipment and medium based on style transfer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117972673A CN117972673A (en) | 2024-05-03 |
| CN117972673B true CN117972673B (en) | 2024-07-09 |
Family
ID=90853755
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311780775.0A Active CN117972673B (en) | 2023-12-21 | 2023-12-21 | Semantic verification code generation method, device, equipment and medium based on style transfer |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117972673B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118627050B (en) * | 2024-08-12 | 2024-10-18 | 成都赛力斯科技有限公司 | Picture interactive verification method, electronic device and storage medium |
| CN119740219A (en) * | 2024-11-07 | 2025-04-01 | 支付宝(杭州)信息技术有限公司 | Verification code verification method and device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110009057A (en) * | 2019-04-16 | 2019-07-12 | 四川大学 | A Deep Learning-Based Graphic Captcha Recognition Method |
| CN110717955A (en) * | 2019-09-29 | 2020-01-21 | 武汉极意网络科技有限公司 | Library updating method, device, device and storage medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2003534597A (en) * | 2000-05-09 | 2003-11-18 | サン・マイクロシステムズ・インコーポレイテッド | Remote function invocation using messaging in a distributed computing environment |
| WO2016023471A1 (en) * | 2014-08-11 | 2016-02-18 | 张锐 | Methods for processing handwritten inputted characters, splitting and merging data and encoding and decoding processing |
| TWI770947B (en) * | 2021-04-20 | 2022-07-11 | 國立清華大學 | Verification method and verification apparatus based on attacking image style transfer |
| US20240272877A1 (en) * | 2021-06-07 | 2024-08-15 | Appy Pie LLP | Automated no-code coding of app-software using a conversational interface and natural language processing |
| CN115909019B (en) * | 2022-10-26 | 2024-02-09 | 吉林省吉林祥云信息技术有限公司 | Scheduling method in multi-model node scene for identifying verification code image |
-
2023
- 2023-12-21 CN CN202311780775.0A patent/CN117972673B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110009057A (en) * | 2019-04-16 | 2019-07-12 | 四川大学 | A Deep Learning-Based Graphic Captcha Recognition Method |
| CN110717955A (en) * | 2019-09-29 | 2020-01-21 | 武汉极意网络科技有限公司 | Library updating method, device, device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117972673A (en) | 2024-05-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7084457B2 (en) | Image generation methods, generators, electronic devices, computer-readable media and computer programs | |
| CN117972673B (en) | Semantic verification code generation method, device, equipment and medium based on style transfer | |
| CN109189544B (en) | Method and device for generating dial plate | |
| CN109101545A (en) | Natural language processing method, apparatus, equipment and medium based on human-computer interaction | |
| Singh et al. | Mobile Deep Learning with TensorFlow Lite, ML Kit and Flutter: Build scalable real-world projects to implement end-to-end neural networks on Android and iOS | |
| US12423821B2 (en) | Systems and methods for interacting with a large language model | |
| US12039431B1 (en) | Systems and methods for interacting with a multimodal machine learning model | |
| CN109550256A (en) | Virtual role adjusting method, device and storage medium | |
| CN107093164A (en) | Method and apparatus for generating image | |
| CN118428336A (en) | Method, device, electronic device and storage medium for generating low-code applications | |
| CN117743560A (en) | Multi-role intelligent dialogue method, device, electronic equipment and storage medium | |
| CN118918199A (en) | Drawing processing method and device, storage medium and electronic equipment | |
| CN108874789B (en) | Statement generation method, device, storage medium and electronic device | |
| CN109886402B (en) | Deep learning model training method, device, computer equipment and storage medium | |
| JP2025056789A (en) | system | |
| CN114185618B (en) | A business tool configuration method, device, computer equipment and storage medium | |
| CN113926198B (en) | Emotional data recognition method, device, storage medium and electronic device | |
| CN118587084A (en) | Image processing method, device, smart wearable device and computer storage medium | |
| CN117610539A (en) | Intention execution method, device, electronic equipment and storage medium | |
| CN116229938A (en) | Audio playback method, audio conversion method and device | |
| CN119494326B (en) | Document generation method, device, electronic equipment and medium | |
| CN113485619B (en) | Information collection table processing method and device, electronic equipment and storage medium | |
| CN114008590A (en) | Providing auxiliary user interface using execution blocks | |
| CN121029054A (en) | Graphical interface-based human-computer dialogue interaction methods, devices, equipment, and media | |
| CN118626180A (en) | A method, device, electronic device and storage medium for generating digital content |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
| PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Method, device, equipment, and medium for generating semantic verification codes based on style transfer Granted publication date: 20240709 Pledgee: Bank of China Limited Guangzhou Yuexiu Branch Pledgor: Guangdong Youzhi Technology Co.,Ltd. Registration number: Y2024980050262 |