Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try,

  • Find contours, note that you need to extract only outer contour (use CV_RETR_EXTERNAL as mode).

  • Now for each contour find bounding rect

  • Use bound rect to crop each object, here you may use image ROI