Skip to content

Commit

Permalink
add bludir goodie
Browse files Browse the repository at this point in the history
  • Loading branch information
cquest committed Jun 18, 2023
1 parent aab55c4 commit 43b56d5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ultralytics==8.0.116
ultralytics==8.0.118
pyturbojpeg==1.7.1
Pillow-simd
uuid
Expand Down
10 changes: 10 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# sgblur goodie scripts

## blurdir

Tool to blur all JPEG pictures found in a directory.

Usage: ./blurdir directory-path

Will create a "blur" directory in the original directory to store the blurred version of the pictures with the same name as original pictures.

8 changes: 8 additions & 0 deletions scripts/blurdir
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /bin/bash

API=https://blur.panoramax.openstreetmap.fr/blur/

cd "$1"
mkdir -p blur
rm -f blur/*
ls -1 *.jpg *.JPG | /usr/bin/time -v parallel --progress --bar curl -s -X 'POST' $API -F "picture=@{}" --output "blur/{}"

0 comments on commit 43b56d5

Please sign in to comment.