This commit is contained in:
louiscklaw
2025-01-31 22:57:47 +08:00
parent b1cd1d4662
commit b3cc8e8323
764 changed files with 722101 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/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