Recommended values for OpenCV detectMultiScale() parameters

后端 未结 3 1212
青春惊慌失措
青春惊慌失措 2020-11-30 17:43

What are the recommended parameters for CascadeClassifier::detectMultiScale() and depending on which factors I should change default parameters?

void Cascade         


        
3条回答
  •  暖寄归人
    2020-11-30 18:07

    If you have a good CPU and RAM performance or more you can set scaleFactor=1 minNeighbors=3

    if you're working in an embedded system like in raspberry i recommand to choose smth like scaleFactor= 2, (Higher values means less accuracy) minNeighbors = 1, (Higher values means less accuracy but more reliability) the algorithm will run much faster otherwise it will freeze if the CPU performance and RAM are not enough .

    hope it helps

提交回复
热议问题