After calling matchTemplate, you will get the result of the matrix
void matchTemplate(InputArray image, InputArray temp, OutputArray result, int method)
The result is a matrix that displays the results of the comparison. The method may be CV_TM_CCORR_NORMED.
You can find match rates using the minMaxLoc () function.
You can view the value of compliance as the likelihood that you will find a specific “currency value”. You can also set a threshold value for the corresponding value, so if you do not find any of the patterns that you know, you should get the corresponding outputs below this threshold.
source share