MCPcopy Create free account
hub / github.com/PaddlePaddle/EasyData / crop_img

Method crop_img

deploy/python/dataaug/utils/renderer.py:219–275  ·  view source on GitHub ↗

Crop text from large input image :param img: image to crop :param text_box_pnts_transformed: text_bbox_pnts after apply_perspective_transform :return: dst: image with desired output size, height=32, width=flags.img_width crop_bbox: bounding bo

(self, img, text_box_pnts_transformed)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

gen_img_listMethod · 0.95

Calls 2

random_xy_offsetMethod · 0.95
int_aroundMethod · 0.95

Tested by

no test coverage detected