Ask Your Question

burakim's profile - activity

2017-04-08 13:05:45 -0500 received badge  Notable Question (source)
2014-10-25 23:44:23 -0500 received badge  Popular Question (source)
2014-04-22 10:57:30 -0500 received badge  Critic (source)
2013-06-29 17:29:05 -0500 answered a question Program crashes during findContours() execution

You should check your Contour idx number. Try replace with zero ?

2013-06-27 06:27:14 -0500 asked a question Opencv Contour Error

I want to find contours of my image then I want to draw contour using openCV. I'm using VS 2012 and OpenCV 2.4.5 I wrote sample code about finding contours and drawing contours. Bu I stacked that horrible error :) For any help I will be appreciated

void MyClass::findContoursAndDraw(cv::Mat image,int b,int g,int r)
{
findContours(image,contours,CV_RETR_LIST,CV_CHAIN_APPROX_SIMPLE);
for(int i=0;i<contours.size();i++)
{
int size=cv::contourArea(contours[i]);
if(size>500)
{
    printf("%i \n",size);
    drawContours(originalTemp,contours,i,cv::Scalar(b,g,r),2,8);        
}

}
}

void MyClass::findContoursAndDrawFilled(cv::Mat image,int b,int g,int r)
{
findContours(image,contours,CV_RETR_LIST,CV_CHAIN_APPROX_SIMPLE);
for(int i=0;i<contours.size();i++)
{
    int size=cv::contourArea(contours[i]);
    if(size>3000)
   {
    printf("%i \n",size);
    drawContours(originalImg,contours,i,cv::Scalar(b,g,r));     
}

}
}

My threshold and other necessary function works very well. But My program stacked at finding contour and drawcontour function. Says that:

 Unhandled exception at 0x00B3A52A (opencv_imgproc245d.dll) in OpencvTest.exe: 
 0xC0000005: Access violation reading location 0xCDCDCDCD
2013-01-29 08:43:53 -0500 received badge  Teacher (source)
2013-01-25 01:15:34 -0500 received badge  Self-Learner (source)
2013-01-24 20:57:36 -0500 answered a question opencv cannot access my webcam

Thanks for repling Alexander Smorkalov but i found solution. Actualy, I could not install properly,

I solved my problem few minutes ago. And I decided share my solution for people who handling similar error.

First I didnt install some of below packets ( I dont remember which of them, so I paste all of them)

libjpeg62-dev

libtiff4-dev

zlib1g-dev

libjasper-dev

libavcodec-dev

libdc1394-22-dev

libgstreamer0.10-dev

libgstreamer-plugins-base0.10-dev

libavformat-dev

libv4l-dev

libswscale-dev

Then You should configure your cmake process with this code

cmake -D CMAKE_BULD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON USE_V4L=ON WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON USE_GStreamer=ON .. Please notice USE_V4L=ON this code..

I hope you solve after reading my solution.

2013-01-20 05:59:23 -0500 asked a question opencv cannot access my webcam

Hi Everyone,

I have trouble with accesing webcam using opencv 2.4.3.

I googled almost everywhere but i can not solve my problem.


My System:

Hp Probook 4530s - HP Fixed HD Webcam

Ubuntu 12.10

OpenCV 2.4.3

İf I want to capture my built-in camera i get ERROR: capture is NULL

I'm using http://opencv.willowgarage.com/wiki/CameraCapture sample code.

I also tried with xawtv -hwscan using typing terminal. I get this output:

looking for available devices
port 129-144

type : Xvideo, image scaler
name : Intel(R) Textured Video`


/dev/video0: OK    
                 [ -device /dev/video0 ]
type : libv4l

name : HP HD Webcam [Fixed]

flags:  capture

then I can acces my webcam typing xawtv video0. I think I have no trouble with my webcam. I have trouble with opencv.

Please Help Me!

Because capturing webcam issue is important and urgent.

Any Help I will be appreciated

2013-01-19 17:43:57 -0500 received badge  Supporter (source)