openvidu-test-e2e: fix checkVideoAverageRgbLightGray description

pull/780/head
pabloFuente 2023-03-07 15:55:26 +01:00
parent e6ea4ee1d8
commit a5a3cbd1e8
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ public class RecordingUtils {
}
public static boolean checkVideoAverageRgbLightGray(Map<String, Long> rgb) {
// GRAY color: {r < 50, g < 50, b < 50} and the absolute difference between them
// not greater than 2
// GRAY color: {r [90,110], g [90,110], b [90,110]} and the absolute difference
// between not greater than 10
return (rgb.get("r") >= 90) && (rgb.get("g") >= 90) && (rgb.get("b") >= 90) && (rgb.get("r") <= 110)
&& (rgb.get("g") <= 110) && (rgb.get("b") <= 110) && (Math.abs(rgb.get("r") - rgb.get("g")) <= 10)
&& (Math.abs(rgb.get("r") - rgb.get("b")) <= 10) && (Math.abs(rgb.get("b") - rgb.get("g")) <= 10);