This commit is contained in:
2022-12-08 11:42:02 +01:00
parent 6b0e4b04ce
commit 103eeadf0b
3 changed files with 15 additions and 2 deletions
+8
View File
@@ -101,6 +101,14 @@ FrameData Processing::calculateLineSegments(Mat& inputPicture, const cv::Rect& r
Mat inputPictureRoi = inputPicture(roi);
cv::findContours(inputPictureRoi, data.contours, RETR_LIST, CHAIN_APPROX_SIMPLE);
/* TODO:
* Was ich mir hier vorstelle:
* Wir haben die konturen und die hough linien
* Konturen haben schwäche mit Reflektionen, hough linien sind unvollständig.
* Irgendwie sollten die beiden Datensätze gemerged werden, um das "gute" aus beiden zu vereinen.
* Evtl in richtung "Schau den Bereich der Contour (+ Toleranz?) im hough bild an. Wenn keine Linie im Bereich ist, ist die Contour eine Reflektion"
*/
vector<Vec4i> lines;
Canny(inputPicture, inputPicture, 50, 100, 3);
HoughLinesP(inputPicture, lines, 1, CV_PI/180, 100, 30, 150);