public class ImageAreaBoxInfo extends AbstractModel
header, skipSign
Constructor and Description |
---|
ImageAreaBoxInfo() |
ImageAreaBoxInfo(ImageAreaBoxInfo source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long[] |
getAreaCoordSet()
Get Coordinates (pixel-level) of the box selection area in the image.
|
Float[] |
getBoundingBox()
Get Coordinates of the box selection area in the image.
|
String |
getType()
Get Type of the box selection area in the image.
|
void |
setAreaCoordSet(Long[] AreaCoordSet)
Set Coordinates (pixel-level) of the box selection area in the image.
|
void |
setBoundingBox(Float[] BoundingBox)
Set Coordinates of the box selection area in the image.
|
void |
setType(String Type)
Set Type of the box selection area in the image.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ImageAreaBoxInfo()
public ImageAreaBoxInfo(ImageAreaBoxInfo source)
public String getType()
public void setType(String Type)
Type
- Type of the box selection area in the image. Valid values:
public Long[] getAreaCoordSet()
public void setAreaCoordSet(Long[] AreaCoordSet)
AreaCoordSet
- Coordinates (pixel-level) of the box selection area in the image. Format: [x1, y1, x2, y2], which indicates the coordinates of the top left corner and the bottom right corner.
For example, [101, 85, 111, 95].
Note: This field may return null, indicating that no valid value can be obtained.public Float[] getBoundingBox()
public void setBoundingBox(Float[] BoundingBox)
BoundingBox
- Coordinates of the box selection area in the image. Format: [x1, y1, x2, y2], which indicates the coordinates of the top left corner and the bottom right corner. This parameter takes effect when AreaCoordSet is not specified.
- [0.1, 0.1, 0.3, 0.3]: Indicates the ratio (values are less than 1).
-[50, 50, 350, 280]: Indicates the pixel (values are greater than or equal to 1).
Note: This field may return null, indicating that no valid value can be obtained.Copyright © 2025. All rights reserved.