Could not find OpenCV Library - 2.4.8.apk!

asked May 19 '14

maizi gravatar image

updated May 20 '14

berak gravatar image

Anyone know the error :Could not find OpenCV Library - 2.4.8.apk! Please help me!

The console:

[2014-05-19 21:53:36 - OpenCV Library - 2.4.8] Could not find OpenCV Library - 2.4.8.apk!

In My project I write a piece of code like this :Mat imageroiB(block,block,CV_8UC1),it will appear a red break line under the word "Mat". I could not find the "CV_8UC1" in the options when I use the "Alt+/". image description

Preview: (hide)

Comments

CvType.CV_8UC1 (but unrelated to the apk not found)

berak gravatar imageberak (May 19 '14)edit

You are missing an underscore between CV and 8UC1!

StevenPuttemans gravatar imageStevenPuttemans (May 19 '14)edit

I'm sorry,it is my mistake.I have modified it.It show error like that above.

maizi gravatar imagemaizi (May 20 '14)edit

You are doing weird things. This is C++ interface so empty constructors are a no go here. Try switching to the following code:

  Mat imageroiR, imageroiG, imageroiB; // default constructor is called here
  MinMaxLocResult minR, minG, minB; // very weird type = not available in openCV 2.4.9
  Mat dark_channel (Row, Cols, CV_8UC1);

Also do show us your definitions of stuff like Row and Cols! More info needed!

StevenPuttemans gravatar imageStevenPuttemans (May 20 '14)edit

Ok! Thank you. I learn the Java by myself,so I don't know many standard.

 Mat src=new Mat();
 Utils.bitmapToMat(srcbmp, src);//get the picture from srcbmap
 int Row=src.rows();
 int Cols=src.cols();
 Mat dark_channel(Row,Cols,CV_8UC1);

If I write

  MinMaxLocResult minR;

it will error the local variable minR may not have been initialized. Another how to highlight the code in this forum.

maizi gravatar imagemaizi (May 20 '14)edit

So this code doesn't work? @berak, your experience with java is better, see a problem?

StevenPuttemans gravatar imageStevenPuttemans (May 20 '14)edit

Yes! What do you mean with @berak?

maizi gravatar imagemaizi (May 20 '14)edit

@berak is another user of this forum who has more knowledge in this topic then me!, it was not a command for your ;)

StevenPuttemans gravatar imageStevenPuttemans (May 20 '14)edit

And please do not re-edit editted remarks, I only want to make your code layout more clear! :)

StevenPuttemans gravatar imageStevenPuttemans (May 20 '14)edit

Thank you very much! Could you teach me how to make the code highlight in this forum.

maizi gravatar imagemaizi (May 20 '14)edit