tf.image.crop_to_bounding_box
时间: 2023-05-23 12:01:23 浏览: 137
这是 Tensorflow 中一个图像处理函数,它可以将图像裁剪到指定的边框大小。它的函数原型如下:
crop_to_bounding_box(image, offset_height, offset_width, target_height, target_width)
其中,image 表示需要裁剪的图像,offset_height、offset_width 分别表示要裁剪的起点高度和宽度位置,target_height、target_width 分别表示要裁剪的目标高度和宽度大小。
阅读全文