Can you elaborate on how you're doing this ie, are you using the FTP function (in alert actions) to save an alert image, or are you using "Run a program or write to a file" or even "Do command -- set output 1." I'm looking for the easiest way to automate the saving of a jpeg to a specific local folder as I'd like to take a try at building my own custom models based on a given camera's history.
Personally I use Cygwin so I can run a shell script like this
##
## Usage: copyNew.sh &ALERT_PATH &MEMO
## where &ALERT_PATH is like DAH412.20210731_143912.4034343.3.jpg
## and &MEMO is like person:93%,dog:81
##
#set -x
PATH="/usr/bin"
export FLAGGED=/cygdrive/i/_dea/odrive/GD.video/cams/DeepStackWS/data/new
export ALERTS=/cygdrive/i/BlueIris/Alerts
export LOG=/cygdrive/c/DeepStack/newLog.
date +%Y.%m
.out
echo "$*" >> $LOG
obj=
echo $2 | cut -f1 -d':'
echo "(${obj})" >> $LOG 2>&1
mkdir -p ${FLAGGED}/${obj} >> $LOG 2>&1
clip=
echo $1 | cut -f1-2 -d'.'
dat=
ls -1tr ${ALERTS}/${clip}*.dat | tail -1
if [ -r "$dat" ]
then
pic=
echo $dat | sed -e 's/.dat/.jpg/g'
#/usr/bin/cp ${ALERTS}/$1 ${FLAGGED}/${obj} >> $LOG 2>&1
/usr/bin/cp ${pic} ${FLAGGED}/${obj} >> $LOG 2>&1
else
# dat is missing for some reason
/usr/bin/cp ${ALERTS}/${clip}*.jpg ${FLAGGED}/${obj} >> $LOG 2>&1
fi
ls -latr ${FLAGGED}/${obj} | tail -5
Which is more complex than needed but I like to have a log and sort the images by what was found in them.
More details here
ConvertAndMerge · avatar42/deepstack Wiki