Ask Your Question

Stuart's profile - activity

2016-05-28 13:16:50 -0600 asked a question How to solve overlapping in blob ?

Sorry for make a question again. I try this for blob in Android. and draw rectangle too, i mean for show scala too, but i don't know how to doing. And i try to modification this part. but still overlapping. How to show the real number of that circles ? Somebody can help me ?

public class ColorBlobDetector {
// Lower and Upper bounds for range checking in HSV color space
private Scalar mLowerBound = new Scalar(20,20,20,0);
private Scalar mUpperBound = new Scalar(30,30,30,0);
private Scalar mColorRadius = new Scalar(20,25,25,0);
private Mat mSpectrum = new Mat();
private List<MatOfPoint> mContours = new ArrayList<MatOfPoint>();

/ Filter contours by area and resize to fit the original image size
    mContours.clear();
    each = contours.iterator();
    while (each.hasNext()) {
        MatOfPoint contour = each.next();
        if (Imgproc.contourArea(contour) >= 49656 || Imgproc.contourArea(contour)<53177) {
            Core.multiply(contour, new Scalar(4,4), contour);
            mContours.add(contour);

image description

2016-05-24 02:51:59 -0600 commented question Separating overlapping object

im really sorry, so what should i do now ? delete all my post or how ? sorry, i've try many times for solving my problem. sorry if not polite to asking on private email, cause im so confused.

2016-05-24 02:34:56 -0600 commented question Separating overlapping object

i try harder for solve it, so i hope someone help me, its my reason i ask in this forum @LorenaGdL. Im so sorry. or maybe you want help me ?

2016-05-24 02:18:44 -0600 commented question Separating overlapping object

thanks for reply @lama123. Can you help me ?

2016-05-22 11:09:33 -0600 commented answer Divide Object In Blob.

Can i know your email sir ? Yes, but how when real time sir ?

2016-05-20 05:38:58 -0600 asked a question Separating overlapping object

Somebody can help me to separating that object ? image description

image description

2016-05-18 21:09:51 -0600 commented answer Divide Object In Blob.

so, its possible to show the real sir ? i mean although in frame show 3 the result number can be 3 too ?

2016-05-18 13:51:40 -0600 commented question Divide Object In Blob.

alright sir, maybe if not familiar in java you can suggest me which part i must modification ,i've done send to your email sir.

2016-05-18 13:44:43 -0600 commented question Divide Object In Blob.

your email sir ? maybe i'll try sir.

2016-05-18 13:39:49 -0600 commented question Divide Object In Blob.

but its so many sir, no problem ? or i send to your email ?

2016-05-18 13:04:29 -0600 commented question Divide Object In Blob.

Thanks for answer sir, but how when try in android sir ? in my project just detect for HSV color sir, how when from size of object sir ?

2016-05-18 12:47:57 -0600 asked a question Divide Object In Blob.

Somebody can help me to solve this problem. I try this for showing in frame. Its blob detection but in Java android ?

image description

 Core.putText(mRgba, ":" +(
                "((" + mBlobColorRgba.val[0] + ", " + mBlobColorRgba.val[1] +
            ", " + mBlobColorRgba.val[2] + ", " + mBlobColorRgba.val[3] + ")"), new org.opencv.core.Point(0, 160),
                Core.FONT_HERSHEY_SIMPLEX, 2.6d, new Scalar(255, 255, 0));

        Core.putText(mRgba, "Count number : " +
            contours.size(), new org.opencv.core.Point(0, 300),
            Core.FONT_HERSHEY_SIMPLEX, 2.6f, new Scalar(255, 255, 0));
2016-05-17 10:45:00 -0600 received badge  Enthusiast
2016-05-15 13:42:30 -0600 commented answer Show number of blob detection

Maybe the solution from this sir. http://answers.opencv.org/question/94... but still in LogCat not showing in frame sir

2016-05-15 13:28:00 -0600 commented question Send LogCat Message to another

so, what should i do sir ?

2016-05-15 13:10:12 -0600 asked a question Send LogCat Message to another

How to change information which just show in LogCat

Log.e(TAG, "Contours count: " + contours.size());

show to textView or another in frame ?

I try like this

TextView textView = (TextView) findViewById(R.id.textid);                                                          textView.setText("Contours count: " + contours.size());

But Can i running its stop suddenly. Somebody can help me ?

2016-05-14 13:05:30 -0600 received badge  Editor (source)
2016-05-14 13:04:52 -0600 asked a question Show number of blob detection

How To show count of blob in this image ?

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

    if (mIsColorSelected) {
        mDetector.process(mRgba);
        List<MatOfPoint> contours = mDetector.getContours();
        Log.e(TAG, "Contours count: " + contours.size());
        Imgproc.drawContours(mRgba, contours, -1, CONTOUR_COLOR);

        Mat colorLabel = mRgba.submat(4, 68, 4, 68);
        colorLabel.setTo(mBlobColorRgba);

        Mat spectrumLabel = mRgba.submat(4, 4 + mSpectrum.rows(), 70, 70 + mSpectrum.cols());
        mSpectrum.copyTo(spectrumLabel);`

code in above its show label and spectrum, how to show text/number in every circles ?

2016-05-14 12:45:25 -0600 commented answer Android Watershed

Thank you sir

2016-05-12 13:57:35 -0600 commented question Android Watershed

how to count object in image ?

2016-05-12 12:49:31 -0600 asked a question Android Watershed

Excuse me.If you don't mind may i ask you about Android OpenCV ? Especially about count object in image. I have problem. Thank you so much. really need a helpimage description