Ask Your Question

shiv.butekar's profile - activity

2019-02-19 19:45:09 -0600 received badge  Famous Question (source)
2018-01-11 19:14:41 -0600 received badge  Notable Question (source)
2017-10-01 11:23:20 -0600 received badge  Student (source)
2016-07-29 08:05:23 -0600 received badge  Popular Question (source)
2014-03-17 10:41:33 -0600 asked a question how haar cascade is orginized in opencv

I have haarcascade_frontalface_alt.xml file in iopencv
i am doing project in cuda using opencv xml file

what is stage ,tree ,values as <_>3 7 14 4 -1. <_>3 9 14 2 2.</rects> what is the meaning of 37 14 4 -1 and
and secondly 3 9 14 2 2 . what is threshold left val ,right val please give me suggestion or link where i can find these answer

2014-03-16 09:27:05 -0600 asked a question what is wrong with my code it run but it shows nearly half of the image in dup window
    #include<opencv2/highgui/highgui.hpp>
     #include<stdio.h>
     #include<iostream>
     using namespace cv;
     using namespace std;
      int main()
     {float i;
   namedWndow("orig",CV_GUI_EXPANDED);
   namedWindow("dup",CV_GUI_EXPANDED);
    Mat img = imread("/home/vaibhav/program/c/a.jpeg",CV_LOAD_IMAGE_COLOR);
    unsigned char *ptr=img.data;
    Mat n(img.rows,img.cols,img.type());
    unsigned char *ptr2=n.data;
     for( i=0;i<(float)(img.size().height)*(img.size().width);i++)
      {
          *ptr2=*ptr;
          ptr++;
          ptr2++;
    }
    imshow("orig",img);
    imshow("dup",n);
     waitKey(0);

    return 0;
    }
2014-03-15 12:21:25 -0600 asked a question haar feature applicatin in cuda without using inbuilt function

hi I am trying to detect faces on gpu without using opencv function please give me advice How to apply haarcascade file in opencv on pixel if u have any advice or any link to c/cpp/cuda code please give me

2014-03-15 12:11:45 -0600 commented question GPU API call (unknown error) in unknown function in gpumat.hpp

please add ur code

2014-03-14 03:20:29 -0600 commented question how to convert pixel intensities into values rgb values

i am using cuda to to convert the image to gray hence i need a dirrect access to pixel values

2014-03-14 02:41:33 -0600 asked a question how to convert pixel intensities into values rgb values
    i have following code 
    Mat image;
    image =initialize to CV_8CU3 ie bgr image
    ptr=(unsigned int *)image.data;
    cout<<*ptr;
    Now i will get a value of first pixel(example 2156890498 or 2222951812 or 2374403213)
    now i want to convert that value into RGB format so that i can convert that value into
    gray scale value  using formula (0.299R + 0.587G + 0.114B)
    how i can do that please provide solution 
    i am using cuda programming and opencv
    thanks in advance
2014-03-12 10:34:16 -0600 commented question i have one problem using cuda+opencv+nsight eclipse

no i dont see any error it show core dumped

2014-02-24 04:22:43 -0600 answered a question Store mat data in txt

here i have a code that works fine in my pc let me know if u have any problem

    int main(int argc, char** argv)
    {
  Mat image;
 VideoCapture cap(0);
 cap>>image;
int i=image.type();
 cout<<i;//if it prints 16 then your data pointer is int unsigned 

 ofstream fout("file.txt");
int unsigned *ptr;
ptr=(unsigned int *)image.data;

 for(int i=0; i<(image.rows); i++)
{
    for(int j=0; j<image.cols; j++){
        fout<<*ptr<<"\t";
        ptr++;
    }
    fout<<endl;
}
fout.close();

}

2014-02-24 03:51:35 -0600 asked a question i am new at iopencv

i want to know how a color image is stored in matrix what are the vales of each cell how is bgr combination is being managed how much bytes it take to store the each pixel thaks in advance

2014-02-20 10:08:22 -0600 commented answer how to obtain an address of image in memory

let us take image is CV_32F Mat img; float * data ; data= ??? i want to access value in the first cell of a matrix how to do that

2014-02-20 10:03:40 -0600 answered a question Quesion on OpenCV used in Eclipse Linux

have u used cmake for ur opencv

2014-02-20 07:36:49 -0600 asked a question how to obtain an address of image in memory

I am having a object of image declared as Mat img; now how to get the address of zeroth row and zeroth column in memory

in what datatype it will be? how many bytes it takes to store value in one single cell of matrix?

2014-02-20 03:38:11 -0600 answered a question face detection

i suggest u to see totorial and make one project this is not a question of 1 line answer

2014-02-20 03:35:42 -0600 answered a question What paths do I need after the install?

have you done cmake see the totorial on you tube following are some guidline but i suggest u to see those tutorial

you need to set environment veriable go to mycomputer property->advanced syatem setting ->environment verable ->system veriable->path->at end give the path of bin directory of opencv which is appropriate to your system

then go to vs c++ 2013 create project right click on project properties ->add the include directory and add lib name each then addd lib path

2014-02-19 11:48:23 -0600 asked a question i have one problem using cuda+opencv+nsight eclipse

the following program works fine in my pc

    #include<opencv2/gpu/gpu.hpp>
    #include <opencv2/opencv.hpp>
    using namespace std;
    using namespace cv;
    using namespace cv::gpu;
    int main(int argc, char** argv)
    {
 VideoCapture cap(0);
    if(!cap.isOpened()) return -1;
    Mat host_frame,device_frame;
    namedWindow("host ",CV_GUI_EXPANDED);
    namedWindow("device ",CV_GUI_EXPANDED);
    GpuMat device_image1,device_image2;


setDevice(0);
for(;;)
{
    cap>>host_frame;
     device_image1.upload(host_frame);

    device_image1.copyto((device_image2);  //cv::gpu::cvtColor(device_image2,device_image2,CV_BGR2GRAY);
    device_image2.download(device_frame);
    imwrite("host",host_frame);
    imwrite("device",device_frame);


       waitKey(1);
}}

but tbut when ever i call any function such as cv::gpu::cvtColor() giving parameter apropriate it compile but terminate at run time any solution to this problem thanks in advance please give me solution

2014-02-14 02:55:30 -0600 received badge  Editor (source)
2014-02-14 02:49:52 -0600 asked a question please help me warning: Error opening file (/home/vaibhav/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:553)

i am using opencv to display a video my code is as #include<opencv2 highgui="" highgui_c.h=""> #include <cv.h> #include <opencv cv.hpp=""> #include <opencv2 opencv.hpp=""> #include <cvaux.h> #include <cxcore.h> #include <stdio.h> #include <highgui.h> #include <stdlib.h> #include <opencv2 core="" core.hpp=""> #include <opencv2 highgui="" highgui.hpp=""> #include <iostream>

using namespace cv;
int main( int argc, char ** argv )
{
CvCapture* capture;
cvNamedWindow( "video", CV_WINDOW_AUTOSIZE ); 
capture = cvCreateFileCapture("/home/vaibhav/program/c/w.avi");
IplImage* frame;
while(1){
frame = cvQueryFrame( capture );
if( !frame ) break;
cvShowImage( "video", frame );
char c = cvWaitKey(33);
if( c == 27 ) break;
}

cvReleaseCapture( &capture );

cvDestroyWindow( "Webcam" );

return 0; }

the program compiles but it give error when try to run it

i am using ubuntu 12.04 and eclipse

warning: Error opening file (/home/vaibhav/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:553)

please help me