CPC G06F 40/106 (2020.01) [G06F 40/166 (2020.01); G06T 11/60 (2013.01); G06V 30/1478 (2022.01); G06V 30/413 (2022.01)] | 19 Claims |
1. A computer-implemented method for highlighting text in an image disposed in a markup language document, the method comprising:
obtaining, by a processor, location data identifying a location, size and orientation of a text element in the image, wherein the text element is oriented in a direction that is non-orthogonal to vertical and horizontal axes of the image;
obtaining, by the processor, a context for a canvas element in the document;
rotating, by the processor, the context for the canvas element to align the context to the orientation of the text element using the location data;
translating, by the processor, the context for the canvas element to the location of the text element using the location data; and
generating, by the processor, a text highlighting element having a size that at least partially overlays the text element on the rotated and translated canvas using the location data.
|