×

Unicode-based image generation and testing

  • US 9,710,637 B2
  • Filed: 08/28/2015
  • Issued: 07/18/2017
  • Est. Priority Date: 08/28/2015
  • Status: Active Grant
First Claim
Patent Images

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 all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×