Ask Your Question

Akhil Patel's profile - activity

2019-07-11 00:55:42 -0500 commented answer Face Detection is not working portrait mode in android plateform

it doesn't work for me i have face same issue for face-detection in portrait mode.

2019-06-23 23:30:37 -0500 edited answer Detect all Countour not an only Rectangle

Please visit the following link : I have snippet of code which can help you to find the largest contour area of rectan

2019-06-21 22:35:01 -0500 answered a question Detect all Countour not an only Rectangle

Please visit the following link : https://www.pastiebin.com/5d0da17bccc9a I have snippet of code which can help you t

2019-06-05 23:35:54 -0500 answered a question Android Studio how integrate NDK with Opencv

In your CMakeLists.txt add this https://www.pastiebin.com/5cf897647a939 and your build.gradle file must add following li

2019-04-30 09:03:56 -0500 received badge  Necromancer (source)
2019-04-30 07:46:45 -0500 answered a question Canny Edge Detector doesn't return filtered image

please use following code it will work perfect for me : public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewF

2019-04-30 02:14:22 -0500 commented question How to detect blue color in blue background like sea

using blob detection you can easily detect blue color in blue background. take reference from here :- https://www.learno

2019-04-25 04:35:46 -0500 received badge  Popular Question (source)
2019-04-02 05:39:51 -0500 commented question Remove background from canny image in android opencv

@berak my account is suddenly suspended. i don't know what's the problem. please help me

2019-04-02 05:36:09 -0500 commented question Remove background from canny image in android opencv

@berak My account is suspend i don't know what's the problem. please help me.

2019-04-02 04:48:31 -0500 edited question How to implement tesseract ocr in android using native c++ opencv

How to implement tesseract ocr in android using native c++ opencv Hello all I am working on android application which i

2019-04-02 04:48:00 -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

2019-04-02 04:46:20 -0500 edited question How to extract signature from driving license card?

How to extract signature from driving license card? Hello, I am developing license verification application in android.

2019-04-02 04:45:42 -0500 edited question Opencv android : display popup in onCameraFrame when glare is detected on image.

Opencv android : display popup in onCameraFrame when glare is detected on image. i am new in OpenCV. I am developing an

2019-04-02 04:44:22 -0500 edited question Eye gaze detection in android

Eye gaze detection in android I'm looking to perform real time gaze tracking using the front camera of an android phone.

2019-04-02 04:42:49 -0500 edited question How to detect rectangle from image and crop from it's four edges?

How to detect rectangle from image and crop from it's four edges? Hello all, I am developing an application for detect

2019-04-02 04:42:03 -0500 edited question OpenCV (android) : onCameraFrame() image preview getting blurred

OpenCV (android) : onCameraFrame() image preview getting blurred Hello, i need clear preview when onCameraFrame() is ca

2019-04-02 04:40:57 -0500 edited question speeding up camera preview in android opencv using CameraBridgeViewBase class and JavaCameraView?

speeding up camera preview in android opencv using CameraBridgeViewBase class and JavaCameraView? I am working with andr

2019-04-02 04:40:24 -0500 edited question How to find rectangle edges from image and crop image from it's edges?

How to find rectangle edges from image and crop image from it's edges? Hello, I am developing an application for detect

2019-04-02 04:40:01 -0500 edited question OpenCV (android) : How to get image metadata

OpenCV (android) : How to get image metadata i am new in OpenCV. i am working on image processing so i get the images me

2019-04-02 04:38:54 -0500 edited question OpenCV (java) : autocapture image in onCameraFrame()

OpenCV (java) : autocapture image in onCameraFrame() I am working on OpenCV CameraBridgeViewBase in android. so when app

2019-04-01 06:30:23 -0500 edited question OpenCV (java) : autocapture image in onCameraFrame()

OpenCV (java) : autocapture image in onCameraFrame() I am working on OpenCV CameraBridgeViewBase in android. so when app

2019-04-01 05:49:37 -0500 received badge  Guru (source)
2019-04-01 05:49:37 -0500 received badge  Great Answer (source)
2019-03-29 00:38:33 -0500 commented question How to implement tesseract ocr in android using native c++ opencv

@berak it is not a problem but i just want to implement tesseract ocr in android but using opencv c++ not java.

2019-03-29 00:38:11 -0500 commented question How to implement tesseract ocr in android using native c++ opencv

@berak it is not a problem but i just want to implement tesseract ocr in android but using opencv c++ not java

2019-03-28 05:38:09 -0500 edited question How to implement tesseract ocr in android using native c++ opencv

How to implement tesseract ocr in android using native c++ Hello all I am working on android application which is mainl

2019-03-28 05:37:42 -0500 edited question How to implement tesseract ocr in android using native c++ opencv

How to implement tesseract ocr in android using native c++ Hello all I am working on android application which is mainl

2019-03-28 05:37:03 -0500 asked a question How to implement tesseract ocr in android using native c++ opencv

How to implement tesseract ocr in android using native c++ Hello all I am working on android application which is mainl

2019-03-14 23:26:52 -0500 received badge  Good Answer (source)
2019-03-10 23:34:11 -0500 received badge  Nice Answer (source)
2019-02-06 03:54:40 -0500 received badge  Great Question (source)
2019-01-14 22:19:38 -0500 commented question OpenCV (java) : autocapture image in onCameraFrame()

@dkurt yes i want to preview camera images without delay

2019-01-12 00:09:45 -0500 edited question OpenCV (java) : autocapture image in onCameraFrame()

OpenCV (java) : autocapture image in onCameraFrame() I am working on OpenCV CameraBridgeViewBase in android. so when app

2019-01-12 00:09:39 -0500 edited question OpenCV (java) : autocapture image in onCameraFrame()

OpenCV (java) : autocapture image in onCameraFrame() I am working on OpenCV CameraBridgeViewBase in android. so when app

2019-01-05 00:14:18 -0500 commented question I am making document scanner. It is detecting only edges and not corners.

whats is srcOrig?

2019-01-04 23:52:17 -0500 commented question I am making document scanner. It is detecting only edges and not corners.

can you please post your full activity code i have already answer of your question.because i am also working on document

2019-01-04 07:07:05 -0500 commented question How to detect cross

what you used for detect cross?

2018-12-19 06:39:08 -0500 answered a question Glare detection in image

change the following line Imgproc.GaussianBlur(grayScaleGaussianBlur, grayScaleGaussianBlur, new Size(5, 5), 0)

2018-12-17 05:00:02 -0500 commented question Remove background from canny image in android opencv

@berak @LBerger Please suggest me any idea or any suggestion to solve problem?

2018-12-17 03:17:56 -0500 received badge  Disciplined (source)
2018-12-17 03:17:38 -0500 received badge  Disciplined (source)
2018-12-17 03:17:19 -0500 received badge  Disciplined (source)
2018-12-17 03:16:56 -0500 received badge  Disciplined (source)
2018-12-17 03:16:43 -0500 received badge  Disciplined (source)
2018-12-17 03:16:25 -0500 received badge  Disciplined (source)
2018-12-17 03:15:36 -0500 received badge  Disciplined (source)
2018-12-15 07:39:01 -0500 marked best answer OpenCV (java) : autocapture image in onCameraFrame()

I am working on OpenCV CameraBridgeViewBase in android. so when i was start my 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 40 to 50 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;
}