color or grayscale for cascade training

asked 2015-08-29 02:07:23 -0600

muc gravatar image

Hi, 1-can i train cascde algorithm with image color?Objects are the same, just a different color. 2- if i create the .xml file by MATLAB for cascade training . can i use the .xml file in opencv ?.is it compatible? Many Thanks.

edit retag flag offensive close merge delete


  1. the cascade only looks at grayscale (for both training and detection), if you give it colour images, they will get (silently) converted
  2. probably not (but i never tried, you'll sure have to edit it manually/write a little converter script).
berak gravatar imageberak ( 2015-08-29 02:51:58 -0600 )edit