CN109783674A - Image identification method, device, system, computer equipment and storage medium - Google Patents

Image identification method, device, system, computer equipment and storage medium Download PDF

Info

Publication number
CN109783674A
CN109783674A CN201811527294.8A CN201811527294A CN109783674A CN 109783674 A CN109783674 A CN 109783674A CN 201811527294 A CN201811527294 A CN 201811527294A CN 109783674 A CN109783674 A CN 109783674A
Authority
CN
China
Prior art keywords
picture
identified
preset value
user interface
cipher mode
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
CN201811527294.8A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201811527294.8A priority Critical patent/CN109783674A/en
Publication of CN109783674A publication Critical patent/CN109783674A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Transmission Control (AREA)

Abstract

The embodiment of the invention discloses a kind of image identification method, device, system, computer equipment and storage mediums.This method comprises: generating the first user interface;Picture path is obtained, picture to be identified is obtained according to picture path, and picture to be identified is shown in picture viewing area, obtains picture type title and cipher mode title;From predetermined encryption referring to acquisition target encryption parameter corresponding with cipher mode title in table;Picture to be identified is encrypted according to target encryption parameter, generates and encrypts picture to be identified;Picture, picture type title and cipher mode title to be identified will be encrypted and be sent to server end so that server end is identified to picture to be identified is encrypted;Receive the return value that server end returns;If return value does not include the first preset value or the second preset value, second user interface is generated, return value is shown in second user interface.The image identification method that the embodiment of the present invention proposes is based on image processing techniques, can significant increase user experience.

Description

Image identification method, device, system, computer equipment and storage medium
Technical field
This application involves field of computer technology more particularly to a kind of image identification method, device, system, computer to set Standby and storage medium.
Background technique
Different types of picture, the content for being included are usually different.For example, in identity card picture, lead to It often include the information such as identification card number, name, gender, nationality, date of birth and address;And for the picture of property ownership certificate, lead to It often include the information such as address, owner and area.In the prior art, usually by calling different interfaces to realize to not The identification of the picture of same type, for example, user in order to identify to identity card picture, need to call identity card identification interface;For Property ownership certificate is identified, property ownership certificate need to be called to identify interface.This mode for a user, has complicated for operation, cumbersome And experience effect it is poor the disadvantages of.Therefore, how to promote user becomes urgently to be resolved in the convenience for carrying out picture recognition operation The problem of.
Summary of the invention
The embodiment of the invention provides a kind of image identification method, device, system, computer equipment and storage mediums, can Significant increase user experience provides very big convenience when carrying out picture recognition for user.
In a first aspect, being applied to terminal the embodiment of the invention provides a kind of image identification method comprising:
The first user interface is generated, first user interface includes picture path input area, picture type input area, adds Close mode input area, cipher mode viewing area and picture viewing area, the cipher mode viewing area show that there are many encryption sides Formula title and keyword corresponding with each cipher mode title, the keyword is for describing the cipher mode name The characteristics of claiming represented cipher mode;The picture path that user is inputted in picture path input area is obtained, according to institute It states picture path and obtains picture to be identified, and the picture to be identified is shown in the picture viewing area, obtain user in institute The picture type title that picture type input area is inputted is stated, the encryption that user is inputted in the cipher mode input area is obtained Mode title;From predetermined encryption referring to acquisition target encryption parameter corresponding with the cipher mode title in table;According to institute It states target encryption parameter to encrypt the picture to be identified, generates and encrypt picture to be identified;By the encryption figure to be identified Piece, the picture type title and the cipher mode title be sent to server end so that server end to it is described encryption to Identification picture is identified;Receive the return value that server end returns;If the return value does not include the first preset value or Two preset values generate second user interface, the return value are shown in the second user interface.
Second aspect, the embodiment of the invention provides a kind of image identification methods, are applied to server end comprising:
Obtain the encryption picture to be identified and picture type name associated with the encryption picture to be identified that terminal is sent Claim and cipher mode title;From default decryption referring to the object decryption ginseng corresponding with the cipher mode title of acquisition in table Number;It is operated successfully if the encryption picture to be identified is decrypted according to the object decryption parameter, it is to be identified to generate decryption Picture;From default identification parameter referring to acquisition Model of Target Recognition parameter corresponding with the picture type title in table;If Identification is carried out to the decryption Target Photo according to the Model of Target Recognition parameter to operate successfully, generates recognition result;With institute Recognition result is stated as return value, the return value is sent to terminal.
The third aspect, the embodiment of the invention provides a kind of picture recognition devices comprising for executing above-mentioned first party The corresponding unit of image identification method described in face, or including corresponding for executing image identification method described in above-mentioned second aspect Unit.
Fourth aspect, the embodiment of the invention provides a kind of picture recognition system, including server and an at least terminal, The terminal is for executing image identification method described in above-mentioned first aspect, and the server end is for executing above-mentioned second party Image identification method described in face.
5th aspect, the embodiment of the invention provides a kind of computer equipment, the computer equipment include memory with And the processor being connected with the memory;The memory is for storing computer program;The processor is for running institute The computer program stored in memory is stated, to execute image identification method described in above-mentioned first aspect, or is executed above-mentioned Image identification method described in second aspect.
6th aspect, the embodiment of the invention provides a kind of storage medium, the storage medium is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor execute above-mentioned the when being executed by a processor Image identification method described in one side, or execute image identification method described in above-mentioned second aspect.
The embodiment of the present invention provides a kind of image identification method, device, system, computer equipment and storage medium.The figure Piece recognition methods, by generating the first user interface;Picture path is obtained, picture to be identified is obtained according to picture path, and will Picture to be identified is shown in picture viewing area, obtains picture type title and cipher mode title;From predetermined encryption referring in table Obtain target encryption parameter corresponding with cipher mode title;Picture to be identified is encrypted according to target encryption parameter, It generates and encrypts picture to be identified;Picture, picture type title and cipher mode title to be identified will be encrypted and be sent to server It holds so that server end is identified to picture to be identified is encrypted;Receive the return value that server end returns;If return value is not wrapped The first preset value or the second preset value are included, second user interface is generated, return value is shown in second user interface.The present invention The image identification method that embodiment proposes can significant increase user experience.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the timing diagram of picture recognition system provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of image identification method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram for the image identification method that further embodiment of this invention provides;
Fig. 4 is the flow diagram for the image identification method that further embodiment of this invention provides;
Fig. 5 be another embodiment of the present invention provides image identification method flow diagram;
Fig. 6 is the flow diagram for the image identification method that yet another embodiment of the invention provides;
Fig. 7 is the schematic block diagram of picture recognition device provided in an embodiment of the present invention;
Fig. 8 is the schematic block diagram for the picture recognition device that further embodiment of this invention provides;
Fig. 9 is the schematic block diagram for the picture recognition device that further embodiment of this invention provides;
Figure 10 be another embodiment of the present invention provides picture recognition device schematic block diagram;
Figure 11 is the schematic block diagram for the picture recognition device that yet another embodiment of the invention provides;
Figure 12 is a kind of schematic block diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Fig. 1 is the timing diagram of picture recognition system provided by the embodiments of the present application.The picture recognition system includes server An at least terminal.The terminal includes but is not limited to smart phone, tablet computer, laptop, desktop computer, individual digital Assistant and wearable device etc. have the electronic equipment of communication function.The server can be independent server, be also possible to The server cluster of multiple server compositions, the terminal are communicated with server, will encrypt picture to be identified and be sent to clothes Business device end is so that server end is identified to picture to be identified is encrypted, and receives the return value of server end return.
In Fig. 1, terminal generates the first user interface, and first user interface includes picture path input area, picture Type input area, cipher mode input area, cipher mode viewing area and picture viewing area;Terminal obtains user in the picture The picture path that path input area is inputted obtains picture to be identified according to the picture path, and by the picture to be identified It is shown in the picture viewing area, obtains the picture type title that user is inputted in the picture type input area, obtains and uses The cipher mode title that family is inputted in the cipher mode input area;Terminal adds referring to acquisition in table with described from predetermined encryption The corresponding target encryption parameter of close mode title;Terminal adds the picture to be identified according to the target encryption parameter It is close, it generates and encrypts picture to be identified;Terminal encrypts picture, the picture type title and the encryption side to be identified for described Formula title is sent to server end so that server end identifies the encryption picture to be identified;Server end obtains terminal The encryption of transmission picture to be identified and picture type title associated with the encryption picture to be identified and cipher mode title; Server end is from default decryption referring to acquisition object decryption parameter corresponding with the cipher mode title in table;Server end It is operated successfully if the encryption picture to be identified is decrypted according to the object decryption parameter, generates and decrypt figure to be identified Piece;Server end is from default identification parameter referring to the Model of Target Recognition ginseng corresponding with the picture type title of acquisition in table Number;It operates successfully, generates if server end carries out identification to the decryption Target Photo according to the Model of Target Recognition parameter Recognition result;Server end is sent to terminal using the recognition result as return value, by the return value;Described in terminal receives The return value that server end is returned;If terminal judges that the return value does not include the first preset value or the second preset value, life At second user interface, the return value is shown in the second user interface.The picture recognition that the embodiment of the present invention proposes Method can significant increase user experience, provide very big convenience when carrying out picture recognition for user.
The step of image identification method is introduced in detail with the angle of terminal and server individually below.
Fig. 2 is the flow diagram of image identification method provided by the embodiments of the present application.This method is applied to terminal, the party Method includes the following steps S101~S107.
S101, the first user interface is generated, first user interface includes picture path input area, picture type input Area, cipher mode input area, cipher mode viewing area and picture viewing area, the cipher mode viewing area show that there are many add Close mode title and keyword corresponding with each cipher mode title, the keyword is for describing the encryption side The characteristics of cipher mode represented by formula title.
By generating the first user interface, can be operated convenient for user.Wherein, picture path input area is for supplying User inputs the path of picture to be identified.The picture type input area is used to input picture type for user, for example picture category Type can be " identity card ", " bank card " or " property ownership certificate ".The cipher mode input area is used to treat knowledge for user's input The Encryption Algorithm title that other picture uses needed for being encrypted.The cipher mode supported for the ease of user terminal selects It selects, cipher mode viewing area is provided in the first user interface, the cipher mode viewing area shows that there are many cipher modes Title, and keyword corresponding with each cipher mode title is shown, the keyword is for describing the encryption The characteristics of cipher mode represented by mode title, for example, showing the following contents in cipher mode viewing area:
Base64 encryption safe rank is medium, is easy to transmit
Md5 encryption security level height etc., encryption take a long time
After the picture viewing area is used to input picture path in picture path input area for user, picture to be identified is obtained And picture to be identified is shown in the picture viewing area.
S102, the picture path that user is inputted in picture path input area is obtained, is obtained according to the picture path Picture to be identified is taken, and the picture to be identified is shown in the picture viewing area, it is defeated in the picture type to obtain user Enter the picture type title that area is inputted, obtains the cipher mode title that user is inputted in the cipher mode input area.
According to picture path searching picture to be identified, and the picture to be identified that will acquire is shown in picture viewing area, can Check whether currently displayed picture to be identified is the picture for carrying out identification operation convenient for user.In addition, obtaining user In the picture type title that the picture type input area is inputted, and obtains user and inputted in the cipher mode input area Cipher mode title.Wherein, user is inputted picture type title, cipher mode title are related to the picture to be identified Connection.
S103, target encryption parameter corresponding with the cipher mode title is obtained from predetermined encryption reference table.
It is stored with predetermined encryption at the terminal referring to table, the predetermined encryption includes default adding of being supported of terminal referring to table Close mode title.By matching cipher mode title referring to table with predetermined encryption, corresponding target can be got and added Close parameter.
S104, the picture to be identified is encrypted according to the target encryption parameter, generates and encrypts picture to be identified.
For example, if the entitled Base64 of cipher mode, target encryption parameter is Base64 encryption parameter, then according to Base64 Encryption parameter encrypts picture to be identified, generates and encrypts picture to be identified.
S105, encryption picture, the picture type title and the cipher mode title to be identified are sent to Server end is so that server end identifies the encryption picture to be identified.
In the present embodiment, the identification work carried out for encrypting picture to be identified is executed in server end.Therefore, lead to Picture, picture type title and cipher mode title to be identified will be encrypted by, which crossing, is sent to server end, in order to server end Carry out identification operation.
S106, the return value that server end returns is received.
After server end obtains encryption picture to be identified, operation is decrypted to picture to be identified is encrypted, is then known It does not operate.Wherein, in operation or identification operating process is decrypted, it may occur however that decryption is abnormal or identification is abnormal.It can By storing corresponding preset value in server end, when decryption exception or abnormal identification occurs, corresponding preset value is made It is back to the terminal for return value, for example, if decryption exception occurs, using the first preset value as return value, returns to terminal, And if generation identification is abnormal, using the second preset value as return value, returns to terminal.And when successful decryption and when identifying successfully, Then the terminal is back to using recognition result as return value.
Fig. 3 is the flow diagram for the image identification method that the another embodiment of the application provides.In some embodiments, such as In the present embodiment, after the step S106, the method also includes step S107a, S107b and S108~S113.
S107a, judge whether the return value includes the first preset value.
By judging whether return value includes the first preset value, it would know that and carried out in server end to picture to be identified is encrypted When decryption oprerations, if it is abnormal that decryption occurs.Wherein, if the return value includes the first preset value, S108 is thened follow the steps, it is no Then follow the steps S107b.
S107b, judge whether the return value includes the second preset value.
By judging whether return value includes the second preset value, it would know that and carried out in server end to picture to be identified is encrypted When identification operation, if it is abnormal that identification occurs.Wherein, if the return value includes the second preset value, S111 is thened follow the steps, it is no Then follow the steps S107.
If S108, the return value include the first preset value, obtained and first preset value from preset value referring in table Corresponding first object content.
In the present embodiment, when decryption exception occurs for the server end, the server end returns to the first preset value To the terminal.On the terminal, preset value is stored with referring to table, by joining first preset value and the preset value It is matched according to table, corresponding first object content can be found, the first object content is for notifying client server end It is abnormal when operation is decrypted to encryption picture to be identified.For example, if decryption exception, return value occur for server end For " Error01 ", and the preset value has following content referring to table:
Error01 decrypts exception Error02 and identifies exception Error03 Network Abnormal
Wherein, first object content corresponding with first preset value is then " decryption is abnormal ".
S109, third user interface is generated, the third user interface includes first content display area and the second content Display area, for showing first preset value, second content display region is used for for the first content display area Show the first object content.
By generating third user interface, the third user interface includes that first content display area and the second content are aobvious Show region, wherein the first content display area is for showing the first preset value is shown in the present embodiment "Error01".And second content display region in the present embodiment, that is, shows " decryption for showing first object content It is abnormal ".
S110, the first content display area that first preset value is shown in the third user interface, will be described First object content is shown in the second content display region of the third user interface.
By the way that the first preset value is shown in first content display area, first object content is shown in the second content and is shown Show region, in order to which user knows that server end occurs in the picture to be identified of encryption transmitted by terminal being decrypted operation Exception.
If S111, the return value include the second preset value, obtained and second preset value from preset value referring in table Corresponding second object content.
In the present embodiment, when identification exception occurs for the server end, the server end returns to the second preset value To the terminal.For example, if identification exception occurs for server end, return value is " Error02 ".Wherein, pre- with described second If corresponding second object content of value is then " identification is abnormal ".
S112, fourth user interface is generated, the fourth user interface includes third content display region and the 4th content Display area, for showing second preset value, the 4th content display region is used for the third content display region Show second object content.
By generating fourth user interface, the fourth user interface includes that third content display region and the 4th content are aobvious Show region, wherein the third content display region shows " Error02 " for the second preset value of display, and the described 4th Content display region is for showing the second object content, i.e. display " identification is abnormal ".
S113, the third content display region that second preset value is shown in the fourth user interface, will be described Second object content is shown in the 4th content display region of the fourth user interface.
By the way that the second preset value is shown in third content display region, the second object content is shown in the 4th content and is shown Show region, in order to which user knows that server end occur in identification operation to the picture to be identified of encryption transmitted by terminal Exception.
If S107, the return value do not include the first preset value or the second preset value, second user interface is generated, by institute It states return value and is shown in the second user interface.
If the return value does not include the first preset value or the second preset value, i.e., in server end to encryption figure to be identified Piece carries out in identification operation, abnormal there is no decryption or identification is abnormal, then the return value of server end is to encrypting wait know The recognition result of other picture.By generating second user interface, and return value is shown in second user interface, i.e., it will be to encryption The recognition result of picture to be identified is shown in second user interface, in order to which user knows recognition result.
Fig. 4 is the schematic flow diagram for the image identification method that the another embodiment of the application provides.This method runs on service Device end.This approach includes the following steps S201~S206.
S201, encryption picture to be identified and picture category associated with the encryption picture to be identified that terminal is sent are obtained Type title and cipher mode title.
Server end obtains the encryption picture to be identified that terminal is sent and figure associated with the encryption picture to be identified Sheet type parameter and cipher mode title.The picture type title is used to determine the picture category of the encryption picture to be identified Type can be e.g. " identity card ", " property ownership certificate " and " bank card " etc.;The cipher mode title for determine it is described encryption to Identify that encryption type used by picture can be e.g. " Base64 " and " MD5 " etc..Different cipher mode titles represent institute State cipher mode different used by encrypting picture to be identified.For example, user selectes an identity card picture as figure to be identified Piece, and the picture type that the identity card picture is arranged is entitled " identity card ", cipher mode is entitled " Base64 ", i.e. the identity License piece is encoded by Base64, then is transmitted to the server.
S202, object decryption parameter corresponding with the cipher mode title is obtained from default decryption reference table.
In the present embodiment, default decryption is stored on the server referring to table, the default decryption is referring to table To the deciphering parameter for encrypting use needed for picture to be identified is decrypted.By decrypting cipher mode title with default referring to table It is matched, can get object decryption parameter.For example, if cipher mode is entitled " Base64 ", object decryption parameter is Base64 deciphering parameter, if cipher mode is entitled " MD5 ", object decryption parameter is MD5 deciphering parameter.
Fig. 5 is the schematic flow diagram for the image identification method that another embodiment of the application provides.In some embodiments, such as In the present embodiment, after the step S202, the method also includes step S203a, S207 and S208.
S203a, judge according to the object decryption parameter to encryption picture to be identified be decrypted operation whether at Function.
In server end, the encryption picture to be identified is decrypted in operating process, it may occur however that decryption is abnormal, from And decryption oprerations is caused to fail.Therefore, by being solved to according to the object decryption parameter to the encryption picture to be identified Whether close operation is successfully judged, can be convenient for taking corresponding step.Wherein, it operates successfully, holds if judgement is decrypted Row step S203, it is no to then follow the steps S207.
If operation failure S207, is decrypted to the encryption picture to be identified according to the object decryption parameter, generate First preset value.
In the present embodiment, it is lost if operation is decrypted to the encryption picture to be identified according to the object decryption parameter It loses, generates the first preset value.Wherein, first preset value can be " Error01 ".
S208, using first preset value as return value, the return value is sent to terminal.
By returning to terminal using first preset value as return value, in order to which the user of terminal knows this decryption Exception information.
If S203, being decrypted and operate successfully to encryption picture to be identified according to the object decryption parameter, generation Decrypt picture to be identified.
Operation can be decrypted to the encryption picture to be identified according to object decryption parameter.For example, if the mesh got Mark deciphering parameter is Base64 deciphering parameter, and the encryption identity card photo is decrypted according to the Base64 deciphering parameter, if Successful decryption can get decryption picture to be identified, that is, the identity card picture decrypted.
S204, Model of Target Recognition corresponding with the picture type title is obtained from default identification parameter reference table Parameter.
Different picture type titles is corresponding from different identification model parameters.For example, if picture type title For " identity card ", then corresponding identification model parameter is " identity card identification model parameter ".It is stored on the server pre- If identification parameter is referring to table, the default identification parameter includes the picture type title and the identification model parameter referring to table Mapping relations.By obtaining the picture type title of the picture to be identified, and according to the default identification parameter referring to table Search Model of Target Recognition parameter corresponding with the picture type title.For example, identity card picture is identified, then mesh Identifying other model parameter is identity card identification model parameter.
Fig. 6 is the schematic flow diagram for the image identification method that the application another embodiment provides.In some embodiments, such as In the present embodiment, after the step S204, the method also includes step S205a and S209~S211.
S205a, judge whether identification operation is carried out to the decryption Target Photo according to the Model of Target Recognition parameter Success.
In server end, the encryption picture to be identified is carried out in identification operating process, it may occur however that identification is abnormal, from And cause identification operation failure.Therefore, by being carried out to according to the Model of Target Recognition parameter to the decryption Target Photo Whether identification operation is successfully judged, can be convenient for taking corresponding step.Wherein, if judgement carries out identification and operates successfully, Step S205 is executed, it is no to then follow the steps S209.
If S209, carrying out identification operation failure to the decryption Target Photo according to the Model of Target Recognition parameter, sentence It is disconnected whether to reach preset times.
In the present embodiment, if carrying out identification operation to the decryption Target Photo according to the Model of Target Recognition parameter Failure, first judges whether to reach preset times.In server actual motion, because may result in the problems such as software systems There is exception to the identification of decryption Target Photo, this exception may be randomness, it is possible to by repeatedly retrying, to decryption The identification operation that Target Photo is carried out will succeed.Therefore, by the way that preset times are arranged, reached default time by judging whether Number, in order to realize the quick identification to decryption Target Photo by the mechanism repeatedly retried.Wherein, if reaching default time Number, thens follow the steps S210, no to then follow the steps S204.
If S210, reaching preset times, the second preset value is generated.
In the present embodiment, if carrying out identification operation to the decryption Target Photo according to the Model of Target Recognition parameter Failure, and reach preset times, then generate the second preset value.Wherein, second preset value can be " Error02 ".
S211, using second preset value as return value, the return value is sent to terminal.
By returning to terminal using second preset value as return value, in order to which the user of terminal knows this identification Exception information.
If S205, according to the Model of Target Recognition parameter to the decryption Target Photo carry out identification operate successfully, give birth to At recognition result.
It, can be according to the target after getting Model of Target Recognition parameter corresponding with the picture type title Identification model parameter identifies to obtain recognition result the decryption Target Photo.For example, if the Model of Target Recognition Parameter is " identity card identification model parameter ", and the decryption Target Photo is identity card picture, according to " the identity card identification model Parameter " identify successfully to identity card picture, can get identification card number, name, gender, nationality, date of birth and live The ID card informations such as location;If the Model of Target Recognition parameter is " property ownership certificate identification model parameter ", the decryption Target Photo For property ownership certificate photo, property ownership certificate photo identify successfully according to " the property ownership certificate identification model parameter ", can get address, The property ownership certificates information such as owner and area;If the Model of Target Recognition parameter is " bank card identification model parameter ", described Target Photo is bank card photo, identify successfully to bank card according to " the bank card identification model parameter ", can get The bank card informations such as bank's card number, holder name and validity date.
S206, using the recognition result as return value, the return value is sent to terminal.
By using recognition result as return value, and return value is sent to terminal, in order to which user knows server end To the recognition result of encryption picture to be identified transmitted by terminal.
Inventive embodiments additionally provide picture recognition system, which includes operating above appointing in terminal Image identification method described in one embodiment and run on image identification method described in any embodiment of server end.Tool Body please refers to the content of the above corresponding embodiment, and details are not described herein.
Fig. 7 is a kind of schematic block diagram of picture recognition device provided in an embodiment of the present invention.The device includes for holding Unit corresponding to the image identification method of the above-mentioned terminal of row, the device are configured in terminal.As shown in fig. 7, the device 300 Including the first user interface generation unit 301, first acquisition unit 302, target encryption parameter acquiring unit 303, encryption unit 304, transmission unit 305, receiving unit 306 and second user interface generation unit 307.
First user interface generation unit 301, for generating the first user interface, first user interface includes picture Path input area, picture type input area, cipher mode input area, cipher mode viewing area and picture viewing area, it is described to add Close mode viewing area is shown there are many cipher mode title and keyword corresponding with each cipher mode title, described Keyword is for the characteristics of describing cipher mode represented by the cipher mode title.
First acquisition unit 302, the picture path inputted for obtaining user in picture path input area, according to The picture path obtains picture to be identified, and the picture to be identified is shown in the picture viewing area, obtains user and exists The picture type title that the picture type input area is inputted obtains user and adds what the cipher mode input area was inputted Close mode title.
Target encryption parameter acquiring unit 303, for being obtained and the cipher mode title from predetermined encryption referring in table Corresponding target encryption parameter.
Encryption unit 304 generates encryption for encrypting according to the target encryption parameter to the picture to be identified Picture to be identified.
Transmission unit 305, for encrypting picture, the picture type title and the cipher mode to be identified for described Title is sent to server end so that server end identifies the encryption picture to be identified.
Receiving unit 306, for receiving the return value of server end return.
Second user interface generation unit 307, if not including that the first preset value or second are default for the return value Value generates second user interface, the return value is shown in the second user interface.
Fig. 8 is a kind of schematic block diagram for picture recognition device that further embodiment of this invention provides.The device includes using The unit corresponding to the image identification method for executing above-mentioned terminal, the device are configured in terminal.With device shown in Fig. 7 It compares, the device 300 of Fig. 8 further includes the first judging unit 308, first object contents acquiring unit 309, the life of third user interface At unit 310, the first display unit 311, second judgment unit 312, the second object content acquiring unit 313, fourth user circle Face generation unit 314 and the second display unit 315.
First judging unit 308, for judging whether the return value includes the first preset value.
First object contents acquiring unit 309, if including the first preset value for the return value, from preset value referring to table It is middle to obtain first object content corresponding with first preset value.
Third user interface generation unit 310, for generating third user interface, the third user interface includes first Content display region and the second content display region, the first content display area is for showing first preset value, institute The second content display region is stated for showing the first object content.
First display unit 311, for first preset value to be shown in the first content of the third user interface The first object content is shown in the second content display region of the third user interface by display area.
Second judgment unit 312, for judging whether the return value includes the second preset value.
Second object content acquiring unit 313, if including the second preset value for the return value, from preset value referring to table It is middle to obtain the second object content corresponding with second preset value.
Fourth user interface generation unit 314, for generating fourth user interface, the fourth user interface includes third Content display region and the 4th content display region, the third content display region is for showing second preset value, institute The 4th content display region is stated for showing second object content.
Second display unit 315, for second preset value to be shown in the third content of the fourth user interface Second object content is shown in the 4th content display region of the fourth user interface by display area.
Fig. 9 is a kind of schematic block diagram for picture recognition device that further embodiment of this invention provides.The device includes using The unit corresponding to the image identification method for executing above-mentioned server end, the device are configured in server.Such as Fig. 9 institute Show, which includes second acquisition unit 401, object decryption parameter acquiring unit 402, encryption picture generation list to be identified Member 403, Model of Target Recognition parameter acquiring unit 404, recognition result generation unit 405 and the first return unit 406.
Second acquisition unit 401, for obtaining the encryption picture to be identified of terminal transmission and encrypting figure to be identified with described The associated picture type title of piece and cipher mode title.
Object decryption parameter acquiring unit 402, for being obtained and the cipher mode title from default decryption referring in table Corresponding object decryption parameter.
Picture generation unit 403 to be identified is encrypted, if for be identified to the encryption according to the object decryption parameter Picture, which is decrypted, to be operated successfully, is generated and is decrypted picture to be identified.
Model of Target Recognition parameter acquiring unit 404, for being obtained and the picture from default identification parameter referring in table The corresponding Model of Target Recognition parameter of typonym.
Recognition result generation unit 405, if being used for according to the Model of Target Recognition parameter to the decryption Target Photo It carries out identification to operate successfully, generates recognition result.
First return unit 406, for using the recognition result as return value, the return value to be sent to terminal.
Figure 10 be another embodiment of the present invention provides a kind of picture recognition device schematic block diagram.The device includes using The unit corresponding to the image identification method for executing above-mentioned server end, the device are configured in server.With shown in Fig. 9 Device compare, the device 400 of Figure 10 further includes third judging unit 407, the first preset value generation unit 408 and second returns Receipt member 409.
Third judging unit 407 carries out the encryption picture to be identified according to the object decryption parameter for judging Whether decryption oprerations succeed.
First preset value generation unit 408, if for encrypting picture to be identified to described according to the object decryption parameter Operation failure is decrypted, generates the first preset value.
Second return unit 409, for using first preset value as return value, the return value to be sent to end End.
Figure 11 is a kind of schematic block diagram for picture recognition device that yet another embodiment of the invention provides.The device includes using The unit corresponding to the image identification method for executing above-mentioned server end, the device are configured in server.With shown in Fig. 9 Device compare, the device 400 of Figure 11 further include the 4th judging unit 410, the 5th judging unit 411, the second preset value generate Unit 412 and third return unit 413.
4th judging unit 410, for judge according to the Model of Target Recognition parameter to the decryption Target Photo into Whether row identification operation succeeds.
5th judging unit 411, if for being carried out according to the Model of Target Recognition parameter to the decryption Target Photo It identifies operation failure, judges whether to reach preset times.
Second preset value generation unit 412, if generating the second preset value for reaching preset times.
Third return unit 413, for using second preset value as return value, the return value to be sent to end End.
Above-mentioned apparatus can be implemented as a kind of form of computer program, and computer program can be in meter as shown in figure 12 It calculates and is run on machine equipment.Figure 12 is a kind of schematic block diagram of computer equipment provided in an embodiment of the present invention.In the present embodiment In, which can be the terminal devices such as mobile phone, laptop computer, tablet computer, desktop computer.This sets Standby 500 include the processor 502, memory and network interface 505 connected by system bus 501, wherein memory can wrap Include non-volatile memory medium 503 and built-in storage 504.The non-volatile memory medium 503 can 5031 He of storage program area Computer program 5032.The computer program 5032 stored in the non-volatile memory medium 503 is executed by processor 502 When, it can be achieved that the image identification method that above-mentioned terminal is realized, as shown in Figures 2 and 3.The processor 502 is for providing calculating And control ability, support the operation of whole equipment 500.The built-in storage 504 is the computer in non-volatile memory medium 503 The operation of program 5032 provides environment, when which is executed by processor 502, processor 502 may make to execute Such as above-mentioned Fig. 2 and image identification method shown in Fig. 3.The network interface 505 is for carrying out network communication, such as reception message.
Wherein, the processor 502 is for running computer program stored in memory, to realize following steps: Generate the first user interface;The picture path that user is inputted in picture path input area is obtained, according to the picture road Diameter obtains picture to be identified, and the picture to be identified is shown in the picture viewing area, obtains user in the picture category The picture type title that type input area is inputted obtains the cipher mode name that user is inputted in the cipher mode input area Claim;From predetermined encryption referring to acquisition target encryption parameter corresponding with the cipher mode title in table;According to the target Encryption parameter encrypts the picture to be identified, generates and encrypts picture to be identified;By encryption picture to be identified, described Picture type title and the cipher mode title are sent to server end so that server end is to the encryption figure to be identified Piece is identified;Receive the return value that server end returns;If the return value does not include that the first preset value or second are default Value generates second user interface, the return value is shown in the second user interface.
In one embodiment, the processor 502 also has after executing the return value for receiving server end return Body executes: corresponding with first preset value referring to obtaining in table from preset value if the return value includes the first preset value First object content;Third user interface is generated, the third user interface includes in first content display area and second Hold display area;First preset value is shown in the first content display area of the third user interface, by described One object content is shown in the second content display region of the third user interface.
In one embodiment, the processor 502 also has after executing the return value for receiving server end return Body executes: corresponding with second preset value referring to obtaining in table from preset value if the return value includes the second preset value The second object content;Fourth user interface is generated, the fourth user interface includes in third content display region and the 4th Hold display area;Second preset value is shown in the third content display region of the fourth user interface, by described Two object contents are shown in the 4th content display region of the fourth user interface.
Another embodiment of the present invention additionally provides a kind of schematic block diagram of computer equipment.In the present embodiment, described Equipment is server.Figure 12 specifically is please referred to, which includes structure identical with computer equipment shown in Figure 12.It should The difference of computer equipment and computer equipment shown in Figure 12 is that non-volatile memory medium is stored in the computer equipment Computer program when being executed by processor 502, it can be achieved that the image identification method that above-mentioned server end is realized, such as Fig. 4, figure Shown in 5 and Fig. 6.
Wherein, the processor 502 is for running computer program stored in memory, to realize following steps: Obtain the encryption picture to be identified and picture type title associated with the encryption picture to be identified and encryption that terminal is sent Mode title;From default decryption referring to acquisition object decryption parameter corresponding with the cipher mode title in table;If according to The object decryption parameter is decrypted the encryption picture to be identified and operates successfully, generates and decrypts picture to be identified;From pre- If identification parameter is referring to acquisition Model of Target Recognition parameter corresponding with the picture type title in table;If according to the mesh Identify other model parameter to the decryption Target Photo carry out identification operate successfully, generation recognition result;With the recognition result As return value, the return value is sent to terminal.
In one embodiment, the processor 502 is executing acquisition and the encryption from default decryption reference table It is also specific to execute: if according to the object decryption parameter to the encryption after the corresponding object decryption parameter of mode title Operation failure is decrypted in picture to be identified, generates the first preset value;Using first preset value as return value, returned described It returns value and is sent to terminal.
In one embodiment, the processor 502 execute it is described from default identification parameter referring to obtain in table with it is described It is also specific to execute after the corresponding Model of Target Recognition parameter of picture type title: if being joined according to the Model of Target Recognition It is several that identification operation failure is carried out to the decryption Target Photo, judge whether to reach preset times;If reaching preset times, generate Second preset value;Using second preset value as return value, the return value is sent to terminal.
It should be appreciated that in embodiments of the present invention, alleged processor 502 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
A kind of storage medium is provided in another embodiment of the invention, and the storage medium is stored with computer journey Sequence, the computer program include program instruction, and described program instruction performs the steps of generation the when being executed by a processor One user interface;The picture path that user is inputted in picture path input area is obtained, is obtained according to the picture path Picture to be identified, and the picture to be identified is shown in the picture viewing area, it obtains user and is inputted in the picture type The picture type title that area is inputted obtains the cipher mode title that user is inputted in the cipher mode input area;From pre- If encryption is referring to acquisition target encryption parameter corresponding with the cipher mode title in table;According to the target encryption parameter The picture to be identified is encrypted, generates and encrypts picture to be identified;By encryption picture to be identified, the picture type Title and the cipher mode title are sent to server end so that server end knows the encryption picture to be identified Not;Receive the return value that server end returns;If the return value does not include the first preset value or the second preset value, the is generated The return value is shown in the second user interface by two user interfaces.
In one embodiment, the processor is also realized after executing the return value for receiving server end return: If the return value includes the first preset value, from preset value referring to acquisition the first mesh corresponding with first preset value in table Mark content;Third user interface is generated, the third user interface includes first content display area and the second content display area Domain;First preset value is shown in the first content display area of the third user interface, it will be in the first object Hold the second content display region for being shown in the third user interface.
In one embodiment, the processor is also realized after executing the return value for receiving server end return: If the return value includes the second preset value, from preset value referring to acquisition the second mesh corresponding with second preset value in table Mark content;Fourth user interface is generated, the fourth user interface includes third content display region and the 4th content display area Domain;Second preset value is shown in the third content display region of the fourth user interface, it will be in second target Hold the 4th content display region for being shown in the fourth user interface.
A kind of storage medium is additionally provided in another embodiment of the invention, and the storage medium is stored with computer journey Sequence, the computer program include program instruction, and described program instruction performs the steps of acquisition eventually when being executed by a processor Hold the encryption picture to be identified sent and picture type title associated with the encryption picture to be identified and cipher mode name Claim;From default decryption referring to acquisition object decryption parameter corresponding with the cipher mode title in table;If according to the mesh Mark deciphering parameter is decrypted the encryption picture to be identified and operates successfully, generates and decrypts picture to be identified;From default identification Parameter is referring to acquisition Model of Target Recognition parameter corresponding with the picture type title in table;If according to the target identification Model parameter carries out identification to the decryption Target Photo and operates successfully, generates recognition result;Using the recognition result as returning Value is returned, the return value is sent to terminal.
In one embodiment, the processor is executing acquisition and the cipher mode from default decryption reference table After the corresponding object decryption parameter of title, if also performing the steps of according to the object decryption parameter to the encryption Operation failure is decrypted in picture to be identified, generates the first preset value;Using first preset value as return value, returned described It returns value and is sent to terminal.
In one embodiment, the processor is executing acquisition and the picture from default identification parameter reference table After the corresponding Model of Target Recognition parameter of typonym, joined if also performing the steps of according to the Model of Target Recognition It is several that identification operation failure is carried out to the decryption Target Photo, judge whether to reach preset times;If reaching preset times, generate Second preset value;Using second preset value as return value, the return value is sent to terminal.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of image identification method is applied to terminal, which is characterized in that the described method includes:
The first user interface is generated, first user interface includes picture path input area, picture type input area, encryption side Formula input area, cipher mode viewing area and picture viewing area, the cipher mode viewing area show that there are many cipher mode names Claim and keyword corresponding with each cipher mode title, the keyword is for describing the cipher mode title institute The characteristics of cipher mode of expression;
The picture path that user is inputted in picture path input area is obtained, figure to be identified is obtained according to the picture path Piece, and the picture to be identified is shown in the picture viewing area, it obtains user and is inputted in the picture type input area Picture type title, obtain the cipher mode title that is inputted in the cipher mode input area of user;
From predetermined encryption referring to acquisition target encryption parameter corresponding with the cipher mode title in table;
The picture to be identified is encrypted according to the target encryption parameter, generates and encrypts picture to be identified;
By the encryption picture, the picture type title and the cipher mode title to be identified be sent to server end with Identify server end to the encryption picture to be identified;
Receive the return value that server end returns;
If the return value does not include the first preset value or the second preset value, second user interface is generated, by the return value It is shown in the second user interface.
2. image identification method according to claim 1, which is characterized in that in the return that the reception server end returns After value, the method also includes:
If the return value includes the first preset value, from preset value referring to obtaining corresponding with first preset value the in table One object content;
Third user interface is generated, the third user interface includes first content display area and the second content display region, The first content display area is for showing first preset value, and second content display region is for showing described the One object content;
First preset value is shown in the first content display area of the third user interface, it will be in the first object Hold the second content display region for being shown in the third user interface.
3. image identification method according to claim 1, is characterized in that, in the return value that the reception server end returns Later, the method also includes:
If the return value includes the second preset value, from preset value referring to obtaining corresponding with second preset value the in table Two object contents;
Fourth user interface is generated, the fourth user interface includes third content display region and the 4th content display region, The third content display region is for showing second preset value, and the 4th content display region is for showing described the Two object contents;
Second preset value is shown in the third content display region of the fourth user interface, it will be in second target Hold the 4th content display region for being shown in the fourth user interface.
4. a kind of image identification method is applied to server end, which is characterized in that the described method includes:
Obtain encryption picture to be identified and picture type title associated with encryption picture to be identified that terminal is sent and Cipher mode title;
From default decryption referring to acquisition object decryption parameter corresponding with the cipher mode title in table;
It is operated successfully if the encryption picture to be identified is decrypted according to the object decryption parameter, it is to be identified to generate decryption Picture;
From default identification parameter referring to acquisition Model of Target Recognition parameter corresponding with the picture type title in table;
If carrying out identification to the decryption Target Photo according to the Model of Target Recognition parameter to operate successfully, identification knot is generated Fruit;
Using the recognition result as return value, the return value is sent to terminal.
5. image identification method according to claim 4, which is characterized in that obtained from default decrypt referring in table described After object decryption parameter corresponding with the cipher mode title, the method also includes:
If operation failure is decrypted to the encryption picture to be identified according to the object decryption parameter, it is default to generate first Value;
Using first preset value as return value, the return value is sent to terminal.
6. image identification method according to claim 4, which is characterized in that described from default identification parameter reference table After obtaining Model of Target Recognition parameter corresponding with the picture type title, the method also includes:
If carrying out identification operation failure to the decryption Target Photo according to the Model of Target Recognition parameter, judge whether to reach Preset times;
If reaching preset times, the second preset value is generated;
Using second preset value as return value, the return value is sent to terminal.
7. a kind of picture recognition device, which is characterized in that the picture recognition device includes appointing for executing claim 1-3 such as The unit of one the method, or include for executing the unit such as any one of claim 4-6 the method.
8. a kind of picture recognition system, which is characterized in that including server and an at least terminal, the terminal are used to execute such as The described in any item methods of claim 1-3, the server end is for executing such as the described in any item sides of claim 4-6 Method.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and is connected with the memory Processor;The memory is for storing computer program;The processor is based on running and storing in the memory Calculation machine program, to execute as any in method as claimed in any one of claims 1-3, or execution such as claim 4-6 Method described in.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, it is as claimed in any one of claims 1-3 that the computer program when being executed by a processor realizes the processor Method, or realize the method as described in any one of claim 4-6.
CN201811527294.8A 2018-12-13 2018-12-13 Image identification method, device, system, computer equipment and storage medium Pending CN109783674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811527294.8A CN109783674A (en) 2018-12-13 2018-12-13 Image identification method, device, system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811527294.8A CN109783674A (en) 2018-12-13 2018-12-13 Image identification method, device, system, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109783674A true CN109783674A (en) 2019-05-21

Family

ID=66496183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811527294.8A Pending CN109783674A (en) 2018-12-13 2018-12-13 Image identification method, device, system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109783674A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444815A (en) * 2020-03-24 2020-07-24 中国南方电网有限责任公司 Substation identity authentication method, system and device and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040076757A (en) * 2003-02-26 2004-09-03 한국조폐공사 System for discriminating forgery in ID Card and Method thereof
CN103632102A (en) * 2012-08-21 2014-03-12 中兴通讯股份有限公司 Certificate processing method and terminal
CN105095919A (en) * 2015-09-08 2015-11-25 北京百度网讯科技有限公司 Image recognition method and image recognition device
CN107276884A (en) * 2017-08-21 2017-10-20 江苏北弓智能科技有限公司 A kind of autonomous encrypting and deciphering system of social software based on intelligent terminal
CN108280756A (en) * 2018-04-11 2018-07-13 潘伟骏 It is a kind of to facilitate Accounting network method and system
CN108875731A (en) * 2017-12-28 2018-11-23 北京旷视科技有限公司 Target identification method, device, system and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040076757A (en) * 2003-02-26 2004-09-03 한국조폐공사 System for discriminating forgery in ID Card and Method thereof
CN103632102A (en) * 2012-08-21 2014-03-12 中兴通讯股份有限公司 Certificate processing method and terminal
CN105095919A (en) * 2015-09-08 2015-11-25 北京百度网讯科技有限公司 Image recognition method and image recognition device
CN107276884A (en) * 2017-08-21 2017-10-20 江苏北弓智能科技有限公司 A kind of autonomous encrypting and deciphering system of social software based on intelligent terminal
CN108875731A (en) * 2017-12-28 2018-11-23 北京旷视科技有限公司 Target identification method, device, system and storage medium
CN108280756A (en) * 2018-04-11 2018-07-13 潘伟骏 It is a kind of to facilitate Accounting network method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111444815A (en) * 2020-03-24 2020-07-24 中国南方电网有限责任公司 Substation identity authentication method, system and device and computer equipment
CN111444815B (en) * 2020-03-24 2024-05-14 中国南方电网有限责任公司 Substation identity authentication method, system, device and computer equipment

Similar Documents

Publication Publication Date Title
US20210246824A1 (en) Method and apparatus for securing communications using multiple encryption keys
US10313353B2 (en) Method, device, terminal, and server for verifying security of service operation
EP3220573B1 (en) Method and system for controlling encryption of information and analyzing information as well as terminal
CN110138744A (en) Replace method, apparatus, system, computer equipment and the storage medium of communicating number
EP2743842A1 (en) Secure search processing system and secure search processing method
EP3432546A1 (en) Secure messaging
CN109347625B (en) Password operation method, work key creation method, password service platform and equipment
US9092777B1 (en) Credit card tokenization techniques
KR101438274B1 (en) Method for checking a health condition though smart terminal and health condition check system using the method
CN110232021A (en) The method and device of page test
CN115982761A (en) Sensitive information processing method and device, electronic equipment and storage medium
JP2012080152A (en) Encryption system, encryption apparatus, decryption apparatus, encryption system program and encryption method
JP5969716B1 (en) Data management system, data management program, communication terminal, and data management server
US20200145200A1 (en) Attribute-based key management system
CN113296737B (en) Random number generation system, method and device and cloud server
CN109783674A (en) Image identification method, device, system, computer equipment and storage medium
CN115022012B (en) Data transmission method, device, system, equipment and storage medium
CN108848094A (en) Data security validation method, device, system, computer equipment and storage medium
CN112699391B (en) Target data sending method and privacy computing platform
EP3306489B1 (en) Interaction record query processing method and device
CN114117388A (en) Device registration method, device registration apparatus, electronic device, and storage medium
CN116112172B (en) Android client gRPC interface security verification method and device
CN116094835A (en) Service data encryption method, service data decryption method, device and equipment
CN116939597A (en) Automatic login method, device and readable storage medium
CN115809877A (en) Card activation method, device, equipment and medium

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