Created
May 23, 2012 06:45
-
-
Save mokemokechicken/2773588 to your computer and use it in GitHub Desktop.
opencv_performance Test 用のデータを作成する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd data/source_data | |
find posorig -type f -name '*.png' > pos.dat | |
find testimages -type f | grep -v .DS | grep -v sqlite > testbg.dat | |
DNAME=testset5 | |
WIDTH=57 | |
HEIGHT=23 | |
perl ../../script/createtestsamples.pl pos.dat testbg.dat tests 1000 "opencv_createsamples -w $WIDTH -h $HEIGHT -bgcolor 0 -bgthresh 0 -maxxangle 0.02 -maxyangle 0.02 -maxzangle 0.1 -maxidev 40" | |
find tests -name 'info.dat' -exec cat \{\} \; > tests.dat | |
mkdir ../../../test_data/$DNAME | |
mv tests tests.dat ../../../test_data/$DNAME | |
--------------------------------- | |
export Z=8;export T=8b;export F=r${Z}to${T}; for d in `ls -d /mnt/s3/result/ROUND${Z}*`;do;N=`basename $d`; echo -n "$N :" >> $F; opencv_performance -info testset${T}/tests.dat -ni -neighbors 1 -minWidth 19 -minHeight 8 -data /mnt/s3/result/$N/*/cascade.xml | grep " Total" >> $F;echo ;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment