Method and device for preventing OCR (Optical Character Recognition) confrontation through synchronous verification codes
Through multimodal synchronization verification method, using question information and candidate answer information of different modes, combined with user triggering operations, the security of synchronous verification code is improved, the problem that existing verification codes are easily cracked is solved, and the confrontation is enhanced ability.
Patent Information
- Application Number
- CN202411112587.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2024-12-06
AI Technical Summary
The existing synchronous verification code is easily cracked by optical character recognition technology, resulting in low security of verification codes and it is difficult to distinguish between human users and robots.
By using multimodal synchronous verification method, by obtaining question information and candidate answer information, users verify based on the execution information of different modes, including image display mode, voice mode and third-party mode (such as vibration and flicker modes). ) to improve the security of verification code.
It effectively improves the security of verification code, prevents confrontation in OCR scenarios, and enhances the security of the system and the protection of user data.
Smart Images

Figure CN119089422A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and more specifically, to a method and device for preventing OCR confrontation using a synchronous verification code. Background Art
[0002] Human-machine challenge is a technology used to distinguish between human users and robots. It determines whether a user is a human or a robot by asking a series of questions or tasks to the user. The purpose of human-machine challenge is to ensure the security and credibility of online systems and prevent robots from maliciously abusing the system or conducting automated attacks. It has very wide applications in the fields of website security, data security, transaction security, and operational security. Common human-machine challenge methods include verification code challenges. Specifically, the verification code challenges include asynchronous verification codes and synchronous verification codes. Among them, the most important is synchronous verification codes. The synchronous verification codes include character recognition verification codes, Nocaptcha verification codes, and Recaptcha verification codes.
[0003] With the development of optical character recognition (OCR) technology, the security of the above verification codes is facing a great challenge. The above synchronous verification codes are easy to be confronted, that is, they are easy to be recognized by machines (people), resulting in the problem of low security of the verification codes.
[0004] In summary, how to improve the security of verification codes and prevent confrontation in OCR scenarios is a problem that needs to be solved at present. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method and device for preventing OCR confrontation with a synchronous verification code, which adopts a multi-modal synchronous verification method to improve the security of the verification code and prevent confrontation in the OCR scenario.
[0006] In a first aspect, an embodiment of the present invention provides a method for preventing OCR confrontation with a synchronous verification code, the method comprising:
[0007] Acquire question information and candidate answer information, wherein the question information and the candidate answer information belong to the same modality or different modalities;
[0008] Receive a user trigger operation to select target answer information from the candidate answer information for verification, wherein the user's trigger operation is determined based on execution information of a different modality than the question information or the candidate answer information, or the trigger operation is directly determined based on the question information.
[0009] Optionally, the receiving user trigger operation of selecting target answer information from the candidate answer information for verification specifically includes:
[0010] In response to the question information and the candidate answer information being of the same modality, generating execution information according to the question information, wherein the execution information and the question information are of different modalities;
[0011] A user trigger operation is received to select target answer information from the candidate answer information for verification, wherein the target answer information is determined by the user according to the execution information.
[0012] Optionally, the receiving user trigger operation of selecting target answer information from the candidate answer information for verification specifically includes:
[0013] In response to the question information and the candidate answer information being in different modalities, generating execution information according to the question information, wherein the execution information, the question information, and the candidate answer information are all in different modalities;
[0014] A user trigger operation is received to select target answer information from the candidate answer information for verification, wherein the target answer information is determined by the user according to the execution information.
[0015] Optionally, the receiving user trigger operation of selecting target answer information from the candidate answer information for verification specifically includes:
[0016] In response to the question information and the candidate answer information belonging to different modes, a user trigger operation is received to select target answer information from the candidate answer information for verification.
[0017] Optionally, the question information is in an image display mode or a voice mode, the candidate answer information is in an image display mode, and the execution information is in a third-party mode, wherein the third-party mode includes a vibration mode and a flashing mode.
[0018] Optionally, the method further includes:
[0019] In response to the title information being in voice mode, a click operation by the user is received and the title information is replayed.
[0020] Optionally, the method further includes:
[0021] In response to the execution information being in a third-party mode, a click operation by the user is received, the title information is replayed, and the execution information is regenerated.
[0022] In a second aspect, an embodiment of the present invention provides a device for preventing OCR confrontation with a synchronous verification code, the device comprising:
[0023] An acquisition unit, configured to acquire question information and candidate answer information, wherein the question information and the candidate answer information belong to the same modality or different modalities;
[0024] A verification unit is used to receive a user trigger operation and select target answer information from the candidate answer information for verification, wherein the user's trigger operation is determined based on execution information of a different mode from the question information or the candidate answer information, or the trigger operation is directly determined based on the question information.
[0025] Optionally, the verification unit is specifically used for:
[0026] In response to the question information and the candidate answer information being of the same modality, generating execution information according to the question information, wherein the execution information and the question information are of different modalities;
[0027] A user trigger operation is received to select target answer information from the candidate answer information for verification, wherein the target answer information is determined by the user according to the execution information.
[0028] Optionally, the verification unit is specifically used for:
[0029] In response to the question information and the candidate answer information being in different modalities, generating execution information according to the question information, wherein the execution information, the question information, and the candidate answer information are all in different modalities;
[0030] A user trigger operation is received to select target answer information from the candidate answer information for verification, wherein the target answer information is determined by the user according to the execution information.
[0031] Optionally, the verification unit is specifically used for:
[0032] In response to the question information and the candidate answer information belonging to different modes, a user trigger operation is received to select target answer information from the candidate answer information for verification.
[0033] Optionally, the question information is in an image display mode or a voice mode, the candidate answer information is in an image display mode, and the execution information is in a third-party mode, wherein the third-party mode includes a vibration mode and a flashing mode.
[0034] Optionally, the device further comprises:
[0035] The processing unit is used for receiving a click operation of the user and replaying the title information in response to the title information being in voice mode.
[0036] Optionally, the processing unit is further used for:
[0037] In response to the execution information being in a third-party mode, a click operation by the user is received, the title information is replayed, and the execution information is regenerated.
[0038] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, the memory being used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement a method as described in the first aspect or any possible embodiment of the first aspect.
[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement a method as described in the first aspect or any possible embodiment of the first aspect.
[0040] In an embodiment of the present invention, by obtaining question information and candidate answer information, wherein the question information and the candidate answer information belong to the same modality or different modalities; receiving a user trigger operation to select target answer information from the candidate answer information for verification, wherein the user's trigger operation is determined based on execution information of a different modality from the question information or the candidate answer information, or the trigger operation is directly determined based on the question information. Through the above method, using question information, candidate answer information or execution information of different modalities for synchronous verification can improve the security of the verification code and prevent confrontation in OCR scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The above and other objects, features and advantages of the present invention will become more apparent through the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
[0042] Figure 1 This is a flow chart of a method for preventing OCR confrontation with a synchronous verification code in an embodiment of the present invention;
[0043] Figure 2 is a schematic diagram of a terminal screen in an embodiment of the present invention;
[0044] Figure 3 is another terminal screen schematic diagram in an embodiment of the present invention;
[0045] Figure 4 is another terminal screen schematic diagram in an embodiment of the present invention;
[0046] Figure 5 is another terminal screen schematic diagram in an embodiment of the present invention;
[0047] Figure 6is another terminal screen schematic diagram in an embodiment of the present invention;
[0048] Figure 7 is another terminal screen schematic diagram in an embodiment of the present invention;
[0049] Figure 8 is another terminal screen schematic diagram in an embodiment of the present invention;
[0050] Fig. 9 is another terminal screen schematic diagram in an embodiment of the present invention;
[0051] Fig.10 is another terminal screen schematic diagram in an embodiment of the present invention;
[0052] Fig.11 is another terminal screen schematic diagram in an embodiment of the present invention;
[0053] Fig.12 is a schematic diagram of a terminal screen in an embodiment of the present invention;
[0054] Fig.13 It is a schematic diagram of a device for preventing OCR confrontation with a synchronous verification code in an embodiment of the present invention;
[0055] Fig.14 is a schematic diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The present application is described below based on embodiments, but the present application is not limited to these embodiments. In the detailed description of the present application below, some specific details are described in detail. It is possible for those skilled in the art to fully understand the present application without the description of these details. In order to avoid confusing the essence of the present application, known methods, processes, flows, components and circuits are not described in detail.
[0057] In addition, persons of ordinary skill in the art will appreciate that the drawings provided herein are for illustration purposes and are not necessarily drawn to scale.
[0058] Unless the context clearly requires otherwise, the words "include", "comprising" and similar words throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, the meaning is "including but not limited to".
[0059] In the description of this application, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of this application, unless otherwise specified, the meaning of "plurality" is two or more.
[0060] In the prior art, common verification code challenges include asynchronous verification codes and synchronous verification codes, wherein the asynchronous verification code is a verification code received through additional channels, such as: mobile phone text message verification code, telephone voice verification code and email verification code, etc. The asynchronous verification code requires the user's phone information, email information, etc., and verification cannot be performed without knowing the phone information and the email information. Even if the phone information is known, there is an operator cost, which is high in cost and complicated in verification; the synchronous verification code refers to a verification code embedded in the verification process and synchronously receives the question information, specifically including character recognition verification code, Nocaptcha verification code and Recaptcha verification code, etc., wherein the Nocaptcha verification code includes a slider-type verification code based on behavior analysis and a sequential click verification code, and the Recaptcha verification code is a verification based on a combination of machine learning and image recognition technology. The synchronous verification codes all involve optical character recognition (OCR). With the development of OCR technology, the security of the above-mentioned synchronous verification codes faces a great test. The above-mentioned synchronous verification codes are easy to implement confrontation, that is, they are easy to be recognized by machines (people), resulting in the problem of low security of the verification codes. Therefore, how to improve the security of verification codes, identify and distinguish between human users and robots, prevent confrontation in OCR scenarios, and ensure the normal operation of the system and the security of user data are problems that need to be solved at present.
[0061] In order to solve the above problems, a method for synchronizing verification codes to prevent OCR confrontation is proposed in the embodiment of the present invention. Figure 1 As shown, the method includes:
[0062] Step S101: Obtain question information and candidate answer information.
[0063] Specifically, the question information and the candidate answer information belong to the same modality or different modalities.
[0064] In the embodiment of the present invention, the question information is in an image display mode or a voice mode, and the candidate answer information is in an image display mode.
[0065] In a possible implementation, if the question information and the candidate answer information belong to the same mode, the question information is an image display mode, and the candidate answer information is also an image display mode, as shown in FIG. Figure 2 As shown, Figure 2 It can be displayed on the terminal screen. For example, in any application of the terminal, when entering the verification phase, the following information is displayed: Figure 2 mentioned, mentioned Figure 2The question information includes "Please select the number of vibrations you hear", the candidate answer information is an image display frame, the image display frame includes "7 3 6 4", and there are some dot patterns on the background of the image display frame. Figure 2 In the example, the question information and the candidate answer information are both directly displayed, and therefore, the question information and the candidate answer information belong to the same mode, that is, the question information and the candidate answer information belong to the image display mode.
[0066] In a possible implementation, if the question information and the candidate answer information belong to different modes, the question information is in a voice mode, and the candidate answer information is in an image display mode, as follows: Figure 3 As shown, Figure 3 It can be displayed on the terminal screen. For example, in any application of the terminal, when entering the verification phase, the following information is displayed: Figure 3 As shown, Figure 3 The "play button" or a schematic pattern of the play button includes the question information, and the candidate answer information is an image display frame, the image display frame includes "7 3 6 4", and there are some dot patterns on the background of the image display frame. Figure 3 In the example, the question information is displayed in voice mode. When the user enters the verification phase, the user can click the "play button" to play the voice of the question information "Please select the number of vibrations you hear". The candidate answer information is displayed directly. Therefore, the question information and the candidate answer information belong to different modes, that is, the question information belongs to the voice mode, and the candidate answer information belongs to the image display mode.
[0067] In a possible implementation, in any application of the terminal, when entering the verification phase, the candidate answer information is an image display frame, including "7 3 6 4" in the image display frame, and there are some dot patterns on the background of the image display frame; specifically, when the user enters the verification phase, the question information is directly played through voice without the need for user operation, that is, after the user enters the verification phase, the question information "Please select the number of vibrations you hear" is directly played.
[0068] In the embodiment of the present invention, the examples in the above specific implementation are only for illustrative purposes and should be determined based on actual conditions.
[0069] Step S102: receiving a user trigger operation to select target answer information from the candidate answer information for verification.
[0070] Specifically, the trigger operation of the user is determined based on execution information of a different modality from the question information or the candidate answer information, or the trigger operation is directly determined based on the question information.
[0071] In the embodiment of the present invention, since the modalities of the question information and the candidate answer information are different, the above step S102 can be divided into three categories, which are determined as described in the following specific embodiments. Specific embodiment 1:
[0073] In response to the question information and the candidate answer information belonging to the same modality, generating execution information according to the question information, wherein the execution information and the question information belong to different modalities; receiving a user trigger operation to select target answer information from the candidate answer information for verification, wherein the target answer information is determined by the user based on the execution information.
[0074] In a possible implementation, the execution information is a third-party modality, wherein the third-party modality includes a vibration modality and a flashing modality.
[0075] In the embodiment of the present invention, it is assumed that the question information and the candidate answer information belong to the same mode, that is, the image display mode. Figure 2 As shown, since the question information is "Please select the number of vibrations you hear", in any application of the terminal, after entering the verification phase, execution information is generated according to the question information, wherein the execution information is that the terminal vibrates 6 times. After the user confirms that the terminal vibrates 6 times, in the image display box of the candidate answer information, click "6" in "73 6 4", that is, select the target answer information "6" from the candidate answer information "7", "3", "6" and "4" for verification.
[0076] In an embodiment of the present invention, the execution information may be generated immediately after the title information is displayed, that is, after the title information "Please select the number of vibrations you hear" is displayed, the terminal vibrates 6 times; or, the execution information may be generated after a set time has passed since the title information was displayed. For example, the execution information may be generated 5 seconds after the title information is displayed. The set time is used for the user to understand the title information. The specific set time is determined based on actual conditions and may be 2 seconds, 6 seconds, 7 seconds, etc., and is not limited here.
[0077] In a possible implementation, in the Figure 2 On the basis of Figure 4As shown, the replay button is used to regenerate the execution information. Assuming that the user did not fully determine the content of the execution information when generating the execution information for the first time, click the "replay button" to regenerate the execution information. For example, the execution information is that the terminal vibrates 6 times, and the user cannot confirm where the terminal vibrates. The user clicks the "replay button", and the terminal vibrates 6 times again for the user to confirm again. The name, logo and position of the "replay button" are all variable on the screen, and are determined according to actual conditions. Specific embodiment 2:
[0079] In response to the question information and the candidate answer information belonging to different modalities, generating execution information according to the question information, wherein the execution information, the question information, and the candidate answer information all belong to different modalities; receiving a user trigger operation to select target answer information from the candidate answer information for verification, wherein the target answer information is determined by the user according to the execution information.
[0080] In one possible implementation, Figure 3 On the basis of, if the question information and the candidate answer information belong to different modes, the question information is a voice mode, and the candidate answer information is an image display mode, and a "replay button" can also be set, as shown in the following example: Figure 5 As shown, Figure 5 It can be displayed on the terminal screen. For example, in any application of the terminal, when entering the verification phase, it is displayed as follows Figure 5 mentioned, mentioned Figure 5 The "play button" or a schematic pattern of the play button including the question information, the "replay button" and the candidate answer information are an image display frame, the image display frame includes "7 3 64", and there are some dot patterns on the background of the image display frame. Figure 5 In the embodiment, the question information is displayed in voice mode. When the user enters the verification stage, the user can click the "play button" to play the voice of the question information "Please select the number of vibrations you hear". After the voice "Please select the number of vibrations you hear" is played, the terminal generates execution information, that is, the terminal vibrates, and the number of vibrations is 6 times. After the user determines the number of vibrations, he clicks "6" in the candidate answer information for verification; if the user does not clearly determine the number of vibrations after the terminal has vibrated 6 times, click the "replay button" to make the terminal re-execute the vibration operation.
[0081] In one possible implementation, in response to the title information being in voice mode, receiving a click operation from the user, the title information is replayed; specifically, when the user does not hear the voice in the title information clearly, the user can click the "play button" again to replay the title information, for example, play "Please select the number of vibrations you hear" again.
[0082] In the embodiment of the present invention, the names or logos of the “play button” and the “replay button” are changeable and are determined according to actual conditions.
[0083] In a possible implementation, if the execution information is in a flashing mode, the question information may be "Please select the number of flashes you see", and then the indicator light of the terminal flashes, and the user determines the number of flashes of the indicator light and selects the target answer information. Specific embodiment three:
[0085] In response to the question information and the candidate answer information belonging to different modes, a user trigger operation is received to select target answer information from the candidate answer information for verification.
[0086] In a possible implementation, it is assumed that the question information and the candidate answer information belong to different modes, the flashing question information belongs to the language mode, and the candidate answer information belongs to the image display mode. For example, Figure 6 As shown, Figure 6 It can be displayed on the terminal screen. For example, in any application of the terminal, when entering the verification phase, the following information is displayed: Figure 6 As shown, Figure 6 The system includes a "play button" or a schematic diagram of a play button for the question information, and an image display frame for the candidate answer information. Below the image display frame for the candidate answer information, there is also a slidable frame, and a circular slider is set above the slidable frame. The slidable frame displays "Please drag the slider according to the instructions". At this time, there is no pattern displayed in the image display frame, and there is only a straight line connected to the slider. The question information is displayed in voice mode. When the user clicks the "play button", the voice of the question information "Drag the slider and release it after a complete crown appears" can be played. The user issues a trigger operation, that is, drags the circular slider, causing the straight line connected to the slider to slide to the right side of the screen, and the area slid through is displayed in the image display frame. The specific example is as follows Figure 7 As shown, the image display frame displays a chair, a mushroom, and a crown from left to right in sequence. Here, the user stops the operation, and the straight line connected to the slider stops on the right side of the crown, showing the complete crown to verify the completeness; the image display frame actually includes five patterns, namely a chair, a mushroom, a crown, and a goldfish, as shown in FIG. Figure 8As shown, the verification is successful when the crown is dragged to a complete crown. If it is dragged more or less, the verification fails.
[0087] In the embodiment of the present invention, the user can determine the answer to the question only through the question information, so the user trigger operation can be directly received to select the target answer information from the candidate answer information for verification.
[0088] It can be seen from the above embodiments that in the synchronous verification code method, if there is no execution information, it can be a bimodal situation of question information and candidate answer information. If there is execution information, it can be a bimodal situation of question information, candidate answer information and execution information or a trimodal cleaning. The multimodal synchronous verification method can improve the security of the verification code and prevent confrontation in the OCR scenario.
[0089] The following four scenarios are used to further explain the multimodal situation, as follows:
[0090] Scenario 1:
[0091] If the question information and the candidate answer information belong to different modes, the question information is in voice mode, and the candidate answer information is in image display mode, as shown in the following example: Fig. 9 As shown, Fig. 9 It can be displayed on the terminal screen. For example, in any application of the terminal, when entering the verification phase, the following information is displayed: Fig. 9 As shown, Fig. 9 The "play button" or a schematic pattern of the play button including the question information, and the candidate answer information is an image display frame, wherein the image display frame includes a circle, a triangle, a trapezoid and a square, and there are some dot patterns on the background of the image display frame to increase the difficulty of OCR recognition. Fig. 9 In the embodiment, the question information is displayed in voice mode. When the user enters the verification stage, clicking the "play button" can play the voice of the question information "click the pattern in the order of triangle, circle, square and trapezoid", and the candidate answer information is directly displayed. Therefore, the user needs to trigger the operation multiple times to click the circle, triangle, trapezoid and square in the image display box on the screen in turn for verification; if the user clicks in the wrong order, for example, the user triggers the operation multiple times to click on the triangle, circle, trapezoid and square in turn, the verification fails; the user clicks the "play button" again to replay the voice of the question information "click the pattern in the order of triangle, circle, square and trapezoid", and the user triggers the operation multiple times to click on the triangle, circle, square and trapezoid in turn, then the verification is successful.
[0092] In the embodiment of the present invention, the material type and style of the candidate answer information are determined according to the actual situation. This is only an exemplary description. As long as the question information and the candidate answer information belong to different modes, that is, the question information belongs to the voice mode and the candidate answer information belongs to the image display mode, it will be fine.
[0093] Scene 2:
[0094] If the question information and the candidate answer information belong to different modes, the question information is in voice mode, and the candidate answer information is in image display mode, as shown in the following example: Fig.10 As shown, Fig.10 It can be displayed on the terminal screen. For example, in any application of the terminal, when entering the verification phase, the following information is displayed: Fig.10 As shown, Fig.10 The "play button" or a schematic pattern of the play button including the question information, and the candidate answer information is an image display frame, wherein the image display frame includes a circle, a triangle, a trapezoid and a square, and there are some dot patterns on the background of the image display frame to increase the difficulty of OCR recognition. Fig.10 In the example, the question information is displayed in voice mode. When the user enters the verification stage, clicking the "play button" can play the voice of the question information "Select the square in the picture below". The candidate answer information is displayed directly. Therefore, the user needs to trigger the operation and click the square in the image display box on the screen for verification. If the user clicks in the wrong order, for example, the user triggers the operation and clicks the triangle, the verification fails. The user clicks the "play button" again to replay the voice of the question information "Select the square in the picture below". The user triggers the operation and clicks the square, and the verification is successful.
[0095] In one possible implementation, if user verification fails, the question information and the candidate answer information can be updated simultaneously; or an "update" button or update mark is set on the terminal screen. When the current question information of the user task is more complex, the user can click the "update" button to update the question information and the candidate answer information.
[0096] Scenario 3:
[0097] If the question information and the candidate answer information belong to different modes, the question information is in voice mode, and the candidate answer information is in image display mode, as shown in the following example: Fig.11 As shown, Fig.11 It can be displayed on the terminal screen. For example, in any application of the terminal, when entering the verification phase, the following information is displayed: Fig.11 As shown, Fig.11The "play button" or a schematic diagram of the play button includes the question information, and the candidate answer information is an image display frame, including A, B, m, h and G in the image display frame. In the image display frame, the sizes, fonts and angles of A, B, m, h and G are different. For example, the font of A is bold, the font of m is Songti, the angle of B is parallel to the screen, and the angle of h is 30 degrees inclined to the screen. This is only an exemplary description, specifically used to increase the difficulty of OCR recognition. Fig.11 In the example, the question information is displayed in voice mode. When the user enters the verification stage, clicking the "play button" can play the voice of the question information "Select the letter B in the picture below". The candidate answer information is displayed directly. Therefore, the user needs to trigger the operation to click the letter B in the image display box on the screen for verification. If the user clicks in the wrong order, for example, the user triggers the operation and clicks the letter m, the verification fails. The user clicks the "play button" again to replay the voice of the question information "Select the letter B in the picture below". The user triggers the operation and clicks the letter B, then the verification is successful.
[0098] In one possible implementation, if user verification fails, the question information and the candidate answer information can be updated simultaneously; or an "update" button or update mark is set on the terminal screen. When the current question information of the user task is more complex, the user can click the "update" button to update the question information and the candidate answer information.
[0099] In a possible implementation, the background in the image display frame is relatively complex. In addition to the important A, B, m, h and G, some landscape image backgrounds, character image backgrounds, and animal image background points may also be involved to interfere, thereby increasing the difficulty of OCR recognition.
[0100] Scene 4:
[0101] If the question information and the candidate answer information belong to different modes, the question information is in voice mode, and the candidate answer information is in image display mode, as shown in the following example: Fig.12 As shown, Fig.12 It can be displayed on the terminal screen. For example, in any application of the terminal, when entering the verification phase, the following information is displayed: Fig.12 As shown, Fig.12The invention comprises a "play button" of the question information or a schematic pattern of the play button, the candidate answer information is an image display frame, and an answer area, wherein the image display frame comprises a plurality of small display frames such as a football, a kitten, a bird, a key, a car and a train, each small display frame is provided with a word, and the answer area is marked with "please drag the answer to this area", and in each small display frame of the image display frame, the size, font and angle of the football, kitten, bird, key, car and train are different, for example, the font of the football is bold, the font of the bird is Songti, the angle of the car is parallel to the screen, and the angle of the train is inclined at 30 degrees to the screen, which is only an exemplary description and is specifically used to increase the difficulty of OCR recognition. Fig.12 In the example, the question information is displayed in voice mode. When the user enters the verification stage, clicking the "play button" can play the voice of the question information "Which of the following objects has the largest weight?". The user needs to trigger the operation by clicking the small display box corresponding to "train" in the image display box on the screen, and drag it to the answer area for verification; if the user drags incorrectly, for example, the user triggers the operation and drags the small display box corresponding to "cat" to the answer area, the verification fails; the user clicks the "play button" again to replay the voice of the question information "Which of the following objects has the largest weight?". The user triggers the operation and drags the small display box corresponding to "train" to the answer area, and the verification is successful.
[0102] In the embodiment of the present invention, various modes, various materials, and various styles can be combined. As long as the verification method is dual-modal or above, the security of the verification code can be improved and confrontation in the OCR scenario can be prevented.
[0103] In an embodiment of the present invention, a device for preventing OCR from countering synchronous verification codes is provided. Fig.13 As shown, it specifically includes: an acquisition unit 1301 and a verification unit 1302;
[0104] The acquisition unit 1301 is used to acquire question information and candidate answer information, wherein the question information and the candidate answer information belong to the same modality or different modalities;
[0105] The verification unit 1302 is used to receive a user trigger operation to select target answer information from the candidate answer information for verification, wherein the user's trigger operation is determined based on execution information of a different modality from the question information or the candidate answer information, or the trigger operation is directly determined based on the question information.
[0106] Furthermore, the verification unit is specifically used for:
[0107] In response to the question information and the candidate answer information being of the same modality, generating execution information according to the question information, wherein the execution information and the question information are of different modalities;
[0108] A user trigger operation is received to select target answer information from the candidate answer information for verification, wherein the target answer information is determined by the user according to the execution information.
[0109] Furthermore, the verification unit is specifically used for:
[0110] In response to the question information and the candidate answer information being in different modalities, generating execution information according to the question information, wherein the execution information, the question information, and the candidate answer information are all in different modalities;
[0111] A user trigger operation is received to select target answer information from the candidate answer information for verification, wherein the target answer information is determined by the user according to the execution information.
[0112] Furthermore, the verification unit is specifically used for:
[0113] In response to the question information and the candidate answer information belonging to different modes, a user trigger operation is received to select target answer information from the candidate answer information for verification.
[0114] Furthermore, the question information is in an image display mode or a voice mode, the candidate answer information is in an image display mode, and the execution information is in a third-party mode, wherein the third-party mode includes a vibration mode and a flashing mode.
[0115] Furthermore, the device also includes:
[0116] The processing unit is used for receiving a click operation of the user and replaying the title information in response to the title information being in voice mode.
[0117] Furthermore, the processing unit is also used for:
[0118] In response to the execution information being in a third-party mode, a click operation by the user is received, the title information is replayed, and the execution information is regenerated.
[0119] Fig.14 Schematic diagram of the structure of the electronic device in the embodiment of the present invention. Fig.14As shown, it includes a general computer hardware structure, which at least includes a processor 1401 and a memory 1402. The processor 1401 and the memory 1402 are connected via a bus 1403. The memory 1402 is suitable for storing instructions or programs executable by the processor 1401. The processor 1401 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 1401 executes the instructions stored in the memory 1402, thereby executing the method flow of the embodiment of the present invention as described above to realize the processing of data and the control of other devices. The bus 1403 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 1404 and the display device and the input / output (I / O) device 1405. The input / output (I / O) device 1405 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 1405 is connected to the system through an input / output (I / O) controller 1406.
[0120] Among them, the instructions stored in the memory 1402 are executed by at least one processor 1401 to implement: obtaining question information and candidate answer information, wherein the question information and the candidate answer information belong to the same modality or different modalities; receiving a user trigger operation to select target answer information from the candidate answer information for verification, wherein the user's trigger operation is determined based on execution information of a modality different from the question information or the candidate answer information, or the trigger operation is directly determined based on the question information.
[0121] Specifically, the electronic device includes: one or more processors 1401 and a memory 1402, Fig.14 Take a processor 1401 as an example. The processor 1401 and the memory 1402 may be connected via a bus or other means. Fig.14 The example of the bus connection is taken as an example. The memory 1402 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The processor 1401 executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory 1402, that is, the above-mentioned method of determining the synchronous verification code to prevent OCR confrontation is implemented.
[0122] The memory 1402 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store a list of options, etc. In addition, the memory 1402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 1402 may optionally include a memory remotely arranged relative to the processor 1401, and these remote memories may be connected to an external device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0123] One or more modules are stored in the memory 1402, and when executed by one or more processors 1401, the method for synchronizing verification codes to prevent OCR confrontation in any of the above method embodiments is executed.
[0124] As will be appreciated by those skilled in the art, various aspects of the embodiments of the present invention may be implemented as a system, method or computer program product. Therefore, various aspects of the embodiments of the present invention may take the form of a complete hardware implementation, a complete software implementation (including firmware, resident software, microcode, etc.), or an implementation that combines software aspects with hardware aspects, which may generally be referred to herein as a "circuit," "module," or "system." In addition, various aspects of the embodiments of the present invention may take the form of a computer program product implemented in one or more computer-readable media having a computer-readable program code implemented thereon.
[0125] Any combination of one or more computer-readable media can be utilized. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, (but not limited to) electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or apparatuses, or any suitable combination of the foregoing. More specific examples (non-exhaustive enumeration) of computer-readable storage media will include the following: an electrical connection with one or more wires, a portable computer floppy disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of an embodiment of the present invention, a computer-readable storage medium can be any tangible medium that can contain or store a program used by an instruction execution system, device or apparatus or a program used in conjunction with an instruction execution system, device or apparatus.
[0126] A computer readable signal medium may include a propagated digital signal having a computer readable program code implemented therein, such as in baseband or as part of a carrier wave. Such propagated signals may take any of a variety of forms, including but not limited to electromagnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any of the following computer readable media: not a computer readable storage medium, and may communicate, propagate, or transmit a program used by or in conjunction with an instruction execution system, device, or apparatus.
[0127] Program code embodied on a computer readable medium may be transmitted using any appropriate medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0128] The computer program code for performing operations for various aspects of the embodiments of the present invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, etc., and conventional process programming languages such as "C" programming language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer as a stand-alone software package; partially on the user's computer and partially on a remote computer; or completely on a remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any type of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., by using the Internet of an Internet service provider).
[0129] The flowchart legend and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present invention described above describe various aspects of the embodiment of the present invention.It will be understood that each block of the flowchart legend and / or block diagram and the combination of the blocks in the flowchart legend and / or block diagram can be implemented by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that the instructions (executed by the processor of the computer or other programmable data processing device) create a device for implementing the function / action specified in the flowchart and / or block diagram block or block.
[0130] These computer program instructions may also be stored in a computer-readable medium that can direct a computer, other programmable data processing device, or other apparatus to operate in a particular manner, so that the instructions stored in the computer-readable medium produce an article of manufacture including instructions for implementing the functions / actions specified in the flowchart and / or block diagram blocks or blocks.
[0131] The computer program instructions may also be loaded onto a computer, other programmable data processing device or other apparatus so that a series of operable steps are performed on the computer, other programmable device or other apparatus to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide a process for implementing the functions / actions specified in the flowchart and / or block diagram block or blocks.
[0132] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
[0133] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
Claims
1. A method for preventing OCR from countering synchronous verification codes, characterized in that: The method comprises: Acquire question information and candidate answer information, wherein the question information and the candidate answer information belong to the same modality or different modalities; Receive a user trigger operation to select target answer information from the candidate answer information for verification, wherein the user's trigger operation is determined based on execution information of a different modality than the question information or the candidate answer information, or the trigger operation is directly determined based on the question information.
2. The method according to claim 1, characterized in that The receiving of the user trigger operation selects target answer information from the candidate answer information for verification, specifically including: In response to the question information and the candidate answer information being of the same modality, generating execution information according to the question information, wherein the execution information and the question information are of different modalities; A user trigger operation is received to select target answer information from the candidate answer information for verification, wherein the target answer information is determined by the user according to the execution information.
3. The method according to claim 1, characterized in that The receiving of the user trigger operation selects target answer information from the candidate answer information for verification, specifically including: In response to the question information and the candidate answer information being in different modalities, generating execution information according to the question information, wherein the execution information, the question information, and the candidate answer information are all in different modalities; A user trigger operation is received to select target answer information from the candidate answer information for verification, wherein the target answer information is determined by the user according to the execution information.
4. The method according to claim 1, characterized in that: The receiving of the user trigger operation selects target answer information from the candidate answer information for verification, specifically including: In response to the question information and the candidate answer information belonging to different modes, a user trigger operation is received to select target answer information from the candidate answer information for verification.
5. The method according to claim 1, characterized in that The question information is an image display mode or a voice mode, the candidate answer information is an image display mode, and the execution information is a third-party mode, wherein the third-party mode includes a vibration mode and a flashing mode.
6. The method according to claim 5, characterized in that The method further comprises: In response to the title information being in voice mode, a click operation by the user is received and the title information is replayed.
7. The method according to claim 5, characterized in that The method further comprises: In response to the execution information being in a third-party mode, a click operation by the user is received, the title information is replayed, and the execution information is regenerated.
8. A device for preventing OCR from countering synchronous verification codes, characterized in that: The device comprises: An acquisition unit, configured to acquire question information and candidate answer information, wherein the question information and the candidate answer information belong to the same modality or different modalities; A verification unit is used to receive a user trigger operation and select target answer information from the candidate answer information for verification, wherein the user's trigger operation is determined based on execution information of a different mode from the question information or the candidate answer information, or the trigger operation is directly determined based on the question information.
9. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer readable storage The medium stores a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.
Citation Information
Cited By
Intelligent verification code system and method based on multi-mode dynamic context awareness
CN120892883A
