Home > Software engineering >  Dear bosses, in a light background image, detecting a dark line, can give a way of thinking
Dear bosses, in a light background image, detecting a dark line, can give a way of thinking

Time:11-22

The noise of the image is very big, the picture

CodePudding user response:

Projection to a threshold

CodePudding user response:

reference 1st floor gouyanfen response:
projection, give a threshold
can be a bit more detail

CodePudding user response:

refer to the second floor weixin_41432790 response:
Quote: refer to 1st floor gouyanfen response:
projection, give a threshold
can more detail

Must be straight, then you just need to get the coordinates of two points, cut the original image for the block and projection to calculate whether there is a straight line, how projection example code a lot online, and then find coordinates in different blocks, as long as you can in the block division to find three or more points, and then calculation is in a straight line, it is found,
  • Related