Ask Your Question

jsxyhelu's profile - activity

2020-09-15 17:20:56 -0500 edited question Opencv multiple bubble detection in a image

Opencv multiple bubble detection in a image Hey there, I writing a code for bubble detection, This is the code i'm using

2020-09-15 17:06:37 -0500 commented question Opencv multiple bubble detection in a image

I have tried HoughCircles,but it not work well....

2020-09-15 01:55:36 -0500 asked a question Opencv multiple bubble detection in a image

Opencv multiple bubble detection in a image Hey there, I writing a code for bubble detection, This is the code i'm using

2020-09-13 01:56:32 -0500 received badge  Notable Question (source)
2020-09-12 18:16:37 -0500 commented question Opencv multiple circle detection in a image

I hope to provide more pictures to facilitate the creation of data sets and targeted experiments.

2020-09-12 18:15:37 -0500 answered a question Opencv multiple circle detection in a image

Inevitably, we need to consider the characteristics of "circle" and try SimpleBlobDetector to implement it. The changes

2020-09-05 07:21:30 -0500 received badge  Necromancer (source)
2020-08-15 03:39:41 -0500 commented question Hi . I'm new to openCV .Probably this is my first one. What is a mask and why is it used ?

cv::copyTo (InputArray src, OutputArray dst, InputArray mask) this is mask https://docs.opencv.org/master/d2/de8/group_

2020-08-15 03:39:20 -0500 commented question Hi . I'm new to openCV .Probably this is my first one. What is a mask and why is it used ?

cv::copyTo (InputArray src, OutputArray dst, InputArray mask) this is mask detail:https://docs.opencv.org/master/d2/de8

2020-01-28 23:11:39 -0500 received badge  Popular Question (source)
2019-10-31 08:05:08 -0500 commented question Code runs fine when executed inside the visual studio environment but fails when executed stand alone.

may be you have lossed some dll?

2019-10-31 08:04:43 -0500 commented question Extract Handwriting and Print from Background

where is the image?

2019-08-16 03:22:03 -0500 asked a question Is OpenVINO be able to use under QT?

Is OpenVINO be able to use under QT? Hi,guys. does any one kown Is OpenVINO be able to use under QT? this may be a stra

2019-08-10 19:12:14 -0500 commented question how to solve problem of low fps in OpenCV

as I koow,OpenCV is not support GPU yet?

2019-06-05 18:39:26 -0500 commented answer cv::mat in mfc

the link is died

2019-05-03 03:19:18 -0500 commented question How to access pixels by using pointer in OpenCV C++?

have a look at this https://blog.csdn.net/daoqinglin/article/details/23628125

2019-02-06 01:20:13 -0500 commented answer OpenCV Reading multiple QR-codes at once?

what about quirc?

2019-02-06 01:18:38 -0500 commented question 我在原图中裁切了一个小区域,然后在小区域中找到一个矩形,画出来,此时,我显示原图,发现它也画出了矩形区域,它是如何进行坐标对应的,我该如何获取这些坐标

have a look at function "copyto",and it's offset

2018-12-24 21:58:55 -0500 received badge  Teacher (source)
2018-10-27 21:17:29 -0500 commented question I have a leaf dataset that I will use to build a model in classifying the disease. However, i have to separate the foreground from the background and retain the leaf only. Can someone please help me with this? thanks.

where is the leaf dataset?

2018-10-27 21:14:26 -0500 commented question what is the most effective way to measure middle width of trapezoid? C++

could you give more c++ code?

2018-10-17 08:59:17 -0500 commented question Pyramid Blending with Single input and Non-Vertical Boundary

thai's all right!

2018-10-17 08:58:50 -0500 commented answer OpenCV / C++ - Filling holes

yes,i think

2018-10-09 02:49:06 -0500 commented question Pyramid Blending with Single input and Non-Vertical Boundary

sorry for my early comment,today ,i did some experiment and find it is really hard to the blend. BTW ,I tried "Poisson c

2018-10-08 20:58:07 -0500 answered a question OpenCV / C++ - Filling holes

here is my result here is my suggest code,may it help you . //answerOpenCV OpenCV / C++ - Filling holes #include

2018-10-06 17:14:17 -0500 commented question Pyramid Blending with Single input and Non-Vertical Boundary

the answer is YES. what you need is pyrdown the images and lineblend them at each pyramid

2018-10-06 17:01:51 -0500 commented question Regarding findchessboardcorners

the answer of your question is YES.and what's more,we get the cam params by using findchessboardcorners function (when

2018-10-06 09:13:58 -0500 commented question "align” two images.

you should think about feature points

2018-10-06 08:58:45 -0500 commented answer Optimizing split/merge for clahe

4.63716sec 3.80283sec in my PC,great work!

2018-10-06 08:45:00 -0500 commented question Contour Single blob with multiple object

show the original image and we may give you some help

2018-10-06 08:41:14 -0500 commented question How can I show a OpenCV image in a dialog of MFC.

in this blog https://www.cnblogs.com/jsxyhelu/p/GOMFCTemplate2.html i will show you how to show a OpenCV image in a dia

2018-10-03 16:24:03 -0500 commented answer Check if a Point is inside a RotatedRect ?

the code works,thanks

2018-08-31 19:43:29 -0500 commented question StereoRectify - does it work

wait for your images

2018-08-31 19:31:02 -0500 commented question I like the new forum software

that's great!

2018-08-31 08:58:19 -0500 commented question How to detect numbers in a picture if use opencv

have a look at east

2018-08-30 06:31:47 -0500 marked best answer how to find the REAL width and height of contours

there is a image of 3 shapes image description

if i use the code blew ,i get the result

int main( int argc, char** argv )
{
    //read the image
    Mat img = imread("e:/sandbox/leaf.jpg");
    Mat bw;
    bool dRet;
    //resize
    pyrDown(img,img);
    pyrDown(img,img);

    cvtColor(img, bw, COLOR_BGR2GRAY);
    //morphology operation  
    threshold(bw, bw, 150, 255, CV_THRESH_BINARY);
    //bitwise_not(bw,bw);
    //find and draw contours
    vector<vector<Point> > contours;
    vector<Vec4i> hierarchy;
    findContours(bw, contours, hierarchy, CV_RETR_LIST, CV_CHAIN_APPROX_NONE);
    for (int i = 0;i<contours.size();i++)
    {
        RotatedRect minRect = minAreaRect( Mat(contours[i]) );
        Point2f rect_points[4];
        minRect.points( rect_points ); 
        for( int j = 0; j < 4; j++ )
            line( img, rect_points[j], rect_points[(j+1)%4],Scalar(255,255,0),2);
    }
    imshow("img",img);
    waitKey();
    return 0;
}

image description

but ,in fact ,the contour 1 and contour 2 which i fingure out in RED do not get the right widht and height.

what i want should be this

image description

i did't find the appropriate function or any Doc from Opencv to do this work It's been bothering me for days any help will be appreciate!

2018-08-30 06:31:45 -0500 received badge  Self-Learner (source)
2018-08-30 06:31:45 -0500 received badge  Necromancer (source)
2018-08-29 09:45:23 -0500 commented answer how to find the REAL width and height of contours

@StevenPuttemans

2018-08-29 09:40:42 -0500 answered a question how to find the REAL width and height of contours

thanks for StevenPuttemans,I have get the final slove #include "opencv2/imgcodecs.hpp" #include "opencv2/highgui.h

2018-08-25 20:39:57 -0500 commented question Detect equipment in desired position

i think there are at leaset two steps to solve your problem 1、find the equipment 2、save the picture

2018-08-25 20:38:01 -0500 commented answer problem using morphologyEx

great,you should close your question now

2018-08-23 07:35:46 -0500 commented question I wat to open two transparent images inside opencv in C++

I think berak is right

2018-08-23 07:22:23 -0500 commented answer How to open cam using device name in Windows

it's really hard

2018-08-20 10:02:34 -0500 commented answer Having trouble with using Mat image in pictureBox of Visual C++ CLR project

great,this work!

2018-08-19 21:35:07 -0500 commented answer c++ windows forms /CLR

great work!

2018-08-19 02:52:16 -0500 commented question Optimization for Singleboard PC(like orangePi, RasberryPi...) on linux

I think the performance of pin64 is much bad than your pc,so you should reduce the resolution ratio of your image or do