19 lines
287 B
Bash
Executable File
19 lines
287 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
find p -type f > positives.txt
|
|
|
|
opencv_createsamples \
|
|
-info positives.txt \
|
|
-vec positives.vec \
|
|
-w 20 -h 20
|
|
|
|
find n -type f > negatives.txt
|
|
|
|
opencv_createsamples \
|
|
-bg negatives.txt \
|
|
-vec negatives.vec \
|
|
-w 20 -h 20 \
|
|
-num 100
|