Ask Your Question

vps's profile - activity

2020-12-04 06:36:50 -0500 received badge  Famous Question (source)
2020-11-15 01:16:40 -0500 marked best answer Drawing the Rectangle around the line

Hi All, As shown in the picture. I have two end point of line. I want to draw the rectangle by considering these points are the middle points of the two sides. It will be great, if anyone suggest me the easy way. image description

Thank you.

2020-06-04 01:34:56 -0500 received badge  Popular Question (source)
2020-04-16 02:49:55 -0500 received badge  Famous Question (source)
2019-09-25 05:49:27 -0500 received badge  Notable Question (source)
2019-04-10 03:16:57 -0500 commented question Unable to save video file from camera

It is working when I have installed a proper fourcc codec.

2019-04-09 03:12:08 -0500 asked a question Unable to save video file from camera

Unable to save video file from camera Dear all, I am trying to save the greyscale video from the camera but the output v

2019-03-26 09:27:51 -0500 commented question Capture the frame from iDS uEye camera.

Yeah, I kept the maximum height and width of the image and it is working.

2019-03-22 09:14:09 -0500 edited question Capture the frame from iDS uEye camera.

Capture the frame from iDS uEye camera. Dear all, I am using the USB 3.0 iDS uEye UI-3241LE-MGL model. I am trying to ge

2019-03-22 09:13:22 -0500 asked a question Capture the frame from iDS uEye camera.

Capture the frame from iDS uEye camera. Dear all, I am using the USB 3.0 iDS uEye UI-3241LE-MGL model. I am trying to ge

2019-02-08 06:21:15 -0500 received badge  Notable Question (source)
2019-02-06 09:44:23 -0500 commented question Calculation of eigenvalues and eigenvectors for contour

Thank you. I am able to calculate eigenvecors by PCA.

2019-02-06 09:43:26 -0500 commented answer Calculation of eigenvalues and eigenvectors for contour

Thanks for the suggestion @LBerger, As suggested by @berak, I have used PCA method to calculate the eigenvectors.

2019-02-05 10:07:49 -0500 asked a question Calculation of eigenvalues and eigenvectors for contour

Calculation of eigenvalues and eigenvectors for contour Hi, I am trying to calculate eigenvectors but I am getting huge

2019-01-30 05:18:33 -0500 edited question Calculate the disparity value for specific point

Calculate the disparity value for specific point Hi All, I have left and right rectified image. Suppose, I have p(xl, yl

2019-01-30 05:17:06 -0500 edited question Calculate the disparity value for specific point

Calculate the disparity value for only 1000 pixels Hi All, I have left and right rectified image. I am trying to calcula

2019-01-30 05:06:43 -0500 edited question Calculate the disparity value for specific point

Calculate the disparity value for 1000 points Hi All, I have left and right rectified image. I am trying to calculate di

2019-01-30 05:05:12 -0500 asked a question Calculate the disparity value for specific point

Calculate the disparity value for 1000 points Hi All, I have left and right rectified image. I am trying to calculate di

2019-01-21 06:26:02 -0500 commented answer Problem with cuda hog people detection

@sturkmen It is not too much. For CPU version requires 75 msec and GPU HOG takes 50msec.

2019-01-18 10:22:01 -0500 commented answer SVM on CUDA

@berak..Nowadays, CUDA is very important to speed the process. Sure, if I achieve something important, I will happy to c

2019-01-18 10:16:24 -0500 commented answer SVM on CUDA

@berak..Thnak you for the links. But maybe the Cuda SVM version will be updated in the next OpenCV version release. :)

2019-01-18 10:07:24 -0500 commented answer SVM on CUDA

@berak..yeah, I have only this and hog GPU code. But maybe the Cuda SVM version will be updated in the next OpenCV versi

2019-01-18 09:59:37 -0500 commented answer SVM on CUDA

@berak..Thanks for the reply. You are correct :) Actually, I want to use the support vector file which I have trained by

2019-01-18 09:49:36 -0500 commented question Imread does not read the file

Can you add your code in question? I have tried the same code with the same image. It is working for me.

2019-01-18 09:46:34 -0500 commented answer Imread does not read the file

I thought you are using the exact code with the same image. can you add your code in question? cause I have tried same c

2019-01-18 09:29:39 -0500 edited answer Imread does not read the file

Try this 1) Add HappyFish.jpg image inside the folder. 2) Then change.. String imageName( "HappyFish.jpg" ); or you ca

2019-01-18 09:26:32 -0500 answered a question Imread does not read the file

1) Add HappyFish.jpg image inside the folder. 2) Then change.. String imageName( "HappyFish.jpg" ); or you can give the

2019-01-18 09:17:10 -0500 commented question Imread does not read the file

Hi, There is no HappyFish.jpg image inside your folder. Can you verify it?

2019-01-18 09:06:51 -0500 commented answer SVM on CUDA

Hi @berak, I have a few questions. 1) SVM is used in GPU version of HOG. Can we use of same detection method here? Line

2019-01-18 08:39:16 -0500 edited question SVM on CUDA

SVM GPU Version Hi, I am using SVM. I have trained SVM and stored matrix in .xml file. I want to predict the label for e

2019-01-18 08:30:57 -0500 edited question SVM on CUDA

SVM GPU Version Hi, I am using SVM. I have trained SVM and stored matrix in .xml file. I want to predict the label for e

2019-01-18 08:28:45 -0500 edited question SVM on CUDA

OpenCV SVM on CUDA Hi, I am using SVM. I have trained SVM and stored matrix in .xml file. I want to predict the label fo

2019-01-18 08:28:39 -0500 edited question SVM on CUDA

OpenCV SVM on CUDA Hi, I am using SVM. I have trained SVM and stored matrix in .xml file. I want to predict the label fo

2019-01-18 08:28:16 -0500 edited question SVM on CUDA

SVM GPU Version Hi, I am using SVM. I have trained SVM and stored matrix in .xml file. I want to predict the label for e

2019-01-18 08:27:48 -0500 asked a question SVM on CUDA

SVM GPU Version Hi, I am using SVM. I have trained SVM and stored matrix in .xml file. I want to predict the label for e

2019-01-18 07:00:50 -0500 commented question image binaryzation

Few suggestions: You can try Hough Circles detection method. Another observation, the circles are present the edges of

2019-01-18 06:47:41 -0500 commented answer Problem with cuda hog people detection

of course :) Just in case, the conversion code cvtColor(img, frame, COLOR_BGR2BGRA);

2019-01-18 06:46:19 -0500 received badge  Self-Learner (source)
2019-01-18 06:45:31 -0500 marked best answer Problem with cuda hog people detection

Hi, I am Using Cuda hog from OpenCV but the program is crashing at totalRect.size(). does anyone have an idea about this?

int main(int argc, const char * argv[]) { VideoCapture cap("leftFront.avi"); if (!cap.isOpened()) return -1;

Mat img;
cv::Ptr<cv::cuda::HOG> gpu_hog = cv::cuda::HOG::create(Size(64, 128),Size(16, 16),Size(8, 8),Size(8, 8),9);
    gpu_hog -> setSVMDetector(HOGDescriptor::getDefaultPeopleDetector());
namedWindow("video capture", CV_WINDOW_AUTOSIZE);

while (true)
{
    cap >> img;
    if (!img.data)
        continue;
    Point pt;
    cv::cuda::GpuMat roiImg;
    roiImg.upload(img);
    vector<Rect> totalRect, selectedRect;
    vector<double> conf;
    gpu_hog -> detectMultiScale(roiImg, totalRect);
    size_t i, j;
  //cout << totalRect.end() << endl;
    for (i = 0; i<totalRect.size(); i++)
    {
        Rect r = totalRect[i];
        for (j = 0; j<totalRect.size(); j++)
            if (j != i && (r & totalRect[j]) == r)
                break;
        if (j == totalRect.size())
            selectedRect.push_back(r);
    }

    for (i = 0; i<selectedRect.size(); i++)
    {
        Rect r = selectedRect[i];
        r.x += cvRound(r.width*0.1);
        r.width = cvRound(r.width*0.8);
        r.y += cvRound(r.height*0.07);
        r.height = cvRound(r.height*0.8);
        rectangle(img, r.tl(), r.br(), Scalar(0, 255, 0), 3);
        //
        pt.x = r.tl().x + cvRound(r.width / 2);
        pt.y = r.tl().y + cvRound(r.height / 2);
        cout << pt.x << pt.y << endl;

        circle(img, Point(pt.x, pt.y), 5, Scalar(0, 255, 0), 5, 8, 0);
        //circle(roiImg, Point(r.tl().x, r.tl().y), 10, Scalar(255, 0, 0), 8, 8, 0);
        //
    }

    imshow("Person Detection", img);
    if (waitKey(33) >= 0)
        break;
}
return 0;

}

2019-01-18 06:44:03 -0500 commented question Problem with cuda hog people detection

Hi @berak, I have solved the problem. I need to convert an image from BGR to BGRA for GPU HOG. Can you please close this

2019-01-18 06:43:20 -0500 commented question Problem with cuda hog people detection

Hi @berak, I have solved the problem. I need to convert an image from BGR to BGRA for GPU hOG. Can you please close this

2019-01-18 05:43:06 -0500 commented question Conversion 16bit image to 8 bit image

I think that processing on 16-bit image is not that difficult. What do you want to do exactly?

2019-01-18 05:31:03 -0500 commented question Problem with cuda hog people detection

It is working without cuda.

2019-01-18 04:58:38 -0500 edited question Problem with cuda hog people detection

Problem with cuda hog Hi, I am Using Cuda hog from OpenCV but the program is crashing at totalRect.size(). does anyone h