Validating digital content rendering
AssigneeAmazon Technologies, Inc.
InventorsVasant Manohar, Janarthanan Lakshmipathy
Life of this patent
Estimating the term…
Abstract
Devices, systems and methods are disclosed for validating an electronic publication and determining a source of identified errors in a rendering of the electronic publication. The rendering may be captured as a rendered image and rendered data may be extracted from the rendering. The rendered data may be compared to actual input data to the renderer used to generate the rendered image. If errors are visible in the rendering, a source of the errors may be identified based on the comparison between the extracted rendered data to the actual input data. If errors are not visible in the rendering, the rendering may be validated.
Claims21
A computer-implemented method of determining errors in the output of a rendering component for an electronic device, the method comprising:
- receiving input data to be displayed on an electronic reader device, wherein the input data represents input text and graphical content;
- rendering, using the input data, first image data, wherein the first image data includes the input text and the graphical content;
- determining a text boundary within the first image data, wherein the text boundary include the input text;
- determining second image data from the first image data, the second image data including portions of the first image data within the text boundary and formatted in portable network graphics format, wherein the second image data includes the input text and excludes the graphical content;
- determining first rendered text from the second image data using an optical character recognition (OCR) engine;
- generating a first comparison by comparing the first rendered text to the input text, wherein generating the first comparison comprises:
- determining a first number of differences in text attribute values between the first rendered text and the input text, the text attribute values associated with at least one of a text character, font type or paragraph type,
- determining that the first number of differences is below a first threshold, indicating that the first rendered text is similar to the input text, and
- determining a first confidence value that the first image data corresponds to the input text;
- determining that the first confidence value is above a text similarity threshold;
- and
- validating the first image data based on the first confidence value exceeding the text similarity threshold.
A computer-implemented method, the method comprising:
- receiving electronic input text data representing input text;
- rendering, using the electronic input text data, first image data associated with an electronic publication having a dynamic layout;
- determining a text boundary associated with the first image data, wherein the text boundary includes pixels associated with the input text;
- determining second image data from the first image data using the text boundary, the second image data including portions of the first image data within the text boundary;
- determining electronic rendered text data from the second image data using an optical character recognition (OCR) engine, wherein the electronic rendered text data represents rendered text that corresponds to the input text;
- determining a difference between the electronic rendered text data and the electronic input text data;
- and
- determining the difference is below a threshold.
A device, comprising:
- at least one processor;
- memory including instructions operable to be executed by the at least one processor to perform a set of actions to cause the device to:
- receive electronic input text data representing input text;
- render, using the electronic input text data, first image data associated with an electronic publication having a dynamic layout;
- determine a text boundary associated with the first image data, wherein the text boundary includes pixels associated with the input text;
- determine second image data from the first image data using the text boundary, the second image data including portions of the first image data within the text boundary;
- determine electronic rendered text data from the second image data using an optical character recognition (OCR) engine, wherein the electronic rendered text data represents rendered text that corresponds to the input text;
- determine a difference between the electronic rendered text data and the electronic input text data;
- and
- determine the difference is below a threshold.
Dependencies are inferred from the claim text.