From 977ab13ee16940df7e68ac64ef46a0e1c0e27f32 Mon Sep 17 00:00:00 2001 From: ChK Date: Fri, 15 May 2026 07:37:40 +0200 Subject: [PATCH] screenShot ohne fix path --- programs/screenShot.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); }