From 380009ac587de365623f07100af558c2e0f2b080 Mon Sep 17 00:00:00 2001 From: Rachel A Date: Fri, 8 Jan 2021 12:14:35 -0800 Subject: [PATCH] Template Matching Tutorial issue fix https://github.com/opencv/opencv/issues/17739 --- doc/js_tutorials/js_assets/js_template_matching_matchTemplate.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/js_tutorials/js_assets/js_template_matching_matchTemplate.html b/doc/js_tutorials/js_assets/js_template_matching_matchTemplate.html index ad2bb54..b9f6871 100644 --- a/doc/js_tutorials/js_assets/js_template_matching_matchTemplate.html +++ b/doc/js_tutorials/js_assets/js_template_matching_matchTemplate.html @@ -74,7 +74,8 @@ let utils = new Utils('errorMessage'); utils.loadCode('codeSnippet', 'codeEditor'); utils.loadImageToCanvas('lena.jpg', 'imageCanvasInput'); utils.loadImageToCanvas('lenaFace.png', 'templateCanvasInput'); -utils.addFileInputHandler('fileInput', 'canvasInput'); +utils.addFileInputHandler('fileInput', 'imageCanvasInput'); +utils.addFileInputHandler('templateFileInput', 'templateCanvasInput'); let tryIt = document.getElementById('tryIt'); tryIt.addEventListener('click', () => { -- 2.7.4