# Revision history [back]

### Android: Mat converting to CV_8U

Hi and thanks for your help!

I am trying to use CascadeClassifier.detectMultiScale()

I understand that it takes as an input a Mat of type CV_8U.

Therefore, after using bitmapToMat()

I try to convert the Mat to CV_8U. with

mat.convertTo(mat2, CV_8U);


but apparently Eclipse does not take as an argument CV_8U