Ask Your Question

Revision history [back]

error while visualizing the cascade stage features

I have trained a boosted cascade classifier with opencv and i want to visualize the cascade stages features as shown in the tutorial here: https://docs.opencv.org/3.3.0/dc/d88/tutorial_traincascade.html

The problem is that everytime i run the batch: opencv_visualisation --model=sunmodel.xml --image=sunn.bmp

where sunn.bmp is actually a positive sample from the training set, and i have also resized it to 24*24 as the defined dimension in the training process.

I get the following error: the model is not an haar or lbp feature based model! please select a model that can be visualised by the software

Although i am using Haar features in the training, I am also using the cascade parameter mode to be: -mode ALL

Any idea what is happening?

Many thanks in advance