Ask Your Question

govardhana padavala's profile - activity

2017-04-13 13:44:53 -0600 received badge  Notable Question (source)
2016-03-17 01:46:09 -0600 received badge  Popular Question (source)
2014-10-06 01:53:13 -0600 commented question Line detection as only one line

hi peter,

put your entire code here then easy to understand exactly what is goingon in code

Thank you,

it's gov...

2014-10-06 01:42:26 -0600 commented question OpenCV 3.0 Alpha

hi joe, this is for both bits, here the problem is 3.0.0 is testing version when we are working with any project we should use stable version here advanced stable version of opencv 2.4.9 only, we are expecting 3.0.0 stable version in further days..

Thank you, it's gov...

2014-10-06 01:28:12 -0600 answered a question How to perform changes in both sub-image and original image ?

Hi jawahar, your intesion was clear but problem in you code. That is you need to declare the matrix(mat) object coordinates then your will get expected output, here you missed out the mat object coordinates

Thank you, its gov...

2014-10-06 01:13:21 -0600 commented question How to compile the example "facerec_video.cpp"?

hi andrei, put you entire code once then easy to found where is problem, and in your question there is ambiquity too..

2014-10-01 06:04:25 -0600 asked a question alternative to opencv tool

Hi,

I have been working on opencv with c++, but i feel like there is any alternative to opencv tool. Please tell me guys. give me alternative to this

Thanking you.

It's gov...

2014-10-01 05:46:38 -0600 commented answer Unhandled exception at imwrite(),findcontours() in visual studio 2008 with opencv 3.0.0 alpha version

compatibility means, i have installed opencv lib files successfully (because while declaring opencv headerfiles i didnt get any error or warning messages) and i have declared the imread function like cv::Mat img = cv::imread("D:\images\equation.jpg",0); so problem in these two statements then i felt here system downgrade problem..

2014-09-30 23:40:36 -0600 answered a question I can't find opencv_createsamples.exe in opencv3.0.0-alpha

yah, Mr.berak right, with the version of opencv3.0.0 you didnt get expected output as well with that you may face any ambiguity too. why not you can go for 2.4.9 it is comfortable as well stable version anything is available there, 3.0.0 developing version. you may get success full .exe with 2.4.9

thank you it's gov

2014-09-30 23:27:38 -0600 commented answer Unhandled exception at imwrite(),findcontours() in visual studio 2008 with opencv 3.0.0 alpha version

i felt this is compatibility problem? what s ur openion mr.boaz001

2014-09-30 23:25:59 -0600 commented answer Unhandled exception at imwrite(),findcontours() in visual studio 2008 with opencv 3.0.0 alpha version

thank you for your interest, but im getting same error like "CXX0030: Error: expression cannot be evaluated " , at imread("equation.jpg",0); staring function.

once again thank you, please help me

2014-09-30 04:04:48 -0600 commented question working with opencv2.4.9, vs2008 express and windows xp,between these any compatibility problem

this is not duplicate, try to understand again

2014-09-30 03:57:58 -0600 commented question Unhandled exception at imwrite(),findcontours() in visual studio 2008 with opencv 3.0.0 alpha version

boaz001@ anything more.... rather than that?

2014-09-30 02:35:51 -0600 asked a question working with opencv2.4.9, vs2008 express and windows xp,between these any compatibility problem

Hi guys,

From last fews im working on opencv. Initially i started with opencv 3.0.0, vs2008 express, and windowsxp so, while working with this i got exception at imwrite() and findcontours(). After some suggestion i went to opencv 2.4.9. Now my system opencv 2.4.9, vs2008 express and windowsxp then again im again getting exception but now at imread(),it is first function in my program so i decided this may any compatibility problem...!

mycode:

include <cxcore.h>

include <highgui.h>

include <string>

include <iostream>

include <cv.h>

include "opencv2/objdetect/objdetect.hpp"

include "opencv2/highgui/highgui.hpp"

include "opencv2/imgproc/imgproc.hpp"

include "opencv2/core/core.hpp"

include <iostream>

include <windows.h>

ifdef _CH_

pragma package <opencv>

endif

ifndef _EiC

include "cv.h"

include "highgui.h"

include "ml.h"

include <stdio.h>

include <stdlib.h>

include <ctype.h>

endif

using namespace std; using namespace cv;

int getContours() { cv::Mat img = cv::imread("equation.jpg", 0);//Here im getting exception

//Apply blur to smooth edges and use adapative thresholding cv::Size size(3,3); cv::GaussianBlur(img,img,size,0); adaptiveThreshold(img, img,255,CV_ADAPTIVE_THRESH_MEAN_C, CV_THRESH_BINARY,75,10); cv::bitwise_not(img, img);

cv::Mat img2 = img.clone();

std::vector<cv::point> points; cv::Mat_<uchar>::iterator it = img.begin<uchar>(); cv::Mat_<uchar>::iterator end = img.end<uchar>(); for (; it != end; ++it) if (*it) points.push_back(it.pos());

cv::RotatedRect box = cv::minAreaRect(cv::Mat(points));

double angle = box.angle; if (angle < -45.) angle += 90.;

cv::Point2f vertices[4]; box.points(vertices); for(int i = 0; i < 4; ++i) cv::line(img, vertices[i], vertices[(i + 1) % 4], cv::Scalar(255, 0, 0), 1, CV_AA);

cv::Mat rot_mat = cv::getRotationMatrix2D(box.center, angle, 1);

cv::Mat rotated; cv::warpAffine(img2, rotated, rot_mat, img.size(), cv::INTER_CUBIC);

cv::Size box_size = box.size; if (box.angle < -45.) std::swap(box_size.width, box_size.height); cv::Mat cropped;

cv::getRectSubPix(rotated, box_size, box.center, cropped); cv::imshow("Cropped", cropped); imwrite("example5.jpg",cropped);

    Mat cropped2=cropped.clone();

cvtColor(cropped2,cropped2,CV_GRAY2RGB);

Mat cropped3 = cropped.clone(); cvtColor(cropped3,cropped3,CV_GRAY2RGB);

vector<vector<point> > contours; vector<vec4i> hierarchy;

/// Find contours cv:: findContours( cropped, contours, hierarchy, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_TC89_KCOS, Point(0, 0) );

/// Approximate contours to polygons + get bounding rects and circles vector<vector<point> > contours_poly( contours.size() ); vector<rect> boundRect( contours.size() ); vector<point2f>center( contours.size() ); vector<float>radius( contours.size() );

//Get poly contours for( int i = 0; i < contours.size(); i++ ) { approxPolyDP( Mat(contours[i]), contours_poly[i], 3, true ); }

//Get only important contours, merge contours that are within another vector<vector<point> > validContours; for (int i=0;i<contours_poly.size();i++){< p="">

            Rect r = boundingRect(Mat(contours_poly[i]));
            if(r.area()<100)continue;
            bool inside = false;
            for(int j=0;j<contours_poly.size();j++){
                    if(j==i)continue;

                    Rect r2 = boundingRect(Mat(contours_poly[j]));
                    if(r2.area()<100||r2.area()<r.area())continue;
                    if(r.x>r2.x&&r.x+r.width<r2.x+r2.width&&
                            r.y>r2.y&&r ...
(more)
2014-09-30 00:13:15 -0600 commented question Unhandled exception at imwrite(),findcontours() in visual studio 2008 with opencv 3.0.0 alpha version

Hi friends, i got edited again my code, this time i went for opencv 2.4.9 instead of 3.0.0 so but now im getting unhandled exception again at (first function of opencv in my program) imread(). So please guys try to understand me..

Please give suggession thank you...

2014-09-29 23:10:56 -0600 commented question Unhandled exception at imwrite(),findcontours() in visual studio 2008 with opencv 3.0.0 alpha version

boaz001@i will try again sir,Thank you

2014-09-26 06:44:19 -0600 received badge  Scholar (source)
2014-09-26 06:28:28 -0600 commented answer what is difference between opencv and opencvsharp

googling is big habit..i dont want interest to adapt it.. and also there is chance of bias results, even correct results too. but i dont like such way thank you

2014-09-26 05:30:04 -0600 commented answer Access Violation error with findContours

how can u say that, it exactly write or not

2014-09-26 01:24:07 -0600 asked a question what is difference between opencv and opencvsharp

Hi, I did small project on opencv and looking for try to write a programing on c#, in such a away i googled and binged, finally i got opencvsharp.Still now i didnt get anything about this.

Could any one help me

Thanking you.

it's gov...

2014-09-26 00:35:03 -0600 commented answer opencv 2.4.9 compatibility of which version visual studio and windows which OS

thank you for reply, but here i didnt introduce cmake because there is chance of making image processing without that too, so i followed that version. sory to say like this im not satisfied with your answer sir, once again thank you. im hoping for better solution

2014-09-25 23:20:07 -0600 commented question Unhandled exception at imwrite(),findcontours() in visual studio 2008 with opencv 3.0.0 alpha version

hello Mr.boaz001.. here i copied only main code okay.... im my program i put all these.. okay i will again put my entire code

2014-09-25 06:08:20 -0600 commented question Unhandled exception at imwrite(),findcontours() in visual studio 2008 with opencv 3.0.0 alpha version

yaah, i posted my code now.. would you do any help now

2014-09-25 06:05:24 -0600 received badge  Editor (source)
2014-09-25 05:21:13 -0600 commented question Unhandled exception at imwrite(),findcontours() in visual studio 2008 with opencv 3.0.0 alpha version

without mycode, how could you telling like that.... there no errors in my code.. it showing exception.,... did you get my problem '

2014-09-25 01:40:30 -0600 asked a question Unhandled exception at imwrite(),findcontours() in visual studio 2008 with opencv 3.0.0 alpha version

Hi, I am using opencv 3.0.0 alpha advanced version in windows xp with visual studio 2008. In my project, while im working with imwrite() function and findcontours(), programme giving exception like " unhandled exception at location and access violation ".

So please give me solution to this.

Im getting iritation with this exception. this is my code.....

include <cxcore.h>

include <highgui.h>

include <string>

include <iostream>

include <cv.h>

include "opencv2/objdetect/objdetect.hpp"

include "opencv2/highgui/highgui.hpp"

include "opencv2/imgproc/imgproc.hpp"

include "opencv2/core/core.hpp"

include <iostream>

include <windows.h>

ifdef _CH_

pragma package <opencv>

endif

ifndef _EiC

include "cv.h"

include "highgui.h"

include "ml.h"

include <stdio.h>

include <stdlib.h>

include <ctype.h>

endif

using namespace std; using namespace cv;

void main() { cv::Mat img = cv::imread("D:\mahi images\equation.jpg", 0); imshow("",img);waitKey(0);

    cv::Size size(3,3);
    cv::GaussianBlur(img,img,size,0);
    adaptiveThreshold(img, img,255,CV_ADAPTIVE_THRESH_MEAN_C, CV_THRESH_BINARY,75,10);
    cv::bitwise_not(img, img);

    cv::Mat img2 = img.clone();

    std::vector<cv::Point> points;
    cv::Mat_<uchar>::iterator it = img.begin<uchar>();
    cv::Mat_<uchar>::iterator end = img.end<uchar>();
    for (; it != end; ++it)
    if (*it)
        points.push_back(it.pos());

    cv::RotatedRect box = cv::minAreaRect(cv::Mat(points));

    double angle = box.angle;
    if (angle < -45.)
    angle += 90.;

    cv::Point2f vertices[4];
    box.points(vertices);
    for(int i = 0; i < 4; ++i)
    cv::line(img, vertices[i], vertices[(i + 1) % 4], cv::Scalar(255, 0, 0), 1, CV_AA);  

    cv::Mat rot_mat = cv::getRotationMatrix2D(box.center, angle, 1);

    cv::Mat rotated;
    cv::warpAffine(img2, rotated, rot_mat, img.size(), cv::INTER_CUBIC);

    cv::Size box_size = box.size;
    if (box.angle < -45.)
    std::swap(box_size.width, box_size.height);
    cv::Mat cropped;

    cv::getRectSubPix(rotated, box_size, box.center, cropped);
    cv::imshow("Cropped", cropped);waitKey(0);
    imwrite("example5.jpg",cropped);

Mat cropped2=cropped.clone();
    cvtColor(cropped2,cropped2,CV_GRAY2RGB);

    Mat cropped3 = cropped.clone();
    cvtColor(cropped3,cropped3,CV_GRAY2RGB);

    vector<vector<Point> > contours;
    vector<Vec4i> hierarchy;

    cv:: findContours( cropped, contours, hierarchy, CV_RETR_EXTERNAL,       CV_CHAIN_APPROX_TC89_KCOS, Point(0, 0) );

    vector<vector<Point> > contours_poly( contours.size() );
    vector<Rect> boundRect( contours.size() );
    vector<Point2f>center( contours.size() );
    vector<float>radius( contours.size() );

for( int i = 0; i < contours.size(); i++ )
    { 
     approxPolyDP( Mat(contours[i]), contours_poly[i], 3, true );
    }


    vector<vector<Point> > validContours;
for (int i=0;i<contours_poly.size();i++){   
    Rect r = boundingRect(Mat(contours_poly[i]));
    if(r.area()<100)continue; 
    bool inside = false;
    for(int j=0;j<contours_poly.size();j++){
        if(j==i)continue;

        Rect r2 = boundingRect(Mat(contours_poly[j]));
        if(r2.area()<100||r2.area()<r.area())continue;
        if(r.x>r2.x&&r.x+r.width<r2.x+r2.width&&
            r.y>r2.y&&r.y+r.height<r2.y+r2.height){

            inside = true;
        }
    }
    if(inside)continue;
    validContours.push_back(contours_poly[i]);
}


//Get bounding rects
for(int i=0;i<validContours.size();i++){
    boundRect[i] = boundingRect( Mat(validContours[i]) );
}


//Display
    Scalar color = Scalar(0,255,0);
    for( int i = 0; i< validContours.size(); i++ )
    {
      if(boundRect[i].area ...
(more)
2014-09-25 01:25:29 -0600 asked a question opencv 2.4.9 compatibility of which version visual studio and windows which OS

Hi every body, Iam new person to this tool, im using vs2008 and opencv 2.4.9 while im using mat object in my program i am getting error like "Microsoft Visual Studio C Runtime Library has detected a fatal error in filename.exe", i unable to find the solution to this.So finally i decided this is compatibility problem. Here what i felt is correct or not, help me any one please, thank you. it's gov...

2014-09-12 00:38:07 -0600 received badge  Critic (source)
2014-09-12 00:37:59 -0600 received badge  Supporter (source)
2014-08-27 01:18:44 -0600 commented question Using Mat objects in OpenCV2.4.9 in MS VS 2008

Hi, im also fresher to this tool, like you i did sample program in opencv2.4.9 with c++ vs2008, as usual like while im working with iplimage no problem im getting 100% output, coming to mat object im getting runtime error that is "microsoft visual studio, c runtime library has detected a fatal error in filename.exe." i dont why it s happening, tell me any solution, may i felt is this any compactibility problelm? tel anybody, thank you