Skip to content

Commit

Permalink
Updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
alpegon committed Apr 1, 2019
1 parent 46552aa commit 8abb262
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/imagemagick/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions examples/plant-classification-theano/script.sh
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions examples/video-process/split-video.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions examples/video-process/yolov3-object-detection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'"

Expand Down

0 comments on commit 8abb262

Please sign in to comment.