First time here? Check out the FAQ!
answered 2015-01-17 04:49:26 -0600
This message normally means that your input image should have 3 or 4 channels. What is the type of your frame before passing it to cvtColor?