MCPcopy Index your code
hub / github.com/PaddlePaddle/EasyData / apply_crop

Method apply_crop

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

Random crop text box height top or bottom, we don't need image information in this step, only change box pnts :param text_box_pnts: bbox of text [left-top, right-top, right-bottom, left-bottom] :param crop_cfg: :return: croped_text_box_pnts

(self, text_box_pnts, crop_cfg)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

gen_img_listMethod · 0.95

Calls 1

probFunction · 0.85

Tested by

no test coverage detected