source: other-projects/is-sheet-music-encore/trunk/image-identification-terminal/runClassifer.sh@ 33141

Last change on this file since 33141 was 33141, checked in by cpb16, 5 years ago

Completed end-to-end pipeline and one classifier

  • Property svn:executable set to *
File size: 436 bytes
Line 
1#!/bin/bash
2
3if [ $# != 2 ] ; then
4 echo "Usage: ./testClassifier.sh file_name classifier_type" 1>&2
5 exit 1
6fi
7
8folder_name=$1
9classifier_type=$2
10#Runs javaImageClassifier on ALL images
11for file_name in $folder_name/*/*.png; do
12 echo $file_name
13 echo ""
14 java -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar:. -Djava.library.path=/Scratch/cpb16/opencv-3.4.2/build/lib/ javaImageClassifier $file_name $classifier_type
15done
Note: See TracBrowser for help on using the repository browser.