Color
To have good result for the filter, you need to understand how RGB and HSL related to the color.
The filter of esrXP is controlled by follow parameters: Hue Difference, RGB Difference, Lum Min/Max and Sat Min/Max.
Hue Difference: If the different of Hue value of image color and selected color is larger than this value, it is filtered.
RGB Difference: If the total difference of the RGB value of image color and selected color is larger than this value, it is filtered.
Lun Min: If the lightness/luminance of the image color is smaller than this value, it is filtered.
Lun Max: If the lightness/luminance of the image color is large than this value, it is filtered.
Sat Min: If the saturation of the image color is smaller the value, it is filtered.
Sat Max: If the saturation of the image color is large the value, it is filtered.
Color: Hue Difference and/or RGB Difference. Other than black/gray/white, any color is ok.
Colorfulness: Sat Min, colorfulness color usually in high saturation.
Colorless: Sat Max, colorless color usually in low saturation.
Black: Lun Max, the lightness of black color is low.
White: Lum Min and/or Sat Max, the lightness of white color is high and saturation is low.
You can click "Recommend Setting", esrXP helps you select recommend setting for selected color.
顏色
要調出好的結果, 首先要了解 RGB 及 HSL 與顏色的關係.
esrXP 的過濾器由以下參數組成: 色度差距, RGB 差距, 最低光度, 最高光度, 最低色澤, 最高色澤.
色度差距: 如果影片的顏色與選擇的顏色的色度差距大過設定數值, 便會被過濾.
RGB 差距: 如果影片的顏色與選擇的顏色的 RGB 差距大過設定數值, 便會被過濾.
最低光度: 如果影片的顏色的光度低過設定數值, 便會被過濾.
最高光度: 如果影片的顏色的光度高過設定數值, 便會被過濾.
最低色澤: 如果影片的顏色的色澤低過設定數值, 便會被過濾.
最高色澤: 如果影片的顏色的色澤高過設定數值, 便會被過濾.
彩色顏色: 色度差距或RGB 差距, 黑灰白色不適用.
鮮艷顏色: 最低色澤, 顏色愈鮮艷色澤愈高.
暗淡顏色: 最高色澤, 顏色愈暗淡色澤愈低.
黑色: 最高光度, 顏色愈黑光度愈低.
白色: 最低光度, 顏色愈白光度愈高, 色澤也愈低.
你可以按建議設定, 這樣 esrXP 便會幫你選擇適當的設定.
|
|
|
Color Only and Color + Outline
There are two methods to detect the subtitle.
- Color Only: It is a simply method to detect the subtitle, but it is easy to mess up with background color.
- Color + Outline. It is a more advanced method. It can separate the subtitle and background color.
顏色 與 顏色及邊線
esrXP 提供兩種方法偵測字幕.
- 顏色: 這是一個簡單的方法來偵測字幕, 但容易與背景顏色混雜在一起.
- 顏色及邊線: 這個方法偵測字幕比較準確, 可以將字幕及背景顏色分開.
| Original |
Color Only |
Color + Outline |
|
|
|
|
Color + Outline Filter Setting
For "Color Only" method, it only detect the color in the video is similar to the subtitle color. Therefore, if similar color appear in the background of video, it also detected as the subtitle.
To filter out the similar color in the background, use "Color + Outline" to detect the subtitle color fully encircled by the outline color.
顏色及邊線過濾器設定
如只使用顏色的方法, 影片中與字幕顏色相似的地方會被偵測出來. 但在影片中與字幕顏色相似的背景有機會也會被偵測出來.
要過濾與字幕顏色相似但不是字幕的部份, 使用顏色及邊線可以只偵測完全被邊線包圍的字幕.
|
|
It is the sample video, the subtitle color is yellow and the outline color is black.
Enable "Additional Color" to see how the color is detected.
這個樣本影片中, 字幕是黃色, 邊線是黑色. 開啟"額外顏色"可以看到字幕偵測過程. |
Red: Color pass through "Outline" filter.
紅色: 顏色通過"邊線"過濾器
|
To detect the outline in the video, the recommend filter for black is "Lum Max".
If the luminance of the color is larger than the setting, it is filtered out.
Remaining is detected as outline (Red part in the image).
偵測影片中的邊線部份, 黑色的建議設定是"最高光度".
顏色的光度高過設定數值, 便會被過濾. 剩下的部份便是邊線 (圖片中紅色的部份). |
Green: Color pass through "Pass 1" filter, but filtered for other reason. (color not fully encircled by the outline color)
綠色: 顏色通過"第一階段"過濾器, 但因其他理由被過濾.
(紅色及綠色沒有完全緊接著)
|
The subtitle color is yellow, "Hue Difference" or "RGB difference" is used.
Only the color fully encircled by the outline color is detected as the subtitle.
In "Pass 1", a higher tolerance value should be used to ensure the color of subtitle and outline touch each other.
字幕是黃色, 應該使用"色度差距"或"RGB差距". 只有完全被邊線顏色包圍的顏色會被偵測成字幕.
在"第一階段", 可以使用較高偏差的數值, 盡量令字幕及邊線的顏色更容易緊接在一起. |
Blue: Color pass through "Pass 1" filter.
藍色: 顏色通過"第一階段"過濾器.
|
If it is very difficult to set the subtitle color fully encircled by the outline color, you can increase the value of "Pixel Compensate".
It insert the pixel between the subtitle and outline, so they can touch each other.
假如很難設定成字幕及邊線的顏色緊接在一, 可以增加"像點補償"的數值.
這樣可以在字幕及邊線中有缺口的地方填補以令它們緊接在一起.
|
While: Color pass through all filter.
白色: 顏色通過所有過濾器.
|
Finally, set the filter for the "Final" phase. It only detect the blue part from the previous output.
最後, 設定"最後階段"的數值. 這階段只會偵測藍色的部份. |
|
|
Disable "Additional Color" after all setting is finish, the subtitle is clearly detected.
設定完成後可以關閉"額外顏色", 字幕清晰地被偵測出來.
|
|