Ask Your Question

Revision history [back]

click to hide/show revision 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

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

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 threshold

threshold

finally try to use blob to find the longest line or characteristic which is near horizontal.

best regard

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

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