android - "Moments" cannot be resolved to a type in opencv -


i have tried text extractor project using opencv tesseract library. while importing project added tesseract library. showing error in following of code.

moments moments = imgproc.moments(largest.get(0));         point center = new point(0,0);         center.x = moments.get_m10() / moments.get_m00();         center.y = moments.get_m01() / moments.get_m00();          list<point> points = largest.get(0).tolist();         points = sortcorners(points, center); 

error is

moments cannot resolved type


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -