Unicode-based image generation and testing
First 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;
drawing a first response character in the response region;
identifying pixels within the response region occupied by the first challenge character;
calculating a reference coordinate for the first response character based on the identified pixels occupied by the first challenge character;
adapting the x and y coordinate for the first response character to calculate a second set of coordinates for a second response character; and
drawing the second response character at the second set of coordinates;
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.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems and methods for testing to tell computers and humans apart and generating said tests are described. An interface is generated that includes a challenge and a response. The challenge includes a plurality of challenge characters in a challenge region. The response includes a plurality of response characters that includes the plurality of challenge characters drawn in a response region. The drawing the response characters includes drawing a first response character, calculating a second set of coordinates for a second response character, and drawing the second response character. After all of the response characters have been drawn, locations of each of the challenge characters within the response are identified, and a maximum allowed distance is calculated based on the identified locations of the challenge characters within the response.
147 Citations
20 Claims
-
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; drawing a first response character in the response region; identifying pixels within the response region occupied by the first challenge character; calculating a reference coordinate for the first response character based on the identified pixels occupied by the first challenge character; adapting the x and y coordinate for the first response character to calculate a second set of coordinates for a second response character; and drawing the second response character at the second set of coordinates; 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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A system for generating an image for use in a test to tell computers and humans apart comprising:
-
a web server, the web server receiving a request for an image from a client device; and a test server, the test server being configured to; receive the request for the image via the web server; receive 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; receive a selection of a challenge character count and a response character count; generate, in response to receiving a request for the image, 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; generate, in response to receiving a request for an image, 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; drawing a first response character in the response region; identifying pixels within the response region occupied by the first challenge character; calculating a reference coordinate for the first response character based on the identified pixels occupied by the first challenge character; adapting the x and y coordinate for the first response character to calculate a second set of coordinates for a second response character; and drawing the second response character at the second set of coordinates; identify, 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 calculate 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. - View Dependent Claims (12, 13, 14, 15, 16)
-
-
17. A computer program product comprising computer-readable program code to be executed by one or more processors when retrieved from a non-transitory computer-readable medium, the program code including instructions to:
-
receive 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; receive a selection of a challenge character count and a response character count; generate, in response to receiving a request for the image, 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; generate, in response to receiving a request for an image, 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; drawing a first response character in the response region; identifying pixels within the response region occupied by the first challenge character; calculating a reference coordinate for the first response character based on the identified pixels occupied by the first challenge character; adapting the x and y coordinate for the first response character to calculate a second set of coordinates for a second response character; and drawing the second response character at the second set of coordinates; identify, 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 calculate 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. - View Dependent Claims (18, 19, 20)
-
Specification