Commit ab0d384cf2b1f8d2786cd0dd576ce077b3dc9a06
1 parent
9cbe722e
added cropFaces script
Showing
1 changed file
with
58 additions
and
0 deletions
scripts/cropFaces.sh
0 → 100755
| 1 | +#!/bin/bash | |
| 2 | + | |
| 3 | +if [ ! -f classicAlgorithms.sh ]; then | |
| 4 | + echo "Run this script from the scripts folder!" | |
| 5 | + exit | |
| 6 | +fi | |
| 7 | + | |
| 8 | +if ! hash br 2>/dev/null; then | |
| 9 | + echo "Can't find 'br'. Did you forget to build and install OpenBR? Here's some help: http://openbiometrics.org/doxygen/latest/installation.html" | |
| 10 | + exit | |
| 11 | +fi | |
| 12 | + | |
| 13 | +DATA_ROOT=/Volumes/Seagate | |
| 14 | + | |
| 15 | +for ALGORITHM in CropFace PP5CropFace | |
| 16 | +do | |
| 17 | + | |
| 18 | + #for SIGSET in CUFS_photo CUFS_sketch | |
| 19 | + #do | |
| 20 | + # br -algorithm ${ALGORITHM} -path ${DATA_ROOT}/CUFS -enroll ../data/CUFS/sigset/${SIGSET}.xml galleries/${ALGORITHM}_${SIGSET}.gal | |
| 21 | + #done | |
| 22 | + | |
| 23 | + #for SIGSET in CUFSF_photo CUFSF_sketch | |
| 24 | + #do | |
| 25 | + # br -algorithm ${ALGORITHM} -path ${DATA_ROOT}/CUFSF -enroll ../data/CUFSF/sigset/${SIGSET}.xml galleries/${ALGORITHM}_${SIGSET}.gal | |
| 26 | + #done | |
| 27 | + | |
| 28 | + #for SIGSET in fa fb fc dup1 dup2 | |
| 29 | + #do | |
| 30 | + # br -algorithm ${ALGORITHM} -path "${DATA_ROOT}/FERET/dvd2/gray_feret_cd1/data/images/;${DATA_ROOT}/FERET/dvd2/gray_feret_cd2/data/images/" -enroll ../data/FERET/sigset/${SIGSET}.xml galleries/${ALGORITHM}_${SIGSET}.gal | |
| 31 | + #done | |
| 32 | + | |
| 33 | + #for SIGSET in FRGC-1 FRGC-2 FRGC-4_target FRGC-4_query | |
| 34 | + #do | |
| 35 | + # br -algorithm ${ALGORITHM} -path ${DATA_ROOT}/FRGC2 -enroll ../data/FRGC/sigset/${SIGSET}.xml galleries/${ALGORITHM}_${SIGSET}.gal | |
| 36 | + #done | |
| 37 | + | |
| 38 | + #for SIGSET in HFB_NIR HFB_VIS | |
| 39 | + #do | |
| 40 | + # br -algorithm ${ALGORITHM} -path ${DATA_ROOT}/HFB -enroll ../data/HFB/sigset/${SIGSET}.xml galleries/${ALGORITHM}_${SIGSET}.gal | |
| 41 | + #done | |
| 42 | + | |
| 43 | + #for SIGSET in LFW | |
| 44 | + #do | |
| 45 | + # br -algorithm ${ALGORITHM} -path ${DATA_ROOT}/LFW -enroll ../data/LFW/sigset/${SIGSET}.xml galleries/${ALGORITHM}_${SIGSET}.gal | |
| 46 | + #done | |
| 47 | + | |
| 48 | + for SIGSET in MEDS_frontal_all | |
| 49 | + do | |
| 50 | + br -algorithm ${ALGORITHM} -path ${DATA_ROOT}/MEDS -enroll ../data/MEDS/sigset/${SIGSET}.xml galleries/${ALGORITHM}_${SIGSET}.gal | |
| 51 | + done | |
| 52 | + | |
| 53 | + #for SIGSET in PCSO_2x10k | |
| 54 | + #do | |
| 55 | + # br -algorithm ${ALGORITHM} -path ${DATA_ROOT}/PCSO -enroll ../data/PCSO/sigset/${SIGSET}.xml galleries/${ALGORITHM}_${SIGSET}.gal | |
| 56 | + #done | |
| 57 | + | |
| 58 | +done | |
| 0 | 59 | \ No newline at end of file | ... | ... |