Ask Your Question

Revision history [back]

Need help looking for a set of symbols in a video.

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

  1. the symbol just wasn't recognized from in the video
  2. 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.

click to hide/show revision 2
retagged

updated 2018-03-22 14:32:11 -0600

berak gravatar image

Need help looking for a set of symbols in a video.

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

  1. the symbol just wasn't recognized from in the video
  2. 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.