Package com.googlecode.javacv.cpp.opencv_core

Examples of com.googlecode.javacv.cpp.opencv_core.CvRect.height()


                    // We iterate over the discovered faces and draw yellow rectangles 
                    // around them.
                    for (int i = 0; i < faces.total(); i++) {
                        CvRect r = new CvRect(cvGetSeqElem(faces, i));
                        cvRectangle(frame, cvPoint(r.x(), r.y()),
                                cvPoint(r.x() + r.width(), r.y() + r.height()),
                                CvScalar.YELLOW, 1, CV_AA, 0);
                       
                    }
                }
                canvasFrame.showImage(frame);
View Full Code Here


        // We iterate over the discovered faces and draw yellow rectangles 
        // around them. 
        for (int i = 0; i < faces.total(); i++) {
            CvRect r = new CvRect(cvGetSeqElem(faces, i));
            cvRectangle(originalImage, cvPoint(r.x(), r.y()),
                    cvPoint(r.x() + r.width(), r.y() + r.height()),
                    CvScalar.YELLOW, 1, CV_AA, 0);

        }

        ImageIcon image = new ImageIcon(originalImage.getBufferedImage().getScaledInstance(-1, -1, 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.