MCPcopy Create free account
hub / github.com/MhLiao/TextBoxes_plusplus / general_crop_expand

Function general_crop_expand

examples/text/crop_image.py:70–129  ·  view source on GitHub ↗

Crop the image giving a tile. Args: image: Image to be crop, [h, w, c]. tile: [p_0, p_1, p_2, p_3] (clockwise). Returns: cropped: Patch corresponding to the tile. Raises: ZeroDivisionError: x[1] == x[0] or x[2] == x[3].

(image, tile)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

crop_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected