A
A
Artur Berdyev2019-04-24 15:51:19
JavaScript
Artur Berdyev, 2019-04-24 15:51:19

How to process an image per pixel in js?

Good afternoon. Playing around with neural networks, trying to make my bike with crutches and a bar to recognize handwritten numbers. I used the brain.js library, trained the neural network using samples from the network, and tested it on test samples. But now naturally I want to process my images. The task is to center the custom image, scale the images to a given pixel value, and perform binarization. The result should be a normalized array of pixels where 0 is white and 1 is black. The question is how to process images. I smoked the node-canvas API and did not find anything worthwhile (most likely I looked badly). Maybe someone poke their nose? Or perhaps there are other solutions?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2019-04-24
@Stalker_RED

https://developer.mozilla.org/ru/docs/Web/API/Canv...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question