use adb to take screenshot
This commit is contained in:
@@ -72,9 +72,15 @@ const BRAVE_SKIP_PRIVACY_PAGE_2 = "Partagez des renseignements"
|
||||
|
||||
async function convertImageToWhiteBlack(image_path, device) {
|
||||
console.log("convertImageToWhiteBlack for " + device.serial())
|
||||
const image = await Jimp.read(image_path);
|
||||
image.grayscale().write(image_path + ".wb");
|
||||
return image_path + ".wb";
|
||||
try {
|
||||
const image = await Jimp.read(image_path);
|
||||
image.grayscale().write(image_path + ".wb");
|
||||
return image_path + ".wb";
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
return image_path
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class OCRChecker {
|
||||
|
||||
Reference in New Issue
Block a user