Ask Your Question

John Smith's profile - activity

2014-03-31 10:44:27 -0600 received badge  Editor (source)
2014-03-31 10:36:53 -0600 asked a question the program does not recognize objects

My learning: cd C:\Downloads\opencv\build\x64\vc12\bin opencv_createsamples.exe -info good.dat -vec good.vec -w 50 -h 50 -num 195 opencv_traincascade.exe -data haarcascade -vec good.vec -bg negatives.dat -numStages 25 -minhitrate 0.7 -maxFalseAlarmRate 0.5 -numPos 195 -numNeg 448 -w 50 -h 50 -mode ALL -precalcValBufSize 1024 -precalcIdxBufSize 1024 My program: using System; using System.Drawing; using Emgu.CV; using Emgu.CV.Structure;

namespace includer
{
    class Program
    {
        static void Main(string[] args)
        {
            ProcessFrame();
            System.Console.ReadKey();
        }

        internal static String faceFileName = "cascade.xml";


        private static void ProcessFrame()
        {
            Image<Bgr, Byte> frame = new Image<Bgr, Byte>("006.jpg");
            CascadeClassifier face = new CascadeClassifier(faceFileName);
            Image<Gray, Byte> gray = frame.Convert<Gray, Byte>();


                Rectangle[] facesDetected2 = face.DetectMultiScale(
                        gray,
                        1.1,
                        4,
                        new Size(60, 60),
                        new Size(150,150));

                foreach (Rectangle f in facesDetected2)
                {
                    frame.Draw(f, new Bgr(Color.Blue), 2);
                }

            frame.Save("result.jpg");

        }
    }
}

the problem is that the program is not in a recognizable object on any of the images from a set positives

My files: http://www.datafilehost.com/d/d7603af5

What am I doing wrong ?

2014-03-21 09:51:11 -0600 asked a question if opencv_traincascade learning crashed

What can be done, if the training is stopped by switching off the computer ?

2014-03-19 09:43:36 -0600 commented question OpenCV halt system

Thank you.As in this case, a program to train faces in excess of this size? All of them must be reduced to 60 * 60?

2014-03-18 00:02:46 -0600 asked a question grayscale or not

I use opencv_traincascade.exe in 2.4.8 for Haar leraning. Do I really need a positive and a negative image to translate in the gray scale ?

2014-03-14 10:33:02 -0600 asked a question OpenCV halt system

I run opencv using this command, or the system crashes, or trying to stop a running process because of lack of memory. My computer has 4GB of memory, of them freely over half.

opencv_traincascade.exe -data haarcascade -vec positives.vec -bg negatives.dat -numStages 16 -minhitrate 0.999 -maxFalseAlarmRate 0.4 -numPos 282 -numNeg 500 -w 119 -h 119 -mode ALL -precalcValBufSize 512 -precalcIdxBufSize 512

2014-03-07 09:42:10 -0600 asked a question Sample size

Whether there will be accepted a recognition in case of the identical sizes at positive and negative examples?

2014-02-28 03:14:11 -0600 asked a question C# I have cascade.xml. How to detect face on image with it basically ?

Give basic samples, please.

2014-02-21 00:27:36 -0600 asked a question opencv_createsamples 2.4.8 parse error

All files and folders are existing. I have good.dat: good\0.bmp 0 0 99 51 good\1.bmp 9 7 55 103 Then I run in console C:\opencv\opencv\build\x64\vc12\bin\opencv_createsamples.exe -info good.dat -vec good.vec -w 50 -h 50 -num 2. Is there parameters errors ? How to repair it ?image description I have in use windows 8 x64.

2014-02-20 23:11:24 -0600 asked a question How to rebuild files in bin folder on my system (2.4.8) ?

How can I do it ?

2014-02-20 12:52:33 -0600 asked a question OpenCV 2.4.7 training error

image description What does this mistake and how to correct it mean?

2014-02-20 12:41:19 -0600 received badge  Scholar (source)
2014-02-20 00:45:32 -0600 asked a question Negative samples in one file

Can I create negative sample dat file like positive sample ? Like bad\0.bmp and coordinates of many samples in this image file ?

2014-02-08 06:52:08 -0600 asked a question any cvloadimage analogue for OpenCvSharp

Is there this method analogue ?