Ask Your Question

jsxyhelu's profile - activity

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

2018-08-19 02:46:53 -0500 commented question How to run my app on another PC?

use a program names"depends.exe" to find the dlls your app depends,and copy these dlls with your exe in a same folder

2018-08-12 17:48:30 -0500 received badge  Student (source)
2018-08-12 09:49:11 -0500 received badge  Citizen Patrol (source)
2018-08-12 09:21:08 -0500 commented answer how to detect only 60-degree lines (a question from 《learning opencv3》chapter 10)

that's great,thanks!

2018-08-12 09:20:55 -0500 marked best answer how to detect only 60-degree lines (a question from 《learning opencv3》chapter 10)

hi,guys learningOpencv3 chapter10 question15 ,says

15 Use cv::filter2D() to create a filter that detects only 60-degree lines in an image. Display the results on a sufficiently interesting image scene.

I know how to detects 45-degree lines ,as

Mat srcLines(100,100,CV_8UC1,Scalar::all(0));//draw lines
line(srcLines,Point(0,0),Point(100,100),Scalar(255),1);
line(srcLines,Point(50,50),Point(100,0),Scalar(255),1);//45 - degree
line(srcLines,Point(0,100),Point(50,0),Scalar(255),1);//60 - degree
Mat srcH(3,3,CV_8UC1,Scalar::all(0));

srcH.at<char>(0,0) = 255;
srcH.at<char>(1,1) = 255;
srcH.at<char>(2,2) = 255;

filter2D(srcLines,dst,srcLines.depth(),srcH);

but ,how to create a 60-degree kenrel? any help will be welcomed. thanks

2018-08-10 21:14:59 -0500 commented question how to detect only 60-degree lines (a question from 《learning opencv3》chapter 10)

thanks guys,your ideas are great. but the book need us do this work by using cv::filter2D() any ideas?

2018-08-09 20:00:47 -0500 asked a question how to detect only 60-degree lines (a question from 《learning opencv3》chapter 10)

how to detect only 60-degree lines (a question from 《learning opencv3》chapter 10) hi,guys learningOpencv3 chapter10 ques

2018-08-05 22:53:38 -0500 commented answer I need a maxEnclosingCircle function

How does this work, can it be illustrated by an example? Thank