Ask Your Question

Mark's profile - activity

2018-03-30 00:58:06 -0600 edited question Image Processing Filter

Image Processing Filter I have to find out the border of the area which are marked as red color circle. Here's an exampl

2018-03-19 02:37:46 -0600 received badge  Supporter (source)
2018-02-06 03:58:59 -0600 commented question detect control from Winform image with OpenCV

Thanks for answer but it will work only this image only. Please look Example2.png in my original question. Where i have

2018-02-06 03:57:33 -0600 commented question detect control from Winform image with OpenCV

Thanks for answer but it will work only this image only. Please look Example2.png in my original question. Where i have

2018-02-06 03:47:32 -0600 edited question detect control from Winform image with OpenCV

detect control from Winform image with OpenCV Hello Sir, Sample form C:\fakepath\controlsample.png C:\fakepath\Exampl

2018-02-06 01:53:54 -0600 edited question detect control from Winform image with OpenCV

detect control from Winform image with OpenCV Hello Sir, C:\fakepath\controlsample.png Please look the attached image i

2018-02-06 01:52:55 -0600 edited question detect control from Winform image with OpenCV

detect control from Winform image with OpenCV Hello Sir, C:\fakepath\controlsample.png Please look the attached image i

2018-02-06 01:51:49 -0600 asked a question detect control from Winform image with OpenCV

detect control from Winform image with OpenCV Hello Sir, C:\fakepath\controlsample.png Please look the attached image i

2018-01-03 05:58:14 -0600 commented answer HoG detectMultiScale API not able to detect exact object

Please give me some hint,how to get correct result?

2017-12-01 06:14:44 -0600 received badge  Enthusiast
2017-11-28 23:03:23 -0600 commented answer HoG detectMultiScale API not able to detect exact object

Can you guide me at where i am missing?

2017-11-28 05:52:55 -0600 commented answer HoG detectMultiScale API not able to detect exact object

Thanks Sir, Yes I want to capture only "App Service" image. My aim is that my selected ("App Service") image should be

2017-11-28 05:08:02 -0600 commented answer HoG detectMultiScale API not able to detect exact object

Thanks It working with match Weights >0.80 and able to give correct result. It is not working different scaling like

2017-11-28 05:01:57 -0600 commented question HoG detectMultiScale API not able to detect exact object

templateMatching found only matching one image and it is time consuming

2017-11-28 04:57:55 -0600 commented answer HoG detectMultiScale API not able to detect exact object

Thanks It working with match Weights >0.80 and able to give correct result. It is not working different scaling like

2017-11-28 04:53:55 -0600 received badge  Editor (source)
2017-11-28 04:53:55 -0600 edited question HoG detectMultiScale API not able to detect exact object

HoG detectMultiScale API not able to detect exact object Hello Sir, I want detect object from image. Study Hog from htt

2017-11-28 04:41:50 -0600 commented answer HoG detectMultiScale API not able to detect exact object

Thanks It working with match Weights >0.80 and able to give correct result. It is not working different scaling like

2017-11-28 03:40:48 -0600 marked best answer HoG detectMultiScale API not able to detect exact object

Hello Sir,

I want detect object from image. Study Hog from https://www.learnopencv.com/histogram...

Source image with different scale

C:\fakepath\AppService.png C:\fakepath\filename=4075.png C:\fakepath\filename=12068.png C:\fakepath\filename=12936.png C:\fakepath\filename=31908.png

2)Create 30 negative image. Please see below images as a some negative sample.

C:\fakepath\filename=4037.png
C:\fakepath\filename=7277.png
C:\fakepath\Negative=2300.png

3)Using this example for train and test HOG https://github.com/opencv/opencv/blob... I modify main function only to give fix path for above image .

int main()
{
    const char* keys =
    {
        "{help h|     | show help message}"
        "{pd    |     | path of directory contains positive images}"
        "{nd    |     | path of directory contains negative images}"
        "{td    |     | path of directory contains test images}"
        "{tv    |     | test video file name}"
        "{dw    |     | width of the detector}"
        "{dh    |     | height of the detector}"
        "{d     |false| train twice}"
        "{t     |false| test a trained detector}"
        "{v     |false| visualize training steps}"
        "{fn    |my_detector.yml| file name of trained SVM}"
    };


    string pos_dir = "D:\\HogImage\\Positive ";
    string neg_dir = "D:\\HogImage\\Negative";

    //String pos_dir = parser.get< String >("pd");
    //String neg_dir = parser.get< String >("nd");
    String test_dir = "D:\\1\\P";// parser.get< String >("td");
    String obj_det_filename = "D:\\1\\de.ylm";// parser.get< String >("fn");
    int detector_width = 80;// 83;
    int detector_height = 16;
    bool test_detector = false;  //parser.get< bool >("t");
    bool train_twice = true;// parser.get< bool >("d");
    bool visualization = true;// parser.get< bool >("v");
    string videofilename = "D:\\1\\sa.png";
    if (test_detector)
    {
        test_trained_detector(obj_det_filename, test_dir, videofilename);
        return 0;
    }

    if (pos_dir.empty() || neg_dir.empty())
    {   
        }

    vector< Mat > pos_lst, full_neg_lst, neg_lst, gradient_lst;
    vector< int > labels;

    clog << "Positive images are being loaded...";
    load_images(pos_dir, pos_lst, visualization);

    if (pos_lst.size() > 0)
    {
        clog << "...[done]" << endl;
    }
    else
    {
        clog << "no image in " << pos_dir << endl;
        return 1;
    }

    Size pos_image_size = pos_lst[0].size();

    for (size_t i = 0; i < pos_lst.size(); ++i)
    {
        if (pos_lst[i].size() != pos_image_size)
        {
            cout << "All positive images should be same size!" << endl;
            exit(1);
        }
    }

    pos_image_size = pos_image_size / 8 * 8;

    if (detector_width && detector_height)
    {
        pos_image_size = Size(detector_width, detector_height);
    }

    labels.assign(pos_lst.size(), +1);
    const unsigned int old = (unsigned int)labels.size();

    clog << "Negative images are being loaded...";
    load_images(neg_dir, full_neg_lst, false);
    sample_negex(full_neg_lst, neg_lst, pos_image_size);
    clog << "...[done]" << endl;

    labels.insert(labels.end(), neg_lst.size(), -1);
    CV_Assert(old < labels.size());

    clog << "Histogram of Gradients are being calculated for positive images...";
    computeHOGs(pos_image_size, pos_lst, gradient_lst);
    clog << "...[done]" << endl;

    clog << "Histogram of Gradients are being calculated for negative images...";
    computeHOGs(pos_image_size, neg_lst, gradient_lst);
    clog << "...[done]" << endl;

    Mat train_data;
    convert_to_mlex(gradient_lst, train_data);

    clog << "Training SVM...";
    Ptr< SVM > svm = SVM::create();
    /* Default ...
(more)
2017-11-28 03:40:48 -0600 received badge  Scholar (source)
2017-11-27 00:53:46 -0600 asked a question HoG detectMultiScale API not able to detect exact object

HoG detectMultiScale API not able to detect exact object Hello Sir, I want detect object from image. Study Hog from htt

2012-09-06 23:49:30 -0600 commented question Image Processing Filter

Thanks for reply Here i want to find out the border which inside of the red color circle only. I have try different idea ,but could not success.

2012-09-06 13:06:48 -0600 received badge  Nice Question (source)
2012-09-04 08:01:29 -0600 received badge  Student (source)
2012-09-04 07:14:56 -0600 asked a question Image Processing Filter

I have to find out the border of the area which are marked as red color circle. Here's an example image of one object.

Can you help me the way to find this four different border?
Which filter should i use to find out this border?