Ask Your Question

Akhil Patel's profile - activity

2018-12-12 07:24:51 -0500 commented question Remove background from canny image in android opencv

no comments @berak

2018-12-12 07:14:50 -0500 received badge  Stellar Question (source)
2018-12-12 07:00:04 -0500 received badge  Favorite Question (source)
2018-12-12 06:46:16 -0500 edited question Remove background from canny image in android opencv

Remove background from canny image in android opencv Hello, i want remove background from captured image. As of now i a

2018-12-12 06:45:56 -0500 edited question Remove background from canny image in android opencv

Remove background from canny image in android opencv Hello, i want remove background from captured image. As of now i a

2018-12-12 06:42:03 -0500 received badge  Disciplined (source)
2018-12-12 06:40:18 -0500 received badge  Peer Pressure (source)
2018-12-12 03:23:34 -0500 edited question Remove background from canny image in android opencv

Remove background from canny image in android opencv Hello, i want remove background from captured image. As of now i a

2018-12-12 03:17:05 -0500 received badge  Good Answer (source)
2018-12-12 03:16:48 -0500 received badge  Good Answer (source)
2018-12-12 03:16:13 -0500 received badge  Good Question (source)
2018-12-12 03:15:52 -0500 received badge  Good Question (source)
2018-12-12 03:15:36 -0500 received badge  Good Question (source)
2018-12-12 02:15:58 -0500 commented question Image Detection if it is Registered or Not.

Need some more detail of your question.

2018-12-12 02:02:53 -0500 asked a question Remove background from canny image in android opencv

Remove background from canny image in android opencv Hello, i want remove background from captured image. As of now i a

2018-12-11 23:58:49 -0500 edited question behaviour of OpenCV Python arguments in 32 and 64-bit systems are Different

behaviour of OpenCV Python arguments in 32 and 64-bit systems are Different OpenCV Python2 samples work fine in 32-bit P

2018-12-11 05:12:23 -0500 marked best answer OpenCV (android) : How to get image metadata

i am new in OpenCV. i am working on image processing so i get the image metadata using OpenCV. please guide me.

2018-12-11 01:50:06 -0500 answered a question face recognition for android

Please use the following reference. Reference

2018-12-07 04:22:03 -0500 received badge  Good Answer (source)
2018-12-07 04:17:33 -0500 received badge  Enlightened (source)
2018-12-07 04:17:33 -0500 received badge  Good Answer (source)
2018-12-07 04:17:16 -0500 received badge  Good Answer (source)
2018-12-07 04:16:47 -0500 received badge  Good Answer (source)
2018-12-07 04:14:58 -0500 received badge  Nice Answer (source)
2018-12-07 04:14:42 -0500 received badge  Nice Answer (source)
2018-12-07 04:02:24 -0500 received badge  Nice Answer (source)
2018-12-07 04:02:14 -0500 received badge  Nice Answer (source)
2018-12-07 04:02:03 -0500 received badge  Nice Answer (source)
2018-12-07 04:01:45 -0500 received badge  Nice Answer (source)
2018-12-07 04:01:16 -0500 received badge  Nice Question (source)
2018-12-07 04:01:05 -0500 received badge  Good Answer (source)
2018-12-07 04:00:49 -0500 received badge  Good Answer (source)
2018-12-07 04:00:21 -0500 received badge  Good Question (source)
2018-12-07 04:00:04 -0500 received badge  Good Question (source)
2018-12-07 03:59:48 -0500 received badge  Good Question (source)
2018-12-07 03:59:34 -0500 received badge  Good Question (source)
2018-12-07 03:59:19 -0500 received badge  Good Question (source)
2018-12-06 07:15:24 -0500 commented question Eye gaze detection in android

ok understood i will try.

2018-12-05 23:51:09 -0500 marked best answer OpenCV (java) : autocapture image in onCameraFrame()

I am working on OpenCV CameraBridgeViewBase in android. so when application started and onCameraFrame called than image is auto captured so i don't know how to auto-capture because onCameraFrame is continuous called so when i trying to save bitmap on rectangle detection it's take some delay like 20 to 30 second. i want image capture when rectangle detected. Here is my code.

    public Mat onCameraFrame(CvCameraViewFrame inputFrame) {

    final Mat imgSource = inputFrame.rgba();

   rotateandscalebitmap = Bitmap.createBitmap(imgSource.cols(), imgSource.rows(), Bitmap.Config.ARGB_8888);
    Utils.matToBitmap(imgSource, rotateandscalebitmap);


    Mat imageHSV = new Mat(imgSource.size(), CvType.CV_8UC4);
    Mat imageBlurr = new Mat(imgSource.size(), CvType.CV_8UC4);
    Mat imageA = new Mat(imgSource.size(), CvType.CV_32F);
    Imgproc.cvtColor(imgSource, imageHSV, Imgproc.COLOR_BGR2GRAY);
    Imgproc.GaussianBlur(imageHSV, imageBlurr, new Size(5, 5), 0);

    Imgproc.adaptiveThreshold(imageBlurr, imageA, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY_INV, 7, 5);

    List<MatOfPoint> contours = new ArrayList<MatOfPoint>();
    Imgproc.findContours(imageA, contours, new Mat(), Imgproc.RETR_LIST, Imgproc.CHAIN_APPROX_SIMPLE);

    Vector<Mat> rectangles = new Vector<Mat>();
    Rect rect = null;
    for (int i = 0; i < contours.size(); i++)
    {
        if (Imgproc.contourArea(contours.get(i)) > 50) {
            rect = Imgproc.boundingRect(contours.get(i));
            if ((rect.height > 30 && rect.height < 400) && (rect.width > 400 && rect.width < 800)) {
                Rect rec = new Rect(rect.x, rect.y, rect.width, rect.height);
                rectangles.add(new Mat(imgSource, rec));
                Imgproc.rectangle(imgSource, new Point(rect.x, rect.y), new Point(rect.x + rect.width, rect.y + rect.height), new Scalar(0, 255, 0), 4);

                // Imgproc.findContours(imageA, contours, new Mat(), Imgproc.RETR_EXTERNAL,Imgproc.CHAIN_APPROX_SIMPLE);
            }
        }
    }
    return imgSource;
}
2018-12-05 23:51:06 -0500 received badge  Nice Question (source)
2018-12-05 23:50:58 -0500 received badge  Nice Question (source)
2018-12-05 23:50:35 -0500 received badge  Nice Question (source)
2018-12-05 23:26:41 -0500 marked best answer Opencv android : display popup in onCameraFrame when glare is detected on image.

i am new in OpenCV. I am developing an android application for detecting light or glare on image using OpenCV. i have used onCameraFrame for live preview but when live preview was started and glare or light is detect than popup was not displayed.

anyone know about how to display popup on onCameraFrame. please guide me.