Ask Your Question

denissav's profile - activity

2020-05-22 08:06:25 -0600 commented answer Can you help me with nail detection please?

Thank you, i launched it even with through videocapture. If it possible, could you tell me please. There is method for "

2020-05-22 07:10:06 -0600 received badge  Supporter (source)
2020-05-21 08:08:11 -0600 marked best answer 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" image description

  1. 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

  1. 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) image description

  2. 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"

image description

But, during working of script, number of stages not become more 2, that talking about bad input data's? image description

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. image description

It catch very messy anything else, but not nails... even only accidentally. image description image description

Can you help me please, what i'm doing wrong?! I am ready to thank for help financially, if it appropriate...

2020-05-21 08:08:11 -0600 received badge  Scholar (source)
2020-05-20 09:02:55 -0600 asked a question Can you help me with nail detection please?

Can you help me with nail detection please? Hello, i working on application,that recognization nails... I working only b