Last change
on this file since 33340 was 33340, checked in by cpb16, 5 years ago |
transferred backup of low res images. Classifiers work as expected. Updated javaAccuracyCalculator, now calculates overall rating correctly. Created gen-50-XX-ValidIDList.txt for the 10% high-res downloads. Done by selecting first 50 of each gen-500-XX-Valid.... .txt. Downloading high-res images after this backup
|
File size:
1.2 KB
|
Line | |
---|
1 | #https://www.tensorflow.org/install/lang_java
|
---|
2 | #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 TestImages/Test.png 1
|
---|
3 |
|
---|
4 | testrun-classifier-houghlinesP:
|
---|
5 | #Compile
|
---|
6 | javac javaAccuracyCalculator.java
|
---|
7 | javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
8 | #Run javaImageClassifier on all images in TestImages
|
---|
9 | ./runClassifer.sh TestImages houghlinesP
|
---|
10 | echo "Displaying javaImageClassifier output"
|
---|
11 | #Display output of javaImageClassifier
|
---|
12 | less log.txt
|
---|
13 | #Calculate the Accuracy of the classifier
|
---|
14 | java javaAccuracyCalculator log.txt houghlinesP results.txt
|
---|
15 | #Display output
|
---|
16 | less results.txt
|
---|
17 | rm log.txt
|
---|
18 | rm results.txt
|
---|
19 |
|
---|
20 | testrun-classifier-cluster-single:
|
---|
21 | javac -cp /Scratch/cpb16/opencv-3.4.2/build/bin/opencv-342.jar javaImageClassifier.java;
|
---|
22 | ./runClassifier.sh TestImages/test-coo.31924062612282-9.png cluster test.png -single
|
---|
23 | echo "Displaying javaImageClassifier output"
|
---|
24 | #Display output of javaImageClassifier
|
---|
25 | less log.txt
|
---|
26 | #Calculate the Accuracy of the classifier
|
---|
27 | java javaAccuracyCalculator log.txt houghlinesP results.txt
|
---|
28 | #Display output
|
---|
29 | less results.txt
|
---|
30 | rm log.txt
|
---|
31 | rm results.txt
|
---|
32 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.