Package com.googlecode.javacv.cpp.opencv_video

Examples of com.googlecode.javacv.cpp.opencv_video.BackgroundSubtractorMOG.apply()


    CvMemStorage storage = CvMemStorage.create();
   
    while(true) {
      IplImage img = grabber.grab();
      IplImage fgmask = cvCreateImage(cvGetSize(img), IPL_DEPTH_8U, 1);
      backsub.apply(img, fgmask, 0.01);
     
      CvSeq contours = new CvSeq();
      cvFindContours(fgmask, storage, contours, Loader.sizeof(CvContour.class), CV_RETR_EXTERNAL, CV_CHAIN_APPROX_NONE);
      while(contours != null && !contours.isNull()) {
        CvRect box = cvBoundingRect(contours, 0);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.