Ask Your Question

Habib's profile - activity

2019-12-29 04:38:31 -0500 received badge  Popular Question (source)
2019-10-03 06:35:24 -0500 received badge  Famous Question (source)
2018-11-26 01:19:28 -0500 received badge  Notable Question (source)
2018-06-26 04:05:17 -0500 received badge  Popular Question (source)
2017-08-01 18:50:26 -0500 received badge  Student (source)
2017-04-21 07:56:13 -0500 commented answer how to smooth edge of text

@StevenPuttemans No ,How to smooth edge of text in colored image ?

2017-04-19 11:34:37 -0500 commented answer how to smooth edge of text

@Balaji R,I ask how can this code be generalized to colored images.

2017-04-19 11:30:31 -0500 received badge  Supporter (source)
2017-04-19 01:18:49 -0500 commented answer how to smooth edge of text

Thank you,what about colored images?

2017-04-18 10:06:35 -0500 commented answer how to smooth edge of text

At the first, Thanks; I try your code ,LINE_AA is undefined. and my result is not like what you've sent.result image almost is not acceptable infact .

2017-04-18 09:58:05 -0500 commented answer How to fill enclosed area

This code is helpfull but if we have a big table shape with several rows and cols in image ,as you know table is a big contour and this code make all of table filled and contents of table is unreachable.

2017-04-18 03:13:29 -0500 commented question How to fill enclosed area

I update my question

2017-04-18 02:55:02 -0500 commented question How to fill enclosed area

i get image contours,now i want create a mask and crop contours

2017-04-18 02:26:02 -0500 commented answer how to smooth edge of text

I can not compile your code ,I think this part of your code has problem :

drawContours( mSmoothEdge, contours_Smoothed, i, Scalar(0), -1, LINE_AA, vector<Vec4i>(), 0, Point() );
2017-04-18 00:33:51 -0500 commented question How to fill enclosed area

Thank you,but,i'm new to opencv.please explain more ...

2017-04-17 13:35:34 -0500 asked a question How to fill enclosed area

Hello , How can I fill enclosed areas through openCv.like example image : image description

Thank you...

I use this code :

Mat src_gray;
int thresh = 100;
int max_thresh = 255;
RNG rng(12345);

 /// Convert image to gray and blur it
     cvtColor( src, src_gray, CV_BGR2GRAY );
    blur( src_gray, src_gray, Size(3,3) );


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

 /// Detect edges using canny
 Canny( src_gray, canny_output, thresh, thresh*2, 3 );
 /// Find contours
 //CV_RETR_TREE
  findContours( canny_output, contours, hierarchy, CV_RETR_CCOMP, CV_CHAIN_APPROX_SIMPLE, Point(0, 0) );

   /// Draw contours
   Mat drawing = Mat::zeros( canny_output.size(), CV_8UC3 );
     for( int i = 0; i< contours.size(); i++ )
    {
   Scalar color = Scalar( 255 ,255,255 );
   drawContours( drawing, contours, i ,color, 1, 8, hierarchy, INT_MAX, Point(-1 ,-1) );
  }

   fillPoly(drawing, contours, cv::Scalar::all(255),8);
  // cv::floodFill(edgesNeg, cv::Point(0,0), CV_RGB(255,255,255));
   /// Show in a window
      namedWindow( "Contours", CV_WINDOW_AUTOSIZE );
       imshow( "Contours", drawing );
2017-04-15 01:42:14 -0500 commented question how to smooth edge of text

Excuse me,i fix example link.

2017-04-14 03:26:57 -0500 received badge  Enthusiast
2017-04-13 06:36:44 -0500 received badge  Scholar (source)
2017-04-13 06:36:08 -0500 received badge  Organizer (source)
2017-04-12 13:47:30 -0500 asked a question how to smooth edge of text

Hello How to smooth edge of text in binary image, based on threshold.Something like anti-aliasing by openCv? example

image description

2017-04-10 07:55:16 -0500 edited question How to fill gaps in letters

Hi i'm new in openCv. i am using OpenCV to process image before sending it to tesseract. but there is gaps in some letters and numbers. How can I fix this?

Thank you.

UPDATE: my process result is this : www.imgh.us/1491762567343_1491762645019.jpg