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 Automatically erase the custom region.
|
EraseTimeArea[] |
getCustomAreas()
Get Specifies the removal 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 Automatically erase the custom region.
|
void |
setCustomAreas(EraseTimeArea[] CustomAreas)
Set Specifies the removal 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
- Automatically erase the custom region.
Automatically detects and erases the targeted removal in the specified region using the AI model.
Note that this parameter will not take effect when the removal method is custom. to modify the template, input [] for the clean-up region. if not provided, the template region information remains unchanged.public EraseTimeArea[] getCustomAreas()
public void setCustomAreas(EraseTimeArea[] CustomAreas)
CustomAreas
- Specifies the removal of a custom region.
Specifies to directly perform removal without detection and recognition within a selected time range for the specified region.
Note: when modifying the template, pass [] to clear the region. the template region information remains unchanged if not passed.Copyright © 2025. All rights reserved.