Two-dimensional code generation method and device and electronic equipment

By obtaining the description information of the target image and generating corresponding dot matrix images, combining user content, a QR code in image form close to the target image is solved, and the problem of large differences between the QR code and the target image in the prior art is solved, and the further development is achieved High visual consistency and convenient application.

CN118940785APending Publication Date: 2024-11-12BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411045500.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The image form QR code generated by the prior art has a large difference between the graphics that users want, and is less correlated, making it difficult to meet the needs of decorativeness and visual consistency.

Method used

By obtaining the description information of the target image input by the user, a dot matrix image corresponding to the target image is generated, and combined with the user content to be bound, an image-form QR code close to the target image is generated by the graph.

Benefits of technology

The generated QR code is better integrated with the target image, visually close to the original image, and is suitable for various media carriers, improving the decorativeness and convenience of the QR code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940785A_ABST
    Figure CN118940785A_ABST
Patent Text Reader

Abstract

The invention provides a two-dimensional code generation method, and relates to the technical field of image processing, in particular to the technical field of two-dimensional code generation and large language models. The specific implementation scheme is as follows: obtaining description information of a target image based on the target image input by a user; generating a dot matrix image corresponding to the target image based on the target image; and according to the description information, the dot matrix image and to-be-bound user content, generating a two-dimensional code which contains the user content and is in an image form. According to the method provided by the invention, the two-dimensional code in the image form containing the user content can be generated based on the description information of the target image and the dot matrix image, so that the two-dimensional code and the target image can be better fused, and the generated two-dimensional code is close to the original target image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to the field of two-dimensional code generation and large language model technology. Background Art

[0002] In recent years, with the continuous development of graphic coding technology and image processing technology, QR code technology has developed rapidly and has been widely used in mobile payment, securities, information traceability, product packaging, Internet of Things and other fields. In addition, in order to meet the needs, artistic QR codes with decorative effects have emerged, such as QR codes in image form.

[0003] Currently, QR codes in image form are mainly generated in this way: the user inputs a text prompt word, and the image QR code model generates a corresponding QR code based on the text prompt word, that is, the QR code is generated in a text-generated image manner. However, the graphics of the QR code generated in this way may deviate greatly from the graphics desired by the user and have little relevance to the user. Summary of the invention

[0004] The present disclosure provides a method, device and electronic device for generating a two-dimensional code for solving at least one of the above-mentioned technical problems.

[0005] According to one aspect of the present disclosure, a method for generating a two-dimensional code is provided, wherein the method comprises:

[0006] Based on a target image input by a user, obtaining description information of the target image;

[0007] Based on the target image, generating a dot matrix image corresponding to the target image;

[0008] A QR code in image form containing the user content is generated according to the description information, the dot matrix image, and the user content to be bound.

[0009] According to another aspect of the present disclosure, a device for generating a two-dimensional code is provided, wherein the device comprises:

[0010] A description information module, used to obtain description information of the target image based on the target image input by the user;

[0011] A dot matrix image module, used for generating a dot matrix image corresponding to the target image based on the target image;

[0012] The QR code module is used to generate a QR code in image form containing the user content according to the description information, the dot matrix image and the user content to be bound.

[0013] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the above method.

[0017] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the above method.

[0018] According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the above method when executed by a processor.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0021] Figure 1 It is a flowchart of a method for generating a two-dimensional code provided in the first embodiment of the present disclosure;

[0022] Figure 2 It is a flow chart of S101 of a method for generating a two-dimensional code provided in the first embodiment of the present disclosure;

[0023] Figure 3 It is a flowchart of S102 of a method for generating a two-dimensional code provided in the first embodiment of the present disclosure;

[0024] Figure 4 is a flow chart of S102 of another two-dimensional code generation method provided by the first embodiment of the present disclosure;

[0025] Figure 5 It is a flow chart of S103 of a method for generating a two-dimensional code provided in the first embodiment of the present disclosure;

[0026] Figure 6 It is a flowchart of S1020 of a method for generating a two-dimensional code provided in the first embodiment of the present disclosure;

[0027] Figure 7is a structural schematic diagram of a two-dimensional code generation device provided in the second embodiment of the present disclosure;

[0028] Figure 8 The block diagram is a block diagram of an electronic device for implementing the method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0030] In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.

[0031] As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.

[0032] The terminology used herein is for describing particular embodiments only and is not intended to limit the present disclosure.As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0033] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and the present disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined as such herein.

[0034] The method for generating a two-dimensional code according to the present disclosure can be executed by an electronic device such as a terminal device or a server, and the terminal device can be a vehicle-mounted device, a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. The method can be implemented by a processor calling a computer-readable program instruction stored in a memory. Alternatively, the method for generating a two-dimensional code provided by the present disclosure can be executed by a server.

[0035] In the first embodiment disclosed, see Figure 1 , Figure 1A schematic diagram of a process for generating a two-dimensional code provided by the first embodiment of the present disclosure is shown. The method comprises:

[0036] S101. Based on a target image input by a user, obtain description information of the target image.

[0037] The target image input by the user can be an image selected by the user from any channel, for example, an image selected by the user from a cloud image, an image taken by the user, an image selected by the user from a local device, etc., without limitation. The target image provides a reference image for the generated QR code, so that the QR code in the form of an image generated after processing is close to the target image.

[0038] The description information is information describing the content of the target image, such as describing the objects contained in the target image, describing the object features of the objects, describing the image style of the target image, describing the color information contained in the target image, etc., which are not limited here. In the disclosed embodiment, the description information is used to guide the adjustment of the dot matrix image so that the dot matrix image is closer to the target image, so that the QR code generated according to the dot matrix image is closer to the target image.

[0039] S102: Based on the target image, generate a dot matrix image corresponding to the target image.

[0040] Among them, the dot matrix image can also be called a bitmap, raster image, pixel map, etc., and the smallest unit is a pixel. In the embodiment of the present disclosure, a variety of methods can be used to convert the target image into a dot matrix image, such as using a raster image processor (Raster Image Processor, RIP) or a bitmap encoder (BitmapDecoder), etc., which is not limited here.

[0041] S103: Generate a QR code in image form containing the user content according to the description information, the dot matrix image, and the user content to be bound.

[0042] Among them, the two-dimensional code in this application may include various types of two-dimensional codes, such as: Quick Response Code (QR) two-dimensional code, stacked (PDF417) two-dimensional code, rectangular (DataMatrix) two-dimensional code, which are not limited here.

[0043] The user content to be bound is the content of the QR code scanning result. The user content can be in various forms, such as links, user business cards, pictures, videos, etc., which are not limited here.

[0044] In the disclosed embodiment, the generated QR code uses a dot matrix image close to the original target image as a base image, combines user content and the dot matrix image, and obtains a QR code in image form. As a result, while the image of the QR code is visually close to the target image, the dot matrix image does not produce distortion problems, and is therefore easy to apply to various forms of media carriers, such as web pages, microservice architecture pages, etc., which are not limited here.

[0045] The method provided by the present disclosure parses the target image to obtain description information describing the content of the target image, then converts the target image into a dot matrix image, and finally generates a QR code in image form based on the description information, the dot matrix image and the user content to be bound, so that the generated QR code and the target image can be better integrated, and the image-to-image method is adopted to make the generated QR code close to the original target image.

[0046] In some application scenarios, this generation method has significant beneficial effects. For example, when the bound user content is a picture, in other words, when the QR code scanning result is a picture, in the traditional method, the generated QR code graphics are unrelated to the picture of the user content. In the embodiment of the present disclosure, the QR code can be directly generated with the picture of the user content as the target image. The picture of the user content can be intuitively previewed from the image of the QR code. When it is necessary to display multiple QR codes bound to pictures, the correspondence between the QR code and the picture can be directly obtained by previewing the QR code, eliminating the operation of scanning the QR code to view the picture.

[0047] For some examples, see Figure 2 , Figure 2 An exemplary flow chart of S101 is shown, wherein S101 includes:

[0048] S1011. Input the target image into the image recognition model to obtain image features of the target image.

[0049] S1012: Generate description information of the target image based on the image features.

[0050] The image feature includes at least one of the following: an object contained in the target image, an object feature of the object, an image style of the target image, and color information.

[0051] The content of an image is usually described based on image features. In the disclosed embodiment, an image recognition model can be used to extract the image features of a target image, and then the description information of the target image is obtained based on the image features, wherein the image recognition model is used to process, analyze and understand the image to identify the various types of target objects contained in the image. The training set of the image recognition model includes the data values ​​of the image to be recognized and the recognition result labels. Specifically, a variety of image recognition models can be used, including but not limited to: including but not limited to convolutional neural networks, long short-term memory neural networks, deep belief networks, generative adversarial networks, recurrent neural networks, etc. The present invention does not limit the type of neural network model, and those skilled in the art can construct it according to actual needs.

[0052] Of course, in some examples, a large language model may also be used to obtain description information of the target image, which is not limited here.

[0053] In some examples, in S102, during the process of generating the dot matrix image, the image fineness of the dot matrix image can be adjusted. Adjusting the image fineness means adjusting the number of bits of the dot matrix image so as to adapt to various scenes. There are various ways to adjust the image fineness of the dot matrix image, for example:

[0054] Method 1: The image fineness of the dot matrix image can be adjusted according to the pixel data amount of the target image.

[0055] Specifically, see Figure 3 , Figure 3 An exemplary flow chart of S102 is shown, wherein S102 includes:

[0056] S1021A, determining the pixel data amount of the target image, and determining the image fineness corresponding to the dot matrix image according to the pixel data amount.

[0057] S1022A, converting the target image into a dot matrix image of corresponding image fineness.

[0058] Among them, the image fineness of the dot matrix image is set according to the pixel data amount of the target image. When the pixel data amount of the target image is large, the image fineness is high; when the pixel data amount of the target image is small, the image fineness is low. In this way, the corresponding image fineness can be determined according to the size of the target image, avoiding waste of storage space while retaining the image details of the target image as much as possible.

[0059] Method 2: Users can flexibly adjust the image fineness of the dot matrix image.

[0060] Specifically, see Figure 4 , Figure 4An exemplary flow chart of S102 is shown, wherein S102 includes:

[0061] S1021B, based on the image fineness set by the user, convert the target image into a dot matrix image of the corresponding image fineness.

[0062] The user can set the image fineness as needed to adapt to various scenarios. There are many ways to adjust the image fineness, such as adjusting through the image progress bar slider or selecting through a drop-down page, which is not limited here.

[0063] In some examples, in S103, there may be multiple ways to generate a QR code in image form based on description information, dot matrix images, and user content, for example, using a large language model, a diffusion network (ControlNet), etc., which are not limited here.

[0064] For some examples, see Figure 5 , Figure 5 An exemplary flow chart of S103 is shown, wherein S103 includes:

[0065] S1031, using the description information as a prompt word and the dot matrix image as a base image, inputting the description information, the dot matrix image, and the user content to be bound into a large language model to obtain an output QR code.

[0066] The large language model adjusts the dot matrix image according to the description information to obtain an adjusted dot matrix image that matches the description information, and synthesizes the adjusted dot matrix image and the user content into a QR code in the form of a dot matrix image.

[0067] In S102, the target image is directly converted into a dot matrix image. In some cases, the dot matrix image may not be close enough to the target image. Therefore, the image content of the dot matrix image is adjusted according to the description information as a prompt, so that the dot matrix image is closer to the target image. For example, the description information is: the object is a dog, the object feature is a sitting dog, and the color information includes: yellow and white. The description information is input into the large language model as a prompt to guide the large language model to adjust the dot matrix image so that the image content of the dot matrix image is close to the description information. The adjusted dot matrix image and the user content are then merged to obtain a final QR code. The image form of the final QR code is in the form of a dot matrix image, which includes user content.

[0068] In some examples, after S102 and before S103, the method further includes:

[0069] S1020, adding personalized elements to the dot matrix image.

[0070] As an example, see Figure 6 , Figure 6 An exemplary flow chart of S1020 is shown, wherein S1020 includes:

[0071] S10201. Obtain user personalized tags based on user historical data.

[0072] S10202. Based on the user personalized tag, determine the corresponding user personalized element in a preset element feature library.

[0073] S10203. Combine the user's personality elements with the dot matrix image to generate a dot matrix image containing the user's personality elements.

[0074] In some examples, personalized elements can be added to the QR code in combination with the personalized preferences of the user. An element feature library can be pre-established, which contains multiple element materials, and each element material is set with multiple tags. The user's historical data is analyzed to obtain the user's personalized tags, wherein the user's historical data, for example, includes: at least one of historical collection information, historical browsing information, and historical behavior preferences, and then a tag matching calculation is performed based on the user's personalized tags and the tags of the element materials in the element feature library, and the element material with the highest matching degree is determined as the user's personalized element, and then the user's personalized element and the dot matrix image are combined to generate a dot matrix image containing the user's personalized element; in S103, the dot matrix image containing the user's personalized element is used as the base map, and the QR code is generated in combination with the description information and the user content to be bound.

[0075] In the disclosed second embodiment, based on Figure 1 The same principle, Figure 7 A two-dimensional code generating device 70 provided in the second embodiment of the present disclosure is shown, and the device includes:

[0076] A description information module 701 is used to obtain description information of a target image based on a target image input by a user;

[0077] The dot matrix image module 702 is used to generate a dot matrix image corresponding to the target image based on the target image;

[0078] The QR code module 703 is used to generate a QR code in image form containing user content according to the description information, the dot matrix image, and the user content to be bound.

[0079] In some examples, the QR code module is used to:

[0080] Using the description information as the prompt word and the dot matrix image as the base image, the description information, the dot matrix image, and the user content to be bound are input into the large language model to obtain the output QR code;

[0081] The large language model adjusts the dot matrix image according to the description information to obtain an adjusted dot matrix image that matches the description information, and synthesizes the adjusted dot matrix image and the user content into a QR code in the form of a dot matrix image.

[0082] In some examples, the description information module is used to:

[0083] Input the target image into the image recognition model to obtain the image features of the target image;

[0084] Generate description information of the target image based on image features;

[0085] The image feature includes at least one of the following: an object contained in the target image, an object feature of the object, an image style of the target image, and color information.

[0086] In some examples, the bitmap module is used to:

[0087] Determine the pixel data amount of the target image, and determine the image fineness corresponding to the dot matrix image according to the pixel data amount;

[0088] Convert the target image into a dot matrix image of the corresponding image fineness.

[0089] In some examples, the bitmap module is used to:

[0090] Based on the image fineness set by the user, the target image is converted into a dot matrix image of the corresponding image fineness.

[0091] In some examples, the apparatus further comprises:

[0092] Stylization module, used to obtain user personalized labels based on user historical data;

[0093] Based on the user personalized tag, determine the corresponding user personalized element in the preset element feature library;

[0094] The user's personality elements are combined with the dot matrix image to generate a dot matrix image containing the user's personality elements.

[0095] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0096] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0097] Figure 8A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0098] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0099] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0100] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the generation method of a two-dimensional code. For example, in some embodiments, the generation method of a mind map may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or a communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the generation method of the two-dimensional code described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured as a generation method of a two-dimensional code by any other appropriate means (e.g., by means of firmware).

[0101] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0102] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0103] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0104] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0105] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0106] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0107] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0108] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for generating a two-dimensional code, in, The method comprises: Based on a target image input by a user, obtaining description information of the target image; Based on the target image, generating a dot matrix image corresponding to the target image; A QR code in image form containing the user content is generated according to the description information, the dot matrix image, and the user content to be bound.

2. The method according to claim 1, in, The step of generating a QR code in the form of an image containing the user content according to the description information, the dot matrix image, and the user content to be bound includes: Using the description information as a prompt word and the dot matrix image as a base image, the description information, the dot matrix image, and the user content to be bound are input into a large language model to obtain the output QR code; The large language model adjusts the bitmap image according to the description information to obtain an adjusted bitmap image that matches the description information, and synthesizes the adjusted bitmap image and the user content into a QR code in the form of a bitmap image.

3. The method according to claim 1 or 2, in, The step of obtaining description information of the target image based on the target image input by the user includes: Inputting the target image into an image recognition model to obtain image features of the target image; generating description information of the target image based on the image features; The image feature includes at least one of the following: an object contained in the target image, an object feature of the object, an image style and color information of the target image.

4. The method according to any one of claims 1 to 3, in, The step of generating a dot matrix image corresponding to the target image based on the target image includes: Determine the pixel data amount of the target image, and determine the image fineness corresponding to the dot matrix image according to the pixel data amount; The target image is converted into the dot matrix image corresponding to the image fineness.

5. The method according to any one of claims 1 to 3, in, The step of generating a dot matrix image corresponding to the target image based on the target image includes: Based on the image fineness set by the user, the target image is converted into the dot matrix image corresponding to the image fineness.

6. The method according to any one of claims 1 to 5, in, After generating a dot matrix image corresponding to the target image based on the target image, and before generating a QR code in image form containing the user content according to the description information, the dot matrix image, and the user content to be bound, the method further includes: Based on user historical data, obtain user personalized tags; Based on the user personalized tag, determine the corresponding user personalized element in a preset element feature library; The user personality element is combined with the dot matrix image to generate a dot matrix image containing the user personality element.

7. A device for generating a two-dimensional code, in, The device comprises: A description information module, used to obtain description information of the target image based on the target image input by the user; A dot matrix image module, used for generating a dot matrix image corresponding to the target image based on the target image; The QR code module is used to generate a QR code in image form containing the user content according to the description information, the dot matrix image and the user content to be bound.

8. The device according to claim 7, in, The two-dimensional code module is used for: Using the description information as a prompt word and the dot matrix image as a base image, the description information, the dot matrix image, and the user content to be bound are input into a large language model to obtain the output QR code; The large language model adjusts the bitmap image according to the description information to obtain an adjusted bitmap image that matches the description information, and synthesizes the adjusted bitmap image and the user content into a QR code in the form of a bitmap image.

9. The device according to claim 7 or 8, in, The description information module is used for: Inputting the target image into an image recognition model to obtain image features of the target image; generating description information of the target image based on the image features; The image feature includes at least one of the following: an object contained in the target image, an object feature of the object, an image style and color information of the target image.

10. The device according to any one of claims 7 to 9, in, The dot matrix image module is used for: Determine the pixel data amount of the target image, and determine the image fineness corresponding to the dot matrix image according to the pixel data amount; The target image is converted into the dot matrix image corresponding to the image fineness.

11. The device according to any one of claims 7 to 9, in, The dot matrix image module is used for: Based on the image fineness set by the user, the target image is converted into the dot matrix image corresponding to the image fineness.

12. The device according to any one of claims 7 to 11, in, The device also includes: Stylization module, used to obtain user personalized labels based on user historical data; Based on the user personalized tag, determine the corresponding user personalized element in a preset element feature library; The user personality element is combined with the dot matrix image to generate a dot matrix image containing the user personality element.

13. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.

15. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.