How to bound zebra crossing stripes?
Hello I understand that this a more direct question.
Input:
Output:
I know basic OpenCV. Any lead would be helpful to me.
Update: So far where I have reached is;
cv::cvtColor(img, hsv, cv::COLOR_BGR2HSV);
cv::Scalar lowerWhite = cv::Scalar(0,0,154);
cv::Scalar upperWhite = cv::Scalar(180,24,253);
cv::inRange(hsv, lowerWhite, upperWhite, mask);
mask.rowRange(0, 204) = 0;
Mat element = getStructuringElement( MORPH_RECT, Size( 5, 5 ), Point( 5, 5 ) );
morphologyEx( mask, Output, MORPH_OPEN, element );
Output:
Sometimes bibliography is good idea
I merely used python.
@LBerger Thank you for spotting a good paper for me. Let me go through it and see if I can come up with a robust solution.