CvMat can not be resolved

asked 2014-06-26 10:26:30 -0600

jossyy gravatar image

updated 2014-06-26 12:11:46 -0600

berak gravatar image

Hello, I use eclipse ide on windows for my project. And I want to use opencv with java. I added import org.opencv.*; But I get an error via "CvMat can not be resolved".

CvMat* trainData = cvCreateMat( train_sample_count, 2, CV_32FC1 ); CvMat* trainClasses = cvCreateMat( train_sample_count, 1, CV_32FC1 );

edit retag flag offensive close merge delete

Comments

I find a clear example. I learn how I use KNN via this link https://github.com/atduskgreg/kaggle-titanic/blob/master/titanic_knn/KNN.pde

jossyy gravatar imagejossyy ( 2014-06-26 10:37:22 -0600 )edit
1

^^ yours is c code, not java. try to stay closer to the github sample

berak gravatar imageberak ( 2014-06-26 11:58:04 -0600 )edit