Home >Web Front-end >JS Tutorial >javascript Get image color_javascript skills
Using the 2D object of canvas, we can obtain the data of each pixel of the image CanvasPixelArray
Shunzi also wrote a simple getImageData demonstration here to demonstrate the color selection of the picture. This demo currently only runs under ff3.
After being able to obtain pixels, will all future OCR text recognition systems be directly online?
Related information: http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-getimagedata