MCPcopy Create free account
hub / github.com/TheLegendAli/DeepLab-Context / crop

Method crop

python/caffe/detector.py:124–176  ·  view source on GitHub ↗

Crop a window from the image for detection. Include surrounding context according to the `context_pad` configuration. Take im: H x W x K image ndarray to crop. window: bounding box coordinates as ymin, xmin, ymax, xmax. Give crop: cropped wi

(self, im, window)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

detect_windowsMethod · 0.95
resize_and_crop_imageMethod · 0.80

Calls 2

copyMethod · 0.80
roundFunction · 0.50

Tested by

no test coverage detected