简体   繁体   中英

How to draw rectangle over contour in JavaCV?

I found contours in an image by using cvFindContours . Now I want to draw rectangle over them. Am I right that I should use the cvBoundingRect method? The first parameter of this function is a CvArr object, but I found that the contours are CvSeq objects. How can I solve this problem?

Solved.

You can cast CvSeq to CvArr

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM