We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656332a commit e779c9bCopy full SHA for e779c9b
lib/provider/opencv/template-matching-finder.class.ts
@@ -141,7 +141,7 @@ export default class TemplateMatchingFinder implements FinderInterface {
141
const bestMatch = matches.pop();
142
if (bestMatch) {
143
if(bestMatch.error) {
144
- throw new Error(bestMatch.error.message)
+ throw bestMatch.error
145
}else {
146
throw new Error(`No match with required confidence ${matchRequest.confidence}. Best match: ${bestMatch.confidence} at ${bestMatch.location}`)
147
}
0 commit comments