Can you help me with nail detection please?
Hello, i working on application,that recognization nails... I working only by your instructions... 1. Asking 60 peoples took photo of their fingers and filled my "training data"
- Launch opencv_annotation C:\opencv\build\x64\vc14\bin\opencv_annotation.exe --annotations=./file.txt --images=C:\OpenServer\OSPanel\domains\trainingmodel.com\training_data3
for "boxing" the desired image fragment
Than i create vector file by command C:\opencv\build\x64\vc14\bin\opencv_createsamples -info file.txt -w 50 -h 50 -vec pos-samples.vec and got 216 samples of nail (in screenshot i am using command C:\opencv\build\x64\vc14\bin\opencv_createsamples -vec pos-samples.vec -w 50 -h 50)
And than i launch tarining cascade by command C:\opencv\build\x64\vc14\bin\opencv_traincascade -data obj-classifier -vec pos-samples.vec -bg neg-filepaths.txt -precalcValBufSize 2048 -precalcIdxBufSize 2048 -numPos 59 -numNeg 2000 -numStages 2000 -minhitrate 0.999 -maxfalsealarm 0.5 -acceptanceRatioBreakValue 10e-5 -w 50 -h 50 -nonsym -baseFormatSave
as negative samples in neg-filepaths.txt i used sample for facecascade_data, that include in build of "opencv sources"
But, during working of script, number of stages not become more 2, that talking about bad input data's?
I tried much possible variants, as a could: - maxDepth 5, - maxWeakCount 100, - numStages 3000, - i tried used photo of my apartment as negaive samples (less, than 3000 of course), - i trained cascade for 12 hours sometimes.
Even after training in all variants, my script working wrong.
It catch very messy anything else, but not nails... even only accidentally.
Can you help me please, what i'm doing wrong?! I am ready to thank for help financially, if it appropriate...