tfm.vision.augment.crop_normalized_boxes
Stay organized with collections
Save and categorize content based on your preferences.
Crop normalized boxes.
tfm.vision.augment.crop_normalized_boxes(
bboxes: tf.Tensor,
ori_image_size: tf.Tensor,
new_image_size: tf.Tensor,
offset: tf.Tensor
) -> tf.Tensor
Args |
bboxes
|
a float tensor of shape [N, 4] representing normalized box
coordinates.
|
ori_image_size
|
an int tensor of shape [2] representing the original image
size.
|
new_image_size
|
an int tensor of shape [2] representing the cropped image
size.
|
offset
|
an int tensor of shape [2] representing the offset of the crop.
|
Returns |
|
a tensor of shape [N, 4] representing the new normalized bounding box
coordinates in the new cropped image.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2026-11-06 UTC.
[null,null,["Last updated 2026-11-06 UTC."],[],[]]