Files
louiscklaw 3b0b154910 update,
2025-02-01 01:19:51 +08:00

18 lines
455 B
Bash
Executable File

#! /bin/bash
# opencv_annotation --annotations=annotations.txt --images=positives/
# opencv_createsamples -info annotations.txt -bg negatives.txt -vec positives.txt -w 24 -h 24
opencv_traincascade \
-data cascade_dir \
-vec positives.txt \
-bg negatives.txt \
-numPos 430 \
-numNeg 450 \
-w 24 \
-h 24 \
-precalcValBufSize 1024 \
-precalcIdxBufSize 1024 \
-numStages 25 \
-acceptanceRatioBreakValue 1.0e-5