From: Rachel A Date: Fri, 8 Jan 2021 20:14:35 +0000 (-0800) Subject: Template Matching Tutorial issue fix https://github.com/opencv/opencv/issues/17739 X-Git-Tag: accepted/tizen/unified/20220125.121719~1^2~1^2~206^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=380009ac587de365623f07100af558c2e0f2b080;p=platform%2Fupstream%2Fopencv.git Template Matching Tutorial issue fix https://github.com/opencv/opencv/issues/17739 --- 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', () => {