| CPC G06T 11/203 (2013.01) [G06T 3/02 (2024.01); G06T 3/60 (2013.01); G06T 7/10 (2017.01); G06T 11/60 (2013.01)] | 18 Claims |

|
1. A method of generating an image sample, the method comprising:
generating a handwritten text image according to at least one handwritten sample image; and
generating a target sample image with an annotation box, according to the handwritten text image and a background image, wherein the annotation box is configured to represent a region in which the handwritten text image is located in the background image,
wherein the generating the target sample image comprises:
adding an inclined handwritten text image to the background image, wherein the inclined handwritten text image is obtained by rotating the handwritten text image and wherein the adding the inclined handwritten text image comprises:
determining a target pixel in the background image, and
adding the inclined handwritten text image to the background image according to the target pixel and a preset pixel in the inclined handwritten text image;
generating the annotation box according to the inclined handwritten text image; and
generating the target sample image according to the annotation box.
|