Ask Your Question

Dipankar Baghel's profile - activity

2017-09-11 10:31:34 -0600 received badge  Famous Question (source)
2017-02-27 00:19:21 -0600 received badge  Popular Question (source)
2015-10-10 04:15:17 -0600 received badge  Notable Question (source)
2015-03-18 11:09:27 -0600 received badge  Popular Question (source)
2013-08-02 05:37:14 -0600 received badge  Taxonomist
2013-05-27 06:18:06 -0600 commented answer How to detect largest rectengle in image and draw the lines??

thnks for ur quick response....but i didnt know Python..so is it convienient for u give a piece of code in java android...actualy i am developing app in android.....thank you..

2013-05-27 05:27:12 -0600 received badge  Student (source)
2013-05-27 04:18:10 -0600 asked a question How to detect largest rectengle in image and draw the lines??

I am developing an application in whitch i have to detect the largest rectangle from camera image,and draw the lines.I have used OpenCV for android and i find findContours and drawContours on camera frame but it draw on each object..so my question how to draw line on single largest Rectangle..Here is my code to dra drawContours....

public Mat onCameraFrame(CvCameraViewFrame inputFrame) { mRgba = inputFrame.rgba();

    List<MatOfPoint> contours;
    contours = new ArrayList<MatOfPoint>();
    hierarchy = new Mat();

 Imgproc.Canny(mRgba, mIntermediateMat, 80, 100);
 Imgproc.findContours(mIntermediateMat, contours, hierarchy, Imgproc.RETR_TREE, Imgproc.CHAIN_APPROX_SIMPLE, new Point(0, 0));

 hierarchy.release();
 Imgproc.drawContours(mRgba, contours, -1, new Scalar(Math.random()*255, Math.random()*255, Math.random()*255));//, 2, 8, hierarchy, 0, new Point());


    return mRgba;
}

any help ..........thanks in advance.

2013-05-24 02:55:55 -0600 asked a question How to detect square in image using openCV

I am developing an application in android in whitch i have to detect square document and crop that detected document.

I used sample of OpenCv for cammy image but failed to implement sqare detection with outLine.(Outline may be of any color)