Ask Your Question

mantithetical's profile - activity

2015-12-04 14:09:51 -0600 received badge  Famous Question (source)
2015-02-15 08:37:15 -0600 received badge  Notable Question (source)
2014-05-19 08:45:32 -0600 received badge  Popular Question (source)
2013-05-29 04:11:34 -0600 received badge  Student (source)
2013-04-04 10:11:09 -0600 received badge  Supporter (source)
2013-04-04 10:11:05 -0600 received badge  Scholar (source)
2013-04-04 10:09:09 -0600 answered a question Building OpenCV with Java Support on Mac OS X (64-bit)

Answered here.

2013-04-03 10:38:55 -0600 asked a question How does the parameter scaleFactor in detectMultiScale affect face detection?

I am trying out a slight variation of the example from http://docs.opencv.org/2.4.4-beta/doc/tutorials/introduction/desktop_java/java_dev_intro.html

    CascadeClassifier faceDetector = new CascadeClassifier("/haarcascade_frontalface_default.xml");
    Mat image = Highgui.imread(originalFile.getAbsolutePath());
    MatOfRect faceDetections = new MatOfRect();
    double w = ((double)originalCrop.getWidth());
    double h = ((double)originalCrop.getHeight());
    faceDetector.detectMultiScale(image, faceDetections, 3, 1, 
                   Objdetect.CASCADE_DO_CANNY_PRUNING , new Size(w/16, h/16), new Size(w/2, h/2));

From the API: scaleFactor – Parameter specifying how much the image size is reduced at each image scale.

Changing the scaleFactor changes what is detected. For example, for the following image: http://graphics8.nytimes.com/images/2013/04/02/world/MOSCOW/MOSCOW-articleLarge-v2.jpg

scaleFactor of 3 --> Gorbachev's face is not detected
scaleFactor of 2 --> Gorbachev's face is detected twice (one larger rectangle containing a smaller one)
scaleFactor of 1.01 ---> Gorbachev's face is detected once

How exactly does this work?

2013-04-01 16:44:21 -0600 asked a question Building OpenCV with Java Support on Mac OS X (64-bit)

Following directions from Introduction to OpenCV, I am running into the this:

>make -j8
...
...
Linking CXX shared library ../../lib/libopencv_java244.dylib
ld: unknown option: -whole-archive
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libopencv_java244.dylib] Error 1
make[1]: *** [modules/java/CMakeFiles/opencv_java.dir/all] Error 2
make: *** [all] Error 2