This recipe introduces a new way to develop computer vision algorithms with OpenCV using JavaScript for the World Wide Web (WWW). Before OpenCV.js, developers that needed some computer vision tasks on the web had to develop them in C++ in servers or Java applets clients, which were not optimized, but with OpenCV.js, the new paradigm of client applications using web browsers has grown with unlimited of possibilities.
In this recipe, we are going to create a very simple case where we load an image into an img HTML tag, change the color image, and present it to a canvas element.