c++ - Opencv Array of strings? -


i want classify images using svm , need give labels, in matlab do:

labels = {'ball';'plane';'person'};   

how make in opencv? following code failed:

mat_<string> m (3,1); m.at<string>(0) = "ball"; m.at<string>(1) = "plane";  m.at<string>(2) = "person"; 


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -