delete recognized images
This commit is contained in:
@@ -111,6 +111,8 @@ class OCRChecker {
|
||||
} else if (result.includes(CHECKING_MSG_FR) || result.includes(CHECKING_MSG_FR_2)) {
|
||||
return OCRResult.RECHECK
|
||||
} else if (result.includes(SLIDING_CAPTCHA_FR) || result.includes(SLIDING_CAPTCHA_FR_2) || result.includes(SLIDING_CAPTCHA_FR_3) || result.includes(SLIDING_CAPTCHA_FR_4)) {
|
||||
// if (result.includes("rac"))
|
||||
// return OCRResult.SLIDING_CAPTCHA_REFRESH
|
||||
return OCRResult.SLIDING_CAPTCHA
|
||||
} else if (result.includes(WELCOME_MESSAGE_FR)) {
|
||||
return OCRResult.NEED_TO_CLICK_LATE_BTN
|
||||
@@ -175,6 +177,7 @@ class OCRChecker {
|
||||
|
||||
async take_screen_shot() {
|
||||
let name = this.get_file_name()
|
||||
console.log("will take screenshot for " + this.device.model() + ":" + this.device.serial())
|
||||
await this.device.screenshot({path: name});
|
||||
await delay(3000);
|
||||
return name
|
||||
|
||||
Reference in New Issue
Block a user