need to use openCv to identifiy text
This commit is contained in:
+7
-3
@@ -14,7 +14,7 @@ let collectionName = formatDate(new Date())
|
||||
// device_to_excludes = ["47e7e36b", "e30eb015"]
|
||||
// device_to_excludes = ["47e7e36b"]
|
||||
// device_to_excludes = ["J4AXB761H2322WJ"]
|
||||
device_to_excludes = []
|
||||
device_to_excludes = ["e30eb015"]
|
||||
attributedPorts = []
|
||||
const device_port_info = new Map();
|
||||
startPort = 9000
|
||||
@@ -171,12 +171,16 @@ async function startBookWithNumbers(startNumber, endNumber, selectedStore, pathT
|
||||
// get attributed port
|
||||
let attributedPort = device_port_info[device.serial()]
|
||||
if (attributedPort) {
|
||||
const output = execSync('adb -s ' + device.serial() + " forward tcp:" + attributedPort + " localabstract:chrome_devtools_remote", {encoding: 'utf-8'}); // the default is 'buffer'
|
||||
let cmd = 'adb -s ' + device.serial() + " forward tcp:" + attributedPort + " localabstract:chrome_devtools_remote";
|
||||
console.log("cmd is " + cmd);
|
||||
const output = execSync(cmd, {encoding: 'utf-8'}); // the default is 'buffer'
|
||||
console.log('Output was:\n', output);
|
||||
} else {
|
||||
attributedPort = startPort;
|
||||
startPort++;
|
||||
const output = execSync('adb -s ' + device.serial() + " forward tcp:" + attributedPort + " localabstract:chrome_devtools_remote", {encoding: 'utf-8'}); // the default is 'buffer'
|
||||
let cmd = 'adb -s ' + device.serial() + " forward tcp:" + attributedPort + " localabstract:chrome_devtools_remote";
|
||||
console.log("cmd is " + cmd);
|
||||
const output = execSync(cmd, {encoding: 'utf-8'}); // the default is 'buffer'
|
||||
console.log('Output was:\n', output);
|
||||
}
|
||||
return attributedPort
|
||||
|
||||
Reference in New Issue
Block a user