Verification code processing method and apparatus, and device and storage medium

US12493680B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12493680-B2
Application numberUS-202118252650-A
CountryUS
Kind codeB2
Filing dateNov 1, 2021
Priority dateNov 20, 2020
Publication dateDec 9, 2025
Grant dateDec 9, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Provided are a verification code processing method and apparatus, and a device and a storage medium. The method comprises: upon receiving a trigger operation for verification code display, firstly acquiring a verification code image and verification code input prompt information; and then displaying the verification code image and the verification code input prompt information for verification code input. In the embodiments of the present disclosure, since a verification code image comprises one or more verification codes, at least one verification code is divided into a plurality of areas, and at least two areas are different in color, the overall structure of the verification code is destroyed, thereby improving the OCR resistance performance of the verification code, and achieving the purpose of effectively intercepting malicious behavior.

First claim

Opening claim text (preview).

The invention claimed is: 1 . A method for verification code processing, comprising: acquiring a verification code image and verification code input prompt information in response to a triggering operation for verification code display; and displaying the verification code image and the verification code input prompt information; wherein the verification code image comprises one or more verification codes, each verification code on the verification code image is divided into a plurality of regions, and in each verification code all of the plurality of regions are in different colors, a color difference between at least one of the plurality of regions in the verification code and a background corresponding to the region conforms to a predetermined contrast; and the verification code input prompt information is used to prompt to input a specified verification code in the verification code image. 2 . The method according to claim 1 , wherein the verification codes on the verification code image at least comprise a first verification code and a second verification code, wherein, in the first verification code, pixels within a same region are continuous, and at least two regions are spaced by pixel interval; and in the second verification code, all regions have identical width or identical height, and adjacent regions are in different colors. 3 . The method according to claim 1 , wherein the verification code is in a form of character, and the verification code image comprises verification codes in at least two different fonts. 4 . A non-transitory computer-readable storage medium having instructions stored thereon, wherein the instructions, when being executed by a computer device, cause the computer device to perform the method according to claim 1 . 5 . The method according to claim 1 , wherein pixels within a same region of the verification code are continuous, and at least two regions of the verification code are spaced by pixel interval. 6 . The method according to claim 5 , wherein at least one verification code on the verification code image is in a form of a character; and character strokes within a same region of the verification code are continuous, and character strokes are discontinuous between at least two regions of the verification code. 7 . The method according to claim 1 , wherein a width or height direction of each of the plurality of regions in the verification code is parallel to an overall width or height direction of the verification code; or a width or height direction of each of the plurality of regions in the verification code is parallel to an overall width or height direction of the verification code image. 8 . The method according to claim 7 , wherein the plurality of regions in the verification code have identical width or identical height, and adjacent regions are in different colors. 9 . A method for verification code processing, comprising: receiving a triggering request for verification code display, and determining a verification code image and verification code input prompt information; wherein the verification code image comprises one or more verification codes, each verification code on the verification code image is divided into a plurality of regions, and in each verification code all of the plurality of regions are in different colors, a color difference between at least one of the plurality of regions in the verification code and a background corresponding to the region conforms to a predetermined contrast; and sending the verification code image and the verification code input prompt information in response to the triggering request; wherein the verification code input prompt information is used to prompt to input specified verification codes in the verification code image. 10 . The method according to claim 9 , wherein before determining the verification code image and the verification code input prompt information, the method further comprises: dividing the verification code into a plurality of regions; determining colors respectively corresponding to the plurality of regions, wherein at least two regions among the plurality of regions are in different colors; and drawing the verification code on a background image based on the colors respectively corresponding to the plurality of region, to obtain the verification code image with the verification code. 11 . The method according to claim 10 , wherein the verification code is in a form of a character, and dividing the verification code into the plurality of regions comprises: dividing the verification code into the plurality of regions based on continuity between character strokes, wherein character strokes are discontinuous between adjacent regions. 12 . A device comprising: a memory, a processor, and a computer program stored in the memory, wherein the processor, when executing the computer program, performs: acquiring a verification code image and verification code input prompt information in response to a triggering operation for verification code display; and displaying the verification code image and the verification code input prompt information; wherein the verification code image comprises one or more verification codes, each verification code on the verification code image is divided into a plurality of regions, and in each verification code all of the plurality of regions are in different colors, a color difference between at least one of the plurality of regions in the verification code and a background corresponding to the region conforms to a predetermined contrast; and the verification code input prompt information is used to prompt to input a specified verification code in the verification code image. 13 . The device according to claim 12 , wherein pixels within a same region of the verification code are continuous, and at least two regions of the verification code are spaced by pixel interval. 14 . The device according to claim 13 , wherein at least one verification code on the verification code image is in a form of a character; and character strokes within a same region of the verification code are continuous, and character strokes are discontinuous between at least two regions of the verification code. 15 . A device comprising: a memory, a processor, and a computer program stored in the memory, wherein the processor, when executing the computer program, performs: receiving a triggering request for verification code display, and determining a verification code image and verification code input prompt information; wherein the verification code image comprises one or more verification codes, each verification code on the verification code image is divided into a plurality of regions, and in each verification code all of the plurality of regions are in different colors, a color difference between at least one of the plurality of regions in the verification code and a background corresponding to the region conforms to a predetermined contrast; and sending the verification code image and the verification code input prompt information in response to the triggering request; wherein the verification code input prompt information is used to prompt to input specified verification codes in the verification code image. 16 . The device according to claim 15 , wherein the processor is further configured for: dividing the verification code into a plurality of regions; determining colors respectively corresponding to the plurality of regions, wherein at least two regions among the plurality of regions are in different colors; and drawing the

Assignees

Inventors

Classifications

  • Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77) · CPC title

  • Verifying human interaction, e.g., Captcha · CPC title

  • by designing passwords or checking the strength of passwords · CPC title

  • G06F21/36Primary

    by graphic or iconic representation · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12493680B2 cover?
Provided are a verification code processing method and apparatus, and a device and a storage medium. The method comprises: upon receiving a trigger operation for verification code display, firstly acquiring a verification code image and verification code input prompt information; and then displaying the verification code image and the verification code input prompt information for verification …
Who is the assignee on this patent?
Beijing Bytedance Network Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F21/36. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Dec 09 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 2 related publications on this page (citations in our corpus or others sharing the same primary CPC).