Ask Your Question

Dinh Thap's profile - activity

2020-05-03 10:18:13 -0500 received badge  Notable Question (source)
2020-04-19 23:01:40 -0500 received badge  Popular Question (source)
2019-04-17 05:33:27 -0500 received badge  Popular Question (source)
2017-03-03 00:54:14 -0500 asked a question How can I remove video background from karaoke video?

I only want to get video with karaoke text without background video. Can you suggest for me anyway to do this? Thanks.

2016-08-31 01:47:39 -0500 commented question Color License Plate Recognizing ?

I need an algorithm to detect the color of character contour and I think OpenCV can help me overcome that. Thanks.

2016-08-31 01:40:43 -0500 commented question Color License Plate Recognizing ?

Sorry, I am not allowed to publish the source code out. If I know the color of character contour is dark or light then I get success.

2016-08-30 05:26:14 -0500 commented question Color License Plate Recognizing ?

I updated original captured images.

2016-08-30 04:30:30 -0500 commented question Color License Plate Recognizing ?

It's vehicle image I captured from hardware. I processed and got the license plate, but in different weather condition, I got the different image.

2016-08-30 04:27:30 -0500 commented question Color License Plate Recognizing ?

YES. I want to define it as white in both cases.

2016-08-30 04:17:41 -0500 commented question Color License Plate Recognizing ?

That are white plates and in my application, they were confused in the blue and red plate. How can I use OpenCV to overcome this problem? Thanks.

2016-08-29 23:47:25 -0500 asked a question Color License Plate Recognizing ?

How can I use OpenCV to detect the color of the license plate? I was confused in some case.

  1. White LP -> Blue: image description image description
  2. White LP -> Red: image description image description
2016-08-29 01:29:39 -0500 asked a question fillPoly doesn't fulfill contour?

I want to remove noise from binary image. Binary image: image description Output I want: image description Opencv output: image description

Here I did that with opencv:

    opencv_core.Mat img = opencv_imgcodecs.imread(path);
    opencv_core.Mat adap;
    opencv_core.Mat adap2;
    adap = supporter.adaptiveThresholding(img, true, false); // apply findContours
    adap2 = supporter.adaptiveThresholding(img, false, false);// apply fillPoly to remove noise

    opencv_core.MatVector contours = new opencv_core.MatVector();        opencv_imgproc.findContours(adap.clone(),contours,opencv_imgproc.RETR_LIST,opencv_imgproc.CHAIN_APPROX_SIMPLE);
    opencv_core.MatVector newCons = new opencv_core.MatVector();
    List<opencv_core.Mat> listCons = new ArrayList<>();
    for(int i = 0; i<contours.size(); i++){
        opencv_core.Mat current = contours.get(i);
        opencv_core.Rect rect = opencv_imgproc.boundingRect(current);
        if(rect.width() < img.cols()/3 && rect.height() < img.rows()/3){
            listCons.add(current);
        }
    }

    newCons.put(listCons.toArray(new opencv_core.Mat[listCons.size()]));
    opencv_imgproc.fillPoly(adap2,newCons, opencv_core.Scalar.WHITE);
2016-07-01 07:21:15 -0500 commented answer Remove noise image?

No. That doesn't resolve this problem

2016-07-01 07:19:15 -0500 commented question Remove noise image?

noise line up, down, beside digit.

2016-06-30 22:08:55 -0500 asked a question Remove noise image?

I have some image which contains some unwanted noise. The best way to remove it out of my image? Thanks. C:\fakepath\1467341227603.pngC:\fakepath\1467341227597.pngC:\fakepath\1467341227767.png C:\fakepath\1467341227767.png

2016-06-23 05:41:03 -0500 commented question normalize zero mean and unit variance opencv?

Thank you very much!

2016-06-23 05:34:44 -0500 asked a question normalize zero mean and unit variance opencv?

How can I normalize image with zero mean and unit variance? Thanks.

2016-06-21 23:40:48 -0500 commented answer OpenCV 3.1.0 Insufficient Memory

Hmm. I only suggest for you some way. You think you can't! That's your think. Here you are: Free momory. Then you can force the Garbage Collector to release unreferenced memory with gc.collect(). In Java System.gc, in python gc.collect().

2016-06-20 22:19:08 -0500 answered a question OpenCV 3.1.0 Insufficient Memory

I show you some way to fix in java. Maybe help you resolve the problem. 1. Increase memory of app. Example Java only uses 25% RAM. Better if you increase it. 2. If you allocating memory for any instance (ex: Mat,....). Then Let release it to free memory.

2016-06-20 05:01:34 -0500 commented question How can I determine color of contour?

Nope. Center returns color of background not color of word

2016-06-20 05:00:39 -0500 commented question How can I determine color of contour?

YES. inside a contour. at stroke width not at overlap contour.

2016-06-20 04:58:05 -0500 commented question How can I determine color of contour?

That's right. Unfortunately, a contour usually does not have a single contour. Can you suggest me some way to do that?

2016-06-20 04:49:45 -0500 commented question How can I determine color of contour?

I want to determine color of character So I use findContour to find all contour of character in my image and Finally I want to determine color of the contour. Can you suggest me some way to do that? Thanks.

2016-06-19 20:59:51 -0500 asked a question How can I determine color of contour?

How can I determine color of contour?Thanks.

2016-06-13 08:58:22 -0500 commented question How can I translate Matlab code to opencv to align image?

No rude, that I want and I effort to reach it and finally I'm successful.Thank.

2016-06-12 13:29:34 -0500 asked a question How can I translate Matlab code to opencv to align image?
2016-06-12 06:01:25 -0500 asked a question How can I skewed character in license plate exactly?

I try many way to skewed the image but not exactly at all. Can you help me? Thanks C:\fakepath\Capture.PNG

2016-06-12 03:38:07 -0500 commented answer Cannot rotate warpAffine character in license plate?

I multiplied the rotation and the skewing matrix then I have bad result. If I do rotation first and skewed after that then I have good result. So How can I combined 2 matrix exactly?

2016-06-09 03:01:22 -0500 asked a question Auto size, sigma parameter in adaptive thresholding?

How can I play adaptive thresholding with auto size & sigma parameter? Thanks

2016-06-08 11:14:20 -0500 commented answer Cannot rotate warpAffine character in license plate?

Thank you so much!

2016-06-08 11:13:51 -0500 marked best answer Cannot rotate warpAffine character in license plate?

I warpAffine license plate before segmentation but cannot correct incline character.

            opencv_core.RotatedRect rr = opencv_imgproc.minAreaRect(currentPlate.countor);
            opencv_core.Point[] pt = ImageOpenCvUtils.getVerticesPoint(rr);
            for (int k = 0; k < 4; k++) {
                opencv_imgproc.line(input, pt[k], pt[(k + 1) % 4], opencv_core.Scalar.RED);
            }
            double angle = rr.angle();
            if (angle < -45) {
                angle += 90;
            }

            opencv_core.Mat rot_mat = opencv_imgproc.getRotationMatrix2D(rr.center(), angle, 1);
            opencv_core.Mat rotated = new opencv_core.Mat();
            opencv_imgproc.warpAffine(clone, rotated, rot_mat, input.size());
            opencv_core.Size size = null;
            if (rr.angle() < -45) {
                size = new opencv_core.Size(Math.round(rr.size().height()), Math.round(rr.size().width()));
            } else {
                size = new opencv_core.Size((int) rr.size().width(), (int) rr.size().height());
            }

            opencv_imgproc.rectangle(clone, rr.boundingRect(), opencv_core.Scalar.BLUE);

            opencv_core.Mat subImage = new opencv_core.Mat();
            opencv_imgproc.getRectSubPix(rotated, size, rr.center(), subImage);

C:\fakepath\1465368069087.png

Can you help me? Thanks

2016-06-08 11:13:51 -0500 received badge  Scholar (source)
2016-06-08 11:06:56 -0500 commented answer Cannot rotate warpAffine character in license plate?

That's great! I apply your matrix then get good result. Can you show me the code calculated sx,sy value? Thanks.

2016-06-08 10:56:07 -0500 commented answer Cannot rotate warpAffine character in license plate?

How do you find out sx, sy value?Can you show me some code. That make me easy to understand. Thanks.