public class SmartEraseSubtitleConfig extends AbstractModel
header, skipSign
Constructor and Description |
---|
SmartEraseSubtitleConfig() |
SmartEraseSubtitleConfig(SmartEraseSubtitleConfig 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 |
getOcrSwitch()
Get Whether OCR subtitle extraction is enabled.
|
String |
getSubtitleEraseMethod()
Get Specifies the subtitle erasure method.
|
String |
getSubtitleFormat()
Get Specifies the subtitle file format.
|
String |
getSubtitleLang()
Get Subtitle language, for OCR guidance, default value zh_en.
|
String |
getSubtitleModel()
Get Subtitle erasure model.
|
String |
getTransDstLang()
Get Subtitle target language.
|
String |
getTransSwitch()
Get Specifies whether to enable subtitle translation.
|
void |
setAutoAreas(EraseArea[] AutoAreas)
Set Specifies automatic removal of a custom region.
|
void |
setCustomAreas(EraseTimeArea[] CustomAreas)
Set Specifies erasure of a custom region.
|
void |
setOcrSwitch(String OcrSwitch)
Set Whether OCR subtitle extraction is enabled.
|
void |
setSubtitleEraseMethod(String SubtitleEraseMethod)
Set Specifies the subtitle erasure method.
|
void |
setSubtitleFormat(String SubtitleFormat)
Set Specifies the subtitle file format.
|
void |
setSubtitleLang(String SubtitleLang)
Set Subtitle language, for OCR guidance, default value zh_en.
|
void |
setSubtitleModel(String SubtitleModel)
Set Subtitle erasure model.
|
void |
setTransDstLang(String TransDstLang)
Set Subtitle target language.
|
void |
setTransSwitch(String TransSwitch)
Set Specifies whether to enable subtitle translation.
|
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 SmartEraseSubtitleConfig()
public SmartEraseSubtitleConfig(SmartEraseSubtitleConfig source)
public String getSubtitleEraseMethod()
public void setSubtitleEraseMethod(String SubtitleEraseMethod)
SubtitleEraseMethod
- Specifies the subtitle erasure method.
Automatic erasing:** automatically identifies subtitle text content in videos through AI models and performs seamless erasure to generate new videos. frame interference and unique subtitle styles may cause certain missed or incorrect erasures, which can be handled through specified area erasure.
When using automatic erasure, if AutoAreas is not specified, the default region (lower middle of the frame) will be erased automatically. if AutoAreas is specified, it will change to erase the designated area.
Specified area erasing:** if your subtitle position is fixed, directly specify the erasure area to decrease the chance of removal omission to the maximum extent.
When your choice is specified area erasure, please import at least one designated region in CustomAreas.
-Automated removal.
- specifies the custom specified area erasure.public String getSubtitleModel()
public void setSubtitleModel(String SubtitleModel)
SubtitleModel
- Subtitle erasure model.
Standard version (recommend):** if your subtitle style is standard, normally recommend choose this version for better effectiveness with seamless detail.
Regional version:** if your subtitles have special styles such as italics, shadows, or motion effects, we recommend choosing the regional version for larger removal area, though the detail effect is not as good as the standard version.
-Specifies the standard model.
-area. specifies the regional model.public String getOcrSwitch()
public void setOcrSwitch(String OcrSwitch)
OcrSwitch
- Whether OCR subtitle extraction is enabled. default value: OFF.
Supports enabling OCR subtitle extraction only when SubtitleEraseMethod is set to auto. when enabled, it identifies the longest and most stable text area within the region as the subtitle area, then performs text extraction and removal.
-ON: enable.
-OFF. specifies the disabled state.public String getSubtitleLang()
public void setSubtitleLang(String SubtitleLang)
SubtitleLang
- Subtitle language, for OCR guidance, default value zh_en. this parameter is valid only when OcrSwitch is ON.
-Chinese and english.
-multi other.
Other supported languages:.
Chinese, english, japanese, korean, spanish, french, german, portuguese, vietnamese, malay, russian, italian, dutch, swedish, finnish, danish, norwegian, hungarian, thai, hindi, arabic, indian-bengali, indian-gujarati, indian-kannada, indian-malayalam, indian-tamil, indian-telugu, slovenian, polish, catalan, bosnian, czech, estonian, croatian, punjabi, marathi, azerbaijani, indonesian, luxembourgish, lithuanian, latvian, maltese, slovak, turkish, kazakh, greek, irish, belarusian, khmer, tagalog, pashto, persian, tajik.public String getSubtitleFormat()
public void setSubtitleFormat(String SubtitleFormat)
SubtitleFormat
- Specifies the subtitle file format. default value: vtt. this parameter is valid only when OcrSwitch is set to ON.
-srt format.
-vtt: WebVTT format.public String getTransSwitch()
public void setTransSwitch(String TransSwitch)
TransSwitch
- Specifies whether to enable subtitle translation. default value: OFF. this parameter is valid only when OcrSwitch is set to ON.
-ON: enable.
-OFF. specifies the disabled state.public String getTransDstLang()
public void setTransDstLang(String TransDstLang)
TransDstLang
- Subtitle target language. default value: en. this parameter is valid only when TransSwitch is set to ON.
Supported languages:.
Simplified chinese.
Specifies the language. valid values: en (english).
Ja: japanese.
Ko: korean.
Fr: french.
es: spanish.
It: italian.
de: german.
tr: turkish.
Ru: russian.
pt: portuguese.
Vi: vietnamese.
id: indonesian.
ms: malay.
Th: thai.
Ar: arabic.
hi: Hindipublic 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. for template modification, input [] to clean up the region. the template region information remains unchanged if not imported.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.
Note: when modifying the template, pass [] to clear the region. the template region information remains unchanged if not passed.Copyright © 2025. All rights reserved.