public class SmartEraseWatermarkConfig extends AbstractModel
header, skipSign
Constructor and Description |
---|
SmartEraseWatermarkConfig() |
SmartEraseWatermarkConfig(SmartEraseWatermarkConfig 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 |
---|---|
EraseArea[] |
getAutoAreas()
Get Specifies automatic removal of a custom region.
|
EraseTimeArea[] |
getCustomAreas()
Get Specifies erasure of a custom region.
|
String |
getWatermarkEraseMethod()
Get Specifies the watermark removal method.
|
String |
getWatermarkModel()
Get Specifies the watermark removal model.
|
void |
setAutoAreas(EraseArea[] AutoAreas)
Set Specifies automatic removal of a custom region.
|
void |
setCustomAreas(EraseTimeArea[] CustomAreas)
Set Specifies erasure of a custom region.
|
void |
setWatermarkEraseMethod(String WatermarkEraseMethod)
Set Specifies the watermark removal method.
|
void |
setWatermarkModel(String WatermarkModel)
Set Specifies the watermark removal model.
|
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 SmartEraseWatermarkConfig()
public SmartEraseWatermarkConfig(SmartEraseWatermarkConfig source)
public String getWatermarkEraseMethod()
public void setWatermarkEraseMethod(String WatermarkEraseMethod)
WatermarkEraseMethod
- Specifies the watermark removal method.
Auto-Removal:** automatically identifies watermarks in the video using model a and generates a new video after removal. suitable for dynamic watermarks.
When using automated removal, if you do not specify AutoAreas, the full-screen video will be erased automatically. if AutoAreas is specified, it will change to erase the designated areas.
Specified area erasure:** for static watermarks with fixed locations, we recommend you directly specify the erasure area.
When you choose specified area erasure, import at least one specified region.
-Automated removal.
-Specifies the custom specified area erasure.public String getWatermarkModel()
public void setWatermarkModel(String WatermarkModel)
WatermarkModel
- Specifies the watermark removal model.
Basic version: average effect, cost-effective, suitable for videos with clean backgrounds or animations.
Advanced edition: better effectiveness, suitable for mini-drama and reality style video.
Supported values**:
- basic
- advancedpublic EraseArea[] getAutoAreas()
public void setAutoAreas(EraseArea[] AutoAreas)
AutoAreas
- Specifies automatic removal of a custom region.
Specifies the use of an AI model to automatically detect and erase existing targets in the specified region.
Note that this parameter will not take effect when the removal method is custom.public EraseTimeArea[] getCustomAreas()
public void setCustomAreas(EraseTimeArea[] CustomAreas)
CustomAreas
- Specifies erasure of a custom region.
Detects and directly performs removal within a specified time range for the selected region.Copyright © 2025. All rights reserved.