Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how can I find the coordinates with the given step?

I have the following picture from camera: http://www.pictureshack.ru/images/10081_3.jpg

I need: http://www.pictureshack.ru/images/643_2.jpg

I tried first to find the lines with HoughLines , but results were not good races : http://www.pictureshack.ru/done_66361_4.jpg

then, I considered myself as I can see the laser line . I've tried using Canny , there are too many other unnecessary lines . After that I read on the internet about HSV . as firstly I made trackable:

int iLowH = 0;
 int iHighH = 255;

 int iLowS = 0; 
 int iHighS = 255;

 int iLowV = 0;
 int iHighV = 255;

 //Create trackbars
 cvCreateTrackbar("LowH", "Control", &iLowH, 255); 
 cvCreateTrackbar("HighH", "Control", &iHighH, 255);

 cvCreateTrackbar("LowS", "Control", &iLowS, 255); 
 cvCreateTrackbar("HighS", "Control", &iHighS, 255);

 cvCreateTrackbar("LowV", "Control", &iLowV, 255); 
 cvCreateTrackbar("HighV", "Control", &iHighV, 255);

as the next I have with findcountors that Countor have found:

vector<vector<Point> > contours;
vector<Point> contour;
findContours( imgThresholded, contours, CV_RETR_TREE, CV_CHAIN_APPROX_NONE );
//findContours( edges, contours, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_SIMPLE );
for ( size_t i = 0; i < contours.size(); i++)
{drawContours(imgOriginal,contours,i,color);}

und I have :

http://www.pictureshack.ru/images/75086_2.jpg

How do I find the coordinates at the intersection of the lines drawn by me and " lines " in the picture?

how can I find the coordinates with the given step?

I have the following picture from camera: http://www.pictureshack.ru/images/10081_3.jpg

I need: http://www.pictureshack.ru/images/643_2.jpg

I tried first to find the lines with HoughLines , but results were not good races : http://www.pictureshack.ru/done_66361_4.jpg

then, I considered myself as I can see the laser line . I've tried using Canny , there are too many other unnecessary lines . After that I read on the internet about HSV . as firstly I made trackable:

int iLowH = 0;
 int iHighH = 255;

 int iLowS = 0; 
 int iHighS = 255;

 int iLowV = 0;
 int iHighV = 255;

 //Create trackbars
 cvCreateTrackbar("LowH", "Control", &iLowH, 255); 
 cvCreateTrackbar("HighH", "Control", &iHighH, 255);

 cvCreateTrackbar("LowS", "Control", &iLowS, 255); 
 cvCreateTrackbar("HighS", "Control", &iHighS, 255);

 cvCreateTrackbar("LowV", "Control", &iLowV, 255); 
 cvCreateTrackbar("HighV", "Control", &iHighV, 255);

as the next I have with findcountors that Countor have found:

vector<vector<Point> > contours;
vector<Point> contour;
findContours( imgThresholded, contours, CV_RETR_TREE, CV_CHAIN_APPROX_NONE );
//findContours( edges, contours, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_SIMPLE );
for ( size_t i = 0; i < contours.size(); i++)
{drawContours(imgOriginal,contours,i,color);}

und I have :

http://www.pictureshack.ru/images/75086_2.jpg

How do I find the coordinates at the intersection of the lines drawn by me and " lines " in the picture?

how can I find the coordinates with the given step?

I have the following picture from camera: http://www.pictureshack.ru/images/10081_3.jpg

I need: http://www.pictureshack.ru/images/643_2.jpg

I tried first to find the lines with HoughLines , but results were not good races : http://www.pictureshack.ru/done_66361_4.jpg

then, I considered myself as I can see the laser line . I've tried using Canny , there are too many other unnecessary lines . After that I read on the internet about HSV . as firstly I made trackable:

int iLowH = 0;
 int iHighH = 255;

 int iLowS = 0; 
 int iHighS = 255;

 int iLowV = 0;
 int iHighV = 255;

 //Create trackbars
 cvCreateTrackbar("LowH", "Control", &iLowH, 255); 
 cvCreateTrackbar("HighH", "Control", &iHighH, 255);

 cvCreateTrackbar("LowS", "Control", &iLowS, 255); 
 cvCreateTrackbar("HighS", "Control", &iHighS, 255);

 cvCreateTrackbar("LowV", "Control", &iLowV, 255); 
 cvCreateTrackbar("HighV", "Control", &iHighV, 255);

as the next I have with findcountors that Countor have found:

vector<vector<Point> > contours;
vector<Point> contour;
findContours( imgThresholded, contours, CV_RETR_TREE, CV_CHAIN_APPROX_NONE );
//findContours( edges, contours, CV_RETR_EXTERNAL, CV_CHAIN_APPROX_SIMPLE );
for ( size_t i = 0; i < contours.size(); i++)
{drawContours(imgOriginal,contours,i,color);}

und I have :

http://www.pictureshack.ru/images/75086_2.jpg

How do I find the coordinates at the intersection of the lines drawn by me and " lines " in the picture?