I'm experimenting with python and openCV to get back into coding. As a fun project, I would like to build an agent that could play PacMan. I'm able to find all the "pills" and ghosts from this image, but the same approach appears to fail miserably when I'm trying to identify the walls, i.e. it only detects few segments.
I am using:
cv.matchTemplate(pacman_table_img, [pill|wall]_img, cv.TM_CCOEFF_NORMED)
Thanks in advance for any help or suggestion.