1 | initial version |
My suggestion try: boxfilter(src,temp1,kernel......) //try bigger core. temp2=cv::substract(src,temp1)
then try to threshold (temp2,temp3......) //or the orher threshold
finally try to use blob to find the longest line or characteristic which is near horizontal. best regard
2 | No.2 Revision |
My suggestion try:
boxfilter(src,temp1,kernel......) //try bigger core.
core. or you can use frequency filter
temp2=cv::substract(src,temp1)
then try to threshold (temp2,temp3......) //or the orher threshold
finally try to use blob to find the longest line or characteristic which is near horizontal.
horizontal.
best regard
3 | No.3 Revision |
My suggestion try:
try:
boxfilter(src,temp1,kernel......) //try bigger core. or you can use frequency filter
temp2=cv::substract(src,temp1)temp2=cv::substract(src,temp1)
then try to
threshold (temp2,temp3......) //or the orher finally try to use blob to find the longest line or characteristic which is near horizontal.
best regard
4 | No.4 Revision |
My suggestion try:
boxfilter(src,temp1,kernel......) //try bigger core. or you can use frequency filter
temp2=cv::substract(src,temp1)
or
boxfilter(src,temp12,kernel1......) // the kernel size kernel1<kernel2
boxfilter(src,temp11,kernel2......) //try bigger core. or you can use frequency filter
temp2=cv::substract(temp11,temp12)
then try to
threshold (temp2,temp3......) //or the orher threshold
finally try to use blob to find the longest line or characteristic which is near horizontal.
best regard
5 | No.5 Revision |
This image is color, so the other method is try to convert the other color space and find the easy inspection image. My suggestion try:
boxfilter(src,temp1,kernel......) //try bigger core. or you can use frequency filter
temp2=cv::substract(src,temp1)
or
boxfilter(src,temp12,kernel1......) // the kernel size kernel1<kernel2
boxfilter(src,temp11,kernel2......) //try bigger core. or you can use frequency filter
temp2=cv::substract(temp11,temp12)
then try to
threshold (temp2,temp3......) //or the orher threshold
finally try to use blob to find the longest line or characteristic which is near horizontal.
best regard