docs(tutorial_js_usage): fix imshow usage
authorGrégoire Piffault <greg.piffault@gmail.com>
Fri, 8 Jan 2021 10:48:57 +0000 (11:48 +0100)
committerGrégoire Piffault <greg.piffault@gmail.com>
Sat, 9 Jan 2021 13:53:35 +0000 (14:53 +0100)
doc/js_tutorials/js_setup/js_usage/js_usage.markdown

index e2191e6..5a8c3b8 100644 (file)
@@ -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.