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

Method random_xy_offset

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

Get random left-top point for putting a small rect in a large rect. Normally dst_height>src_height and dst_width>src_width

(self, src_height, src_width, dst_height, dst_width)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

crop_imgMethod · 0.95
gen_bg_from_imageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected