Hi, I am currently working on a school project where the goal is to create a "robot" that would be able to orientate itself using a set of symbols, those can be anything. What I've tried so far is template matching but it was without success.
There were two main problems
- the symbol just wasn't recognized from in the video
- I have no idea how to create conditions based on the results of matchTemplate(). What I've tried was:
...
res= cv2.matchTemplate(gray, template, cv2.TM_CCOEFF_NORMED)
...
if(res.any()): "some result"
or
...
res= cv2.matchTemplate(gray, template, cv2.TM_CCOEFF_NORMED)
...
if(res.all()): "some result"
but neither worked. At this point I'm looking for any suggestions on how to accomplish this. The last resort solution I would go with would be looking for Russian license plates using haar cascades and reading the numbers inside them, then performing some action based on the numbers.