CN110717955B - Gallery updating method, device, equipment and storage medium - Google Patents

Gallery updating method, device, equipment and storage medium Download PDF

Info

Publication number
CN110717955B
CN110717955B CN201910938015.5A CN201910938015A CN110717955B CN 110717955 B CN110717955 B CN 110717955B CN 201910938015 A CN201910938015 A CN 201910938015A CN 110717955 B CN110717955 B CN 110717955B
Authority
CN
China
Prior art keywords
information
picture information
gallery
reference picture
fused
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910938015.5A
Other languages
Chinese (zh)
Other versions
CN110717955A (en
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.)
Wuhan Jiyi Network Technology Co ltd
Original Assignee
Wuhan Jiyi Network Technology Co ltd
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 Wuhan Jiyi Network Technology Co ltd filed Critical Wuhan Jiyi Network Technology Co ltd
Priority to CN201910938015.5A priority Critical patent/CN110717955B/en
Publication of CN110717955A publication Critical patent/CN110717955A/en
Application granted granted Critical
Publication of CN110717955B publication Critical patent/CN110717955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2133Verifying human interaction, e.g., Captcha

Abstract

The invention discloses a gallery updating method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring reference picture information in a gallery to be updated; searching a corresponding fusion rule according to the reference picture information; extracting element information to be fused in the fusion rule; embedding the element information to be fused into the reference picture information according to the element type of the element information to be fused to obtain target picture information, so that the picture information in the verification code picture library is updated in a picture embedding mode, the difficulty of the picture information in the verification code picture library is ensured, and the network security protection is improved when verification is carried out through verification pictures.

Description

Gallery updating method, device, equipment and storage medium
Technical Field
The present invention relates to the field of network security technologies, and in particular, to a method, an apparatus, a device, and a storage medium for updating a gallery.
Background
The CAPTCHA (CAPTCHA) is an anti-turing test used as a man-machine distinction, blocking machine interaction requests. The traditional verification code is of a character type, and the machine recognition is resisted by deforming, twisting and increasing interference on characters in the picture.
With the continuous development of technology, various cracking modes, such as cracking verification codes through an exhaustion method, appear. The basic idea is to enumerate all cases related to a problem one by one, and check which are solutions to the problem according to the conditions presented by the problem, which should be excluded, and the existing method is often verified by the exhaustion method, so as to cause defensive loopholes.
Disclosure of Invention
The invention mainly aims to provide a gallery updating method, a gallery updating device and a gallery updating storage medium, and aims to solve the technical problem of how to update pictures to realize the countermeasure against an exhaustion method.
In order to achieve the above object, the present invention provides a gallery updating method, which includes the following steps:
acquiring reference picture information in a gallery to be updated;
searching a corresponding fusion rule according to the reference picture information;
extracting element information to be fused in the fusion rule;
embedding the element information to be fused into the reference picture information according to the element type of the element information to be fused to obtain target picture information;
and updating the gallery to be updated according to the target picture information.
Preferably, before the obtaining the reference picture information in the gallery to be updated, the method further includes:
acquiring historical picture information containing the reference picture information, writing the historical picture information into a to-be-updated gallery, calling a timer, and recording writing time information of the historical picture information through the timer;
correspondingly, the obtaining the reference picture information in the gallery to be updated includes:
and when the writing time information of the historical picture information reaches the target time information, taking the historical picture information corresponding to the target time information as the reference picture information.
Preferably, before the searching for the corresponding fusion rule according to the reference picture information, the method further includes:
acquiring historical fusion element information containing the element information to be fused, and taking the historical fusion element information as the fusion rule;
acquiring write-in instruction information carrying the fusion rule and write-in address information;
writing the fusion rule into a preset storage area according to the writing address information according to the writing instruction information;
correspondingly, the searching the corresponding fusion rule according to the reference picture information comprises the following steps:
and searching a corresponding fusion rule in the preset storage area according to the reference picture information.
Preferably, the embedding the element information to be fused into the reference picture information according to the element type of the element information to be fused to obtain target picture information includes:
obtaining texture information of the element information to be fused;
respectively obtaining style information and text information of the element information to be fused according to the texture information;
obtaining the element type of the corresponding element information to be fused according to the style information and the text information;
and embedding the element information to be fused into the reference picture information according to the style information and the text information to obtain target picture information.
Preferably, the method further comprises, before the embedding the element information to be fused into the reference picture information according to the style information and the text information to obtain the target picture information
Predicting the reference picture information through a preset convolutional neural network model to obtain a content predicted value in the reference picture information;
acquiring category information and a real data value of each content in the reference picture information;
extracting content information in the reference picture information according to the category information, the real data value and the content predicted value;
correspondingly, the embedding the element information to be fused into the reference picture information according to the style information and the text information to obtain target picture information comprises the following steps:
acquiring a loss function corresponding to the style information, a loss function corresponding to the content information and a super parameter;
obtaining a fusion loss function according to the loss function corresponding to the style information, the loss function corresponding to the content information and the super parameter;
and embedding the element information to be fused into the reference picture information according to the fusion loss function to obtain target picture information.
Preferably, before the updating the gallery to be updated according to the target picture information, the method further includes:
acquiring identification difficulty information of the target picture information;
when the identification difficulty information is smaller than a preset threshold value, adjusting the target picture information according to the preset threshold value to obtain updated target picture information;
correspondingly, the updating the gallery to be updated according to the target picture information includes:
and updating the gallery to be updated according to the updated target picture information.
Preferably, after the updating the gallery to be updated according to the target picture information, the method further includes:
acquiring a preset calling interface;
and calling the updated gallery through the preset calling interface so that the picture information in the updated gallery is displayed in a corresponding mode.
In addition, in order to achieve the above object, the present invention also provides a gallery updating device, including:
the acquisition module is used for acquiring the reference picture information in the gallery to be updated;
the searching module is used for searching the corresponding fusion rule according to the reference picture information;
the extraction module is used for extracting element information to be fused in the fusion rule;
the embedding module is used for embedding the element information to be fused into the reference picture information according to the element type of the element information to be fused to obtain target picture information;
and the updating module is used for updating the to-be-updated gallery according to the target picture information.
In addition, in order to achieve the above object, the present invention also provides a gallery updating apparatus, including: a memory, a processor, and a gallery update program stored on the memory and executable on the processor, the gallery update program configured to implement the steps of the gallery update method as described above.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a gallery updating program which, when executed by a processor, implements the steps of the gallery updating method as described above.
According to the gallery updating method provided by the invention, the reference picture information in the gallery to be updated is obtained; searching a corresponding fusion rule according to the reference picture information; extracting element information to be fused in the fusion rule; embedding the element information to be fused into the reference picture information according to the element type of the element information to be fused to obtain target picture information, so that the picture information in the verification code picture library is updated in a picture embedding mode, the difficulty of the picture information in the verification code picture library is ensured, and the network security protection is improved when verification is carried out through verification pictures.
Drawings
FIG. 1 is a schematic diagram of a device architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a gallery updating method according to the present invention;
FIG. 3 is a flowchart of a second embodiment of a gallery updating method according to the present invention;
FIG. 4 is a flowchart of a third embodiment of a gallery updating method according to the invention;
fig. 5 is a schematic diagram of functional modules of a first embodiment of a gallery updating device of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic device structure diagram of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as keys, and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the device structure shown in fig. 1 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a gallery update program may be included in the memory 1005 as one type of storage medium.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to an external network, and performing data communication with other network devices; the user interface 1003 is mainly used for connecting user equipment and communicating data with the equipment; the device of the present invention calls the gallery updating program stored in the memory 1005 through the processor 1001, and executes the implementation method of the gallery updating provided by the embodiment of the present invention.
Based on the hardware structure, the embodiment of the gallery updating method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a gallery updating method according to the present invention.
In a first embodiment, the gallery updating method includes the steps of:
step S10, obtaining the reference picture information in the gallery to be updated.
It should be noted that, the execution body of the embodiment is a gallery updating device, and may be other devices that can implement the same or similar functions, which is not limited in this embodiment, and in this embodiment, the gallery updating device is taken as an example for explanation.
It will be appreciated that the reference picture information is picture information in a pre-existing database, and the picture information includes various types and styles of picture information, such as live-action landscape picture information, oil painting style picture information, picture information including text information, and other types of picture information, which is not limited in this embodiment.
And step S20, searching a corresponding fusion rule according to the reference picture information.
In this embodiment, the fusing rule includes that style features are fused into a live-action picture, or that text features are fused into a live-action picture, and further includes that style features and text features are respectively fused into a live-action picture, and in addition, the fusing rule also includes other forms of feature fusion rules.
It can be understood that the fusion rule can be flexibly configured according to the requirements of users, and when an editing instruction is received, the fusion rule can be edited according to the editing instruction, so that the flexibility of the fusion rule is improved, and the requirements of different users are met.
And step S30, extracting element information to be fused in the fusion rule.
It should be noted that, in order to implement the processing of the to-be-processed picture, a specific fusion rule may be obtained, for example, in the case that the current fusion rule is to migrate an oil painting style of an oil painting into a to-be-processed live-action picture, in this case, it is necessary to search a picture of the oil painting style corresponding to the fusion rule in a preset database, and the style migration is implemented by obtaining a picture of the corresponding oil painting style.
And step S40, embedding the element information to be fused into the reference picture information according to the element type of the element information to be fused to obtain target picture information.
In a specific implementation, by means of style migration, for example, an artistic oil painting and a landscape photo are provided, the artistic style of the artistic oil painting is migrated to a live-action photo, so that the live-action photo is provided with the artistic oil painting, colors, hues and lines, and simultaneously, characters and background pictures are also migrated in style together, so that the characters and the background pictures have a certain degree of fusion, the verification code pictures in a picture library are updated, and the verification picture also has a certain difficulty in recognition under the premise of fidelity through style migration, thereby avoiding hackers from realizing cracking of the verification code in an exhaustive manner.
And S50, updating the to-be-updated gallery according to the target picture information.
It can be understood that after the reference picture information is obtained, the reference picture information can be replaced by the original reference picture information, so that the update of the reference picture information is realized, and the user verification is performed by using the target picture, so that the difficulty of the target picture is increased and the update is performed, and the security of the network is improved.
According to the embodiment, through the scheme, the reference picture information in the gallery to be updated is obtained; searching a corresponding fusion rule according to the reference picture information; extracting element information to be fused in the fusion rule; embedding the element information to be fused into the reference picture information according to the element type of the element information to be fused to obtain target picture information, so that the picture information in the verification code picture library is updated in a picture embedding mode, the difficulty of the picture information in the verification code picture library is ensured, and the network security protection is improved when verification is carried out through verification pictures.
Further, as shown in fig. 3, a second embodiment of the gallery updating method according to the present invention is proposed based on the first embodiment, and in this embodiment, before the step S10, the method further includes:
step S101, obtaining historical picture information containing the reference picture information, and writing the historical picture information into a to-be-updated gallery.
It should be noted that, the history picture information including the reference picture information is obtained by setting a monitoring program, where the monitoring program may be a monitoring program of the gallery updating device itself, or may be a third party application program, and the monitoring of the access resource is implemented by the third party application program.
Step S102, calling a timer, and recording the writing time information of the history picture information through the timer.
In this embodiment, the timer may be started, and the update information of the gallery in the database may be recorded by the timer, and when the time recorded by the timer reaches the target time, for example, one month, other time parameter information may also be used, which is not limited in this embodiment, and in this embodiment, a month is taken as an example to describe the update of the picture, so that the efficiency of updating the picture is improved, and the update of the picture information reaching the update time is avoided.
Accordingly, step S10 includes:
and step S103, when the writing time information of the history picture information reaches the target time information, taking the history picture information corresponding to the target time information as the reference picture information.
Further, before the step S20, the method further includes:
acquiring historical fusion element information containing the element information to be fused, and taking the historical fusion element information as the fusion rule; acquiring write-in instruction information carrying the fusion rule and write-in address information; writing the fusion rule into a preset storage area according to the writing address information according to the writing instruction information;
accordingly, the S20 includes:
and searching a corresponding fusion rule in the preset storage area according to the reference picture information.
Acquiring writing instruction information; extracting fusion rules in the writing instruction information and writing address information; and writing the fusion rule into a preset area according to the writing address information.
It should be noted that, in order to realize diversity of the pictures, multiple fusion rules may be preset, and the pictures are processed by the various fusion rules, so as to enrich the types of the pictures in the database.
In a specific implementation, the writing instruction information can be acquired; extracting fusion rules in the writing instruction information and writing address information; the fusion rule is written into a preset area according to the writing address information, so that writing of the fusion rule is realized, writing of commands can be performed through a serial port, writing of commands can be performed through other modes, the embodiment is not limited, in the embodiment, writing of commands through the serial port is taken as an example for explanation, the fusion rule can be flexibly configured according to user requirements, flexibility of data processing is improved, picture updating is performed according to different fusion rules, diversity of updated picture information is realized, and the method is more suitable for requirements of different users.
According to the scheme provided by the embodiment, the monitoring program is called, the reference picture information in the preset database is collected through the monitoring program, and when the updating time of the reference picture information reaches the target time, the reference picture information corresponding to the target time is used as the reference picture information, so that the pictures stored in the database are ensured to be updated in time.
Further, as shown in fig. 4, a third embodiment of the gallery updating method according to the present invention is provided based on the first embodiment or the second embodiment, in this embodiment, the description is given based on the first embodiment, and the step S40 includes:
step S401, obtaining texture information of the element information to be fused.
It should be noted that, in order to obtain the source image style representation, texture information is captured by a complex automatic encoder.
Step S402, style information and text information of the element information to be fused are obtained according to the texture information.
In this embodiment, the style of the source image may be extracted by an automatic encoder network consisting of a series of convolutional neural networks and deconvolution networks, and after each convolution, using a linear correction unit as an activation function, and approximating the original picture by style by minimizing the mean square error, thereby achieving extraction of style characteristics and text information.
Step S403, obtaining the element type of the corresponding element information to be fused according to the style information and the text information.
Step S404, embedding the element information to be fused into the reference picture information according to the style information and the text information to obtain target picture information.
Further, before embedding the element information to be fused into the reference picture information according to the style information and the text information to obtain the target picture information, the method further includes:
in a specific implementation, predicting the reference picture information through a preset convolutional neural network model to obtain a content predicted value in the reference picture information; acquiring category information and a real data value of each content in the reference picture information; and extracting content information in the reference picture information according to the category information, the real data value and the content predicted value.
Correspondingly, the embedding the element information to be fused into the reference picture information according to the style information and the text information to obtain target picture information comprises the following steps:
acquiring a loss function corresponding to the style information, a loss function corresponding to the content information and a super parameter; obtaining a fusion loss function according to the loss function corresponding to the style information, the loss function corresponding to the content information and the super parameter; and embedding the element information to be fused into the reference picture information according to the style information and the text information according to the fusion loss function to obtain target picture information.
It should be noted that, the super parameter may be parameter 1, or may be other parameter information, which is not limited in this embodiment, and in this embodiment, the super parameter is taken as an example of parameter 1 to be described.
In specific implementation, obtaining a loss function corresponding to the style information through a formula (I);
wherein y is i The actual value of the style information is represented,a predicted value representing style information, n representing the number of samples, L s And representing the loss function corresponding to the style information.
Obtaining a loss function corresponding to the content information through a formula (II);
where c represents class information, i represents the number of samples, y represents the true data value,representing content predictors, L w Representing a loss function corresponding to the content information.
Obtaining a fusion loss function through a formula (III) according to the loss function corresponding to the style information, the loss function corresponding to the content information and the super parameter;
L=L s +λL w formula (III);
where λ represents the hyper-parameter and L represents the fusion loss function.
Further, before the step S50, the method further includes:
in order to ensure the difficulty of identifying the picture, in this embodiment, the difficulty information of identifying the target picture information is obtained; and when the identification difficulty information is smaller than a preset threshold value, adjusting the target picture information according to the preset threshold value to obtain updated target picture information.
It may be understood that the preset threshold may be 70%, or may be other parameter information, which is not limited in this embodiment, and in this embodiment, 70% is taken as an example to describe that the identification difficulty information of the target picture information is obtained; when the identification difficulty information is smaller than 70%, the identification difficulty of the picture after style migration is smaller, and the safety of a website is not facilitated to be maintained.
In the specific implementation, the complexity of the picture can be increased on the basis of the original picture by adding other picture styles for mixing, so that the security of network verification is improved.
Accordingly, the step S50 includes:
and updating the gallery to be updated according to the updated target picture information.
Further, after the step S50, the method further includes:
acquiring a preset calling interface; and calling the updated gallery through the preset calling interface so that the picture information in the updated gallery is displayed in a corresponding mode.
In this embodiment, multiple verification types are maintained while the picture is updated, for example, verification is performed in a sliding manner, verification is performed in a clicking manner, and the like, and other verification types can be used, so that multiple verification manners are realized, and the purpose of improving user experience is achieved.
In a specific implementation, before extracting the pictures in the database, the method can connect with a gallery storing the pictures in a plurality of interfaces, and the gallery in the gallery is extracted through interfaces in different forms, so that a plurality of verification modes are realized, for example, the picture information in the gallery is extracted through interfaces in a sliding mode, and a sliding verification mode is realized.
The proposal provided by the embodiment obtains a preset calling interface; and calling the updated gallery through the preset calling interface so that the picture information in the updated gallery is displayed in a corresponding mode, and extracting the gallery in the gallery through interfaces in different forms, so that various verification modes are realized, and the verification flexibility is improved.
The invention further provides a gallery updating device.
Referring to fig. 5, fig. 5 is a schematic diagram of functional modules of a gallery updating apparatus according to a first embodiment of the invention.
In a first embodiment of the gallery updating apparatus of the present invention, the gallery updating apparatus includes:
and the acquisition module 10 is used for acquiring the reference picture information in the gallery to be updated.
It will be appreciated that the reference picture information is picture information in a pre-existing database, and the picture information includes various types and styles of picture information, such as live-action landscape picture information, oil painting style picture information, picture information including text information, and other types of picture information, which is not limited in this embodiment.
And the searching module 20 is used for searching the corresponding fusion rule according to the reference picture information.
In this embodiment, the fusing rule includes that style features are fused into a live-action picture, or that text features are fused into a live-action picture, and further includes that style features and text features are respectively fused into a live-action picture, and in addition, the fusing rule also includes other forms of feature fusion rules.
It can be understood that the fusion rule can be flexibly configured according to the requirements of users, and when an editing instruction is received, the fusion rule can be edited according to the editing instruction, so that the flexibility of the fusion rule is improved, and the requirements of different users are met.
And the extracting module 30 is used for extracting the element information to be fused in the fusion rule.
It should be noted that, in order to implement the processing of the to-be-processed picture, a specific fusion rule may be obtained, for example, in the case that the current fusion rule is to migrate an oil painting style of an oil painting into a to-be-processed live-action picture, in this case, it is necessary to search a picture of the oil painting style corresponding to the fusion rule in a preset database, and the style migration is implemented by obtaining a picture of the corresponding oil painting style.
And the embedding module 40 is configured to embed the element information to be fused into the reference picture information according to the element type of the element information to be fused, so as to obtain target picture information.
In a specific implementation, by means of style migration, for example, an artistic oil painting and a landscape photo are provided, the artistic style of the artistic oil painting is migrated to a live-action photo, so that the live-action photo is provided with the artistic oil painting, colors, hues and lines, and simultaneously, characters and background pictures are also migrated in style together, so that the characters and the background pictures have a certain degree of fusion, the verification code pictures in a picture library are updated, and the verification picture also has a certain difficulty in recognition under the premise of fidelity through style migration, thereby avoiding hackers from realizing cracking of the verification code in an exhaustive manner.
And the updating module 50 is used for updating the to-be-updated gallery according to the target picture information.
It can be understood that after the reference picture information is obtained, the reference picture information can be replaced by the original reference picture information, so that the update of the reference picture information is realized, and the user verification is performed by using the target picture, so that the difficulty of the target picture is increased and the update is performed, and the security of the network is improved.
According to the embodiment, through the scheme, the reference picture information in the gallery to be updated is obtained; searching a corresponding fusion rule according to the reference picture information; extracting element information to be fused in the fusion rule; embedding the element information to be fused into the reference picture information according to the element type of the element information to be fused to obtain target picture information, so that the picture information in the verification code picture library is updated in a picture embedding mode, the difficulty of the picture information in the verification code picture library is ensured, and the network security protection is improved when verification is carried out through verification pictures.
The gallery updating device adopts all the technical schemes of all the embodiments, so that the gallery updating device has at least all the beneficial effects brought by the technical schemes of the embodiments, and is not described in detail herein.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium is stored with a gallery updating program, and the gallery updating program is executed by a processor to perform the steps of the gallery updating method.
Because the storage medium adopts all the technical schemes of all the embodiments, the storage medium has at least all the beneficial effects brought by the technical schemes of the embodiments, and the description is omitted here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a computer readable storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several instructions for causing a smart terminal device (which may be a mobile phone, a computer, a terminal device, an air conditioner, or a network terminal device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The gallery updating method is characterized by comprising the following steps:
acquiring reference picture information in a to-be-updated gallery, wherein the to-be-updated gallery is a verification information gallery;
searching a corresponding fusion rule according to the reference picture information;
extracting element information to be fused in the fusion rule;
embedding the element information to be fused into the reference picture information according to the element type of the element information to be fused to obtain target picture information;
updating the gallery to be updated according to the target picture information;
before the reference picture information in the gallery to be updated is obtained, the method further includes:
acquiring historical picture information containing the reference picture information, and writing the historical picture information into a to-be-updated gallery;
calling a timer, and recording writing time information of the history picture information through the timer;
correspondingly, the obtaining the reference picture information in the gallery to be updated includes:
when the writing time information of the history picture information reaches the target time information, the history picture information corresponding to the target time information is used as the reference picture information;
before the corresponding fusion rule is searched according to the reference picture information, the method further comprises:
acquiring historical fusion element information containing the element information to be fused, and taking the historical fusion element information as the fusion rule;
acquiring write-in instruction information carrying the fusion rule and write-in address information;
writing the fusion rule into a preset storage area according to the writing address information according to the writing instruction information;
correspondingly, the searching the corresponding fusion rule according to the reference picture information comprises the following steps:
and searching a corresponding fusion rule in the preset storage area according to the reference picture information.
2. The gallery updating method of claim 1, wherein the embedding the element information to be fused into the reference picture information according to the element type of the element information to be fused to obtain target picture information includes:
obtaining texture information of the element information to be fused;
respectively obtaining style information and text information of the element information to be fused according to the texture information;
obtaining the element type of the corresponding element information to be fused according to the style information and the text information;
and embedding the element information to be fused into the reference picture information according to the style information and the text information to obtain target picture information.
3. The gallery updating method of claim 2, wherein the embedding the element information to be fused into the reference picture information according to the style information and the text information, before obtaining the target picture information, the method further comprises:
predicting the reference picture information through a preset convolutional neural network model to obtain a content predicted value in the reference picture information;
acquiring category information and a real data value of each content in the reference picture information;
extracting content information in the reference picture information according to the category information, the real data value and the content predicted value;
correspondingly, the embedding the element information to be fused into the reference picture information according to the style information and the text information to obtain target picture information comprises the following steps:
acquiring a loss function corresponding to the style information, a loss function corresponding to the content information and a super parameter;
obtaining a fusion loss function according to the loss function corresponding to the style information, the loss function corresponding to the content information and the super parameter;
and embedding the element information to be fused into the reference picture information according to the fusion loss function to obtain target picture information.
4. The gallery updating method of claim 1, wherein before the updating of the gallery to be updated according to the target picture information, the method further comprises:
acquiring identification difficulty information of the target picture information;
when the identification difficulty information is smaller than a preset threshold value, adjusting the target picture information according to the preset threshold value to obtain updated target picture information;
correspondingly, the updating the gallery to be updated according to the target picture information includes:
and updating the gallery to be updated according to the updated target picture information.
5. The gallery updating method of claim 1, wherein after the updating the gallery to be updated according to the target picture information, the method further comprises:
acquiring a preset calling interface;
and calling the updated gallery through the preset calling interface so that the picture information in the updated gallery is displayed in a corresponding mode.
6. A gallery updating apparatus, comprising:
the acquisition module is used for acquiring the reference picture information in the gallery to be updated;
the searching module is used for searching the corresponding fusion rule according to the reference picture information;
the extraction module is used for extracting element information to be fused in the fusion rule;
the embedding module is used for embedding the element information to be fused into the reference picture information according to the element type of the element information to be fused to obtain target picture information;
the updating module is used for updating the to-be-updated gallery according to the target picture information;
the acquisition module is further used for acquiring historical picture information containing the reference picture information and writing the historical picture information into a to-be-updated gallery; calling a timer, and recording writing time information of the history picture information through the timer; when the writing time information of the history picture information reaches the target time information, the history picture information corresponding to the target time information is used as the reference picture information;
the searching module is further configured to obtain historical fusion element information including the element information to be fused, and take the historical fusion element information as the fusion rule; acquiring write-in instruction information carrying the fusion rule and write-in address information; writing the fusion rule into a preset storage area according to the writing address information according to the writing instruction information; and searching a corresponding fusion rule in the preset storage area according to the reference picture information.
7. A gallery updating apparatus, characterized in that the gallery updating apparatus comprises: a memory, a processor and a gallery update program stored on the memory and executable on the processor, the gallery update program configured to implement the steps of the gallery update method of any of claims 1 to 5.
8. A storage medium having stored thereon a gallery updating program which, when executed by a processor, implements the steps of the gallery updating method of any of claims 1 to 5.
CN201910938015.5A 2019-09-29 2019-09-29 Gallery updating method, device, equipment and storage medium Active CN110717955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910938015.5A CN110717955B (en) 2019-09-29 2019-09-29 Gallery updating method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910938015.5A CN110717955B (en) 2019-09-29 2019-09-29 Gallery updating method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110717955A CN110717955A (en) 2020-01-21
CN110717955B true CN110717955B (en) 2024-04-02

Family

ID=69211240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910938015.5A Active CN110717955B (en) 2019-09-29 2019-09-29 Gallery updating method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110717955B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018111786A1 (en) * 2016-12-16 2018-06-21 Microsoft Technology Licensing, Llc Image stylization based on learning network
CN108959900A (en) * 2018-07-10 2018-12-07 浪潮软件股份有限公司 A method of generating sliding identifying code picture
CN109257168A (en) * 2018-09-21 2019-01-22 深圳市元征科技股份有限公司 A kind of generation method of picture validation code, device, equipment and medium
CN109559363A (en) * 2018-11-23 2019-04-02 网易(杭州)网络有限公司 Stylized processing method, device, medium and the electronic equipment of image
CN109711136A (en) * 2017-10-26 2019-05-03 武汉极意网络科技有限公司 Store equipment, identifying code Picture Generation Method and device
CN109918893A (en) * 2019-02-13 2019-06-21 平安科技(深圳)有限公司 Method for generating picture verification codes, device, storage medium and computer equipment
GB201906992D0 (en) * 2019-05-17 2019-07-03 Samsung Electronics Co Ltd Improvements in and relating to image manipulation

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080126262A1 (en) * 2006-11-29 2008-05-29 Colin Brady System and Method for Secure Transactions
US8144161B2 (en) * 2006-12-08 2012-03-27 Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. Texture synthesis
US9922432B1 (en) * 2016-09-02 2018-03-20 Artomatix Ltd. Systems and methods for providing convolutional neural network based image synthesis using stable and controllable parametric models, a multiscale synthesis framework and novel network architectures

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018111786A1 (en) * 2016-12-16 2018-06-21 Microsoft Technology Licensing, Llc Image stylization based on learning network
CN108205813A (en) * 2016-12-16 2018-06-26 微软技术许可有限责任公司 Image stylization based on learning network
CN109711136A (en) * 2017-10-26 2019-05-03 武汉极意网络科技有限公司 Store equipment, identifying code Picture Generation Method and device
CN108959900A (en) * 2018-07-10 2018-12-07 浪潮软件股份有限公司 A method of generating sliding identifying code picture
CN109257168A (en) * 2018-09-21 2019-01-22 深圳市元征科技股份有限公司 A kind of generation method of picture validation code, device, equipment and medium
CN109559363A (en) * 2018-11-23 2019-04-02 网易(杭州)网络有限公司 Stylized processing method, device, medium and the electronic equipment of image
CN109918893A (en) * 2019-02-13 2019-06-21 平安科技(深圳)有限公司 Method for generating picture verification codes, device, storage medium and computer equipment
GB201906992D0 (en) * 2019-05-17 2019-07-03 Samsung Electronics Co Ltd Improvements in and relating to image manipulation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CAPTCHA Image Generation Using Style Transfer Learning in Deep Neural Network;Hyun Kwon.etc;《Information Security Applications: 20th International Conference, WISA 2019, Jeju Island, South Korea》;P234-246 *

Also Published As

Publication number Publication date
CN110717955A (en) 2020-01-21

Similar Documents

Publication Publication Date Title
CN109509021B (en) Behavior track-based anomaly identification method and device, server and storage medium
CN111898411B (en) Text image labeling system, method, computer device and storage medium
CN107797826B (en) Rule configuration method based on rule engine, terminal and equipment
CN109194689B (en) Abnormal behavior recognition method, device, server and storage medium
CN109391620B (en) Method, system, server and storage medium for establishing abnormal behavior judgment model
CN111476863B (en) Method and device for coloring black-and-white cartoon, electronic equipment and storage medium
CN105493095A (en) Adaptive and recursive filtering for sample submission
CN106804055A (en) A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal
CN107133909B (en) Method and device for recombining shaders
CN107689070A (en) Chart data structuring extracting method, electronic equipment and computer-readable recording medium
CN110968808A (en) Method and device for realizing webpage theme updating
CN111191079A (en) Document content acquisition method, device, equipment and storage medium
CN110717955B (en) Gallery updating method, device, equipment and storage medium
CN112270384B (en) Loop detection method and device, electronic equipment and storage medium
CN101577713A (en) Realization method, device and testing system for virtual user identification module
CN106293658A (en) A kind of interface assembly generates method and equipment thereof
CN109936772A (en) Input method, smart television, mobile terminal and the storage medium of smart television
CN110688400A (en) Data processing method, data processing device, computer equipment and storage medium
CN110221874A (en) The method, device and equipment of quick start application
CN115457581A (en) Table extraction method and device and computer equipment
CN112148724B (en) Equipment identification processing method and system, computer equipment and readable storage medium
CN110221952B (en) Service data processing method and device and service data processing system
CN113127408A (en) Data conversion method and device
CN110706221A (en) Verification method, verification device, storage medium and device for customizing pictures
CN107122633B (en) Instruction execution method and device of application program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant