Index Cropping
Last Updated:2021-09-13
Overview
This document introduces the cropping of the image index.
Index Cropping Parameters
Action name: indexcrop
Parameters | Value | Description |
---|---|---|
x | 1*4096 | x and y cannot be specified at the same time, and either x or y must be specified. In the case of longitudinal cropping, you need to specify the cropping width. If cropping width exceeds the image width, it is the image width by default. |
y | 1*4096 | x and y cannot be specified at the same time, and either x or y must be specified. In the case of transverse cropping, you need to specify the cropping height. If the cropping height exceeds the image height, it is the image height by default. |
i | 0*65536 | Specify the ith cropping area after cropping. If the cropping area exceeds the number of cropping areas, it returns the original image. If not specified, the default value is 0. |
Example
- Transversely crop the image with a height of 50, and select the first and second ones after the cropping. https://doc.bce.baidu.com/bce-documentation/BOS/image.jpg?x-bce-process=image/indexcrop,y_50,i_0
-
- https://doc.bce.baidu.com/bce-documentation/BOS/image.jpg?x-bce-process=image/indexcrop,y_50,i_1
- Longitudinally crop the image with a width of 100, and select the first and second ones after cropping.
https://doc.bce.baidu.com/bce-documentation/BOS/image.jpg?x-bce-process=image/indexcrop,x_100,i_0
https://doc.bce.baidu.com/bce-documentation/BOS/image.jpg?x-bce-process=image/indexcrop,x_100,i_1