Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State the picture character identifying method based on artificial nerve network model, device, electronic equipment and the computer-readable storage of problem
Medium.
According to one aspect of the present invention, a kind of picture character recognition side based on artificial nerve network model is provided
Method, comprising:
The identifying code picture of markup character is obtained from target object website;
To the identifying code picture, practical word sequence corresponding to picture is determined;
Using picture and its corresponding word sequence as training data, it is input in artificial nerve network model and is instructed
Practice, and trained artificial nerve network model is applied to target object website.
Optionally, practical word sequence corresponding to the determining picture further comprises: the picture is sent to figure
Piece analyzing platform obtains the practical word sequence of the correspondence picture of picture analyzing platform feedback.
Optionally, described that trained artificial nerve network model is applied to target object website, further comprise: institute
It states object website and calls the artificial nerve network model by api interface.
Optionally, the picture is unified obtains from the same target object website.
Optionally, the artificial nerve network model further applies the Sign-On services of object website.
Optionally, the artificial nerve network model is specifically the picture character recognition model based on CNN+RNN.
According to another aspect of the invention, a kind of picture character recognition dress based on artificial nerve network model is provided
It sets, comprising:
Identifying code obtains module, for obtaining the identifying code picture of markup character from target object website;
Sequence determining module, for determining practical word sequence corresponding to picture to the identifying code picture;
Training module, for being input to artificial neural network using picture and its corresponding word sequence as training data
It is trained in model, and trained artificial nerve network model is applied to target object website.
Optionally, the sequence determining module, is further used for: the picture being sent to picture analyzing platform, is obtained
The practical word sequence of the correspondence picture of picture analyzing platform feedback.
Optionally, the training module, is further used for: the object website is called described artificial by api interface
Neural network model.
Optionally, the picture is unified obtains from the same target object website.
Optionally, the artificial nerve network model further applies the Sign-On services of object website.
Optionally, the artificial nerve network model is specifically the picture character recognition model based on CNN+RNN.
According to another aspect of the invention, a kind of electronic equipment is provided, wherein the electronic equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, executable instruction executes processor when executed
Above-mentioned method.
According to another aspect of the invention, a kind of computer readable storage medium is provided, wherein computer-readable to deposit
Storage media stores one or more programs, and one or more programs when being executed by a processor, realize above-mentioned method.
The utility model has the advantages that
The present invention from target object website by obtaining the identifying code picture of markup character, to the identifying code picture,
It determines practical word sequence corresponding to picture, using picture and its corresponding word sequence as training data, is input to artificial
It is trained in neural network model, and trained artificial nerve network model is applied to target object website, realized high
Character in effect identification identifying code picture provides better interactive experience for user's authorization.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Specific embodiment
Exemplary embodiment of the present invention is described more fully with reference to the drawings.However, exemplary embodiment can
Implement in a variety of forms, and is understood not to that present invention is limited only to embodiments set forth herein.On the contrary, it is exemplary to provide these
Embodiment enables to the present invention more full and complete, easily facilitates the technology that inventive concept is comprehensively communicated to this field
Personnel.Identical appended drawing reference indicates same or similar element, component or part in figure, thus will omit weight to them
Multiple description.
Under the premise of meeting technical concept of the invention, the feature described in some specific embodiment, structure, spy
Property or other details be not excluded for can be combined in any suitable manner in one or more other embodiments.
In the description for specific embodiment, feature, structure, characteristic or the other details that the present invention describes are to make
Those skilled in the art fully understands embodiment.But, it is not excluded that those skilled in the art can practice this hair
Bright technical solution is one or more without special characteristic, structure, characteristic or other details.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step,
It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close
And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity.
I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit
These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Although it should be understood that may indicate the attribute of number using first, second, third, etc. to describe various devices herein
Part, element, component or part, but this should not be limited by these attributes.These attributes are to distinguish one and another one.Example
Such as, the first device is also referred to as the second device without departing from the technical solution of essence of the invention.
Term "and/or" or " and/or " include associated listing all of any of project and one or more
Combination.
Fig. 1 shows the picture character identifying method according to an embodiment of the invention based on artificial nerve network model
Flow diagram.As shown in Figure 1, the picture character identifying method packet based on artificial nerve network model of the embodiment of the present invention
It includes:
S11: the identifying code picture of markup character is obtained from target object website;
The target object website is the page for needing to be implemented identifying code and logging in, and wherein page access can be based on IP
Location repeatedly addresses specific website, issues log on request to web server, obtains web server by reverse proxy and returns
The resource returned, positioning searching goes out identifying code picture from resource.Different client informations can be used to the access of the page, lead to
It crosses setting various dimensions user identity repeatedly to access login page, obtains different types of identifying code picture.
S12: to the identifying code picture, practical word sequence corresponding to picture is determined;
Specifically, by picture recognition technology, the word sequence on picture is extracted from identifying code picture, and passes through school
It is errorless to test determining word sequence.
S13: it using picture and its corresponding word sequence as training data, is input in artificial nerve network model and carries out
Training, and trained artificial nerve network model is applied to target object website.
Using identifying code picture and its corresponding word sequence as training data, it is input in artificial nerve network model,
It carries out discriminating whether to correspond to consistent black and white sample training.ART, LVQ, Hopfield can be used in artificial nerve network model
Deng.
The artificial nerve network model further applies the Sign-On services of object website.Api interface is provided for model
The page for carrying out the login of supply and demand picture validation code carries out service call, and artificial nerve network model is made to log in clothes applied to the page
Business, by obtaining the character string of the current identifying code picture of the page and user's output, intelligent recognition goes out the two, and whether character is consistent
And the Sign-On services of the page are returned result to, implement to pass through according to result for Sign-On services.
The present invention from target object website by obtaining the identifying code picture of markup character, to the identifying code picture,
It determines practical word sequence corresponding to picture, using picture and its corresponding word sequence as training data, is input to artificial
It is trained in neural network model, and trained artificial nerve network model is applied to target object website, realized high
Character in effect identification identifying code picture provides better interactive experience for user's authorization.
In a kind of optional embodiment of the embodiment of the present invention, the determining picture of the S12 in method shown in Fig. 1
Corresponding practical word sequence further comprises: the picture being sent to picture analyzing platform, obtains picture analyzing platform
The practical word sequence of the correspondence picture of feedback.
Specifically, the identifying code picture as training sample is stored to database, and implements the system based on management system
One management.
Further, api interface is provided to call the identifying code picture in database for picture analyzing platform.Picture parsing
Platform automatically identifies the practical word sequence of the correspondence picture of high accuracy, and returns to practical word sequence by api interface.
Preferably, the message queue based on RabbitMQ is selected to realize the asynchronous schedule with picture analyzing platform.
Among the above, picture analyzing platform can be third party's graphic code analyzing platform etc..
In a kind of optional embodiment of the embodiment of the present invention, in method shown in Fig. 1, the picture is unified from same
It is obtained in a target object website.Specifically, to the page for needing to be implemented identifying code and logging in, pass through automatically repeatedly the page and visit
It asks, unified multiple identifying code pictures that only pick up from the page are as training sample, to realize the depth based on specialized object
Degree identification.
In a kind of optional embodiment of the embodiment of the present invention, in method shown in Fig. 1, the artificial neural network mould
Type uses the picture character recognition model based on tensorflow building CNN+RNN, which has picture character recognition higher
Susceptibility generates picture mark for RNN sentence using CNN feature extraction.
Example:
The website B that test user A logon attempt needs picture validation code to log in, gets identifying code picture, by identifying code figure
Piece is given to third party's graphic code analyzing platform by api interface, obtains the correspondence picture of third party's graphic code analyzing platform feedback
Actual verification code word sequence be input to using identifying code picture and its corresponding identifying code word sequence as training data
In the neural network of deep learning CNN+RNN, by trained Application of Neural Network in the login of website B.
It will be understood by those skilled in the art that realizing that all or part of the steps of above-described embodiment is implemented as by computer
The program (computer program) that data processing equipment executes.It is performed in the computer program, offer of the present invention is provided
The above method.Moreover, the computer program can store in computer readable storage medium, which can be with
It is the readable storage medium storing program for executing such as disk, CD, ROM, RAM, is also possible to the storage array of multiple storage medium compositions, such as magnetic
Disk or tape storage array.The storage medium is not limited to centralised storage, is also possible to distributed storage, such as based on
The cloud storage of cloud computing.
The device of the invention embodiment is described below, which can be used for executing embodiment of the method for the invention.For
Details described in apparatus of the present invention embodiment should be regarded as the supplement for above method embodiment;For in apparatus of the present invention
Undisclosed details in embodiment is referred to above method embodiment to realize.
Fig. 2 shows the according to an embodiment of the invention picture character recognition device based on artificial nerve network model
Structural schematic diagram.As shown in Fig. 2, the device of the embodiment of the present invention includes that identifying code obtains module 21, sequence determining module 22
With training module 23, in which:
Identifying code obtains module 21, for obtaining the identifying code picture of markup character from target object website;
The target object website is the page for needing to be implemented identifying code and logging in, and wherein page access can be based on IP
Location repeatedly addresses specific website, issues log on request to web server, obtains web server by reverse proxy and returns
The resource returned, positioning searching goes out identifying code picture from resource.Different client informations can be used to the access of the page, lead to
It crosses setting various dimensions user identity repeatedly to access login page, obtains different types of identifying code picture.
Sequence determining module 22, for determining practical word sequence corresponding to picture to the identifying code picture;
Specifically, by picture recognition technology, the word sequence on picture is extracted from identifying code picture, and passes through school
It is errorless to test determining word sequence.
Training module 23, for being input to artificial neural network using picture and its corresponding word sequence as training data
It is trained in network model, and trained artificial nerve network model is applied to target object website.
Using identifying code picture and its corresponding word sequence as training data, it is input in artificial nerve network model,
It carries out discriminating whether to correspond to consistent black and white sample training.ART, LVQ, Hopfield can be used in artificial nerve network model
Deng.
The artificial nerve network model further applies the Sign-On services of object website.Api interface is provided for model
The page for carrying out the login of supply and demand picture validation code carries out service call, and artificial nerve network model is made to log in clothes applied to the page
Business, by obtaining the character string of the current identifying code picture of the page and user's output, intelligent recognition goes out the two, and whether character is consistent
And the Sign-On services of the page are returned result to, implement to pass through according to result for Sign-On services.
The present invention from target object website by obtaining the identifying code picture of markup character, to the identifying code picture,
It determines practical word sequence corresponding to picture, using picture and its corresponding word sequence as training data, is input to artificial
It is trained in neural network model, and trained artificial nerve network model is applied to target object website, realized high
Character in effect identification identifying code picture provides better interactive experience for user's authorization.
In a kind of optional embodiment of the embodiment of the present invention, the sequence determining module 22 of Fig. 2 shown device,
It is further used for: the picture is sent to picture analyzing platform, obtains the reality of the correspondence picture of picture analyzing platform feedback
Word sequence.
Specifically, the identifying code picture as training sample is stored to database, and implements the system based on management system
One management.
Further, api interface is provided to call the identifying code picture in database for picture analyzing platform.Picture parsing
Platform automatically identifies the practical word sequence of the correspondence picture of high accuracy, and returns to practical word sequence by api interface.
Preferably, the message queue based on RabbitMQ is selected to realize the asynchronous schedule with picture analyzing platform.
Among the above, picture analyzing platform can be third party's graphic code analyzing platform etc..
In a kind of optional embodiment of the embodiment of the present invention, the picture in Fig. 2 shown device is unified from same
It is obtained in one target object website.
Specifically, unified only from the page by automatically page access repeatedly to the page for needing to be implemented identifying code and logging in
Multiple identifying code pictures are picked up in face as training sample, to realize the depth recognition based on specialized object.
The artificial neural network in a kind of optional embodiment of the embodiment of the present invention, in Fig. 2 shown device
Model is specifically using the picture character recognition model based on tensorflow building CNN+RNN, and the model is to picture character recognition
Have compared with high sensitive, using CNN feature extraction, generates picture mark for RNN sentence.
Example:
The website B that test user A logon attempt needs picture validation code to log in, gets identifying code picture, by identifying code figure
Piece is given to third party's graphic code analyzing platform by api interface, obtains the correspondence picture of third party's graphic code analyzing platform feedback
Actual verification code word sequence be input to using identifying code picture and its corresponding identifying code word sequence as training data
In the neural network of deep learning CNN+RNN, by trained Application of Neural Network in the login of website B.
It will be understood by those skilled in the art that each module in above-mentioned apparatus embodiment can be distributed in device according to description
In, corresponding change can also be carried out, is distributed in one or more devices different from above-described embodiment.The mould of above-described embodiment
Block can be merged into a module, can also be further split into multiple submodule.
Electronic equipment embodiment of the invention is described below, which can be considered as the method for aforementioned present invention
With the specific entity embodiment of Installation practice.For details described in electronic equipment embodiment of the present invention, should be regarded as pair
In the above method or the supplement of Installation practice;For undisclosed details, Ke Yican in electronic equipment embodiment of the present invention
It is realized according to the above method or Installation practice.
Fig. 3 is the structural block diagram of the exemplary embodiment of a kind of electronic equipment according to the present invention.It is retouched referring to Fig. 3
State the electronic equipment 200 of the embodiment according to the present invention.The electronic equipment 200 that Fig. 3 is shown is only an example, should not be right
The function and use scope of the embodiment of the present invention bring any restrictions.
As shown in figure 3, electronic equipment 200 is showed in the form of universal computing device.The component of electronic equipment 200 can be with
Including but not limited to: at least one processing unit 210, at least one storage unit 220, the different system components of connection (including are deposited
Storage unit 220 and processing unit 210) bus 230, display unit 240 etc..
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 210
Row, so that the processing unit 210 executes described in this specification above-mentioned electronic prescription circulation processing method part according to this
The step of inventing various illustrative embodiments.For example, the processing unit 210 can execute step as shown in Figure 1.
The storage unit 220 may include the readable medium of volatile memory cell form, such as random access memory
Unit (RAM) 2201 and/or cache memory unit 2202 can further include read-only memory unit (ROM) 2203.
The storage unit 220 can also include program/practical work with one group of (at least one) program module 2205
Tool 2204, such program module 2205 includes but is not limited to: operating system, one or more application program, other programs
It may include the realization of network environment in module and program data, each of these examples or certain combination.
Bus 230 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 200 can also be with one or more external equipments 300 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 200 communicate, and/or with make
The electronic equipment 200 any equipment (such as the router, modulatedemodulate that can be communicated with one or more of the other calculating equipment
Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 250.Also, electronic equipment 200 may be used also
To pass through network adapter 260 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network
Network, such as internet) communication.Network adapter 260 can be communicated by bus 230 with other modules of electronic equipment 200.It answers
When understanding, although not shown in the drawings, other hardware and/or software module can be used in conjunction with electronic equipment 200, including but unlimited
In: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number
According to backup storage system etc..
Through the above description of the embodiments, those skilled in the art it can be readily appreciated that the present invention describe it is exemplary
Embodiment can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to this hair
The technical solution of bright embodiment can be embodied in the form of software products, and such as Fig. 4, which be can store one
In a computer-readable storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions with
So that calculating equipment (can be personal computer, server or network equipment an etc.) execution is according to the present invention above-mentioned
Method.When the computer program is executed by a data processing equipment, so that the computer-readable medium can be realized this
The above method of invention, it may be assumed that according to user in the operation of the marketing activity entrance of front-end interface, receive asynchronous hair with message queue
The user preferential certificate sent gets request;Request is got according to the discount coupon in message queue, is provided to corresponding user account preferential
Certificate reduces the backlog total of discount coupon;It is requested for Client-initiated with certificate, certificate is used in rule searching approval;More new user account
The use state of interior corresponding discount coupon.
The computer program can store on one or more computer-readable mediums.Computer-readable medium can be with
It is readable signal medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, red
The system of outside line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing
(non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory
(RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc
Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The computer readable storage medium may include in a base band or the data as the propagation of carrier wave a part are believed
Number, wherein carrying readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetism
Signal, optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any other than readable storage medium storing program for executing
Readable medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or
Person's program in connection.The program code for including on readable storage medium storing program for executing can transmit with any suitable medium, packet
Include but be not limited to wireless, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In conclusion the present invention can be implemented in hardware, or the software to run on one or more processors
Module is realized, or is implemented in a combination thereof.It will be understood by those of skill in the art that micro process can be used in practice
The communications data processing units such as device or digital signal processor (DSP) come realize according to embodiments of the present invention in it is some or
The some or all functions of whole components.The present invention is also implemented as a part for executing method as described herein
Or whole device or device program (for example, computer program and computer program product).Such realization present invention
Program can store on a computer-readable medium, or may be in the form of one or more signals.Such letter
It number can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or be provided in any other form.
Particular embodiments described above has carried out further in detail the purpose of the present invention, technical scheme and beneficial effects
It describes in detail bright, it should be understood that the present invention is not inherently related to any certain computer, virtual bench or electronic equipment, various
The present invention also may be implemented in fexible unit.The above is only a specific embodiment of the present invention, is not limited to this hair
Bright, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should be included in the present invention
Protection scope within.