Ask Your Question

Fabbricio's profile - activity

2016-01-17 18:55:51 -0600 received badge  Necromancer (source)
2015-05-07 09:36:35 -0600 commented question How to train two objects with different sizes in openCv

Do You mean, train the objects separately?

2015-05-07 08:07:02 -0600 commented question How to train two objects with different sizes in openCv

I did research on the double model classification. and I did not find any explanation about this term. Do you have any suggestions about this.

2015-05-07 07:25:00 -0600 commented question How to train two objects with different sizes in openCv
2015-05-07 07:20:34 -0600 received badge  Editor (source)
2015-05-06 15:42:00 -0600 answered a question face-detection sample not work

Hi. I followed these steps and works fine.

1 Import the face-detection sample and OPCV Library

image description

2 Remove the wrong link and add a correct link

image description

3 Put the full path of OpenCv.mk (in android.mk)

in my case: include E:\OPEN_CV\OpenCV-2.4.11-android-sdk\sdk\native\jni\OpenCV.mk

image description

4 Configure environment for NDK

image description

5 Configure Build

image description

PS.: You need a NDK. You can download here

That's it.

2015-05-06 13:07:27 -0600 asked a question How to train two objects with different sizes in openCv

I try to train the licence plate car and licence plate motorcycle with OpenCv version 2.4.10.

I have a 235 images positives and a 300 negative images.

For positive images the licence plate car the real size is 40 cm x 13 cm and licence plate motorcycle have real size 20 cm x 17 cm. When tried to train the vectors separately the software works fine, but when I tried to train utilizing the two plates, the software doesn't work.

Here is the utilized code of training.

This code works with a licence plate car, but doesn't works with licence plate motorcycle

 createsamples -info c:\harrkit\HAARKITV10\povitivos\info.txt -vec vetor\veiculos_64x24.vec -num 235 -w 64 -h 24

trainCascade -data cascade -vec c:\harrkit\HAARKITV10\vetor\veiculos_64x24.vec -bg c:\harrkit\HAARKITV10\negativos\negativos.txt -numPos 235 -numNeg 200 -numStages 12  -featureTyp HAAR -minHitRate 0.999 -maxFalseAlarmRate 0.5 -w 64 -h 24

// code detectMultiScale

if (mAbsolutePlateSize == 0) {
     int height = mGray.rows();
    if (Math.round(height * mRelativePlateSize) > 0) {
        mAbsolutePlateSize = Math.round(height * mRelativePlateSize);
    }
    mNativeDetector.setMinFaceSize(mAbsolutePlateSize);
}

MatOfRect mMatPlacas = new MatOfRect();

if (mDetectorType == JAVA_DETECTOR) {
    if (mJavaDetector != null)
        mJavaDetector.detectMultiScale(mGray, mMatPlacas, 1.1, 2, 2, new Size(mAbsolutePlateSize,          mAbsolutePlateSize), new Size()); 
    } else if (mDetectorType == NATIVE_DETECTOR) {
        if (mNativeDetector != null)
            mNativeDetector.detect(mGray, mMatPlacas);
    } else {
    Log.e(TAG, "Detection method is not selected!");
}