Changeset 33415 for other-projects/is-sheet-music-encore/trunk/image-identification-terminal/runClassifer.sh
- Timestamp:
- 2019-08-14T11:42:20+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/is-sheet-music-encore/trunk/image-identification-terminal/runClassifer.sh
r33340 r33415 2 2 3 3 if [ $# != 4 ] ; then 4 echo "Usage: ./testClassifier.sh folder/file_name classifier_type output_filename type(-a:all -test:100 -single:1)" 1>&24 echo "Usage: ./testClassifier.sh folder/file_name classifier_type output_filename type(-a:all -test:100 -single:1)" 1>&2 5 5 exit 1 6 6 fi … … 22 22 i=$[$i+1] 23 23 done 24 ;; 24 ;; 25 26 -allNew) 27 for file_name in $folder_name/*/*.png; do 28 echo $file_name 29 echo $output 30 echo $i 31 echo "" 32 java -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar:. -Djava.library.path=/Scratch/cpb16/opencv-3.4.2/build/lib/ javaClassifierComparison $file_name $classifier_type $output 33 i=$[$i+1] 34 done 35 ;; 25 36 26 37 -test) … … 50 61 #Runs javaImagesClassifier on ONE image 51 62 javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java; 63 echo $folder_name 64 echo $output 65 echo $classifier_type 66 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 $folder_name $classifier_type $output 67 ;; 68 69 -singleNew) 70 #Runs javaImagesClassifier on ONE image 71 javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar -Xlint javaClassifierComparison.java; 52 72 echo $file_name 53 73 echo $output 54 74 echo $classifier_type 55 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 $output 56 75 java -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar:. -Djava.library.path=/Scratch/cpb16/opencv-3.4.2/build/lib/ javaClassifierComparison $folder_name $classifier_type $output 57 76 58 77 esac
Note:
See TracChangeset
for help on using the changeset viewer.