comment cleanup
This commit is contained in:
parent
556722693c
commit
7d951a5115
@ -58,18 +58,13 @@ class GuardLine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
check(image){
|
check(image){
|
||||||
// izračunaj enkrat in shrani na objekt
|
|
||||||
// calculate once and save object-instance-wide
|
// calculate once and save object-instance-wide
|
||||||
this.blackbarThreshold = this.aard.blackLevel + this.settings.active.arDetect.blackbar.threshold;
|
this.blackbarThreshold = this.aard.blackLevel + this.settings.active.arDetect.blackbar.threshold;
|
||||||
this.imageThreshold = this.blackbarThreshold + this.settings.active.arDetect.blackbar.imageThreshold;
|
this.imageThreshold = this.blackbarThreshold + this.settings.active.arDetect.blackbar.imageThreshold;
|
||||||
|
|
||||||
// dejansko testiranje
|
|
||||||
// actual checks
|
// actual checks
|
||||||
let guardLineResult = this.guardLineCheck(image);
|
let guardLineResult = this.guardLineCheck(image);
|
||||||
|
|
||||||
// Zaznali smo kršitev črnega dela, zato nam ni treba preveriti, ali je slika
|
|
||||||
// prisotna. Vemo namreč, da se je razmerje stranic zmanjšalo.
|
|
||||||
//
|
|
||||||
// blackbar violation detected. We don't even need to check for presence of image
|
// blackbar violation detected. We don't even need to check for presence of image
|
||||||
// as aspect ratio just decreased
|
// as aspect ratio just decreased
|
||||||
if(! guardLineResult.success) {
|
if(! guardLineResult.success) {
|
||||||
|
Loading…
Reference in New Issue
Block a user