6

I am currently working on processing a tic tac toe board to have a robot play a human user. As the lighting changed throughout the day, the image became more difficult to process. Is there a way to avoid this and only get the pen lines?

enter image description here

Jenny
  • 559
  • 2
  • 9

1 Answers1

7

Here's one way:

img=Import["https://i.stack.imgur.com/LBVmD.jpg"]
Dilation[EdgeDetect[img], 2]

enter image description here

enter image description here

bill s
  • 68,936
  • 4
  • 101
  • 191