Ask Your Question

Revision history [back]

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?