I\'m currently trying to detect whether a level crossing barrier has been deployed on an image using HoughLines
in OpenCV
. I thought my code would
in Android or Java its the same idia.you must to do it in for (); to get the theta and row after you get start point and the end point ,you can core the line.(core.line) but dont forget to transfer the mat that you get the values from her to other. after this>>release the mat. hope thats its help u. r.i enjoy