From 8abb262fbc25eb1c1be6529c9cb2af9c0cea992b Mon Sep 17 00:00:00 2001 From: alpegon Date: Mon, 1 Apr 2019 17:15:10 +0200 Subject: [PATCH] Updated examples --- examples/imagemagick/script.sh | 2 +- examples/plant-classification-theano/script.sh | 8 ++++---- examples/video-process/split-video.sh | 4 ++-- examples/video-process/yolov3-object-detection.sh | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/imagemagick/script.sh b/examples/imagemagick/script.sh index c4764e36..9ac5a747 100644 --- a/examples/imagemagick/script.sh +++ b/examples/imagemagick/script.sh @@ -2,6 +2,6 @@ echo "SCRIPT: Invoked Image Grayifier. File available in $INPUT_FILE_PATH" FILE_NAME=`basename $INPUT_FILE_PATH` -OUTPUT_FILE=$STORAGE_OUTPUT_DIR/$FILE_NAME +OUTPUT_FILE=$TMP_OUTPUT_DIR/$FILE_NAME echo "SCRIPT: Converting input image file $INPUT_FILE_PATH to grayscale to output file $OUTPUT_FILE" convert $INPUT_FILE_PATH -type Grayscale $OUTPUT_FILE diff --git a/examples/plant-classification-theano/script.sh b/examples/plant-classification-theano/script.sh index 90386a64..b0f07cc8 100644 --- a/examples/plant-classification-theano/script.sh +++ b/examples/plant-classification-theano/script.sh @@ -1,6 +1,6 @@ #!/bin/bash -echo "SCRIPT: Invoked classify_image.py. File available in $SCAR_INPUT_FILE" -FILE_NAME=`basename $SCAR_INPUT_FILE` -OUTPUT_FILE=$SCAR_OUTPUT_FOLDER/$FILE_NAME -python2 /opt/plant-classification-theano/classify_image.py "$SCAR_INPUT_FILE" -o "$OUTPUT_FILE" +echo "SCRIPT: Invoked classify_image.py. File available in $INPUT_FILE_PATH" +FILE_NAME=`basename $INPUT_FILE_PATH` +OUTPUT_FILE=$TMP_OUTPUT_DIR/$FILE_NAME +python2 /opt/plant-classification-theano/classify_image.py "$INPUT_FILE_PATH" -o "$OUTPUT_FILE" diff --git a/examples/video-process/split-video.sh b/examples/video-process/split-video.sh index 069b68b4..4f59d74d 100644 --- a/examples/video-process/split-video.sh +++ b/examples/video-process/split-video.sh @@ -1,4 +1,4 @@ #! /bin/sh -echo "SCRIPT: Splitting video file $SCAR_INPUT_FILE in images and storing them in $SCAR_OUTPUT_FOLDER. One image taken each second" -ffmpeg -loglevel info -nostats -i $SCAR_INPUT_FILE -q:v 1 -vf fps=1 $SCAR_OUTPUT_FOLDER/out%03d.jpg < /dev/null +echo "SCRIPT: Splitting video file $INPUT_FILE_PATH in images and storing them in $TMP_OUTPUT_DIR. One image taken each second" +ffmpeg -loglevel info -nostats -i $INPUT_FILE_PATH -q:v 1 -vf fps=1 $TMP_OUTPUT_DIR/out%03d.jpg < /dev/null diff --git a/examples/video-process/yolov3-object-detection.sh b/examples/video-process/yolov3-object-detection.sh index 34cfd9a9..f28ba3e8 100755 --- a/examples/video-process/yolov3-object-detection.sh +++ b/examples/video-process/yolov3-object-detection.sh @@ -3,8 +3,8 @@ FILENAME="`basename $INPUT_FILE_PATH`" # Remove extension from filename FILENAME=${FILENAME%.*} -RESULT="$STORAGE_OUTPUT_DIR/$FILENAME.out" -OUTPUT_IMAGE="$STORAGE_OUTPUT_DIR/$FILENAME" +RESULT="$TMP_OUTPUT_DIR/$FILENAME.out" +OUTPUT_IMAGE="$TMP_OUTPUT_DIR/$FILENAME" echo "SCRIPT: Analyzing file '$INPUT_FILE_PATH', saving the result in '$RESULT' and the output image in '$OUTPUT_IMAGE'"