6
$\begingroup$

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

$\endgroup$
7
$\begingroup$

Here's one way:

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

enter image description here

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.