Patent ID: 9710637
Date: 2017-07-18
CPC Classifications: G06F

Claim:
1. A method for generating, by a processor, an image for use in a test to tell computers and humans apart comprising: receiving, by the processor, a selection of a range of characters from Unicode plane 0, the selected range of characters at least including the 8-bit ASCII character range; receiving, by the processor, a selection of a challenge character count and a response character count; generating, in response to receiving a request for the image, by the processor, a challenge comprising a plurality of challenge characters from the selected range of characters from Unicode plane 0, a number of characters in the plurality of challenge characters being equal to the challenge character count, the plurality of challenge characters being located in a challenge region; generating, in response to receiving a request for an image, by the processor a response comprising a plurality of response characters from the selected range of characters from Unicode plane 0, a number of characters in the plurality of response characters being equal to the response character count, the response including the plurality of challenge characters, each character in the response having a font size selected from a range having a predetermined maximum, the generated challenge and the generated response together forming the generated image, the response characters being drawn in a response region, each response character being associated with a location having an x and y coordinate, the drawing comprising: identifying by the processor, after all of the plurality of response characters have been drawn, locations associated with each of the plurality of challenge characters within the response; and calculating, by the processor, a maximum allowed distance after all response characters have been drawn, the maximum allowed distance being a value based on the selected font size of each of the challenge characters included in the response.