1 | initial version |
For the first case I would go with the addweighted() function. Regarding the second question, depending how complex the detection algorithm you want it to be, I would start with template matching and move forward to more advanced methods like features matching, etc...