Skip to content

Commit 380009a

Browse files
committed
Template Matching Tutorial issue fix opencv#17739
1 parent 2d2d72a commit 380009a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/js_tutorials/js_assets/js_template_matching_matchTemplate.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ <h2>Template Match Example</h2>
7474
utils.loadCode('codeSnippet', 'codeEditor');
7575
utils.loadImageToCanvas('lena.jpg', 'imageCanvasInput');
7676
utils.loadImageToCanvas('lenaFace.png', 'templateCanvasInput');
77-
utils.addFileInputHandler('fileInput', 'canvasInput');
77+
utils.addFileInputHandler('fileInput', 'imageCanvasInput');
78+
utils.addFileInputHandler('templateFileInput', 'templateCanvasInput');
7879

7980
let tryIt = document.getElementById('tryIt');
8081
tryIt.addEventListener('click', () => {

0 commit comments

Comments
 (0)