diff --git a/programs/screenShot.js b/programs/screenShot.js index f2fdd0d..a5bbe96 100755 --- a/programs/screenShot.js +++ b/programs/screenShot.js @@ -135,8 +135,6 @@ function snapshot(outDir, cam0, cam1, ws){ strFile0 = path.join(outDir, name0); strFile1 = path.join(outDir, name1); - const command = `python3 /usr/src/app/programs/readTwoImages.py -i ${strFile0} -i ${strFile1} -npz /usr/src/app/data/settings/callibration_cam0.npz -npz /usr/src/app/data/settings/callibration_cam1.npz -settings /usr/src/app/data/settings/settings1m.json`; - const command2 = `python3 ${path.join(BASE_PATH, 'programs/readTwoImages.py')} \ -i ${strFile0} \ -i ${strFile1} \ @@ -144,11 +142,10 @@ function snapshot(outDir, cam0, cam1, ws){ -npz ${path.join(BASE_PATH, 'data/settings/callibration_cam1.npz')} \ -settings ${path.join(BASE_PATH, 'data/settings/settings1m.json')}`; - - console.log("Executing Python option 1: " + command); + console.log("Executing Python option 2: " + command2); - processPython(command, name0, name1, outDir, ws); + processPython(command2, name0, name1, outDir, ws); } catch (err) { console.error('Snapshot fehlgeschlagen:', err); }