mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
@@ -82,7 +82,7 @@ In this tutorial, we just show a cv.Mat on screen. To show a cv.Mat, you need a
|
||||
|
||||
You can use cv.imshow to show cv.Mat on the canvas.
|
||||
@code{.js}
|
||||
cv.imshow(mat, "outputCanvas");
|
||||
cv.imshow("outputCanvas", mat);
|
||||
@endcode
|
||||
|
||||
Putting all of the steps together, the final index.html is shown below.
|
||||
|
||||
Reference in New Issue
Block a user