screenShot ohne fix path

This commit is contained in:
ChK
2026-05-15 07:37:40 +02:00
parent a32c5af06d
commit 977ab13ee1

View File

@@ -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} \
@@ -145,10 +143,9 @@ function snapshot(outDir, cam0, cam1, ws){
-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);
}