CN117521701A - Two-dimensional code generation method and device, electronic equipment and storage medium - Google Patents

Two-dimensional code generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117521701A
CN117521701A CN202311810260.0A CN202311810260A CN117521701A CN 117521701 A CN117521701 A CN 117521701A CN 202311810260 A CN202311810260 A CN 202311810260A CN 117521701 A CN117521701 A CN 117521701A
Authority
CN
China
Prior art keywords
dimensional code
target
user
intention
language model
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.)
Pending
Application number
CN202311810260.0A
Other languages
Chinese (zh)
Inventor
张俊祺
吴永宇
李永乐
张正
张翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Data Space Research Institute
Original Assignee
Data Space Research Institute
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Data Space Research Institute filed Critical Data Space Research Institute
Priority to CN202311810260.0A priority Critical patent/CN117521701A/en
Publication of CN117521701A publication Critical patent/CN117521701A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to a two-dimensional code generation method, a device, electronic equipment and a storage medium, wherein the two-dimensional code generation method comprises the following steps: acquiring a first language instruction input by a user, and performing intent analysis on the first language instruction through a large language model to obtain a target intent of the user; and generating a target two-dimensional code according to the target intention through the large language model. Compared with the manual entry of the two-dimensional code parameters by the user, the user can directly give out a plurality of intentions by the language instruction, so that the user can input more conveniently, the input efficiency of the user can be correspondingly improved, and the generation efficiency of the two-dimensional code is further improved as a whole. The problem that the two-dimensional code generation method in the related art is low in two-dimensional code generation efficiency is solved.

Description

Two-dimensional code generation method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of two-dimensional code generation, and in particular, to a two-dimensional code generation method, device, electronic apparatus, and storage medium.
Background
A two-dimensional code is a matrix barcode for storing information. It is a technology widely used in the fields of business, logistics, mobile payment and information transfer. Conventional two-dimensional code generation methods generally require the use of specific software or tools for generation, which may require a certain technical knowledge and time. The existing two-dimensional code technology is usually static and cannot be generated according to dynamic language instructions.
With the popularity of mobile payment and the internet, two-dimensional codes play an increasingly important role in daily life and business activities. However, the existing two-dimensional code generation method generally requires a user to manually input a generation instruction or use special software or application programs for generation, which not only increases the use cost of the user, but also reduces the efficiency of two-dimensional code generation.
Aiming at the problem of low two-dimensional code generation efficiency of the two-dimensional code generation method in the related art, no effective solution is proposed at present.
Disclosure of Invention
The embodiment provides a two-dimensional code generation method, a device, electronic equipment and a storage medium, so as to solve the problem that the two-dimensional code generation method in the related art has low two-dimensional code generation efficiency.
In a first aspect, the present invention provides a two-dimensional code generating method, which includes:
acquiring a first language instruction input by a user, and performing intent analysis on the first language instruction through a large language model to obtain a target intent of the user;
and generating a target two-dimensional code according to the target intention.
In some embodiments, the generating, by the large language model, the target two-dimensional code according to the target intention includes:
judging whether the user needs to generate the target two-dimensional code according to the target intention;
if yes, configuring parameters of the target two-dimensional code according to the target intention, and generating the target two-dimensional code after the configuration is completed.
In some embodiments, the configuring the parameters of the target two-dimensional code according to the target intention includes:
determining whether target contents respectively corresponding to a plurality of preset two-dimensional code parameter items exist in the target intention; the preset two-dimensional code parameter items comprise: type, content, format, and color;
and if the two-dimensional code exists, configuring corresponding parameters of the target two-dimensional code according to the target content.
In some of these embodiments, the method further comprises:
acquiring a second language instruction input by a user, and performing intent analysis on the second language instruction through a large language model to acquire a modification intent of the user;
and updating the target two-dimensional code according to the modification intention.
In some embodiments, the performing, by using a large language model, the intent analysis on the first language instruction to obtain the target intent of the user includes:
and carrying out text word segmentation, marking, grammar structure analysis and semantic analysis on the first language instruction through the large language model, and determining the target intention according to a semantic analysis result.
In some of these embodiments, the intent analysis of the first language instruction by the large language model further comprises:
and carrying out data correction on the first language instruction through the large language model.
In some of these embodiments, the method further comprises:
and acquiring target data in real time, and updating the content of the target two-dimensional code in real time according to the target data through the large language model.
In a second aspect, the present invention provides a two-dimensional code generating apparatus, including:
the intention analysis module is used for acquiring a first language instruction input by a user, and carrying out intention analysis on the first language instruction through a large language model to obtain a target intention of the user;
and the result generation module is used for generating a target two-dimensional code according to the target intention.
In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the two-dimensional code generating method according to the first aspect when executing the computer program.
In a fourth aspect, the present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the two-dimensional code generating method of the first aspect described above.
Compared with the related art, the two-dimensional code generation method provided by the invention has the advantages that the intention analysis is carried out through the large language model based on the natural language technology, the target intention is obtained, and the target two-dimensional code is automatically generated through the target intention. In the actual use process, if a user needs to generate the two-dimensional code, the user only needs to give out a language instruction containing the self demand intention, the large language model can identify the user intention in the language instruction, and corresponding parameters are automatically configured according to the user intention to generate the two-dimensional code. Compared with the manual entry of the two-dimensional code parameters by the user, the user can directly give out a plurality of intentions by the language instruction, so that the user can input more conveniently, the input efficiency of the user can be correspondingly improved, and the generation efficiency of the two-dimensional code is further improved as a whole. The problem that the two-dimensional code generation method in the related art is low in two-dimensional code generation efficiency is solved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a block diagram of a terminal hardware structure for executing a two-dimensional code generation method provided in the present invention;
FIG. 2 is a flow chart of a two-dimensional code generation method of the present invention;
fig. 3 is a block diagram showing the structure of the two-dimensional code generating apparatus of the present invention.
Detailed Description
For a clearer understanding of the objects, technical solutions and advantages of the present application, the present application is described and illustrated below with reference to the accompanying drawings and examples.
Unless defined otherwise, technical or scientific terms used herein shall have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terms "a," "an," "the," "these," and the like in this application are not intended to be limiting in number, but rather are singular or plural. The terms "comprising," "including," "having," and any variations thereof, as used in the present application, are intended to cover a non-exclusive inclusion; for example, a process, method, and system, article, or apparatus that comprises a list of steps or modules (units) is not limited to the list of steps or modules (units), but may include other steps or modules (units) not listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference to "a plurality" in this application means two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. Typically, the character "/" indicates that the associated object is an "or" relationship. The terms "first," "second," "third," and the like, as referred to in this application, merely distinguish similar objects and do not represent a particular ordering of objects.
The method embodiments provided in the present invention may be performed in a terminal, a computer or similar computing device. For example, the method runs on a terminal, and fig. 1 is a block diagram of a terminal hardware structure for executing the two-dimensional code generation method provided in the invention. As shown in fig. 1, the terminal may include one or more (only one is shown in fig. 1) processors 120 and a memory 140 for storing data, wherein the processors 120 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. The terminal may further include a transmission device 160 for a communication function and an input-output device 180. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and is not intended to limit the structure of the terminal. For example, the terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 140 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a two-dimensional code generating method in the present invention, and the processor 120 executes the computer program stored in the memory 140 to perform various functional applications and data processing, that is, to implement the above-described method. Memory 140 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 140 may further include memory located remotely from processor 120, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 160 is used to receive or transmit data via a network. The network includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 160 includes a network adapter (Network Interface Controller, simply referred to as NIC) that may be connected to other network devices via a base station to communicate with the internet. In one example, the transmission device 160 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
In the present invention, there is provided a two-dimensional code generating method, and fig. 2 is a flowchart of the two-dimensional code generating method of the present invention, as shown in fig. 2, the flowchart includes the steps of:
step S210, acquiring a first language instruction input by a user, and performing intent analysis on the first language instruction through a large language model to acquire a target intent of the user;
step S220, generating a target two-dimensional code according to the target intention.
Specifically, the voice instruction refers to voice input or text input of a user, the large language model is a model based on a natural language technology, the large language model can adopt an atom GPT (Atom Generative Pre-trained Transformer) large language model, the atom GPT large language model is based on a LLAMA (Large Language Model Meta AI) model architecture and has more than 100 hundred million parameters, and a large amount of text data training is performed, so that extensive tasks including text summarization, translation and emotion analysis can be performed. The invention is carried out through man-machine interaction, wherein the man-machine interaction process generally refers to a process that a user gives required content and a corresponding answer is output by a system. Therefore, in the implementation process of the invention, a user inputs voice or text, and the two-dimension code generating system outputs the target two-dimension code after executing the two-dimension code generating method through a large language model.
Specifically, the target intention of the user at least includes an intention that two-dimensional codes need to be generated and an intention that two-dimensional codes do not need to be generated. Thus, in an embodiment, step S220, the generating the target two-dimensional code according to the target intention includes: judging whether the user needs to generate the target two-dimensional code according to the target intention; if yes, configuring parameters of the target two-dimensional code according to the target intention, and generating the target two-dimensional code after the configuration is completed. In this embodiment, it is first required to determine whether the user needs to generate the two-dimensional code according to the target intention of the user, and if so, the relevant parameters of the target two-dimensional code are configured according to the target intention of the user.
Illustratively, there are two input scenarios.
Case 1:
such as a sentence input into a large language model: "hello"/"what good movie recommendation" is input independent of generating the two-dimensional code, that is, the user's target intention does not include the intention to generate the two-dimensional code, the large language model directly answers the question, and the two-dimensional code is not generated.
Case 2:
if input into a large language model, a sentence: "please help me generate a two-dimensional code whose background is a tree. And if the target intention obtained by the large language model identification comprises the generation of the two-dimensional code, wherein the background of the two-dimensional code is a tree. The large language model is required to use the function of generating the two-dimensional code when the user needs to be completed, and meanwhile, a picture of a tree is required to be generated. And then, the large language model can call corresponding functions in the two-dimension code generation system to complete tasks and generate target two-dimension codes. Finally, the large language model may also return an answer to the user, for example, a two-dimensional code has been generated for you, please recall.
As can be seen from the above example, when executing step S220, the large language model firstly determines whether the user needs to generate the two-dimensional code, if the target intention of the user is that the two-dimensional code does not need to be generated, the large language model can open-reply to the user problem, if the target intention of the user is that the two-dimensional code needs to be generated, the large language model can configure the parameters of the target two-dimensional code according to the target intention of the user, and after the configuration is completed, the target two-dimensional code is generated.
In order to enable the large language model to improve accuracy of identifying user intention related to two-dimensional code generation, fine tuning training can be performed on the large language model by adopting prediction in a specific field.
For the training process of the large language model, a large amount of text data (related data of the application field of the method) is collected, the data is preprocessed, namely, the collected text data is subjected to operations such as cleaning, de-duplication, format conversion and the like, so that the large language model can be better understood and processed, the processed text data is input into the large language model as sample data, and the large language model is learned, so that the performance of the large language model is improved. The sample data may include positive sample data and negative sample data, where the positive sample data is sample data including an intention related to two-dimensional code generation, and the negative sample data is sample data not including an intention related to two-dimensional code generation. Through the training, the large language model can more accurately identify the user intention related to the generation of the two-dimensional code.
For the two-dimension code generation method, the prior art mainly provides some parameter items of the two-dimension code for a user, and the user is required to manually input various parameter information to generate the two-dimension code. It requires the user to determine the meaning expression of the current parameter item and then input the corresponding parameter information. Furthermore, the user manually and sequentially inputs various parameters, so that the problem of low input efficiency is caused, and the problem of low generation efficiency of the two-dimensional code is caused.
The method is to acquire a first language instruction input by a user, conduct intention analysis through a large language model based on natural language technology, obtain target intention, and automatically generate a target two-dimensional code through the target intention. In the actual use process, if a user needs to generate the two-dimensional code, the user only needs to give out a language instruction containing the self demand intention, the large language model can identify the user intention in the language instruction, and corresponding parameters are automatically configured according to the user intention to generate the two-dimensional code. Compared with the manual entry of the two-dimensional code parameters by the user, the user can directly give out a plurality of intentions by the language instruction, so that the user can input more conveniently, the input efficiency of the user can be correspondingly improved, and the generation efficiency of the two-dimensional code is further improved as a whole. The problem that the two-dimensional code generation method in the related art is low in two-dimensional code generation efficiency is solved.
Further, for some existing two-dimensional code generating methods, more parameter items are provided, so as to support to generate more complex and fine two-dimensional codes, but a user may not have a requirement intention corresponding to some parameter items, so that the user needs to identify each parameter item to determine whether the parameter item is required by the user, and if not, the user needs to execute an operation of skipping the parameter item, or confirm the parameter item required by the user in a plurality of parameter items, thereby further reducing the parameter input efficiency of the user. For example, it is assumed that the existing two-dimensional code generating system supports parameter items such as type, content, format and color, but the user only has requirements on the type and content of the two-dimensional code, and has no requirements on other characteristics of the two-dimensional code, at this time, the user needs to determine two parameter items of the type and the content in a plurality of parameter items, and then input corresponding parameter content. The user takes a certain time to execute the identification screening process of the parameter items, and the user input efficiency is reduced. Meanwhile, there is a possibility that the user may operate an error, such as inputting parameter contents related to the type parameter item into the format parameter item, and thus user input efficiency may be further lowered. Correspondingly, for another part of the existing two-dimension code generation methods, fewer parameter items are provided, and although the parameter input efficiency of the user can be improved, the generation of more complicated and fine two-dimension codes is not supported, and the use requirements of all users cannot be met. Therefore, the existing two-dimensional code generation method has the problem of low two-dimensional code generation efficiency, and has strong use limitation, namely the existing two-dimensional code generation method cannot have rich function support and user input efficiency.
Furthermore, the two-dimensional code generating method can support configuration of more two-dimensional code parameters. Thus, in an embodiment, the configuring the parameters of the target two-dimensional code according to the target intention includes: determining whether target contents respectively corresponding to a plurality of preset two-dimensional code parameter items exist in the target intention; the preset two-dimensional code parameter items comprise: type, content, format, and color; and if the two-dimensional code exists, configuring corresponding parameters of the target two-dimensional code according to the target content.
Specifically, in this embodiment, the two-dimensional code generating method of the present invention may support at least parameter items such as configuration type, content, format, and color. In the parameter configuration process, it is required to determine whether the target intention of the user includes the target content corresponding to each parameter item, that is, determine which two-dimensional code features the user has requirements. If at least one target content corresponding to the parameter item exists, corresponding parameters of the target two-dimensional code are determined according to the target content. Illustratively, when the user's input is a segment: please help me generate a red two-dimensional code for providing the target link and the corresponding target link. At this time, the target intention obtained by identifying the user language instruction by the large language model includes a color item and target content corresponding to the content item, where the target content is respectively red and a target link. Furthermore, the large language model takes the red and target links as corresponding parameters of the target two-dimensional code, so that parameter configuration of the target two-dimensional code is completed. And finally, calling a corresponding function to generate a target two-dimensional code. In the process, the user does not need to screen and identify a plurality of parameter items, and only needs to directly give out own intention in the language instruction. According to the intention analysis result of the large language model, corresponding parameters of the two-dimensional code are automatically configured, irrelevant parameters can be automatically skipped, and manual screening of a user is not needed.
In summary, the user may give all the required intentions in the language instruction, and the large language model automatically configures the two-dimensional code parameters corresponding to each user intention according to the user intention, without selecting among more parameter items, and without executing operations of skipping unnecessary parameter items. Therefore, the two-dimensional code generation method of the invention ensures the user input efficiency and further ensures the two-dimensional code generation efficiency on the basis of providing more two-dimensional code parameter items and supporting the generation of complex and fine two-dimensional codes.
Accordingly, in the training process of the large language model, sample data containing the content corresponding to the preset two-dimensional code parameter item can be used as positive samples for training the large language model, so that the identification accuracy of the large language model to the content corresponding to the preset two-dimensional code parameter item is improved.
In order for the large language model to better understand the intent of the user's language instructions, a better target intent is obtained. Further analysis and interpretation of language instructions by a large language model is as follows.
In one embodiment, step S210, performing intent analysis on the first language instruction through a large language model to obtain the target intent of the user, includes: and carrying out text word segmentation, marking, grammar structure analysis and semantic analysis on the first language instruction through the large language model, and determining the target intention according to a semantic analysis result. The two-dimensional code generating system has the advantages that the natural language of the user is converted into the machine language which can be understood by a computer, so that the two-dimensional code generating system can better understand the intention of the user.
The prior art mainly generates a static two-dimensional code, and cannot meet the requirement of containing dynamic or real-time data, which means that the generated two-dimensional code cannot contain time-varying information, such as real-time stock prices, weather information or other dynamic data.
Thus, in one embodiment, the two-dimensional code generating method further includes: acquiring a second language instruction input by a user, performing intent analysis on the second language instruction through a large language model to obtain a modification intent of the user, and updating the target two-dimensional code according to the modification intent.
Specifically, a first language instruction input by a user is obtained, a target two-dimensional code required by the user is generated, if the user wants to modify the content of the two-dimensional code, a second language instruction input by the user is obtained, the modification intention of the user is obtained, and the target two-dimensional code is modified according to the modification intention. Therefore, compared with the prior art that the static two-dimensional code is mainly generated and the requirement of containing dynamic or real-time data cannot be met, the two-dimensional code generation method of the invention supports the generation of the two-dimensional code for realizing dynamic content, enables the two-dimensional code to change along with time and contain real-time information, enables the dynamic two-dimensional code to continuously display updated information, and continuously modifies the target two-dimensional code through new instructions input by a user, so that the use requirement of the user is met through continuous adjustment. Therefore, the generated target two-dimensional code can be enabled to meet the expectations of users.
In another embodiment, the two-dimensional code generating method further includes: and acquiring target data in real time, and updating the content of the target two-dimensional code in real time according to the target data through the large language model.
Specifically, after the generated target two-dimensional code, if the user wants to update the content of the target two-dimensional code, the user only needs to acquire target data which the user wants to update, and the real-time data is embedded into the generated target two-dimensional code, so that the target two-dimensional code can change along with time and be used for displaying continuously updated information, and the two-dimensional code can be used for displaying real-time data, such as inventory information, price update, activity information and the like. Thereby the practicality of two-dimensional code has been improved.
In one embodiment, the intent analysis of the first language instruction by the large language model further comprises: and carrying out data correction on the first language instruction through the large language model. Specifically, when the large language model is used for carrying out semantic analysis on the language instruction of the user, the self-correction function of the large language model can be used for carrying out data correction on the language instruction. Through correcting the data, the data errors provided by the user can be detected and repaired, so that the accurate two-dimensional code can be generated, the reliability of information transmission is improved, and the error rate in the process of generating the two-dimensional code is reduced.
The technical effect of the invention is not limited to the specific field, and can be widely applied to various fields including advertisement, retail, inventory management, logistics, activity popularization and the like. Thus expanding the application range and market potential of the technology.
As above, the two-dimensional code generation method has been explained and analyzed by the various embodiments. According to the two-dimensional code generation method provided by the invention, the purpose intention is obtained through the intention analysis of the language instruction by the large language model, the two-dimensional code required by the user is generated according to the purpose intention, and meanwhile, the purpose two-dimensional code is updated through the language instruction input by the user in real time, so that the two-dimensional code generation of dynamic content is realized, the two-dimensional code can change along with time and contains real-time information, the user can finish the two-dimensional code generation only by providing a simple language instruction, and the problem of low two-dimensional code generation efficiency in the two-dimensional code generation method in the related art is solved.
It should be noted that the steps illustrated in the above-described flow or flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
The invention also provides a two-dimensional code generating device, which is used for realizing the above embodiments and the preferred embodiments, and is not described in detail. The terms "module," "unit," "sub-unit," and the like as used below may refer to a combination of software and/or hardware that performs a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
Fig. 3 is a block diagram showing a configuration of a two-dimensional code generating apparatus according to the present invention, and as shown in fig. 3, the apparatus includes:
the intention analysis module 310 is configured to obtain a first language instruction input by a user, and perform intention analysis on the first language instruction through a large language model to obtain a target intention of the user;
and a result generating module 320, configured to generate a target two-dimensional code according to the target intention.
Compared with the prior art, the two-dimensional code generation device provided by the invention is used for acquiring the first language instruction input by the user, performing intention analysis through a large language model based on the natural language technology to obtain target intention, and automatically generating the target two-dimensional code through the target intention. In the actual use process, if a user needs to generate the two-dimensional code, the user only needs to give out a language instruction containing the self demand intention, the large language model can identify the user intention in the language instruction, and corresponding parameters are automatically configured according to the user intention to generate the two-dimensional code. Compared with the manual entry of the two-dimensional code parameters by the user, the user can directly give out a plurality of intentions by the language instruction, so that the user can input more conveniently, the input efficiency of the user can be correspondingly improved, and the generation efficiency of the two-dimensional code is further improved as a whole. The problem that the two-dimensional code generation method in the related art is low in two-dimensional code generation efficiency is solved.
In an embodiment, the two-dimensional code generating device can display the generated two-dimensional code image through the built-in display screen, so that a user can view the two-dimensional code. The user can choose to share the generated two-dimensional code with other people, which can be achieved in different ways, including saving the two-dimensional code to the device, sending the two-dimensional code through an email, sharing the two-dimensional code through a short message, or sharing the two-dimensional code through social media.
In an embodiment, the two-dimensional code generating device ensures the user permission and the information security. In a specific case, the user may set a password or other access control manner to limit access to the two-dimensional code. For the two-dimensional code containing sensitive information, the device can encrypt the information by using an encryption algorithm, so that only legal users can decode and view the information.
In an embodiment, the two-dimensional code generating device of the invention supports encoding of multimedia information. A user may use a language instruction or a graphical user interface to embed various types of information such as text, images, audio, etc. into the generated two-dimensional code.
In an embodiment, the two-dimensional code generating device has a voice interaction function, and can communicate with a user in real time to interpret or confirm instructions of the user. And the user-friendly interface and prompt enable the user to easily generate the custom two-dimensional code by using the voice instruction.
In an embodiment, the two-dimensional code generating device of the present invention can be run on various operating systems and hardware devices, including smart phones, tablet computers, computers and other mobile devices.
The two-dimensional code generating device can be applied to various fields such as advertisement propagation, real-time navigation, product identification, identity verification, electronic commerce and the like, and therefore has a wide application prospect.
These embodiments and technical features combine to illustrate how the technical solutions of the present application may be practically operated and implemented, and emphasize relevant technical effects, including user friendliness, information security, cross-platform compatibility, and a wide range of application fields.
The above-described respective modules may be functional modules or program modules, and may be implemented by software or hardware. For modules implemented in hardware, the various modules described above may be located in the same processor; or the above modules may be located in different processors in any combination.
There is also provided in the invention an electronic device comprising a memory in which a computer program is stored and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in one embodiment, the processor may be arranged to perform the following steps by a computer program:
s1, acquiring a first language instruction input by a user, and performing intent analysis on the first language instruction through a large language model to obtain a target intent of the user;
s2, generating a target two-dimensional code according to the target intention.
It should be noted that, the specific examples of the present electronic device may refer to examples described in the embodiments and the optional implementations of the method, and are not described in detail in this embodiment.
In addition, in combination with the two-dimensional code generation method provided by the invention, a storage medium can be provided for implementation in the invention. The storage medium has a computer program stored thereon; the computer program, when executed by a processor, implements any one of the two-dimensional code generation methods of the above embodiments.
It should be noted that, user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to be limiting. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present application, are within the scope of the present application in light of the embodiments provided herein.
It is evident that the drawings are only examples or embodiments of the present application, from which the present application can also be adapted to other similar situations by a person skilled in the art without the inventive effort. In addition, it should be appreciated that while the development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as an admission of insufficient detail.
The term "embodiment" in this application means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive. It will be clear or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

Claims (10)

1. The two-dimensional code generation method is characterized by comprising the following steps of:
acquiring a first language instruction input by a user, and performing intent analysis on the first language instruction through a large language model to obtain a target intent of the user;
and generating a target two-dimensional code according to the target intention.
2. The two-dimensional code generation method according to claim 1, wherein the generating a target two-dimensional code according to the target intention comprises:
judging whether the user needs to generate the target two-dimensional code according to the target intention;
if yes, configuring parameters of the target two-dimensional code according to the target intention, and generating the target two-dimensional code after the configuration is completed.
3. The two-dimensional code generation method according to claim 2, wherein the configuring the parameters of the target two-dimensional code according to the target intention includes:
determining whether target contents respectively corresponding to a plurality of preset two-dimensional code parameter items exist in the target intention; the preset two-dimensional code parameter items comprise: type, content, format, and color;
and if the two-dimensional code exists, configuring corresponding parameters of the target two-dimensional code according to the target content.
4. The two-dimensional code generation method according to claim 1, characterized in that the method further comprises:
acquiring a second language instruction input by a user, and performing intent analysis on the second language instruction through a large language model to acquire a modification intent of the user;
and updating the target two-dimensional code according to the modification intention.
5. The two-dimensional code generating method according to claim 1, wherein the performing intent analysis on the first language instruction by a large language model to obtain the target intent of the user comprises:
and carrying out text word segmentation, marking, grammar structure analysis and semantic analysis on the first language instruction through the large language model, and determining the target intention according to a semantic analysis result.
6. The two-dimensional code generation method according to claim 5, wherein the intention analysis of the first language instruction by the large language model further comprises:
and carrying out data correction on the first language instruction through the large language model.
7. The two-dimensional code generation method according to claim 1, characterized in that the method further comprises:
and acquiring target data in real time, and updating the content of the target two-dimensional code in real time according to the target data through the large language model.
8. A two-dimensional code generation apparatus, characterized in that the apparatus comprises:
the intention analysis module is used for acquiring a first language instruction input by a user, and carrying out intention analysis on the first language instruction through a large language model to obtain a target intention of the user;
and the result generation module is used for generating a target two-dimensional code according to the target intention.
9. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the two-dimensional code generation method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the two-dimensional code generation method of any one of claims 1 to 7.
CN202311810260.0A 2023-12-27 2023-12-27 Two-dimensional code generation method and device, electronic equipment and storage medium Pending CN117521701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311810260.0A CN117521701A (en) 2023-12-27 2023-12-27 Two-dimensional code generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311810260.0A CN117521701A (en) 2023-12-27 2023-12-27 Two-dimensional code generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117521701A true CN117521701A (en) 2024-02-06

Family

ID=89742291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311810260.0A Pending CN117521701A (en) 2023-12-27 2023-12-27 Two-dimensional code generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117521701A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180052842A1 (en) * 2016-08-16 2018-02-22 Ebay Inc. Intelligent online personal assistant with natural language understanding
CN117093739A (en) * 2023-09-04 2023-11-21 上海天图云睿智能科技有限公司 Image generation and image-text alignment method and device, terminal equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180052842A1 (en) * 2016-08-16 2018-02-22 Ebay Inc. Intelligent online personal assistant with natural language understanding
CN117093739A (en) * 2023-09-04 2023-11-21 上海天图云睿智能科技有限公司 Image generation and image-text alignment method and device, terminal equipment and storage medium

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
于源作: "《C#图书馆自动化技术与应用》", 31 August 2022, 辽宁师范大学出版社, pages: 66 - 68 *
俞婕: "《数字化时代大学英语翻转课堂新探索》", 30 April 2022, 冶金工业出版社, pages: 37 - 39 *
张元珍: "《社区居民传染病防控知识200问》", 28 February 2021, 湖北科学技术出版社, pages: 35 *
苏江: "《ChatGPT使用指南 人人都应该掌握的AI最强工具》", 31 May 2023, 北京理工大学出版社, pages: 9 - 20 *
苏江: "ChatGPT生成创新二维码:AI增强的二维码设计与实验", pages 1 - 13, Retrieved from the Internet <URL:https://sujiang.blog/blog/2023/05/13/chatgpt生成创新二维码:ai增强的二维码设计与实验> *

Similar Documents

Publication Publication Date Title
US9996531B1 (en) Conversational understanding
US8849854B2 (en) Method and system for providing detailed information in an interactive manner in a short message service (SMS) environment
CN108280200B (en) Method and device for pushing information
US10554613B2 (en) Dynamic hashtag ordering based on projected interest
US20200050906A1 (en) Dynamic contextual data capture
US20230129455A1 (en) Application program app management method, terminal device, server, and system
CN108681871B (en) Information prompting method, terminal equipment and computer readable storage medium
CN110113492A (en) Information display method and device based on notification information
US10803504B2 (en) Method for generating by processor a second actionable item for execution by a data payload execution platform in order to complete processing of an action from a first actionable item
CN107977876B (en) Method and device for processing order information
CN114119123A (en) Information pushing method and device
CN112434746A (en) Pre-labeling method based on hierarchical transfer learning and related equipment thereof
CN112100491A (en) Information recommendation method, device and equipment based on user data and storage medium
US20220198153A1 (en) Model training
CN111651989A (en) Named entity recognition method and device, storage medium and electronic device
CN111787042A (en) Method and device for pushing information
CN117521701A (en) Two-dimensional code generation method and device, electronic equipment and storage medium
US11501081B1 (en) Methods, mediums, and systems for providing a model for an end-user device
CN115344757A (en) Label prediction method, electronic equipment and storage medium
KR20150116078A (en) Method for requiring after service using search keywords
CN109145084B (en) Data processing method, data processing device and server
CN113901337A (en) Application recommendation method, device, equipment and computer-readable storage medium
KR20220150060A (en) platform that provides company matching services based on user information and provides security services for them
CN108431813A (en) Special digital assistant for Scoped natural language result focusing options
CN111782776A (en) Method and device for realizing intention identification through slot filling

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