Compare commits

..

No commits in common. "dded60ad2c51e9be40850404ad3b18eb886fa5d8" and "a0b2721444a23cd92870b8e63b6d1c6b0c82d9cf" have entirely different histories.

3 changed files with 0 additions and 85 deletions

View File

@ -1,64 +0,0 @@
#!/bin/bash
#
# phase 1: take screenshots
#
if [ ! -d "screenshots" ]; then
mkdir screenshots
fi
find . -iname "*.mp4" -print0 | while read -d $'\0' file
do
filename=$(basename -- "$file")
#extension="${filename##*.}"
filename="${filename%.*}"
ffmpeg -ss 0 -i $file -vf fps=0.5 ./screenshots/$filename%d.png
done
#
# phase 2: img preprocess
#
if [ ! -d "preproccessed" ]; then
mkdir preproccessed
fi
find "screenshots" -iname "*.png" -print0 | while read -d $'\0' file
do
filename=$(basename -- "$file")
extension="${filename##*.}"
filename="${filename%.*}"
convert "$file" -gravity SouthWest -crop 560x60+0+0 -fuzz 12% +transparent "#edf1c9" "preproccessed/$filename.png"
done
#
# phase 3: ocr
#
if [ ! -d "ocr" ]; then
mkdir ocr
fi
find "preproccessed" -iname "*.png" -print0 | while read -d $'\0' file
do
filename=$(basename -- "$file")
extension="${filename##*.}"
filename="${filename%.*}"
tesseract $file "ocr/$filename"
done
#
# phase 4: prep for geotagging
#
if [ ! -d "tagged" ]; then
mkdir tagged
fi
find "screenshots" -iname "*.png" -print0 | while read -d $'\0' file
do
filename=$(basename -- "$file")
extension="${filename##*.}"
filename="${filename%.*}"
convert $file "tagged/$filename.jpg"
exiftool -overwrite_original -TagsFromFile ./knowngood.jpg -All:All "tagged/$filename.jpg"
done

View File

@ -1,13 +0,0 @@
#!/bin/bash
for f in ./*
do
filename=$(basename -- "$f")
extension="${filename##*.}"
filename="${filename%.*}"
if [ "$filename" == "$(date '+%Y-%m-%d')" ]; then
#echo $f
curl -H "Content-Type: multipart/form-data" -F "file=@$f" #webhook url
fi
done

View File

@ -1,8 +0,0 @@
#!/bin/bash
#msg="\"{\\\"content\\\":\\\"$@\\\"}\""
msg="{\"content\":\"$@\"}"
echo $msg
curl -H "Content-Type: application/json" -d "$msg" \
#WEBHOOK URL